The capital gains exclusion calculator determines whether your home sale qualifies for the IRS Section 121 exclusion — $250,000 for single filers, $500,000 for married filing jointly. This is one of the most valuable tax benefits available to homeowners, potentially eliminating tens of thousands in capital gains taxes.
Home Sale Details
Kitchen, bathroom, roof, additions — not routine maintenance
Agent commission + closing costs + transfer taxes
IRS Section 121 Eligibility Checklist
Capital Gains Calculation
Depreciation Recapture Note
Since your home was used as a rental, the depreciation you deducted (or could have deducted) during the rental period is subject to depreciation recapture, taxed at up to 25% as unrecaptured Section 1250 gain — regardless of the Section 121 exclusion. Consult a tax professional to calculate your specific recapture amount.
Estimated Tax on Taxable Gain
How to Use the Capital Gains Exclusion Calculator
This capital gains exclusion calculator applies IRS Section 121 rules to determine your eligibility and calculates your taxable gain after the exclusion. The $250K/$500K home sale exclusion is one of the most valuable tax benefits in the U.S. tax code — understanding it can save tens of thousands of dollars.
The Two-of-Five-Year Tests
You must meet BOTH tests: (1) Ownership test — owned the home for at least 2 years in the last 5 years before sale. (2) Use test — used the home as your primary residence for at least 2 years in the last 5 years. The 2 years don't need to be consecutive. A common scenario: you lived in the home for 3 years, then rented it out. You have up to 3 more years to sell and still use the exclusion (up to 5 years from when you moved out).
What Counts as Your Adjusted Basis
Your adjusted basis starts with the purchase price and increases with capital improvements. Common additions: new roof ($15,000), kitchen remodel ($40,000), addition/room ($50,000), new HVAC ($10,000), solar panels ($25,000). Keep all receipts — they directly reduce your taxable gain dollar for dollar. A thorough basis calculation on a $500K home could easily identify $80,000-$100,000 in legitimate improvements.
The Married Filing Jointly Advantage
For married couples, each spouse can exclude $250,000 — for a combined $500,000 exclusion — if both meet the use and ownership tests. Even if only one spouse meets the ownership test, the couple can claim the $500K exclusion if they file jointly and the other spouse meets the use test. This is a significant planning opportunity for couples with appreciated homes.
FAQ
What is the home sale capital gains exclusion?
Under IRS Section 121, taxpayers can exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gain from the sale of a primary residence. To qualify: you must have owned the home for at least 2 of the last 5 years AND used it as your primary residence for at least 2 of the last 5 years. You can only use this exclusion once every 2 years.
How do I calculate my home sale capital gain?
Gain = Sale Price - Adjusted Basis. Your adjusted basis = purchase price + capital improvements (roof, kitchen remodel, addition) + selling costs (agent commission, closing costs, transfer taxes). NOT included: routine maintenance or repairs. The higher your adjusted basis, the lower your taxable gain.
What selling costs can I deduct from the gain?
Selling costs that reduce your taxable gain include: real estate agent commission (typically 5-6%), closing costs, transfer taxes, legal fees, and points you paid to the buyer. These reduce your realized gain. Home inspection repair credits paid at closing are also includable.
What counts as a capital improvement?
Capital improvements add value, extend the useful life, or adapt the home to a new use: kitchen or bathroom remodel, addition of rooms, new roof, HVAC replacement, finished basement, pool or deck construction, new windows. NOT improvements: painting, landscaping, routine maintenance, appliance replacements (usually).
What if I rented out part of my home?
If you rented out your home or a portion of it, depreciation recapture applies to the portion rented. Unrecaptured Section 1250 gain (from depreciation) is taxed at up to 25% regardless of the exclusion. This calculator includes a depreciation recapture note. Consult a tax professional if you've rented your primary residence.
Is this capital gains exclusion calculator free?
Yes, completely free with no signup required. All calculations run in your browser. For complex situations involving partial rentals, business use, or prior exclusions, consult a tax professional or CPA.