Taxes

Selling the House You've Owned for Decades: When the Gain Tops $250,000 or $500,000

Decades of rising prices can push a home's profit past the tax-free limit, but your basis, your filing status and the timing of the sale can change the bill by thousands.

A red-brick ranch house with white shutters behind a wide green lawn, with a sticky note reading “Over $250,000?”.
Photo by Roger Starnes Sr on Unsplash

In 1989 you paid $140,000 for the house. Last week an agent walked through it and floated a list price near $950,000. Somewhere between the kitchen and the front door the word “taxes” came up, and you haven’t stopped thinking about it.

Fair enough to worry, though the bill is often smaller than people fear. A big piece of the profit may never touch your federal return. If you’ve owned the home and lived in it for at least two of the five years before the sale, the home-sale exclusion lets you leave off up to $250,000 of gain. A married couple filing jointly gets to leave off $500,000. Only what’s left over is taxed, as a long-term capital gain. For long-time owners that’s the rub: the limits have sat at the same dollar amounts since 1997, while home prices haven’t.

Plenty of owners are already past those lines. By the National Association of Realtors’ May 2025 estimate, about 29 million homeowners, 34%, could already have gains above $250,000, and for about 8 million, 10%, the gain tops even the $500,000 married limit. Treat those as a trade group’s projections from price growth; nobody pulled them off tax returns. Your own number hangs on something only you can document.

It’s your basis, roughly what you paid for the house plus what you’ve put into it since. Plenty of long-time owners have never added it up, and the receipts are scattered across 30 years of drawers. Of everything here, it’s also the one part you can still change before closing. All it takes is finding the paper.

Price minus basis minus exclusion

The math has three steps. Start with the sale price and subtract selling costs, such as the agent’s commission and the seller’s closing costs. Subtract your adjusted basis. What’s left is your gain, and the exclusion comes off that.

Take the house above. Say you and your spouse paid $140,000, then spent $85,000 over the years on an addition, a new roof, central air and replacement windows. You sell for $950,000 and pay $55,000 in commission and closing costs.

Line Married, filing jointly Single filer
Sale price $950,000 $950,000
Minus selling costs $55,000 $55,000
Minus basis ($140,000 + $85,000) $225,000 $225,000
Gain $670,000 $670,000
Minus exclusion $500,000 $250,000
Taxable gain $170,000 $420,000

Same house, same sale. The single filer reports two and a half times the taxable gain, which is why the death of a spouse changes the picture so much, though a widow or widower who sells within two years can often still use the $500,000 limit (more on that below). If all of it were taxed at the 15% federal rate, the couple’s $170,000 would cost $25,500.

Who gets the $500,000 figure? A married couple filing jointly, where either spouse meets the two-year ownership test, both meet the two-year residence test, and neither has used the exclusion on another home in the past two years. The 24 months don’t have to run back to back. They just have to fall within the five years before the sale. If you’ve lived there since 1989, that part’s easy.

$12,750: what $85,000 of undocumented improvements could cost the couple above. Without the receipts, the taxable gain rises from $170,000 to $255,000, and 15% of the difference is $12,750.

What counts in your basis, and what doesn’t

Your starting basis is what you paid, plus some of the closing costs from your purchase, such as recording fees, transfer taxes, survey fees and owner’s title insurance. Improvements add to it. The IRS describes them as work that adds value to the home, prolongs its useful life or adapts it to new uses. An addition counts. So do a whole new roof, a paved driveway, central air and rewiring.

Repairs don’t. Replacing a broken windowpane is a repair; replacing every window as part of a renovation is an improvement. Painting, fixing leaks and patching cracks are maintenance, unless the work is part of an extensive remodeling job, in which case the whole job can count. A new kitchen in 2004? Counts. Repainting the same kitchen in 2019? Usually not.

Some things lower your basis. If you ever claimed depreciation for a home office or rented out part of the house, that depreciation comes back into the picture when you sell.

The IRS expects you to back up the number, and it says to keep your basis records until three years after the due date of the return for the year you sell. If you can’t find the old invoices, rebuild the file: building permits from the city or county, contractor statements, canceled checks, credit card and bank records, even an old appraisal that lists the addition. A shoebox of receipts beats a perfect memory. It’s tedious work, and on the example above it’s worth five figures.

Before you list, though, check two things that can matter even more than receipts: whether a spouse’s death changed your basis, and which rate your gain would actually be taxed at.

Continued

If your spouse has died: two rules that help

Losing a spouse can cut your exclusion in half, from $500,000 to $250,000. Two rules soften that, and you’ll want to know both before anyone puts up a sign.

The two-year window. A surviving spouse can still exclude up to $500,000 if the house sells within two years of the death and you haven’t remarried by the sale. You also have to meet the two-year ownership and residence tests, and your late spouse’s time can count toward them. Neither of you can have used the exclusion on another home in the two years before.

The partial step-up. When a spouse dies, the inherited share of the house gets a new basis equal to its market value on the date of death. In most states, a married couple’s jointly owned home is treated as half in the estate of the spouse who died. Under IRS rules for inherited and community property, your basis becomes your half of the original cost plus the date-of-death value of the half you inherited.

Run the example again. Say your spouse died in 2026, when the house was worth $950,000. Your new basis is $112,500 (half of $225,000) plus $475,000 (half of $950,000), or $587,500. Sell for $950,000 with $55,000 in costs, and the gain is $307,500. Inside the two-year window, the $500,000 exclusion covers all of it. Wait past the window and the $250,000 limit leaves $57,500 taxable.

