Home Sale Exclusion Calculator 2026 β€” $250K/$500K Capital Gains Tax-Free

Calculate how much of your home sale gain is tax-free under Section 121. Full $250K/$500K exclusion, partial exclusion for job/health/unforeseen circumstances.

$
$
$
Kitchen/bath remodel, additions, new roof β€” not repairs
$
Agent commission, closing costs, title fees (typically 5-6%)
Must be 2+ years in last 5 years for full exclusion
$
$0
Taxable Capital Gain
$0
Exclusion Applied
$0
Capital Gains Tax
$0
Net After-Tax Proceeds
$0
NIIT (3.8% if applicable)
$0
Total Tax (CG + NIIT)

Home Sale Tax Breakdown

How to Use This Home Sale Exclusion Calculator

Enter your home's sale price, original purchase price, qualifying home improvements, and selling costs. Then indicate how many years you owned and lived in the home as your primary residence. The calculator automatically determines your maximum exclusion and any taxable gain.

The Formula

Adjusted Basis = Purchase Price + Improvements
Amount Realized = Sale Price βˆ’ Selling Costs
Total Gain = Amount Realized βˆ’ Adjusted Basis
Maximum Exclusion: $250,000 (single) / $500,000 (MFJ)
Partial Exclusion: max Γ— (months of qualifying use / 24)
Taxable Gain = max(0, Total Gain βˆ’ Exclusion Applied)

Example

Maria, Single, sold $550K home (bought $250K, $30K improvements, $33K selling costs), lived there 6 years:
Adjusted basis: $250,000 + $30,000 = $280,000
Amount realized: $550,000 βˆ’ $33,000 = $517,000
Total gain: $517,000 βˆ’ $280,000 = $237,000
Full $250,000 exclusion: gain ($237,000) < exclusion ($250,000)
Taxable gain: $0 | Capital gains tax: $0

Net Investment Income Tax (NIIT)

High-income taxpayers (over $200,000 single / $250,000 MFJ in modified AGI) also owe the 3.8% Net Investment Income Tax (NIIT) on the taxable portion of their home sale gain. The exclusion reduces NIIT exposure as well β€” only the taxable gain after the exclusion is subject to NIIT.

Extended

Sale Price Scenario Analysis

See your tax at different sale prices to understand your break-even and optimal exit timing

How your tax changes at different sale prices, keeping all other inputs constant. Green = fully excluded, yellow = partially taxable, red = heavily taxed.

Sale PriceTotal GainExclusionTaxable GainCG TaxNet Proceeds

Frequently Asked Questions

How much of my home sale profit is tax-free?
Under IRC Section 121, you can exclude up to $250,000 of gain from the sale of your primary residence ($500,000 if married filing jointly) if you owned AND used the home as your primary residence for at least 2 of the 5 years before the sale. Any gain above the exclusion is taxable as long-term or short-term capital gains depending on how long you owned the home.
What if I don't meet the 2-year use test?
You may still qualify for a partial exclusion if you sold due to a qualifying reason: change in place of employment, health reasons, or unforeseen circumstances (divorce, death, job loss, natural disaster). The partial exclusion is prorated: (months of qualifying use / 24) Γ— maximum exclusion. For example, if you lived there 12 months and left for a job change, you can exclude up to (12/24) Γ— $250,000 = $125,000.
What are home improvements and how do they affect my gain?
Qualifying home improvements increase your "adjusted basis" in the property, reducing your taxable gain. Examples include room additions, new roof, HVAC system, kitchen remodel, new flooring, and landscaping. Repairs and maintenance do NOT increase basis. Keep receipts for all major improvements. Your adjusted basis = purchase price + qualifying improvements. The higher your basis, the lower your taxable gain.
What selling costs can I deduct from my home sale proceeds?
You can deduct selling expenses from your proceeds when calculating gain. Deductible selling costs include: real estate agent commissions (typically 5-6%), attorney fees, title search fees, transfer taxes, escrow fees, and advertising costs. These reduce your amount realized, lowering your taxable gain.
Can I use the home sale exclusion multiple times?
Yes, but only once every 2 years. You can use the Section 121 exclusion on multiple homes over your lifetime as long as you wait at least 2 years between exclusions. There is no lifetime limit β€” if you sell a qualifying home, move, establish a new primary residence for 2 years, and sell again, you can use the exclusion again. This is one of the most valuable tax benefits available to homeowners.