Ex-PwC Chartered Accountants
|
CA & ACCA Certified
|
Top Rated Plus on Upwork (4.9★, 115 reviews)
|
100+ US Businesses Served

Capital Gains on Home Sale Calculator

Use this free capital gains calculator for home and property sales to estimate your total gain, the Section 121 exclusion ($250,000 single / $500,000 married), depreciation recapture on rentals, and your estimated federal capital gains tax — instantly, before you sell.

$
$
$
$
$
$
$0
Total Gain
$0
Exclusion Applied
$0
Taxable Gain
$0
Est. Federal Tax
0%
Effective Rate on Gain
Free Download · No spam

Get the Free Small Business Finance Toolkit

The same templates our Ex-PwC CFOs use with 100+ clients: a 13-Week Cash Flow Forecast and a 12-Month Budget (Excel). Enter your email and download instantly.

How to Use This Capital Gains Home Sale Calculator

  • Enter the sale price and selling costs — agent commission (typically 5–6%) and closing fees reduce your gain dollar-for-dollar.
  • Enter your purchase price and improvements — together these form your adjusted cost basis. Every documented improvement lowers your taxable gain.
  • Choose property type and filing status — this determines whether the $250,000 / $500,000 Section 121 exclusion applies.
  • Enter your taxable income — long-term capital gains are taxed at 0%, 15%, or 20% depending on your income bracket.

How Capital Gains on a House Sale Are Calculated

Amount Realized = Sale Price − Selling Costs

Adjusted Basis = Purchase Price + Capital Improvements

Total Gain = Amount Realized − Adjusted Basis

Taxable Gain = Total Gain − Section 121 Exclusion (up to $250K single / $500K MFJ)

The single biggest factor for most homeowners is the Section 121 exclusion. If the home was your main residence for at least 2 of the 5 years before the sale (the years do not need to be consecutive), you can exclude up to $250,000 of gain — $500,000 for married couples filing jointly. Most primary-residence sales owe no federal capital gains tax at all because the gain falls under the exclusion.

2026 Long-Term Capital Gains Rates

Gains above the exclusion on a home held more than one year are taxed at long-term rates. Broadly: 0% for lower incomes, 15% for most sellers, and 20% for high earners — plus a potential 3.8% Net Investment Income Tax above $200,000 (single) / $250,000 (MFJ) of modified AGI. The calculator estimates which bracket your gain lands in based on the taxable income you enter. If you owned the home one year or less, the gain is short-term and taxed at ordinary income rates instead.

Worked Example

A married couple bought a home for $350,000, spent $40,000 on a kitchen remodel and new roof, and sold it for $650,000 with $39,000 in selling costs:

  • Amount realized = $650,000 − $39,000 = $611,000
  • Adjusted basis = $350,000 + $40,000 = $390,000
  • Total gain = $611,000 − $390,000 = $221,000
  • Exclusion (MFJ) = up to $500,000 → taxable gain = $0

Result: no federal capital gains tax. The same sale by a single filer would exclude $250,000 — still fully covering the $221,000 gain. But a single filer with a $400,000 gain would owe tax on $150,000 of it.

Rental Property Is Different: Depreciation Recapture

Investment property gains do not qualify for the Section 121 exclusion, and there is a second layer of tax most sellers forget: depreciation recapture. Every dollar of depreciation you claimed (or were entitled to claim) while renting the property is taxed at up to 25% when you sell — even if you never actually deducted it. If you are selling a rental, enter your total depreciation claimed and the calculator will estimate the recapture separately. Considering a 1031 exchange to defer the gain entirely? That is a conversation worth having with a professional before you list the property, not after.

Ways to Reduce Capital Gains on a Home Sale

  • Document every improvement. Remodels, additions, new systems, and landscaping all raise your basis. A shoebox of receipts can be worth thousands in avoided tax.
  • Meet the 2-year residence test before selling if you are close — the difference can be a six-figure exclusion.
  • Time the sale against your income. A lower-income year can drop part of your gain into the 0% bracket.
  • Partial exclusions exist for sales forced by job relocation, health, or unforeseen circumstances even if you miss the 2-year test.
  • For rentals, model a 1031 exchange — it defers both the gain and the recapture if you reinvest in like-kind property.

This calculator provides an educational federal estimate only — it is not tax, legal, or financial advice. State capital gains taxes, partial exclusions, and your full tax picture can change the result. Consult a qualified tax professional before making decisions.

Selling a property this year?

Our Ex-PwC Chartered Accountants help sellers document basis, apply the right exclusion, and plan the sale so more of the gain stays with you — before the paperwork is filed.

Book a Free 30-Min Call →
Ex-PwC · CA & ACCA Certified · 4.9★ on Upwork (115 reviews) · 100+ US Businesses Served

Frequently Asked Questions

Do I pay capital gains tax if I sell my house?
Often no. If the home was your main residence for at least 2 of the last 5 years, the Section 121 exclusion lets you exclude up to $250,000 of gain ($500,000 if married filing jointly). You only owe capital gains tax on gain above the exclusion.
How is capital gains on a home sale calculated?
Start with the sale price, subtract selling costs (agent commission, closing fees), then subtract your adjusted basis — the original purchase price plus qualifying improvements. The result is your gain. Apply the $250K/$500K exclusion if you qualify, and the remainder is taxed at 0%, 15%, or 20% depending on your income.
What counts as a home improvement for the cost basis?
Capital improvements that add value or extend the property's life: a new roof, kitchen remodel, additions, new HVAC, landscaping projects. Repairs and maintenance (painting, fixing a leak) do not count. Keep receipts — every documented dollar of improvement reduces your taxable gain.
What is the capital gains rate on a house sale?
If you owned the home more than one year, long-term rates apply: 0%, 15%, or 20% based on your taxable income. High earners may also owe the 3.8% Net Investment Income Tax. If you owned it one year or less, gains are taxed as ordinary income.
Does this work for rental or investment property?
The math for calculating the gain is the same, but rental property does not qualify for the Section 121 exclusion (unless you converted it and meet the residence test), and depreciation you claimed is 'recaptured' at up to 25%. Set the property type to Rental in the calculator to see the effect.
Do I have to buy another house to avoid capital gains?
No — that rule (the old rollover) was replaced in 1997 by the Section 121 exclusion. Buying another home has no effect on the tax on your sale. For investment property, a 1031 exchange can defer gains, but it does not apply to a personal residence.
Is this calculator tax advice?
No. It is an educational estimate using standard federal rules. State taxes, partial exclusions, depreciation history, and other factors can change the outcome. Talk to a qualified tax professional before filing.

Related Free Tools

Book a Free Call →