Community property states go further. In Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington and Wisconsin, a home held as community property generally takes its full date-of-death value when either spouse dies. In the example, the basis would be $950,000, and there’d be no taxable gain at all.

Either way, you’ll need to prove that value. A written appraisal from a licensed appraiser, dated as of the date of death, is the document that holds up. Appraisers do these after the fact all the time.

What you’d owe in 2026, and the bills that ride along

Whatever’s left after the exclusion is taxed at 0%, 15% or 20%, depending on your taxable income. The gain stacks on top of everything else you earned that year. For 2026, the IRS set the lines like this. A joint return stays in the 0% band up to $98,900 of taxable income; a single filer, up to $49,450. Past that it’s 15%, all the way to $613,700 joint and $545,500 single. On a taxable gain the size of the couple’s, most of it lands at 15%. Go much bigger and the top slice can tip into 20%.

Then there’s the 3.8% net investment income tax. It applies to the smaller of your investment income or the amount your modified adjusted gross income tops $250,000 on a joint return ($200,000 single), and those thresholds aren’t adjusted for inflation. The IRS confirms that gain you exclude under the home-sale rule doesn’t count, but the taxable part does. If the couple’s other income on the return, from pensions, IRA withdrawals and the taxable part of Social Security, comes to $110,000, the $170,000 gain lifts their modified adjusted gross income to $280,000. That’s $30,000 over the line, and 3.8% of it is $1,140.

So does the sale cost anything beyond that? It can. A one-time spike in income can wipe out the new senior deduction for that year, which phases out above $75,000 of modified adjusted gross income, or $150,000 for a couple. Medicare also bases its income-related surcharge on your tax return from two years earlier. In 2026 the surcharge starts above $109,000 for a single filer and $218,000 for a couple, so a big 2026 gain can raise your Part B and Part D premiums in 2028.

Your state may want its share as well, and state rules differ.

Special situations: care facilities, rentals and early sales

Moving into care. If you lived in the home for at least a year of the five before the sale, then moved into a licensed care facility because you could no longer care for yourself, the time in the facility counts toward the two-year residence test.

Selling sooner than two years. If health, a job change or an unforeseeable event forced the sale, you may qualify for a partial exclusion.

Renting it out. Depreciation claimed after May 6, 1997 can’t be excluded. And if the house wasn’t your main home for stretches after 2008, part of the gain may not qualify.

You can use the exclusion only once in any two-year period. If the closing agent sends you a Form 1099-S, you’ll have to report the sale on Form 8949 even when the whole gain is excluded.

Waiting: for Congress, or for your heirs

Bills to raise the limit come up regularly. One would double it: the More Homes on the Market Act, introduced in February 2025, would set the exclusion at $500,000 for single filers and $1 million for joint filers, then index it to inflation. Another goes further. The No Tax on Home Sales Act, introduced in July 2025, would scrap the dollar caps entirely. Neither has become law. Both went to the House Ways and Means Committee and stayed there, and I wouldn’t time a sale around a bill stuck in committee.

The other kind of waiting means keeping the house for life. When you die, your heirs’ basis generally resets to the home’s value on that date, so the gain that built up while you owned it may never be taxed. Our guide to selling an inherited house walks through how that stepped-up basis works for the family. It’s a real advantage. It only helps, though, if staying fits your life, because the upkeep and the property taxes are still yours in the meantime, and so are the stairs.

Steps before you list

  1. Find the closing statement from your purchase. It shows the price and the costs that may belong in your basis. Can’t find yours? Ask the title company or closing attorney who handled the purchase.
  2. List every improvement with a date and cost. Then collect the proof: invoices, permits, statements.
  3. Estimate the gain with a realistic sale price and about what you’ll pay in commission and closing costs.
  4. Confirm your exclusion. Check the two-of-five-year tests, the two-year window after a spouse’s death, and the care-facility rule.
  5. Run the full tax picture with a CPA or enrolled agent. Ask about the 3.8% tax, the senior deduction and Medicare premiums two years out, and whether closing in January instead of December would move the gain into a better tax year.
  6. Plan for the paperwork. Expect a Form 1099-S from the closing agent, and ask your preparer if you’ll need an estimated tax payment for the quarter of the sale.

If you only get to one item this month, make it that purchase closing statement. Every other number on the list starts from it.

A ring of old iron keys hanging on a wooden wall, with a sticky note reading “70%?”. Read nextSelling an Inherited or Outdated House: As-Is Offers, Cash Buyers and the Tax Rules A red rocking chair on a front porch next to a dark door, with a sticky note reading “$8,000 upfront?”. Read nextReverse Mortgages: Who They Actually Work For — and the Costs in the Fine Print

About the author

Ray Castellano

Home, Auto & Money

More about the authorLess
Covers
Home and auto insurance, escrow and mortgages, car loans, debt, credit and taxes
Edited by
The Moneystretching editorial team. A human editor checks every figure, date and rule against the sources before an article is published. How we check articles
Sources
IRS (Publications 523 and 551, Rev. Proc. 2025-32, Net Investment Income Tax Q&A), CMS, 20 CFR 418.1135, govinfo.gov, National Association of Realtors. Full list with links

Sources (10)

Show all 10 sourcesHide sources

Reviewed against IRS (Publications 523 and 551, Rev. Proc. 2025-32, Net Investment Income Tax Q&A), CMS, 20 CFR 418.1135, govinfo.gov, National Association of Realtors

This article is general information, not financial, legal, tax, insurance or medical advice, and it is not a substitute for the advice of an attorney.