Will I owe capital gains tax when I sell my house?
Short answer: Probably not, if it's your main home. The IRS lets you exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly. You generally have to have owned and lived in it at least 2 of the last 5 years.
The rule, in plain terms
- Ownership. You owned the home at least 24 months of the 5 years before closing.
- Residence. You lived in it at least 24 months of those 5 years. It doesn't have to be in a row.
- Look-back. You didn't use this tax break on another home sale in the 2 years before.
If you're married and file together, only one of you has to pass the owning test. Both of you have to pass the living there test to get the full $500,000.
What counts as gain
Gain is roughly your sale price minus selling costs, minus what you paid plus improvements. Not your sale price minus your mortgage.
A Northland seller who bought at $300,000, put $40,000 into a kitchen and sells for $550,000 with $38,000 in costs has about $172,000 of gain. Under the $250,000 line.
When to call a tax pro
Rentals, a home office, inherited property, or a move before 2 years for a job or health reason. Those have their own rules. I'm a realtor, not a CPA. Ask one.
Common questions
How much capital gain can I exclude on my home?
Up to $250,000, or $500,000 for married filing jointly, if you pass the IRS owning, living there and look-back tests in Publication 523.
Do I have to live in the house 2 years in a row?
No. IRS Publication 523 says the 24 months of residence can fall anywhere in the 5 years before the sale.
Sources
- IRS Publication 523 (2025), Selling Your Home, Eligibility Test
Checked November 19, 2026. This is general info, not legal or tax advice.
Related: Seller net sheet, Selling an inherited home, all seller answers.
If you've been thinking about selling your house, call or text me at 816-914-1903. That's what I do for a living.
Michael "Big Mike" Morris with eXp Realty
Brokered by eXp Realty LLC