Selling your home in retirement: what you'll owe
The home-sale tax break, how to figure your actual profit, and why how a married couple owns their home can matter a lot.
Attorney reviewed, November 2026
Updated November 2026
If you've owned your home a long time, it may be worth far more than you paid. That's good news, and it raises a natural question: if I sell, how much goes to taxes? For most people selling the home they live in, the answer is reassuring.
The home-sale tax break
When you sell your main home, up to $250,000 of profit is free of federal income tax if you're single, or up to $500,000 if you're married filing jointly. To qualify, you generally need to have:
- owned the home for at least two of the past five years,
- lived in it as your main home for at least two of those five years, and
- not used this break on another sale in the past two years.
For the full $500,000, at least one spouse must have owned the home for two years, and both must have lived there for two years. You can use the break more than once in your life.
Your profit isn't your sale price
The break applies to your profit: the sale price, minus selling costs like the agent's commission, minus your basis. Your basis is roughly what you paid plus major improvements, like an addition, a new roof or a remodeled kitchen. Ordinary repairs don't count.
An example. You bought your home for $200,000 and spent $50,000 on improvements. You sell for $900,000 and pay $50,000 in selling costs. Your profit is $900,000 − $50,000 − $250,000 = $600,000. As a married couple, the first $500,000 is tax-free, so you'd owe tax on $100,000.
That $100,000 is taxed at long-term capital gains rates of 0%, 15% or 20%, depending on your income. In 2026, a married couple pays 0% while taxable income stays below about $98,900, and 15% up to $613,700. Higher earners may owe an extra 3.8% net investment income tax, and most states tax the gain too.
For married couples: how you own the home matters
When someone dies, what they own usually gets a fresh tax value equal to its worth on that day, called a step-up in basis. How much of your home gets it depends on how you own it:
- In the name of the spouse who dies: the whole home steps up.
- Owned jointly: in most states, only the deceased spouse's half does.
- In community-property states, such as California, Texas and Arizona: often the whole home.
A surviving spouse can also generally still use the full $500,000 break if they sell within two years and haven't remarried. Nobody should plan their life around a death, but it's worth asking a tax adviser about timing before you sell.
Other things that can change the picture
- If it was once a rental, part of the profit may be taxable. See rental and second homes.
- Medicare premiums are based on income from two years earlier, so a big taxable gain can raise them later.
- If you must move early because of health, a job or certain other events, you may still qualify for part of the break.
Before you sell
Gather your purchase papers and receipts for major improvements, even old ones, and ask a tax preparer to estimate your profit before you sign a contract. IRS Publication 523 has the official rules. RetireSeek's guide to selling your home (opens our partner site, RetireSeek) goes deeper.