Selling a home can shield up to $500,000 of gain from tax for a couple.

Young couple managing their finances with laptop and documents in a modern kitchen setting.

For many retirees, the family home is the largest single asset they own, and decades of appreciation can turn a modest purchase into a property worth many times what was paid for it. That paper gain raises an obvious worry at sale time: how much of it goes to taxes. The federal tax code answers with one of the most generous breaks available to ordinary homeowners, letting a married couple erase up to $500,000 of profit, and a single seller up to $250,000, from taxable income.

How the home-sale exclusion works

The exclusion applies to the gain on a main home, not the full sale price. Gain is the difference between what the home sells for and its adjusted cost, so a couple who bought for $150,000 and sold for $600,000 would have a $450,000 gain, which falls entirely under the $500,000 ceiling and would owe no federal tax on it. A single seller with the same numbers would exclude the first $250,000 and owe capital-gains tax only on the remaining $200,000.

The break is not a one-time-only benefit tied to age, a point that trips up sellers who remember an older rule. There is no requirement to be a certain age and no need to buy a replacement home. A qualifying homeowner can use the exclusion repeatedly over a lifetime, though generally not more than once in any two-year period.


Free retirement updates: Keep more of a Social Security check and savings with plain-English updates on the changes, deadlines, and costly mistakes retirees miss. Subscribe free.

The two-out-of-five-year test

The catch is a pair of requirements known as the ownership and use tests. According to the IRS guidance on the sale of a home, a seller must have owned the property and lived in it as a main home for at least 24 months during the five years ending on the sale date. Those months do not have to be continuous, and short absences still count, so a total of two years within the five-year window is what matters.

For couples, the tests split. To claim the full $500,000, either spouse can satisfy the ownership test, but both spouses must meet the use test, meaning both must have lived in the home as a main residence for the required time. A couple that marries and sells quickly, before the newer spouse has two years of residence, may find themselves limited to the $250,000 amount rather than the full $500,000.

Records that protect the exclusion, and gains above it

When a gain exceeds the exclusion, the excess is taxed as a long-term capital gain, and keeping good records is what keeps that number as low as possible. The adjusted cost of a home includes the original purchase price plus qualifying improvements over the years, from a new roof to a kitchen renovation, which raise the basis and shrink the taxable gain. A retiree who has owned a home for thirty years and paid for major upgrades along the way can often document tens of thousands of dollars in added basis, and the detailed rules in IRS Publication 523 walk through what counts.

There are also partial exclusions for sellers who fall short of the two-year test for specific reasons, such as a work-related move, a health problem, or another unforeseen event. In those cases a prorated share of the $250,000 or $500,000 may still apply, which can shelter a large part of the gain even on a shorter stay.

The practical takeaway for anyone weighing a downsizing move is to run the math before listing. A couple sitting on decades of appreciation may owe nothing at all, while a single seller or a household with a gain above the ceiling can plan around the timing, the two-year window, and the paper trail of improvements. Because the exclusion turns on facts the seller controls, confirming the ownership and use history against the current IRS rules before closing is what secures the break rather than losing part of it to an avoidable tax bill.

This article was produced with AI assistance and reviewed by The Financial Wire editorial team.

More Financial Reading