Selling a longtime home in retirement can shield up to $250,000 of gain from tax, or $500,000 for a couple.

Image Credit: Unknown author/

A house bought decades ago for a modest sum can be worth many times that today, and for a retiree ready to downsize, that gain looks like a tax bill waiting to happen. In most cases it is not. A long-standing rule lets a homeowner erase a large chunk of the profit from a home sale — up to $250,000 for a single filer and $500,000 for a married couple — before a dime of capital gains tax comes due. Understanding how it works, and where it quietly falls apart, can mean the difference between a clean sale and a five-figure surprise.

The exclusion that shields the profit

The break comes from the home-sale exclusion, which the IRS details in its guidance on selling a home. A qualifying single seller can exclude up to $250,000 of gain from taxable income, and a married couple filing jointly can exclude up to $500,000. The exclusion applies to the gain — the sale price minus what the IRS calls the home’s basis — not the total sale price. A couple who bought for $90,000 and sold for $560,000 would have a $470,000 gain, entirely covered by the $500,000 ceiling, and owe no capital gains tax on the sale.

Those dollar limits are not year-tied figures that reset with inflation. They were set by the Taxpayer Relief Act of 1997 and have not been raised since, a point worth remembering in markets where home values have climbed far faster than the frozen thresholds.


Free retirement updates: Social Security and Medicare change every year, and nobody sends a memo. The free Retirement Shield newsletter breaks down what changed and what to do. Get it free in your inbox.

The two-year test that decides who qualifies

The exclusion is not automatic. To claim it, a seller generally must have owned the home and lived in it as a main residence for at least two of the five years before the sale, according to the IRS rules for selling a home. The two years of ownership and the two years of use do not have to be continuous, and for a married couple, only one spouse needs to meet the ownership test while both must meet the use test to claim the full $500,000. The exclusion can generally be used only once every two years.

For most retirees who have lived in the same house for years, the test is easily met. It becomes a problem for those who moved out early, converted the home to a rental, or are selling a second property that was never a primary residence — none of which qualify for the full break.

Why keeping records of improvements pays off

When a gain runs past the exclusion, the size of the taxable amount depends on the home’s basis, and this is where good records save money. Basis starts with the purchase price and rises with the cost of capital improvements — a new roof, an addition, a remodeled kitchen. The IRS explains in its rules on figuring a home’s basis that adding those improvement costs raises the basis and shrinks the taxable gain. A homeowner who spent $120,000 improving a house over the years can add that to the basis, potentially keeping a large sale under the exclusion ceiling that would otherwise have been exceeded. Routine repairs do not count, but genuine improvements do, which makes decades of receipts surprisingly valuable at closing.

When part of the gain is still taxed

The exclusion caps out. A single seller with a $400,000 gain shields $250,000 and owes capital gains tax on the remaining $150,000. A widow or widower faces a particular timing issue: the $500,000 amount is generally available on a joint return only if the home is sold within two years of a spouse’s death, after which the limit drops to $250,000. Selling promptly after losing a spouse can preserve the larger exclusion that would otherwise be lost.

A gain that exceeds the exclusion is taxed at long-term capital gains rates, and for higher-income retirees it can also trigger the net investment income tax. Because a taxable home sale can spike income in a single year, it can raise Medicare premiums two years down the line and affect how much of a Social Security benefit is taxed — ripple effects worth modeling before listing.

Selling a home that once earned income

A house that was rented out at some point carries an extra complication. Depreciation claimed during the rental years cannot be excluded and must be recaptured and taxed when the home sells, even if the rest of the gain fits under the exclusion. The IRS home-sale guidance walks through how a period of non-qualified use reduces the amount that can be excluded. For a retiree who turned a former residence into a rental before selling, the exclusion still helps, but it no longer covers the whole picture — and running the numbers before signing a listing agreement is the surest way to avoid a tax bill that the frozen 1997 limits were never designed to reach.

This article was researched and drafted with the assistance of AI and reviewed by The Financial Wire editorial team.

More Financial Reading

Leave a Reply

Your email address will not be published. Required fields are marked *