The home sale tax exclusion under IRS Section 121 allows most homeowners to exclude up to $250,000 ($500,000 if married filing jointly) of capital gain from the sale of their primary residence — completely tax-free. To qualify, you must have owned and lived in the home for at least 2 of the last 5 years. This calculator checks your eligibility and estimates any taxable gain and capital gains tax owed.
Sale & Cost Details
Additions, renovations, new systems (not repairs)
Depreciation recapture is taxed at max 25% regardless of exclusion
Ownership & Residence
Need at least 24 months for full exclusion
Need at least 24 months for full exclusion
Qualifying circumstances may allow a partial exclusion
Gain Calculation
Section 121 Exclusion
Estimated Tax Owed
How to Use the Home Sale Tax Exclusion Calculator
The Section 121 home sale exclusion is one of the most valuable tax breaks available to individual taxpayers — but knowing exactly how it applies to your situation requires understanding your adjusted basis, the 2-of-5 year rule, and how selling costs factor in. This calculator walks through the complete calculation.
Step 1: Enter Your Sale and Cost Details
Start with the sale price — what the buyer paid before adjustments. Then enter your original purchase price. Add up qualifying improvements (capital expenditures that added value or extended the home's life, like a new roof, addition, or HVAC system — not repairs). Enter your selling costs including realtor commissions, transfer taxes, and attorney fees. If you ever rented the home and claimed depreciation, enter that amount — it's subject to recapture at a separate rate.
Step 2: Check Your 2-of-5 Year Eligibility
To claim the full home sale exclusion, you must have owned the home and used it as your primary residence for at least 24 months during the 5-year period ending on the sale date. The calculator checks both the ownership test and the use test. You don't need to have lived there continuously — any 24 months within the 5-year window qualifies.
Step 3: Select Your Filing Status and Rates
Single filers can exclude up to $250,000 of gain; married couples filing jointly can exclude up to $500,000. If both spouses used the home as their primary residence, both ownership and use tests must be met by at least one spouse. For any taxable gain above the exclusion, select your applicable long-term capital gains rate (0%, 15%, or 20%) and whether you're subject to the 3.8% Net Investment Income Tax.
Step 4: Partial Exclusion for Unforeseen Circumstances
If you don't meet the full 2-year requirement because of a job change, health condition, or other IRS-qualifying unforeseen circumstance, you may be eligible for a partial exclusion. The partial exclusion is calculated as the fraction of 24 months you actually satisfied the requirement. For example, if you only lived there 12 months, you'd qualify for half the maximum exclusion.
Step 5: Review Your Tax Estimate
The results show your total gain, the exclusion applied, any taxable remainder, and estimated federal taxes including depreciation recapture and NIIT. The net proceeds figure gives you a realistic after-tax estimate of what you'll keep from the sale. State income taxes on home sale gains vary — consult a local tax advisor for your complete picture.
Frequently Asked Questions
Is this home sale exclusion calculator free?
Yes, this Section 121 exclusion calculator is completely free with no signup, no fees, and no usage limits. All calculations run locally in your browser — your financial data is never sent to any server and stays completely private.
What is the Section 121 home sale exclusion?
Section 121 of the IRS tax code allows homeowners to exclude up to $250,000 ($500,000 for married filing jointly) of capital gain from the sale of their primary residence. To qualify, you must have owned and used the home as your main residence for at least 2 of the last 5 years before the sale.
What is the 2 of 5 year rule?
The 2-of-5-year rule requires that you owned the home for at least 2 years and lived in it as your primary residence for at least 2 years during the 5-year period ending on the sale date. The 2 years of ownership and 2 years of use do not need to be continuous or concurrent — they can be any 24 months within the 5-year window.
How do I calculate my home sale gain?
Your gain equals the sale price minus your adjusted basis. Your adjusted basis is the original purchase price plus qualifying improvements (additions, renovations, new systems) minus any depreciation you claimed if you ever rented the home. Selling costs like real estate commissions and closing fees reduce your realized gain.
What qualifies as a home improvement for tax purposes?
Improvements that add value, extend the home's useful life, or adapt it to a new use increase your basis — examples include room additions, new roofs, central air conditioning, new kitchens, and landscaping. Repairs that just maintain the home (painting, fixing a broken window) do not increase your basis. Keep all receipts.
Can I get a partial exclusion if I don't meet the 2-of-5 rule?
Yes. If you fail to meet the full ownership or use requirements because of a change in employment, health reasons, or other unforeseen circumstances, you may qualify for a partial exclusion. The partial exclusion is prorated based on how many months out of the required 24 you actually owned or used the home as your primary residence.
What capital gains tax rate applies to home sale gains above the exclusion?
If you held the home for more than one year, the taxable gain above the exclusion is taxed at long-term capital gains rates: 0%, 15%, or 20% depending on your taxable income. For 2025, the 0% rate applies up to $47,025 for single filers and $94,050 for MFJ. High earners may also owe the 3.8% Net Investment Income Tax (NIIT).
Do I need to report the sale if my entire gain is excluded?
Generally no — if your gain is fully excluded and you received a Form 1099-S, you do not need to report the sale on your tax return. However, you should still keep records of the purchase price, improvements, and sale details. Consult a tax professional if you received a 1099-S to ensure proper handling.