MHMellissa HeckerHampton Roads
Tax forms with a calculator and pencils, illustrating capital gains on a home sale
Representative photo by Nataliya Vaitkevich on Pexels

Capital Gains When Selling Your Home: How the Home Sale Exclusion Works

By Mellissa Hecker, Iron Valley Prestige

Will I Owe Taxes When I Sell My House?

It's one of the most common questions I get, especially from sellers who've owned a long time or kept a home as a rental after moving. The short answer is that many homeowners don't owe federal tax on the gain from selling their main home, thanks to the home sale exclusion. But not everyone qualifies, and the details matter.

I'm not a tax professional, and this isn't tax advice. Think of it as a starting point so you know what to ask a CPA or tax preparer before you sell.

What Counts as a Gain

Your gain is generally your sale price, minus selling costs, minus your basis. Your basis usually starts with what you paid for the home and goes up with certain capital improvements, like an addition or a new roof. Routine repairs generally don't count. Keeping receipts for improvements can matter a lot.

The Home Sale Exclusion in General Terms

Under federal tax rules, if you qualify, you can generally exclude up to $250,000 of gain from your income, or up to $500,000 for most married couples filing jointly. If your gain is below that, you may owe no federal tax on it at all.

Virginia generally starts its income tax calculation from federal income, but state rules can differ, so confirm how it applies to you with your tax professional.

The Ownership and Use Tests

To qualify for the full exclusion, you generally need to have owned the home and lived in it as your main home for at least two of the five years before the sale. The two years don't have to be continuous. You also generally can't have used the exclusion on another home sale within the past two years.

There are exceptions and partial exclusions for people who sell early because of certain job changes, health reasons or unforeseen circumstances. Military members on qualified extended duty may be able to suspend part of the five-year period, which matters for families who PCS away and sell later. A tax professional can tell you whether these apply.

When It Matters Most

You've owned the home a long time. Long-time owners in parts of Hampton Roads may have gains large enough to exceed the exclusion, especially single sellers. Improvement records help reduce the taxable gain.

You lived there only part of the time. If you don't meet the two-of-five-year test, you might qualify for a partial exclusion or none at all, depending on why you're selling.

You kept it as a rental. This is common after a PCS. Rental use can affect how much of the gain is excluded, and depreciation taken during the rental years is generally taxed when you sell, even if the rest of the gain is excluded. If you've moved out, the clock on the two-of-five-year test keeps running. My guides on selling a rental property and whether to sell or rent when you PCS touch on this timing.

You inherited the home. Inherited property follows different basis rules. See my inherited property page and talk with a tax professional.

Questions to Ask Your Tax Professional

Do I meet the ownership and use tests? Do I qualify for a partial exclusion? How does any rental use or depreciation affect me? What's my adjusted basis with my improvements? Does a military service suspension apply? How will Virginia treat the sale?

Plan Your Sale With the Whole Picture

Taxes can affect when you sell, so it's worth talking with a tax professional before you list. I can help with the pricing and net proceeds side, and you can estimate your bottom line with my seller net proceeds calculator and my guide to what it costs to sell a house in Virginia.

When you're ready to plan your sale, reach out to me.

This article is general information, not tax, legal or financial advice. Tax rules change and depend on your situation, so confirm everything with a qualified tax professional.

Related articles

Helpful pages

Cities I serve

Ready to see what your home could sell for?

Get in touch

Let's talk about selling your home.

Tell me what you're looking for and I'll reach out within minutes — no pressure, just a friendly chat about the coast.