Home Sale Tax Calculator: Capital Gains & Exclusion (2026)
Estimate taxable gain and federal capital gains tax when selling a home. Many qualifying main-home sellers can exclude up to $250,000 of gain, or up to $500,000 on a qualifying married joint return, under Section 121.
On this page: Calculator · Section 121 exclusion · Worked examples · FAQs
Home sale tax calculator
Enter adjusted cost basis and net sale proceeds, choose the Section 121 exclusion you want to model, and enter an estimated federal tax rate on any remaining taxable gain. Choose an exclusion only if you meet the applicable eligibility rules.
Total gain before exclusion: $
Taxable gain after modeled exclusion: $
Estimated federal capital gains tax: $
Gain after estimated federal tax: $
Effective federal tax rate on total gain: %
Filing a sale with taxable gain or Form 1099-S? TurboTax↗ can help with common home-sale reporting workflows.
The Section 121 exclusion: why most sellers owe $0
Under IRC Section 121, homeowners can exclude a large portion of their gain from federal capital gains tax when selling a primary residence:
- $250,000 exclusion for single filers
- $500,000 exclusion for married couples filing jointly
This amount is fixed by statute and is not indexed for inflation. For a single filer, the full exclusion generally requires at least 24 months of ownership and 24 months of use as a main home during the 5-year period ending on the sale, plus the rule that you generally did not claim another Section 121 exclusion during the prior 2 years. For the full $500,000 married-joint exclusion, special spouse-level requirements apply: generally one spouse must meet ownership, both spouses must meet the use test, and neither spouse can be disqualified by the 2-year look-back rule.
Only gain above the exclusion is taxable, at long-term capital gains rates (0%, 15%, or 20% depending on income) if you owned the home more than one year. The exclusion does not apply to second homes, vacation properties, or rental properties that don't pass the use test.
The calculator above can now model no exclusion, a $250,000 exclusion, or a $500,000 qualifying-MFJ exclusion. It still simplifies special situations such as partial exclusions, depreciation, nonqualified use, and state taxes. See IRS Publication 523 for the detailed eligibility and gain worksheets.
Worked examples
Here's how the exclusion and tax rate work together at different gain levels (assuming both the ownership and use tests are met):
| Sale Scenario | Total Gain | Filing Status | Exclusion | Taxable Gain | Tax Owed (15% rate) |
|---|---|---|---|---|---|
| $350k → $550k | $200,000 | Single | $250,000 | $0 | $0 |
| $350k → $550k | $200,000 | Married (MFJ) | $500,000 | $0 | $0 |
| $300k → $700k | $400,000 | Single | $250,000 | $150,000 | $22,500 |
| $300k → $700k | $400,000 | Married (MFJ) | $500,000 | $0 | $0 |
| $400k → $1,000k | $600,000 | Single | $250,000 | $350,000 | $52,500 |
| $400k → $1,000k | $600,000 | Married (MFJ) | $500,000 | $100,000 | $15,000 |
Assumes the 15% long-term capital gains rate and that both the ownership and use tests are met. Actual cost basis also increases with qualifying capital improvements (a new roof, an addition, a kitchen remodel), which reduces your taxable gain further — keep receipts. Rate depends on total taxable income: 0% for lower incomes, 15% for most sellers, 20% for higher incomes. See the capital gains tax calculator for a custom planning-rate estimate.
How home sale gain is calculated
Your taxable gain is your sale price minus your adjusted cost basis — not simply the sale price minus what you originally paid:
- Start with your purchase price — what you paid for the home
- Add qualifying improvements — a new roof, room addition, remodeled kitchen, or other capital improvements (not routine repairs or maintenance)
- Subtract any depreciation claimed — if you used part of the home for business or rental purposes
- The result is your adjusted cost basis — subtract this from your sale price to get your gain
Selling expenses can also reduce the amount realized from the sale. This is why tracking closing statements and home improvement receipts matters: the correct calculation uses adjusted basis and amount realized, not simply original purchase price versus headline sale price.
When do you have to report the sale?
A fully excluded main-home sale does not always have to appear on Form 8949. The IRS says to report the sale if you have gain that is not fully excludable, if you choose not to claim the exclusion, or if you receive Form 1099-S. If the entire gain is excluded and no Form 1099-S was issued, you generally do not report the sale. See the IRS sale-of-residence guidance.
What if you do not meet the full 2-year tests?
Failing the full ownership/use tests does not always mean the exclusion is zero. Publication 523 provides a reduced-exclusion calculation for certain work-related moves, health-related moves, and other qualifying unforeseen circumstances. Rental or business use, depreciation, and periods of nonqualified use can also change the result.
Sold a home this year? These tools help at tax time
A home sale generally needs Form 8949/Schedule D reporting when gain is not fully excludable or when Form 1099-S was issued. These tools can help with common filing situations:
TurboTax↗ — guides you through the Section 121 exclusion and Form 8949 reporting
H&R Block↗ — file with a tax professional for complex sales, rental conversions, or large gains
Affiliate links — we may earn a commission at no cost to you.
Home sale tax: FAQs
Do you pay taxes when selling a home?
Often not. Under IRC Section 121, single filers can exclude up to $250,000 of gain, and married couples filing jointly up to $500,000, from federal capital gains tax on the sale of a primary residence. A single filer generally must meet ownership, use, and 2-year look-back rules; the full $500,000 married-joint exclusion has additional spouse-level requirements. Only gain not excluded is taxable for regular federal income-tax purposes.
How much is the home sale tax exclusion?
$250,000 for single filers and $500,000 for married couples filing jointly. This amount is set by statute and has not changed since 1997 — it is not adjusted for inflation. For a single filer, the full exclusion generally requires at least 24 months of ownership and 24 months of use as a main home during the 5 years before sale, plus the 2-year look-back rule. Married filing jointly has additional spouse-level requirements for the full $500,000 amount.
What is capital gains tax on a home sale?
Capital gains tax applies to your profit — sale price minus your adjusted cost basis (original purchase price plus qualifying capital improvements, minus any depreciation claimed). Only the gain above the Section 121 exclusion is taxable, at long-term capital gains rates of 0%, 15%, or 20% depending on income, provided you owned the home more than one year.
What if my gain is bigger than the exclusion?
Only the portion of gain above $250,000 (single) or $500,000 (married filing jointly) is taxable. For example, a single filer with a $400,000 gain excludes $250,000 and pays long-term capital gains tax on the remaining $150,000. A married couple with the same $400,000 gain falls entirely within their $500,000 exclusion and owes $0.
Does selling a second home or rental property get the same exclusion?
No. The Section 121 exclusion only applies to a primary residence that passes the ownership and use tests. Second homes, vacation properties, and rental properties do not qualify, and the full gain is subject to capital gains tax. Rental properties may also involve depreciation recapture, taxed at up to 25%, in addition to capital gains tax on the remaining profit.
Do I have to report a home sale if the gain is fully excluded?
Not always. If your entire gain is excluded and you did not receive Form 1099-S, you generally do not report the sale. You generally report it on Form 8949 when some gain is taxable, when you choose not to claim an available exclusion, or when Form 1099-S was issued.
Is this home sale tax calculator accurate?
This calculator provides a planning estimate. It can model a $0, $250,000, or $500,000 Section 121 exclusion, but it does not determine whether you qualify, calculate a partial exclusion, allocate nonqualified use, or calculate depreciation-related tax. Enter adjusted basis and net sale proceeds rather than simply original purchase and headline sale price.