Capital Gains Tax When You Sell Your Home: How the $250,000 Exclusion Works
Updated

Key takeaways
- Single owners can exclude up to $250,000 of profit, and married couples filing jointly up to $500,000.
- You generally must have owned and lived in the home for 2 of the last 5 years.
- Your gain is not just sale price minus purchase price. Selling costs and improvements lower it.
- Long-time Northern Virginia owners are the group most likely to go over the limit, so keep your receipts.
When sellers ask me what they’ll walk away with, taxes often come up last. For most people that’s fine, because the federal home sale exclusion wipes out the tax on their profit. But Northern Virginia home values have climbed a lot over the past two decades, and I meet more owners each year whose gain is close to, or over, the limit. A little planning can save them thousands.
I’m not a tax advisor, so please confirm your situation with a CPA. What follows is the framework I walk my sellers through so they know what questions to ask.
The basic rule
If you sell your main home, you can exclude up to $250,000 of gain from federal income tax, or up to $500,000 if you’re married and file jointly. To qualify, you generally need to pass two tests: you owned the home for at least 2 of the last 5 years, and you lived in it as your main home for at least 2 of the last 5 years. The two years don’t have to be in a row, and you can use the exclusion once every two years.
How to figure your actual gain
Your gain is the sale price, minus your selling costs, minus your adjusted basis. Your basis is what you paid plus many purchase costs and the capital improvements you made over the years.
| Item | Example amount |
|---|---|
| Sale price | $820,000 |
| Minus selling costs (commission, grantor tax, settlement fees) | -$45,000 |
| Amount realized | $775,000 |
| Purchase price | $420,000 |
| Plus capital improvements (new kitchen and roof) | +$60,000 |
| Adjusted basis | $480,000 |
| Gain (amount realized minus basis) | $295,000 |
In this example, a single owner could exclude $250,000 and would have about $45,000 of taxable long-term gain. A married couple filing jointly would owe nothing, because the gain is under $500,000. Notice what the $60,000 of improvements did: without those receipts, the single owner’s taxable gain would be $105,000 instead of $45,000.
What counts as an improvement
Improvements add value, extend the home’s life or adapt it to a new use. Repairs that simply keep the home in good shape usually don’t count.
- Usually counts: a new roof, kitchen or bath remodel, addition, finished basement, new HVAC system, replacement windows, a deck or fence, new driveway.
- Usually doesn’t count: repainting a room, fixing a leak, replacing a broken pane, routine HVAC service.
- Keep: contracts, invoices, permits and proof of payment, ideally in one folder for as long as you own the home, plus a few years after you sell.
If you don’t meet the 2 year test
Life doesn’t always wait two years. If you sell early because of a job change, a health reason or certain unforeseen events, you may qualify for a partial exclusion. For example, a single owner who lived in the home for 12 months before a qualifying job move could exclude up to 12/24 of $250,000, or $125,000.
Military families have extra flexibility. If you’re on qualified official extended duty, you can choose to suspend the 5 year window for up to 10 years. That matters in Northern Virginia, where many owners PCS away and keep the home for a while.
What most people miss
- Rental years can change the math. If you rented the home out, depreciation you took (or could have taken) is generally taxed when you sell, even if the rest of the gain is excluded.
- A home office can do the same. Depreciation claimed for a home office is usually recaptured at sale.
- Inherited homes are different. Heirs generally get a stepped-up basis to the value at the date of death, which often shrinks the gain dramatically. See Selling an Inherited Home in Virginia.
- State tax applies too. Virginia taxes capital gains as ordinary income, though the same federal exclusion usually flows through.
Daniel’s tip: Before you list, add up your improvements and run a quick gain estimate with your CPA. If you’re close to the limit, timing matters: for example, a couple where one spouse just moved in may want to wait until both meet the 2 year use test.
Taxes are only one part of your bottom line. Read Virginia Seller Closing Costs for the rest, and if you’re weighing whether to keep the home, see Should You Sell or Rent Your Home?
See your estimated proceeds before taxes at different prices.
Frequently asked questions
Do I have to buy another home to avoid the tax?
No. That was an old rule. Today the exclusion applies whether or not you buy again.
Do I report the sale if my gain is fully excluded?
Often not, but you may need to if you receive a Form 1099-S from the settlement agent. Ask your CPA.
What tax rate applies to gain over the limit?
If you owned the home more than a year, the excess is generally a long-term capital gain, taxed at federal long-term rates, plus Virginia income tax.
Filed under Money & Mortgages, Selling Your Home
Get new articles by email
A short monthly note on the Northern Virginia market, plus my newest articles. No spam, unsubscribe anytime.