Costs & Taxes 3 min

Do you pay capital gains tax when you sell a house in Virginia?

ByREALTOR® · Co-Founder· Dec 3, 2026 · 3 min

Most Virginia sellers of a main home pay no federal capital gains tax if they qualify for the IRS exclusion. You can exclude up to $250,000 of gain if you file singly, or up to $500,000 if you file jointly, when you owned and lived in the home for at least two of the five years before the sale, per IRS Topic 701.

Do you pay capital gains tax when you sell a house in Virginia?

Start with what counts as gain, because it is not the sale price. Per IRS Publication 523, your gain is the amount you realize from the sale minus your adjusted basis, which generally starts with what you paid for the home and adds the cost of eligible capital improvements. Selling expenses can reduce the amount realized. For sellers in Fairfax, keeping closing paperwork and improvement records is what turns this calculation from a guess into a number you can defend.

The exclusion itself turns on two tests. The ownership test requires that you owned the home for at least two years during the five years before the sale. The use test requires that you lived in it as your main home for at least two years during that same five year window, and the two years do not have to be continuous. For a joint return, the IRS notes that either spouse can meet the ownership test, while both spouses must meet the use test for the full $500,000 amount. Around Vienna, this is also why timing matters: you generally cannot use the exclusion if you already excluded gain on another home sale in the two years before this one.

If your gain is larger than the exclusion, only the part above the limit is taxable. The IRS treats gain on a home held for more than one year as a long term capital gain, generally taxed at 0%, 15%, or 20% depending on your taxable income. Virginia adds a second layer, but not a separate capital gains rate. Because Virginia taxable income starts with your federal adjusted gross income, gain you exclude federally is generally not taxed by Virginia either, and any taxable remainder is taxed at Virginia regular income tax rates, which top out at 5.75%. In Alexandria and across the state, second homes and rental properties do not qualify for this main home exclusion, so their gain follows different rules.

Two situations deserve a closer look before you list. If you sell before meeting the full two year tests because of a work related move, a health related move, or an unforeseen circumstance, IRS Publication 523 may allow a partial exclusion based on how long you met the tests. And if you ever took depreciation on part of the home, that portion can be taxed differently. Bring your purchase records, improvement receipts, and prior sale history to a CPA or tax preparer before you set your price expectations, and use a seller net sheet for the sale costs themselves. This article is general information, not tax advice, and your own return controls what you owe.

FAQ

Do I owe capital gains tax if my profit is under the exclusion limit?

Generally no, if you meet the IRS ownership and use tests. If you owned and lived in your main home for at least two of the five years before the sale, you can exclude up to $250,000 of gain filing singly or up to $500,000 filing jointly, per IRS Topic 701. Keep your records in case you receive a Form 1099-S for the sale.

What if I lived in the home for less than two years?

You may still qualify for a partial exclusion if the sale was mainly because of a work related move, a health related move, or an unforeseen circumstance described in IRS Publication 523. The partial amount is based on the portion of the two year period you did meet. Without a qualifying reason, the full gain is generally taxable.

Does the exclusion apply to a rental property or second home in Virginia?

No. The $250,000 and $500,000 exclusion applies only to your main home when you meet the ownership and use tests. Gain on a rental property or a second home that was never your main home is generally taxable, and depreciation you claimed can be taxed under separate recapture rules. Ask a tax professional how those rules apply to your property.

Does Virginia have its own capital gains tax on a home sale?

Virginia has no separate capital gains rate for a home sale. Virginia taxable income starts with your federal adjusted gross income, so gain excluded federally is generally not taxed by Virginia, and any taxable remainder is taxed at Virginia regular income tax rates, which top out at 5.75%. Confirm your own figures with a CPA before you file.

Related: fairfax · vienna · alexandria · All Answers · Home Valuation · Cities We Serve
Buying or selling in Northern Virginia? Talk to our team
Contact Us →
Cornerstone Realty Group · (571) 441-1031 · Boutique team · ★★★★★ 5.0