Calculate the capital gains tax on your home sale using the IRS Section 121 exclusion. Find out if you qualify for the $250,000 (single) or $500,000 (married) exclusion and estimate your tax liability.
This calculator estimates the capital gains tax you may owe when selling your primary residence. It follows IRS Section 121 rules for the home sale exclusion.
Gross Gain = Sale Price โ Purchase Price. This is the total profit you made from selling your home before any adjustments.
Net Gain = Gross Gain โ Improvements Cost โ Selling Expenses. Capital improvements (not repairs) increase your cost basis. Selling expenses like realtor commissions and legal fees are deducted from your gain.
If you lived in the home for at least 2 of the last 5 years, you may exclude up to $250,000 (single) or $500,000 (married filing jointly) of the gain from taxation.
Taxable Gain = max(0, Net Gain โ Exclusion). If you owned the home for more than 1 year, long-term capital gains rates apply (0%, 15%, or 20% based on your income). Otherwise, your ordinary income tax rate applies.
Applies the correct IRS exclusion based on your filing status and primary residence qualification.
Shows gross gain, improvements, selling costs, exclusion amount, taxable gain, and estimated tax.
Automatically applies the correct long-term capital gains rate (0%/15%/20%) based on your income.
Clear, numbered steps explaining exactly how your result was calculated from start to finish.
IRS Section 121 allows homeowners to exclude a significant portion of capital gains from the sale of their primary residence. This is one of the most valuable tax benefits available to homeowners. Under current law, single filers can exclude up to $250,000 of gain, while married couples filing jointly can exclude up to $500,000.
To qualify for the full exclusion, you must have owned and used the home as your primary residence for at least 2 of the last 5 years before the sale. This is commonly known as the "2-out-of-5-year rule."
Any gain that exceeds the exclusion amount is subject to capital gains tax. If you owned the home for more than one year, the gain is taxed at long-term capital gains rates (0%, 15%, or 20%) depending on your taxable income. If owned for one year or less, it's taxed as short-term capital gains at your ordinary income tax rate.
To qualify for the Section 121 exclusion, you must meet both the ownership test and the use test:
The 2 years do not need to be consecutive โ any 24-month period within the 5-year window counts.
If you don't meet the 2-out-of-5-year requirement, you may still qualify for a partial exclusion if the sale was due to:
The partial exclusion is calculated as (months of qualifying use / 24) ร full exclusion amount.
You can only claim the Section 121 exclusion once every 2 years. This rule applies per person, not per property.
Capital improvements increase your cost basis, which reduces your taxable gain. Keep receipts for major renovations like kitchen remodels, new roofing, added rooms, landscaping, and HVAC replacements. Repairs and maintenance (painting, fixing leaks) generally do not count.
Real estate commissions, attorney fees, title insurance, escrow fees, and advertising costs can all be deducted from your gain. These expenses can add up to 8-10% of the sale price.
If you're close to meeting the 2-year residency requirement, consider waiting until you qualify for the full exclusion. Even a few extra months can save you tens of thousands in taxes.
If you're married, filing jointly doubles your exclusion from $250,000 to $500,000. If both spouses qualify, you can exclude up to $500,000 even if one spouse owned the home before marriage.
If you have capital losses from investments, you can use them to offset capital gains from your home sale. Capital losses can offset an unlimited amount of capital gains, plus up to $3,000 of ordinary income per year.
โ ๏ธ Important: Consult a Tax Professional
This calculator provides estimates for informational and educational purposes only. Tax laws are complex and subject to change. The Section 121 exclusion has specific qualification requirements and exceptions that may apply to your situation. State and local taxes may also apply. Always consult with a qualified tax professional or CPA for personalized tax advice regarding your home sale.