Get expert tax and accounting help!
Call (866) 681-2140

Capital Gains Tax on Real Estate Sale

Sell your main home and a big piece of the gain can be tax-free: up to $250,000 single, $500,000 married — if you owned and lived there two of the last five years. Past the exclusion, or on any property that doesn't qualify, you pay 0, 15, or 20% after a year, or your ordinary rate inside a year.

$250k / $500k exclusion checked
Basis reconstruction included
Capital Gains Tax on Real Estate Sale

What You Need to Know

  • Sell your main home and up to $250,000 (single) or $500,000 (married) of gain can be tax-free — if you owned and lived there two of the last five years.
  • Past the exclusion, or on any property that doesn't qualify, you pay 0, 15, or 20% after a year — or your ordinary rate inside a year.
  • Rented it or claimed depreciation at any point? That slice gets taxed separately at up to 25% (recapture). How the place was used matters as much as the sale price.

The capital gains tax on a real estate sale depends on one question: was it your main home? That single fact decides whether a large slice of the gain is tax-free or fully taxable, and online calculators skip it. The home-sale exclusion (per IRS Publication 523) is the single biggest break in real estate tax, and it's the first thing we check.

Gain above the exclusion cap is still taxable. And the exclusion only covers a home you lived in, so a long-held, highly appreciated home can still leave a taxable gain after the exclusion is applied. That's when basis reconstruction and rate-band planning start to matter.

How the Home-Sale Exclusion Works

The single biggest break in real estate tax. Get this right first, then everything else.

The Two-Out-of-Five Rule

Own the home AND live in it as your main home for at least 2 of the 5 years before selling. Meet both tests and up to $250k of gain is excluded ($500k if you file jointly and both spouses meet the use test). The 2 years don't have to be continuous.

Once Every Two Years

The exclusion can be used once every two years — not more. If you sold another main home in the last 2 years and took the exclusion, this sale doesn't qualify (unless a partial-exclusion trigger applies).

Partial Exclusion for Unforeseen Events

A work move (50+ miles), health issue, or other unforeseen event that forces an early sale unlocks a partial exclusion — prorated by the fraction of the 2-year window you met. Even 6 months in the home can qualify for a quarter of the exclusion.

Rented at Any Point? Recapture Applies

If any part of the home was ever rented (Airbnb'd, converted to a rental, or used as a home office you depreciated), the depreciation taken is recaptured at up to 25% — separate from and BEFORE the capital-gain exclusion. See capital gains tax on investment property for the recapture-heavy scenario.

How the Rate Is Set

1

Holding period decides short vs long

Held more than a year, the gain is long-term — 0, 15, or 20% for 2026. Held a year or less, it's taxed as ordinary income (much higher). One day matters here — closing date vs anniversary date.

2

Total income decides the band

The gain stacks on your other income, so the same gain can fall partly in the 15% band and partly in 20%. Higher earners also add 3.8% NIIT surtax on the investment income portion.

3

Prior rental use gets recaptured separately

Depreciation taken while it was a rental (even a home office deduction) is recaptured at up to 25%, separate from the rest of the gain. See capital gains tax planning for the whole framework.

Why Sellers Trust Dimov Tax on Home Sales

The exclusion catches most of the gain for most sellers. The rest comes down to basis reconstruction — the improvements you made, the closing costs, the selling expenses. Owners who never tracked a new roof, an addition, or a renovation routinely overstate their gain and overpay.

$1.5B+
in tax savings identified for clients
63%
of clients return year after year
70+
tax and financial services under one roof
15+ yrs
advising on real estate sales across multiple states

What the Review Costs

Your fee depends on the work involved, not hours billed. Three things move it: how the property was used (pure primary residence, part-rental, or convert-back); how many years of basis we rebuild; whether more than one state taxed the gain.

To get a quote, tell us what you paid, how the property was used, and what it sold for. The fee comes back in writing before any work begins.

Four inputs decide it. What you paid, what it sold for, how the place was used, and improvement records.

How Adjusted Basis Shrinks the Taxable Gain

Your taxable gain is sale price − adjusted basis. Basis is NOT just what you paid — it includes capital improvements and many closing/selling costs. Rebuilding basis before filing often lowers the tax bill more than anything else. What counts and what doesn't:

Improvements
Roof, HVAC, addition, kitchen/bath renovation, deck, landscaping — all raise basis
Closing costs
Title insurance, transfer tax, legal fees, recording fees — added to basis at purchase
Selling costs
Realtor commission, staging, repairs to make marketable — reduce the sale price side of the equation
NOT deductible
Routine maintenance, painting, ordinary repairs — these DON'T raise basis

Sources: IRS Publication 523 (home-sale exclusion + basis rules); Topic 409 (capital gains rates); Topic 701 (main-home use test)

When to Call a CPA Before Filing

A good fit if:

  • You sold your main home and the gain will exceed $250k / $500k
  • You've had the home more than 20 years and never tracked improvements
  • You rented part of the home (Airbnb, in-law unit, home office deduction)
  • You moved for work / health / other reason before hitting the 2-year mark
  • You sold your last main home within the past 2 years
  • You've owned the home in multiple states (state capital gains tax rules differ)

Not your main home? See capital gains tax on second home or capital gains tax on investment property. Inherited? capital gains tax on inherited property covers the stepped-up basis. Or the full framework at capital gains tax planning.

Get My Real Estate Sale Number

Four inputs decide it: what you paid, what it sold for, how the property was used, and the improvement records you kept. From those we give you the taxable gain, the exclusions that actually apply, and the rate on each slice.

"Taxpayers approach us after doing their taxes in TurboTax or on H&R Block or a do-it-yourself app, and they have a huge tax bill and they don't know why they have it."
— George Dimov, CPA, Founder of Dimov Tax

The aim is the smallest defensible number. Confidential CPA review — not a call center.

Reviewed by George Dimov, CPA

Founder of Dimov Tax

15+ years advising on real estate sales, home-sale exclusion, and basis reconstruction across multiple states.