The Tally BlogTax strategy

Capital Gains Tax When You Sell Your House: The 2026 Rules Every Retiree Should Know

For most people heading into retirement, the house is the biggest number on the balance sheet. Bigger than the 401(k). Bigger than the brokerage account. So when you sell it — to downsize, to move near the grandkids, to cut costs — you're making the largest single taxable transaction of your life.

The good news: the tax rules for home sales are friendlier than most people fear. The bad news: the friendly part was sized for 1997, and the traps are specific. Here's how it actually works for a sale in 2026.

The exclusion: $250,000 or $500,000 of gain, tax-free

Section 121 of the tax code lets you exclude a large chunk of home-sale profit from your income entirely. Sell your main home and you can wipe out up to $250,000 of gain if you file single, or $500,000 if you're married filing jointly.

To qualify, you need to pass two tests. You must have owned the home for at least 2 of the 5 years before the sale, and used it as your main home for at least 2 of those 5 years. The two years don't have to be consecutive, and for a married couple claiming the full $500,000, either spouse can satisfy the ownership test but both must meet the use test.

One more limit: you can only use the exclusion once every two years. If you excluded gain on another home sale within the past two years, this sale doesn't qualify.

For a long-tenured homeowner, that's usually it. Lived there for decades, gain under the cap, married filing jointly — you sell, you owe no federal capital gains tax on the house, and you don't even report the sale in most cases unless you receive a Form 1099-S.

Why more retirees are blowing past the cap

Those caps — $250,000 and $500,000 — were set by the Taxpayer Relief Act of 1997. They have never been adjusted for inflation. Not once in nearly three decades, while home prices have multiplied.

That math catches up with exactly the people reading this. If you bought your home in the 1990s or early 2000s in almost any strong housing market, your gain may now be well past $500,000. The exclusion still helps enormously — but the amount above it is taxable, and you should know what that costs before you list, not after you close.

First, compute the gain correctly

The gain is not "sale price minus what we paid in 1998." It's the amount you actually realize minus your adjusted basis, and both of those move in your favor.

Your amount realized is the sale price minus selling expenses — the real estate commission, legal fees, transfer taxes.

Your adjusted basis is what you paid for the home plus the cost of capital improvements over the years. The new roof. The kitchen remodel. The deck, the addition, the replaced HVAC. Repairs don't count, but improvements do — and over 25 years they add up. This is why the unglamorous advice holds: find the receipts. Every documented improvement dollar is a dollar of gain that never existed.

A worked example. A couple bought their home in 1998 for $220,000 and put $80,000 of improvements into it over the years, so their adjusted basis is $300,000. They sell in 2026 for $950,000 and pay $60,000 in commissions and selling costs, so they realize $890,000. Their gain is $590,000. Subtract the $500,000 exclusion and $90,000 is taxable long-term capital gain. Without the improvement records, the taxable gain would have been $170,000 — the receipts just saved them tax on $80,000.

What the taxable part actually costs in 2026

Gain above the exclusion is long-term capital gain, which gets its own rates: 0%, 15%, or 20%, depending on your taxable income. For 2026, the 0% rate applies up to $49,450 of taxable income for single filers and $98,900 for married filing jointly. The 15% rate runs up to $545,500 (single) and $613,700 (joint). Above that, 20%.

The gain stacks on top of your other income. Take our couple with the $90,000 taxable gain. Suppose their other taxable income in 2026 — pensions, IRA withdrawals, interest — is $60,000. The first $38,900 of the gain fills the rest of the 0% bracket and is taxed at zero. The remaining $51,100 is taxed at 15%, about $7,665. On a $950,000 sale, that's a federal bill under 1% — but only because they knew their basis and their brackets.

Two more layers to check. If the sale pushes your modified adjusted gross income over $200,000 (single) or $250,000 (joint), the 3.8% net investment income tax applies to gain above those thresholds — and those numbers, like the exclusion, are frozen by statute and never adjust for inflation. And your state may tax the gain as ordinary income, which in a high-tax state can cost more than the federal hit.

The timing traps

A few rules punish bad timing far more than bad luck.

The surviving spouse deadline. If your spouse dies, you can still claim the full $500,000 exclusion — but only if you sell within two years of their death (and the other requirements were met before they died). Wait past that window and your cap drops to $250,000. On a home with $600,000 of gain, that deadline is worth up to tens of thousands of dollars, at the worst possible time to be thinking about taxes.

Medicare premiums, two years later. Medicare premiums are based on your income from two years prior. A big taxable gain in 2026 can mean higher Medicare premiums in 2028 — a one-year surcharge that surprises a lot of retirees who sold a house. It's temporary, but it belongs in the math.

The rental wrinkle. If the home spent time as a rental, two extra rules apply. Any depreciation you claimed during the rental years isn't sheltered by the exclusion — it's taxed separately, at a federal rate of up to 25%. And for rental periods after 2008 that came before the home was your main residence, a slice of the gain is carved out of the exclusion entirely, in proportion to those "non-qualified use" years. The classic move-into-the-rental-for-two-years strategy still works, but it no longer wipes out the whole gain. If this is your situation, get the ownership history down on paper, year by year, before you estimate anything.

The partial exclusion. If you have to sell before hitting the two-year tests — for a job move, for health reasons, or for certain unforeseen circumstances — you don't lose the exclusion entirely. You get a prorated share: roughly the full cap times your months of use divided by 24. Eleven months in the house for a qualifying reason gets a couple about $229,000 of exclusion, which still covers most gains.

Run the sale before you sign anything

Every number above interacts with the rest of your finances. The year you sell, your income spikes — which can change your capital gains bracket, trigger the 3.8% surtax, and echo into Medicare premiums two years out. The same sale in a different year, or split differently against Roth conversions and withdrawals, can cost meaningfully more or less.

That's exactly what a what-if scenario is for. In Tally, you can model the sale — price, basis, exclusion, your state — and see the tax bill land in your lifetime forecast before you ever talk to an agent, then compare selling this year against next.

If you're within a few years of a move, spend an evening on three things: dig out the improvement receipts, estimate your gain honestly, and check where the taxable piece lands against your 2026 income. A house sale is the rare tax event you can see coming years away. Use the lead time.

Start your 14-day free trial at thetally.io — no credit card required.

See your own numbers in Tally

Tally turns the ideas in this guide into a live forecast built from your real accounts — so you can watch the decision play out before you make it.

Start your 14-day free trial

No credit card required · Cancel anytime