Skip to main content
Tax Guide

Selling Your House in 2026? Here's How Much Tax You'll Actually Pay

A CPA-reviewed guide by Rachel Mitchell, CPA — updated for 2026 tax year

How much tax do you pay when you sell your house? The 2026 rules explained: the $250K/$500K exclusion, cost basis, capital gains rates, depreciation recapture, and state taxes — with worked examples.

By Rachel Mitchell, CPA13 min read
home sale taxselling a housecapital gains taxsection 121 exclusionprimary residencetax calculator2026 taxes

You just sold your house. It's probably the biggest check you've ever held in your life. And somewhere between depositing it and shopping for your next place, the question hits: how much of this does the IRS get?

Here's the answer most people are relieved to hear: for the majority of homeowners, the number is zero. But "most" isn't "all" — and if your gain is large, you turned your primary residence into a rental, or you're selling a second home, the tax bill can be genuinely surprising.

In this guide, we'll walk through the 2026 rules step by step: the famous $250,000/$500,000 exclusion, how your gain is actually calculated (it's smaller than you think), the capital gains rates that apply to the excess, and the depreciation trap that catches former landlords. Every example uses real 2026 numbers, and our home sale tax calculator runs the full math for your specific situation in about ten seconds.

The Short Answer: Most Homeowners Pay $0 in Federal Tax

Since 1997, the tax code has contained one of the most generous breaks available to ordinary people: the Section 121 exclusion. If you meet two simple tests, you can exclude up to:

  • $250,000 of gain if you file as single
  • $500,000 of gain if you're married filing jointly

Exclude means exactly what it sounds like: that portion of your profit simply vanishes from your taxable income. It's not a deduction, it's not a deferral — the gain is just gone, as far as federal income tax is concerned.

The median American home sells for roughly $420,000 in 2026. If you bought a decade ago for $250,000 and sold at the median, your gain before adjustments is about $170,000 — comfortably under the exclusion for a single filer, and less than half the married limit. That's why most home sales generate no federal tax at all.

The catch is in the two tests, so let's look at those carefully.

The Two Tests You Must Pass (Ownership and Use)

To claim the full exclusion, you must pass both:

  1. The ownership test: You owned the home for at least 2 years (730 days, which don't have to be consecutive) out of the last 5 years ending on the sale date.
  2. The use test: You lived in the home as your primary residence for at least 2 of those same 5 years.

A few details that trip people up:

  • The 2 years of ownership and use don't have to be the same 2 years.
  • You can use the exclusion once every 2 years, not once per lifetime — serial home-sellers who live in each place 2+ years can repeat it.
  • Married couples filing jointly: both spouses must meet the use test, but only one needs to meet the ownership test, to claim the full $500,000.
  • Divorced or separated? You may still qualify if you were awarded the home in a divorce and your ex met the tests during marriage.
  • Moved for work, health, or an unforeseen event (like a natural disaster) before hitting 2 years? You may qualify for a partial exclusion — the limit gets prorated based on how much of the 2 years you completed.
Filing StatusMaximum Exclusion
Single$250,000
Married filing jointly$500,000
Married filing separately$250,000 each (if each independently qualifies)
Surviving spouse (within 2 years)$500,000

Your Taxable Gain Is Smaller Than You Think

Here's where homeowners routinely overestimate their tax bill. Your gain is not sale price minus purchase price. The formula is:

Gain = Sale Price − Selling Costs − Adjusted Basis

And your adjusted basis is bigger than what you paid:

Adjusted Basis = Purchase Price + Purchase Closing Costs + Capital Improvements − (Casualty Losses + Depreciation Taken)

Two categories deserve special attention:

Capital Improvements Add to Your Basis

A capital improvement is anything that extends the life of the home, adds value, or adapts it to a new use. These count:

  • New roof or HVAC system
  • Kitchen or bathroom remodel
  • Room addition or finished basement
  • New deck, fence, or driveway
  • Landscaping that's part of a broader improvement project
  • Water heater, windows, or security system replacement

These don't count (they're repairs, not improvements): painting, fixing a leak, patching drywall, repainting the fence, routine maintenance. The distinction matters — a $40,000 kitchen remodel reduces your taxable gain by $40,000, while $40,000 of scattered repairs reduces it by exactly nothing.

Selling Costs Come Off the Top

Real estate agent commissions (typically 5–6% combined), title insurance, escrow fees, attorney fees, and transfer taxes all reduce your gain. On a $600,000 sale with a 5.5% commission, that's $33,000 off your gain before anything else.

A Full Example

Say you're single and bought your home in 2016 for $300,000. You spent $45,000 on a kitchen remodel and a new roof. You sell in 2026 for $550,000, paying a 6% commission ($33,000) plus $4,000 in closing costs.

  • Adjusted basis: $300,000 + $45,000 = $345,000
  • Gain: $550,000 − $37,000 (selling costs) − $345,000 = $168,000
  • Exclusion available: $250,000
  • Taxable gain: $0

