Skip to content

Home Sale Tax Calculator

Estimate the federal tax on your home sale profit for 2025. Includes the Section 121 exclusion, improvement cost basis adjustments, and NIIT calculations.

Capital improvements that add value (renovations, additions, new roof). Not routine repairs.

Must have lived in the home at least 2 of the last 5 years for the full exclusion.

Your wages, salary, or other income (used to determine your capital gains rate).

Free: Homeowner Tax Deduction Guide

Mortgage interest, property tax, home office, energy credits, and home sale exclusion rules — all the deductions homeowners need to know.

Ready to file?

Compare tax software that handles home sale reporting and Schedule D.

Compare Tax Software

Section 121 Home Sale Exclusion

Under IRC Section 121, you can exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from the sale of your primary residence. To qualify, you must have owned and used the home as your main residence for at least 2 of the 5 years before the sale date. You can use this exclusion once every two years.

Partial Exclusion for Less Than 2 Years

If you sell your home before meeting the full 2-year requirement, you may still qualify for a partial exclusion if the sale was due to a change in employment, health reasons, or unforeseen circumstances. The partial exclusion is prorated based on the fraction of the 2-year period you met. For example, if you lived in the home for 1 year, you could exclude up to 50% of the full exclusion amount.

How Improvement Costs Reduce Your Tax

Capital improvements that add value, prolong the life, or adapt your home to a new use increase your cost basis and reduce your taxable gain. Examples include kitchen remodels, room additions, new roofing, HVAC systems, and landscaping. Routine maintenance and repairs such as painting, fixing leaks, or replacing broken hardware do not qualify. Keep receipts and records of all improvements for accurate basis calculation.

Net Investment Income Tax on Home Sales

The 3.8% NIIT may apply to the taxable portion of your home sale profit if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). The NIIT is calculated only on the gain that exceeds your Section 121 exclusion, so many homeowners will not owe this surtax even on large sales.