Here is how home sales are taxed: if you owned and lived in your home as your main residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain from income, or $500,000 for married couples filing jointly. Only gain above that amount is taxable, usually as a long-term capital gain at 0%, 15% or 20% for 2026, plus the 3.8% net investment income tax for higher earners. Losses on a personal home are not deductible.
How Home Sales Are Taxed at a Glance
| Item | Rule |
|---|---|
| Exclusion | $250,000 single; $500,000 married filing jointly |
| Ownership and use tests | Owned and lived in the home 2 of the last 5 years |
| How often | Once every 2 years |
| Partial exclusion | Available for job changes, health reasons or unforeseen circumstances |
| Gain above the exclusion | Long-term capital gain if owned over 1 year |
| Depreciation after May 6, 1997 (home office or rental) | Not excludable; taxed at up to 25% |
| Loss on sale | Not deductible |
| Reporting | Form 8949 and Schedule D if taxable or if you received Form 1099-S |
See IRS Publication 523, Selling Your Home.
How to Calculate Your Gain
- Start with the sale price.
- Subtract selling costs such as agent commissions, title fees and transfer taxes.
- Subtract your adjusted basis: purchase price, plus closing costs you paid, plus capital improvements (additions, new roof, remodels), minus any depreciation claimed.
- The result is your gain; subtract the exclusion to find taxable gain.
Example: Gain Above the Exclusion
A married couple sells the home they have lived in for 20 years for $1,050,000, paying $60,000 in selling costs. They bought it for $300,000 and added $90,000 of improvements, for a $390,000 basis. Their gain is $600,000 ($1,050,000 – $60,000 – $390,000). After the $500,000 exclusion, $100,000 is taxable as a long-term capital gain. At a 15% rate, the federal tax is about $15,000, plus any state tax.
Partial Exclusion and Special Rules
- Moved early: If you sell before two years because of a job relocation, health or certain unforeseen events, you may exclude a prorated amount.
- Surviving spouse: Can use the $500,000 exclusion if the home is sold within two years after the spouse’s death.
- Divorce: Time a former spouse lived in the home under a divorce agreement can count toward your use test.
- Military and foreign service: Can suspend the five-year test for up to 10 years of qualified duty.
- Former rental: Gain may be partly taxable for periods of nonqualified use after 2008.
How Home Sales Are Taxed for Second Homes and Rentals
The exclusion applies only to your main home. A vacation home or rental property sold at a gain is fully taxable, with long-term capital gain rates on most of the gain and up to 25% on depreciation you claimed on a rental. Rental owners can defer gain with a 1031 exchange into another investment property; see the 1031 exchange guide. If you convert a rental into your main home, you may eventually qualify for the exclusion, but gain allocated to the rental years after 2008 generally remains taxable. Knowing how home sales are taxed in each situation helps you decide which property to sell first and when.
What Counts as a Capital Improvement
- Additions, finished basements and new rooms.
- New roof, siding, windows, HVAC, plumbing or electrical systems.
- Kitchen and bathroom remodels.
- Landscaping, fences, driveways and pools.
- Not improvements: routine repairs and maintenance such as painting or fixing a leak.
Reporting the Sale
If the entire gain is excluded and you did not receive Form 1099-S, you generally do not report the sale. Otherwise, report it on Form 8949 and Schedule D. See Form 1099-S for 2026 and the home sale exclusion.
Ways to Reduce Tax on a Home Sale
- Keep receipts for every capital improvement to increase basis.
- Meet the two-year test before selling if you are close.
- Married couples should make sure both spouses meet the use test to get $500,000.
- Spread other income or harvest investment losses to lower the capital gains rate.
- Consider holding the home until death; heirs receive a stepped-up basis.
Frequently Asked Questions
Do I pay taxes when I sell my house?
Only on gain above $250,000 ($500,000 joint) if you meet the ownership and use tests.
Can I avoid capital gains by buying another house?
No. The old rollover rule ended in 1997; the exclusion replaced it.
Is a loss on my home deductible?
No. Losses on personal-use property are not deductible.
Do I have to report my home sale?
Only if part of the gain is taxable or you received Form 1099-S.
Final Thoughts
Knowing how home sales are taxed lets most homeowners sell without owing federal tax. Track your basis, meet the two-year test and plan ahead if your gain may exceed the exclusion.
Have questions about how this applies to your situation? Book a free consultation with Aric and get answers from a CPA.
This article provides information only and should not be construed as advice. It is provided without warranty of any kind.