You still report the sale on your return, but you owe nothing. Run your own numbers through the home sale tax calculator — it handles basis, selling costs, and the exclusion automatically.

When Your Gain Exceeds the Exclusion: 2026 Capital Gains Rates

If your taxable gain after the exclusion is positive, the good news continues: home sale gains are long-term capital gains (assuming you owned the home more than a year), which are taxed at preferential rates. The 2026 brackets:

RateSingle FilersMarried Filing Jointly
0%$0 – $48,350$0 – $96,700
15%$48,351 – $533,400$96,701 – $600,050
20%Over $533,400Over $600,050

Two crucial mechanics:

  1. Your gain stacks on top of your other income. If you earn $80,000 in salary and have a $100,000 taxable home gain, the first $0 of gain fills up the space to the 0% ceiling ($48,350 is already passed), so the gain is taxed at 15% — but if your income were $30,000, part of the gain would fall in the 0% bracket and pay nothing.
  2. The Net Investment Income Tax (NIIT) adds 3.8% if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married). Since a large home gain often pushes MAGI over these thresholds, high earners should expect an effective 18.8% (15% + 3.8%) or 23.8% (20% + 3.8%) on their excess gain.

Example: A Couple Who Exceeds the Limit

A married couple in a high-cost area bought their home in 2014 for $350,000, put $75,000 into a major renovation, and sold it in 2026 for $1,050,000. Selling costs came to $65,000.

  • Adjusted basis: $350,000 + $75,000 = $425,000
  • Gain: $1,050,000 − $65,000 − $425,000 = $560,000
  • Exclusion: −$500,000
  • Taxable gain: $60,000

The husband earns $120,000 in salary, so with the $60,000 gain their taxable income lands squarely in the 15% bracket: $9,000 in federal tax on a $560,000 profit. With MAGI of $180,000 (below the $250,000 threshold), no NIIT applies. Painful, but hardly confiscatory.

For a precise figure including NIIT, use the capital gains calculator — or the home sale tax calculator, which applies the exclusion first and then layers the brackets on top.

The Landlord Trap: Depreciation Recapture

If you ever rented the home out, two things change:

  1. Depreciation you claimed (or were entitled to claim) reduces your basis — and worse, that amount gets taxed at recapture rates up to 25%, not the friendlier capital gains rates.
  2. Non-qualified use prorates your exclusion. Periods after 2008 when the home wasn't your primary residence reduce the exclusion proportionally. Live in it 2 of the last 5 years and you're generally fine; rent it for 5 years after moving out and you've lost the exclusion entirely.

Example: The Former Rental

You bought a home for $300,000, lived in it 4 years, then rented it for 4 years before selling in 2026 for $520,000. You claimed $44,000 of depreciation during the rental years. Selling costs were $32,000.

  • Adjusted basis: $300,000 − $44,000 = $256,000
  • Total gain: $520,000 − $32,000 − $256,000 = $232,000
  • Because it was your primary residence for 2 of the last 5 years, the full exclusion applies… but only to non-recaptured gain: $232,000 − $44,000 = $188,000 of straight gain is fully excluded under $250,000.
  • The $44,000 of depreciation recapture, however, cannot be excluded. It's taxed at up to 25%: about $11,000.

The lesson: depreciation is not free money. It's a loan from the IRS at a rate you only discover years later. If you're in this situation, the home sale tax calculator has a rental mode that separates recapture from regular gain.

Second Homes and Vacation Properties

There's no exclusion for a property that was never your primary residence — no ownership-and-use tests, no $250,000, nothing. The entire gain on a vacation cabin or condo you always rented out is taxable at capital gains rates (plus NIIT if applicable). Some owners make a second home their primary residence for 2 years before selling to unlock the exclusion — but the non-qualified use rules prorate the exclusion for any rental period after 2008, so this only partially works.

Investment properties have their own escape valve: the 1031 exchange, which lets you defer the entire gain by rolling the proceeds into another investment property. It's unavailable for your primary residence (you have the Section 121 exclusion instead), and post-2021 rules restrict it to US real property. A 1031 is a precise, deadline-driven maneuver — get a qualified intermediary involved before you close, not after.

Don't Forget State Taxes

Everything above is federal. States pile on their own rules:

  • Nine states levy no income tax at all — Texas, Florida, Washington (income; though it taxes capital gains of high earners via a 7% excise tax), Nevada, Tennessee, and others — so your home sale gain may escape state tax entirely. Try the Texas tax calculator or Florida tax calculator to see the full picture.
  • California does not conform to the federal exclusion. Sell a $2 million home in San Francisco with a $700,000 gain, exclude $500,000 federally, and California will still tax the full gain (minus your state basis) at rates up to 13.3%. This catches Bay Area sellers off guard every single year.
  • Most states simply follow the federal calculation, but a handful have their own basis rules. If you're selling in a high-tax state, budget for a state bill on top of the federal one.

