Health Money
BudgetingInvestingDebt FreedomReal Estate
Best Credit Cards
Calculators
About
Health Money

Helping you make smarter money decisions with clear, research-backed personal finance advice.

Categories

  • Budgeting
  • Investing
  • Credit Cards
  • Debt Freedom
  • Earning More

More Topics

  • Banking
  • Taxes
  • Insurance
  • Real Estate
  • Financial Planning

Company

  • About
  • Editorial Guidelines
  • Privacy Policy
  • Terms of Service

hello@thehealthmoney.com

Affiliate Disclosure: Some links on this site are affiliate links. We may earn a commission at no extra cost to you.

© 2026 The Health Money. All rights reserved.Our content is developed through a rigorous editorial process that combines deep data research with human oversight to ensure accuracy and relevance. For informational purposes only — not financial advice.Powered by Aptitude Media
HomeTaxesCapital Gains Tax When Selling Your Home in 2026

Capital Gains Tax When Selling Your Home in 2026

How the $250K/$500K home sale exclusion works, what counts as cost basis, and how to keep more of your profit when you sell.

Written by The Health Money Editorial Team|Updated August 22, 2026
Real estate agent placing a sold sticker on a for sale sign outside a house

You bought a home years ago, the market ran, and now you're sitting on a fat profit. Congratulations. But before you start mentally spending that money, there's a tax bill to think about.

The good news: the IRS gives homeowners one of the most generous tax breaks in the entire code. The not-so-good news: a lot of sellers leave money on the table because they don't understand how the rules work, or they forget to track the numbers that matter.

Here's exactly how the capital gains tax on a home sale works in 2026, and what you can do to keep more of your profit.

The $250,000 / $500,000 exclusion

Under Section 121 of the tax code, when you sell your primary residence, you can exclude up to $250,000 of profit from capital gains tax if you're single, or $500,000 if you're married filing jointly. That money is tax-free. You don't even have to report it if your gain stays under the limit.

To qualify, you need to pass two tests:

The ownership test. You owned the home for at least two of the five years before the sale.

The use test. You lived in the home as your primary residence for at least two of those same five years. The two years don't have to be consecutive, and the ownership and use periods don't have to overlap perfectly.

You can use this exclusion once every two years. So if you sold a home in 2024 and claimed the exclusion, you'd need to wait until 2026 to claim it again.

Why this matters more than it used to

Some context. The median home price in the U.S. hit roughly $412,000 in 2026, according to Census Bureau data. That's up 162% from $157,200 in 2000. More recently, from 2019 to 2022 alone, home prices rose about 33% during the pandemic surge, according to the National Association of Realtors.

If you bought a home for $200,000 in 2010 and it's now worth $525,000, your gross profit is $325,000. A single filer would owe capital gains tax on $75,000 of that. A married couple would owe nothing.

Those numbers add up fast in high-appreciation markets like Austin, Boise, or the Tampa Bay area, where values doubled or tripled in a decade. If your gain exceeds the exclusion, every dollar above the line gets taxed.

How the tax actually works on the excess

Any profit above the exclusion is taxed at long-term capital gains rates (assuming you owned the home for more than a year, which you almost certainly did if you met the two-year rule). For 2026, according to the IRS, those rates are:

0% if your taxable income is below $49,450 (single) or $98,900 (married filing jointly).

15% if your taxable income is between those thresholds and $545,500 (single) or $613,700 (MFJ).

20% above those amounts.

There's also the Net Investment Income Tax (NIIT), an additional 3.8% that kicks in if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). That can push the top effective federal rate on your home sale profit to 23.8%. And state taxes may pile on, too.

How cost basis shrinks your taxable gain

The profit the IRS cares about isn't simply "what you sold it for minus what you paid." It's the sale price minus your adjusted basis. And your adjusted basis can be a lot higher than the original purchase price if you've tracked your spending.

Your adjusted basis includes:

The original purchase price (including what you paid the seller, not just your down payment).

Closing costs from when you bought. Title insurance, recording fees, attorney fees, transfer taxes. These all get added to your basis.

Capital improvements. This is where most people leave money behind. A capital improvement is anything that adds value, extends the home's useful life, or adapts it to a new use. Think: new roof, kitchen remodel, bathroom addition, HVAC replacement, new windows, a deck, a finished basement, a new fence.

What doesn't count: routine maintenance. Painting, fixing a leaky faucet, patching drywall. Those are repairs, not improvements.

One analysis from a tax advisory firm found that documenting $95,000 in improvements saved a homeowner approximately $14,000 in combined federal and state tax compared to using the purchase price alone as the basis. That's real money for keeping receipts.

