What is basis?
Basis is your investment in the home for tax purposes: what you paid for it, plus certain closing costs and the cost of improvements, minus some adjustments like depreciation. The higher your basis, the lower your gain.
Sources
Which home improvements raise my basis?
Things that add value, extend the life of the house or adapt it to a new use: an addition, a new roof, a remodeled kitchen, central air, a deck, a fence, landscaping. Routine repairs and upkeep, like painting or fixing a leak, don't count, unless they're part of a bigger remodel.
Sources
Which selling costs reduce my gain?
Agent commissions, advertising, legal fees, and other costs of selling, such as loan charges you paid that were normally the buyer's. They reduce the amount you're treated as receiving.
Sources
What if I inherited the house?
Your basis is usually the home's value on the date of the owner's death, not what they paid. That reset often wipes out most of the gain. The exclusion itself needs you to have owned it and lived in it as your main home long enough yourself, so heirs who never lived there generally can't use it. Most heirs who sell quickly have little or no gain anyway.
Sources
I inherited my spouse's share. What happens to my basis?
For a home you owned together, you get a new basis for your late spouse's half, equal to its value at death. Your own half keeps its old basis. In the community property states, the whole home can get new basis.
Sources
What if someone gave me the house?
You generally take over the donor's basis, so you inherit their gain, too. If the home was worth less than their basis when they gave it to you and you sell at a loss, your basis for figuring the loss is the lower value.
Sources
What's my basis if I got the house in a divorce?
Usually the same basis your spouse had. A transfer between spouses, or to an ex-spouse as part of the divorce, isn't taxed, and the new owner steps into the old owner's shoes.
Sources
Do energy credits for solar or windows change my basis?
Yes. If you added the cost of qualifying energy improvements to your basis and also claimed a credit or got a subsidy for them, you subtract the credit or subsidy from your basis. The two big home energy credits ended for improvements made in 2026 and later, but credits you claimed for 2025 and earlier still reduce your basis when you sell.
Sources
What records should I keep, and for how long?
Keep the closing statement from when you bought, receipts for improvements, and the closing statement from the sale. Pub. 523's general advice is to keep them until 3 years after the due date of the return for the year you sold, and since basis records go back to the day you bought, keep them for the whole time you own the house.
Sources
Authority, strongest first
- Publication IRS Publication 523 (2025), Selling Your Home
Pub. 523, What records to keep. The general three-year period is the ordinary assessment period; records that support basis are needed to compute gain whenever the property is sold.