What the IRS Already Knows: Form 1099-S

At closing, the title company or attorney almost always files Form 1099-S with the IRS, reporting the gross sale price of your home. This means the IRS computers know you sold — and will be looking for the sale on your return.

Even when your entire gain is excluded, you generally must still report the sale on Form 8949 and Schedule D, then show the exclusion so the numbers match the 1099-S. Skipping this step is the single most common trigger for an IRS notice on home sales. Not reporting a taxable gain is far worse — penalties and interest compound quickly.

If your gain is fully excluded and the transaction was properly handled, reporting takes five minutes and closes the loop. The home sale tax calculator produces a summary you can hand to your tax preparer.

  1. Document every capital improvement. Dig through old invoices, credit card statements, and email receipts. Every $1,000 of documented improvements is $150–$238 of tax saved.
  2. Keep proof of selling costs. The settlement statement (Closing Disclosure) lists the commission and title fees — don't lose it.
  3. Mind the 2-of-5-year clock. Selling 10 months too early can cost you the entire exclusion. Sometimes waiting a few months saves tens of thousands.
  4. Time the sale against your income. Retired or between jobs next year with income under $48,350 (single)? Part of your gain may fall in the 0% capital gains bracket.
  5. Watch the NIIT cliff. If MAGI is near $200,000/$250,000, spreading income across tax years — or the gain across two closings for a parcel sale — can dodge the 3.8% surtax.
  6. For rentals: consider a 1031 exchange before selling outright, or move back in for 2 years to restore a prorated exclusion.

Frequently Asked Questions

Do I have to buy another house to avoid the tax?

No — that rule died in 1997. Today's exclusion requires no reinvestment at all. You can sell, rent an apartment, and pocket the excluded gain tax-free.

How often can I use the $250,000/$500,000 exclusion?

Once every 2 years. A person who buys fixer-uppers, lives in each for 2 years, and sells can repeat the exclusion over and over.

Is the exclusion $250,000 or $500,000 for married filing separately?

Each spouse can exclude up to $250,000, but only if each independently passes both tests for the same home — which is rare when separating. Practically, most married-filing-separately situations cap out at $250,000 total.

What if I sell my house at a loss?

You get no deduction. Losses on personal-use property are simply gone. (The silver lining: no tax either.)

Do I owe tax if I inherit a home and sell it?

Usually very little. Your basis "steps up" to the fair market value at the date of death, so only the gain after inheritance is taxable — often near zero if you sell promptly.

What about the home sale exclusion and Medicare/seniors?

The rules are identical at any age. There's no age requirement and no once-in-a-lifetime limit anymore.

Can I exclude gain on a home I sold to a family member?

Yes, if you meet the tests — but sales between family members below fair market value complicate both basis and the arm's-length presumption. Document everything.

When do I actually pay the tax?

With your tax return for the year of the sale (due the following April). Large gains may trigger a quarterly estimated payment requirement to avoid an underpayment penalty — one more reason to calculate the number early instead of in April.

The Bottom Line

The federal home sale rules are genuinely favorable: pass two simple tests, and up to $500,000 of profit is simply gone from your taxable income. The people who get hurt are those with very large gains, former landlords facing depreciation recapture, and sellers in states like California that refuse to conform. Everyone else mostly needs to keep receipts and file one extra form.

Before you commit to a listing price or a closing date, run your exact numbers — purchase price, improvements, selling costs, depreciation — through our free home sale tax calculator. It applies the 2026 exclusion rules, capital gains brackets, NIIT, and depreciation recapture in one pass, so there are no surprises at closing… or the following April.

Rachel Mitchell, CPA

Lead Tax Analyst & Editorial Director, TheTaxCalc

Rachel Mitchell is a Certified Public Accountant (CPA) licensed in Illinois with over 12 years of experience in individual and small-business taxation. She specializes in federal and state income tax compliance, FICA optimization, payroll tax strategy, and multi-state tax planning. Rachel holds an MS in Taxation from Golden Gate University and a BS in Accounting from the University of Illinois Urbana-Champaign. She is an active member of the American Institute of Certified Public Accountants (AICPA) and the Illinois CPA Society. Before joining TheTaxCalc, Rachel spent 8 years at a Big Four accounting firm advising high-net-worth clients on tax-efficient wealth strategies.

Reviewed: January 2026Tax data verified against IRS Publication 15-T & state revenue departments

Try Our Tax Calculators

See exactly how much you'll take home after all taxes and deductions.

Popular Salary Calculations

Quick access to take-home pay estimates for common salary levels.

Related Articles