Half a Million Tax-Free, and Then the Part Nobody Planned For
Selling the family home is the largest single transaction most households ever complete, and the tax treatment is unusually generous: up to $500,000 of gain excluded outright for a married couple. The trouble is that generous is not the same as unlimited. After thirty years in the same house, in the right postcode, the gain can exceed the exclusion β and the receipts that would have reduced it went into a skip two moves ago.
- The answer:: Up to $250,000 excluded for a single filer and $500,000 for a couple filing jointly, on the sale of a home that was your main residence.
- The test:: Owned and used as your main home for at least two of the five years ending on the date of sale. The two years need not be continuous.
- Improvements raise your basis:: Capital improvements over the decades add to what the home cost you and reduce the gain. Repairs do not, and the distinction is worth records.
- It is not once in a lifetime:: The exclusion can be used repeatedly, generally no more often than once every two years.
Where the AI summary above gets this wrong
"You can sell your house tax-free once you are over 55."
That's surface-true. Here's what it misses:
- The age rule was repealed decades ago β There is no age condition at all in the current exclusion, and no once-in-a-lifetime limit. The test is ownership and use β two of the last five years β and it can be claimed repeatedly, generally no more than once every two years.
- Tax-free has a ceiling β The exclusion caps at $250,000 or $500,000. In a household that has held one property since the 1990s, the gain can comfortably exceed the ceiling, and everything above it is a taxable long-term gain.
- The gain reaches beyond the tax on it β A large realised gain raises adjusted gross income for that year, which sets Medicare premiums two years later through IRMAA. People selling at 63 or 64 frequently meet a surcharge at 65 or 66 that nobody connected to the house sale.
01 The test, and what counts as your main home
The exclusion requires that you owned the property and used it as your main home for at least two of the five years ending on the sale date. The two years of use need not be continuous, and the ownership and use periods do not have to coincide.
For a married couple filing jointly to claim the full $500,000, either spouse may satisfy the ownership test, but both must meet the use test, and neither may have excluded gain on another home in the two years before the sale.
There is no age requirement. The old rule that tied a housing exclusion to being over 55 was repealed decades ago and survives only in conversation β but it survives tenaciously, and it leads people to think they must wait, or that they have already used their one chance.
Source: Topic no. 701, Sale of your home
02 Basis is where the long-term owner wins or loses
Gain is the sale price, net of selling costs, minus your adjusted basis. Basis starts at what you paid and rises with capital improvements β an addition, a new roof, a replaced heating system, landscaping that adds value. Ordinary repairs and maintenance do not count.
Over thirty years those improvements can add a very large sum, and every dollar of them reduces the taxable gain. The problem is documentary: claiming them requires records, and almost nobody keeps invoices for a kitchen replaced in 2004 because at the time there was no reason to.
If a sale is a realistic prospect, reconstructing what can be reconstructed is worth real money. Contractor records, permit filings, bank statements and old insurance valuations all help, and they are easier to obtain before the sale than during the year it is being reported.
03 What the excess gain sets off
Gain above the exclusion is a long-term capital gain, taxed on the long-term schedule rather than as ordinary income. On a large sale that is likely to mean the 15% band or higher, since the gain itself pushes you up through it.
The second-order effects are the ones that catch people. The gain raises adjusted gross income for the year of sale, and Medicare premiums are set from income two years earlier β so a sale at 63 can produce an IRMAA surcharge at 65 that appears unconnected to anything. The mechanism is set out in IRMAA surcharges, and a one-off event like this is exactly what the life-changing-event appeal does not cover.
Two further traps. If the home was ever rented, depreciation allowed or allowable is recaptured and is not covered by the exclusion, regardless of whether you actually claimed it. And a surviving spouse can generally claim the full $500,000 if the sale occurs within two years of the death β a deadline worth knowing before it passes unnoticed.
Shows: how much of the gain on a home sale is sheltered by the exclusion and what is taxed above it. Ignores: state tax, depreciation recapture if the home was ever rented, and the effect of the gain on Medicare premiums two years later.
The recurring loss here is not tax planning, it is filing. Households that stayed in one house for thirty years usually did the improvements β the extension, the roof, the rewiring β and cannot prove any of it, so basis stays at the 1994 purchase price and the gain is overstated by six figures. If you own a home you expect to sell one day, the single highest-value hour you can spend is putting every improvement invoice you still have into one folder and writing down the ones you remember but cannot document. It is not glamorous and it is worth more than most investment decisions.
FAQ
How much gain on my home is tax-free?
Up to $250,000 for a single filer and $500,000 for a couple filing jointly, provided you owned and used the property as your main home for at least two of the five years before the sale. Gain above that is a long-term capital gain.
Do I have to be over 55 to use the home sale exclusion?
No. The age-based rule was repealed decades ago. The current exclusion has no age condition and is not once in a lifetime β it can be claimed repeatedly, generally no more often than once every two years.
Will selling my house affect my Medicare premiums?
It can. Gain above the exclusion raises your adjusted gross income for the year of sale, and Medicare premiums are set from income two years earlier. A sale in your early sixties can therefore produce an IRMAA surcharge a couple of years later.
Sources
Regulator references
- Publication 523, Selling Your Home Β· Internal Revenue Service Β· 2025The ownership and use tests, and how basis is adjusted by improvements.Last verified: 2026-09-07
- Topic no. 701, Sale of your home Β· Internal Revenue Service Β· 2025The exclusion amounts and the two-in-five-year requirement.Last verified: 2026-09-07
- Topic no. 409, Capital gains and losses Β· Internal Revenue Service Β· 2025The rate applied to any gain above the exclusion.Last verified: 2026-09-07
Calculator unit tests Β· the assertions this page's worked example is checked against, and their last result
Changelog
- 2026-09-07 β initial publish (new format)
Run this rule against your situation
See what this rule does to your own projection β month by month, to age 90.
Join the Waitlist