← All articles
πŸ“ˆ

Do I Owe Capital Gains After 30 Years in My House?

🧾 Taxes & Accounting July 04, 2026 · Updated Jul 15, 2026 · 5 min read capital gains home sale section 121 long-time owner
TL;DR: A long-owned home can outgrow the $250K/$500K Section 121 exclusion β€” but tracked improvements shrink the taxable gain far more than most owners expect.

_Last reviewed: July 2026 Β· 4 min read_

If you've owned your home for 30 years and are worried about a giant tax bill, the honest answer is: the Section 121 exclusion ($250,000 single / $500,000 married filing jointly) hasn't changed, so a long-owned home can indeed produce gain above the cap. The good news is that a well-documented list of improvements over the decades often shrinks the taxable portion dramatically β€” sometimes to zero.

Okoniq Property Hub exists precisely so you don't have to reconstruct 30 years of records from memory when it's time to sell. Here's how the math actually works.

Is the exclusion still capped after decades of ownership?

Yes. Section 121 doesn't reward tenure β€” the cap is a flat $250,000 (single) or $500,000 (married filing jointly), and it hasn't been adjusted for inflation since 1997. A home bought for $80,000 that sells for $700,000 has $620,000 of gross gain, so a couple filing jointly could still be looking at $120,000 of taxable gain before adjustments.

But "gross gain" isn't the number the IRS actually taxes. See the next section.

Why does tracking improvements matter so much?

Your adjusted basis is what the IRS subtracts from the sale price to compute gain. It equals:

  • Your original purchase price, plus
  • Every capital improvement you've made over the years, minus
  • Any depreciation you claimed (rare on a primary residence).

Capital improvements are things that add value or extend life: a new roof, a kitchen remodel, an addition, a driveway replacement, central HVAC installation, new windows, a finished basement. Routine repairs don't count β€” repainting a bedroom doesn't add to basis, but replacing all the windows does.

Over 30 years, most homeowners have made $50,000–$200,000 of qualifying improvements. Each one you can document raises your basis and lowers the taxable gain. See what counts as a repair vs. an improvement for the IRS test.

What about closing costs when you sell?

Selling costs reduce your amount realized, which reduces gain. That includes:

  • Real estate agent commission (typically 5–6% of sale price)
  • Title insurance and settlement fees paid by the seller
  • Transfer taxes
  • Attorney fees
  • Home warranty you provide the buyer
  • Advertising, staging, and pre-sale repairs (some of these may instead be capitalized as improvements β€” check with your CPA)

On a $700,000 sale, agent commission alone can knock $35,000–$42,000 off gain before you look at anything else.

How is the gain above the exclusion taxed?

Any gain above $250K/$500K is a long-term capital gain (you've held the home more than a year). Federal rates in 2026 are:

  • 0% if your taxable income is under roughly $47K single / $94K joint
  • 15% for most middle-income filers
  • 20% at the top brackets

There may also be a 3.8% Net Investment Income Tax at higher incomes and state tax on top. See IRS Publication 523 for the full worked examples.

Keep the record in one place

If you've lived in a home 30 years, the difference between "I remember the kitchen was a big project" and "here is the $47,000 receipt, permit, and photos from 2004" is often a five-figure tax difference. Okoniq Property Hub keeps improvement receipts, photos, and dates alongside your closing statements, so basis is a lookup, not an archaeological dig. Related: how to calculate cost basis on an inherited house and the Taxes & Accounting hub.

Frequently asked questions

Do I get a bigger exclusion for owning longer?

No. Section 121 is flat β€” 30 years of ownership gets the same $250K/$500K exclusion as two years.

Do I have to report the sale even if the gain is fully excluded?

Only if you receive a Form 1099-S from the closing agent, or if any of the gain is taxable. Otherwise, the IRS doesn't require you to report a fully excluded home sale. Ask your closing agent whether they'll issue a 1099-S.

What about state capital gains?

Most states tax capital gains at ordinary income rates, which can be higher than the federal long-term rate. A few states (like Washington and New Hampshire) don't tax personal capital gains at all. Check your state.

Not tax advice β€” sale-of-home tax planning is one of the highest-stakes financial events for most homeowners. Confirm specifics with a licensed CPA before signing a closing statement. Okoniq Property Hub helps homeowners keep decades of records ready. Get started free.

FAQ

Can I avoid capital gains tax if I lived in my house for 30 years but was out of state for a few months?

Yes, as long as you owned and lived in the home for at least 2 of the 5 years immediately before the sale. Brief absences for travel, medical care, or temporary work don't disqualify you β€” the IRS measures cumulative days, not consecutive occupancy.

What happens if I can't find receipts for improvements from 20 years ago?

You can still claim them with secondary evidence: canceled checks, credit card statements, contractor invoices, building permits, before-and-after photos, or even sworn statements from the contractor if they're still in business. The IRS accepts reasonable reconstruction when original receipts are lost.

Does paying off my mortgage early change my capital gains?

No. Paying down the mortgage doesn't add to your cost basis β€” only the original purchase price plus capital improvements do. Mortgage interest you paid over the years was deductible annually but doesn't reduce gain when you sell.

If I inherited my parents' house 30 years ago, do I use their purchase price or the value when I inherited it?

You use the fair market value on the date of their death (the "step-up" basis). If the home was worth $120,000 when you inherited it and you sell for $400,000, your gain is calculated from $120,000, not what your parents originally paid.

πŸ•°οΈ

A snapshot, not a living document

This article reflects the rules as we understood them on the review date shown above. We do not revise posts after publishing them. Tax law changes every year β€” thresholds, percentages, and deadlines here may since have been superseded, even though this page still comes up in search. Check the current figure on IRS.gov.

Get tax-season tips by email

Deduction checklists and filing-deadline guides for homeowners and landlords. No schedule, no spam β€” unsubscribe anytime.

Prefer to dive in? Get started free β†’