About the Home Sale Exclusion Calculator
This calculator estimates the taxable portion of the profit from selling your primary residence, after applying the federal capital gains exclusion for a home sale. It's for homeowners who have sold or are planning to sell a home they've owned and lived in, and want to see how much of their gain stays untaxed under Section 121 of the tax code. The result separates your total gain from the smaller amount that's actually subject to capital gains tax.
How It Works
Enter your filing status, sale price, adjusted cost basis, generally purchase price plus qualifying improvements minus any depreciation claimed, and selling costs such as commissions and fees. The calculator subtracts cost basis and selling costs from the sale price to find your total gain, then applies the $250,000 exclusion for single filers or $500,000 for married filing jointly, showing whatever remains above that exclusion as your taxable gain.
Formula & Methodology
By hand, start with the sale price and subtract your adjusted cost basis, the original purchase price plus the cost of qualifying capital improvements like a room addition or new roof, minus any depreciation you claimed for business or rental use of the home. Subtract selling costs such as agent commissions, transfer taxes, and closing fees from that figure to arrive at total gain. Only then apply the exclusion, and only the amount above it is treated as taxable.
Examples
Single Filer
A single homeowner sells for $650,000 with a $350,000 adjusted cost basis and $40,000 in selling costs. Total gain is $260,000, and after the $250,000 single exclusion, $10,000 remains as taxable gain.
Married Couple
A married couple sells their home for $900,000 with a $300,000 adjusted cost basis and $50,000 in selling costs. Total gain is $550,000, and after the $500,000 married exclusion, $50,000 remains taxable.
Advantages
- Separates total profit from taxable profit in one calculation, making clear how much of a home sale gain the exclusion actually shields.
- Accounts for selling costs and cost basis adjustments, not just the raw difference between sale price and purchase price.
- Applies the correct exclusion amount automatically based on filing status, saving you from looking up the current thresholds separately.
Common Mistakes
- Using the original purchase price instead of the adjusted cost basis, which should include qualifying capital improvements and subtract any depreciation claimed, such as for a home office or rental use.
- Forgetting to subtract selling costs like real estate commissions, which directly reduce the gain subject to the exclusion.
- Assuming the exclusion resets every year rather than remembering it generally can't be claimed again for a different home sale within 2 years.
Edge Cases to Watch For
- If total gain is negative, meaning the home sold for less than its adjusted basis plus selling costs, the taxable gain is floored at $0 rather than showing a deductible loss, since losses on a personal residence generally aren't deductible.
- The calculator assumes you meet the ownership and use test, having owned and lived in the home as your primary residence for at least 2 of the last 5 years before the sale, and it doesn't verify or adjust for partial-year eligibility.
- It applies the full $500,000 exclusion whenever married filing jointly is selected, without checking whether both spouses individually meet the use test, which the actual rule requires for the full amount.
Common Use Cases
- Homeowners preparing to sell who want to estimate their tax exposure before listing the property.
- Sellers comparing outcomes across different sale price scenarios to understand how much gain would stay under the exclusion.
- Married couples verifying how much larger their combined exclusion is compared to filing individually.