The home sale exclusion lets you omit from gross income up to $250,000 of gain ($500,000 on a joint return), but only if you meet certain conditions:
Costs that are not currently deductible and that are added to the basis of property. A capital expense generally increases the value of property. When added to depreciable property, the cost is deductible over the life of the asset.