Selling costs reduce your gain, too

When you calculate your gain, you also subtract the costs of selling the home. That includes:

Real estate agent commissions (though these changed after the 2024 NAR settlement, they're still a cost you bear). Also: staging costs, title insurance you paid as the seller, transfer taxes, legal fees, and any repair credits you gave the buyer at closing.

If your agent commission was 5% on a $500,000 sale, that's $25,000 subtracted from your gain before the exclusion even applies.

The partial exclusion (for people who moved early)

What if you haven't lived in the home for the full two years? You might still qualify for a partial exclusion if you moved for one of three IRS-approved reasons:

A change in your place of employment (you or your spouse got a new job or were transferred).

Health reasons (a doctor recommended the move, or you needed to be closer to medical care).

Unforeseen circumstances (divorce, death of a spouse, natural disaster, among others the IRS defines in Publication 523).

The partial exclusion is prorated. If you lived in the home for 12 of the required 24 months, you'd get 50% of the full exclusion: $125,000 (single) or $250,000 (married filing jointly).

A few situations that trip people up

Renting out your home before selling. If you converted your primary residence to a rental property, the rules get more complicated. You can still use the exclusion for the portion of time it was your primary residence, but you'll owe depreciation recapture tax on any depreciation you claimed (or should have claimed) while it was a rental. Depreciation recapture is taxed at 25%, which is higher than the standard long-term capital gains rate.

Divorce. If you transfer the home to a spouse (or ex-spouse) as part of a divorce, the receiving spouse keeps the original cost basis. The receiving spouse can also count the time the other spouse owned or lived in the home toward their own two-year tests. This is worth knowing before you negotiate.

Surviving spouses. If your spouse passed away and you sell the home within two years, you can still claim the full $500,000 married exclusion. After two years, you revert to the $250,000 single exclusion.

Inherited homes. The Section 121 exclusion generally doesn't help with inherited property because you get a stepped-up basis (the home's fair market value at the date of death). You'd still need to meet the ownership and use tests. But the stepped-up basis often eliminates most or all of the gain anyway.

What to do before you sell

Dig up your records. Find your original closing statement (the HUD-1 or Closing Disclosure). Gather receipts, invoices, and contracts for every improvement you've made. No receipt? Check your bank and credit card statements. Even a contractor's invoice from 2014 can save you thousands.

Calculate your adjusted basis. Purchase price + buying closing costs + capital improvements = adjusted basis. Then: sale price - selling costs - adjusted basis = your gain. If that number is under $250,000 (single) or $500,000 (MFJ), you owe nothing.

Time the sale carefully. If you're close to the two-year mark on the ownership or use test, waiting a few months could save you six figures. If you've used the exclusion recently, check whether two full years have passed since your last sale.

Talk to a tax professional. If your gain is anywhere near or above the exclusion limit, a CPA can help you identify basis adjustments you missed and plan the timing of the sale relative to your other income. The fee pays for itself many times over.

The bottom line

Most homeowners will never owe a dime in capital gains tax when they sell, and that's by design. The $250,000 / $500,000 exclusion is generous. But if you've owned your home for a long time, or you bought in a market that ran hard, the exclusion might not cover everything.

The difference between a big tax bill and a small one often comes down to recordkeeping. Track your improvements. Keep your closing documents. Know your basis. The IRS rewards homeowners who do their homework, and the savings can be worth tens of thousands of dollars.

taxesreal-estatehome-salecapital-gains

Get Smarter With Your Money

Join 10,000+ readers getting weekly tips on budgeting, investing, and building wealth — no spam, just actionable advice.

Trusted by readers in 50+ countries|4.9/5 reader satisfaction
Subscribe for Free

Free forever. Unsubscribe anytime.

Helpful Resources

  • Best Credit Cards of 2026
  • Compound Interest Calculator
  • Budgeting Guides
  • Investing Articles

Related Articles

  • Grandmother handing a money envelope to her smiling granddaughter at home

    The Gift Tax in 2026: How Much You Can Give Without Owing

    9 min read

  • A calculator, cash, and a notepad with a pen on a table, representing HSA contribution planning and tax calculations

    The HSA Timing Traps That Can Trigger a Surprise Tax Bill

    9 min read

  • A smiling college graduate sitting outdoors in a cap and gown

    Your Student Loan Forgiveness Just Became Taxable in 2026

    9 min read

  • An older couple at a kitchen table reviewing account statements with a notebook and calculator

    RMD Deadline 2026: The December 31 Trap That Costs You 25%

    10 min read