Skip to main content

The Money Overview

Selling a home you’ve lived in can shield up to $250,000 in gains from tax, or $500,000 for a couple

A retiree who bought a home decades ago and sells it in today’s market can be sitting on a capital gain of several hundred thousand dollars, yet much of that profit may never be taxed. Under a long-standing rule, a single seller can exclude up to $250,000 of gain on a primary residence from federal tax, and a married couple filing jointly can exclude up to $500,000. Those figures are written into the tax code and have not been raised since 1997, a detail that matters more with every year that home values climb.

How the $250,000 and $500,000 exclusions work

The exclusion applies to gain, not to the sale price, and that distinction is where many sellers miscalculate. Taxable gain is the amount realized on the sale minus the home’s adjusted basis, which is generally the original purchase price plus the cost of major improvements. A couple who paid $150,000 for a house and later sells it for $600,000 has a $450,000 gain, not a $600,000 one, and it is that gain the exclusion is measured against.

Qualifying turns on two tests. To claim the full exclusion, a seller must have owned and lived in the home as a main residence for at least 24 months out of the five years before the sale, a rule the IRS lays out in its guidance on selling a home. A single filer who meets both tests excludes up to $250,000; a married couple filing jointly excludes up to $500,000, provided both spouses meet the use test and neither has used the exclusion on another sale in the prior two years.

The break can be claimed repeatedly over a lifetime, but not more than once every two years. A homeowner who sells and excludes gain, then sells a second residence within two years, generally cannot use it again on that second sale. The worksheets in IRS Publication 523 walk through the basis and eligibility math that determine how much, if any, gain remains taxable.


Free retirement updates: Want plain-English help keeping more of your money in retirement? The free Retirement Shield newsletter covers scams, benefits, and money many retirees may be owed, a couple times a week. Subscribe free.

Why the caps weigh most on long-time owners

Because the $250,000 and $500,000 limits have gone unindexed since 1997, inflation and decades of appreciation have quietly eroded them. A couple who bought a modest home for $80,000 in the 1980s and sells it for $700,000 has a $620,000 gain; the first $500,000 is excluded, but the remaining $120,000 is taxable. That overflow is taxed at long-term capital gains rates, which for many retirees means a real bill on a home they assumed was fully sheltered.

Widowed sellers face a particular timing question. A surviving spouse may still claim the full $500,000 exclusion if the home is sold within two years of the spouse’s death and the survivor has not remarried, one of the narrow places where the code preserves couple-level treatment after a death. Selling later drops the ceiling to $250,000, which can make the calendar as consequential as the sale price.

Sellers who no longer meet the two-year tests are not automatically shut out. A partial exclusion is available for those who move because of a change in employment, a health condition, or other unforeseen circumstances, prorated by how much of the two-year period was met, according to the IRS rules on the sale of a residence.

Basis, records, and the paperwork that lowers the bill

Because the tax falls only on gain above the cap, the size of a home’s adjusted basis directly controls how much is exposed. Money spent on qualifying improvements over the years, a new roof, an addition, a remodeled kitchen, adds to basis and shrinks the taxable gain, while routine repairs do not. Retirees who kept receipts across decades of ownership are often able to move a six-figure gain back under the exclusion line.

Reporting also depends on the numbers. A sale is generally reportable when a homeowner receives a Form 1099-S, or when the gain exceeds the exclusion, and the IRS reminds sellers to keep documentation of purchase price, improvements, and selling costs in its reminders for people selling a home. Selling costs such as agent commissions reduce the amount realized and, with it, the taxable gain.

For an older owner, the practical stakes are the difference between a tax-free windfall and an unexpected capital gains bill in a year that may already involve a move into smaller quarters or assisted living. The exclusion remains one of the most valuable breaks in the code for retirees, but its fixed ceilings mean that in high-cost markets it increasingly shelters only part of a lifetime’s appreciation, leaving the rest to be planned around rather than ignored.

What tax the gain above the cap actually faces

The slice of gain that exceeds the exclusion is not taxed as ordinary income but under the long-term capital-gains schedule of 0%, 15%, or 20%, set by total taxable income. For 2026 a married couple filing jointly pays 0% on long-term gains while taxable income stays under $98,900 and does not reach the top 20% rate until taxable income passes $613,700, thresholds the IRS resets for inflation each year. A retiree with modest other income can therefore see part of an over-the-cap gain taxed at nothing, while a large gain stacked on top of pensions and account withdrawals climbs into the higher brackets.

Two rules can push the real cost higher. Any depreciation an owner deducted for a home office or a stretch of renting the property out is recaptured on sale and taxed at a federal rate as high as 25%, a charge the Section 121 exclusion does not erase. Higher-income sellers also face the 3.8% net investment income tax, which the IRS applies to gain above the exclusion once modified adjusted gross income tops $250,000 for a couple or $200,000 for a single filer under its rules on that surtax. Because those thresholds have been fixed by statute since 2013 and never indexed, the effective rate on the taxable portion can reach 23.8%.

This article was produced with AI assistance and reviewed against primary sources by The Money Overview editorial team.

More Financial Reading


One benefit, tax, or Medicare change explained every weekday — plain English, real numbers. Get the free brief.

Free from RetireShield — one short email each weekday. Unsubscribe anytime. We never ask for your password, bank login, or Social Security number.