Seller Playbook 8 min

Capital Gains Tax When Selling Your Home in Virginia: What Sellers Should Know

ByREALTOR® · Co-Founder· Sep 29, 2026 · 8 min

The federal home-sale exclusion, how Virginia taxes gains differently, and the records that protect you. Educational overview, not tax advice.

Capital Gains Tax When Selling Your Home in Virginia: What Sellers Should Know

The Direct Answer

If you owned and lived in your Virginia home for at least two of the last five years, federal law lets you exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from income. Virginia offers no break: taxable gains flow into your state return at graduated rates. Most owners owe little or nothing, but the exceptions matter.

The Federal Exclusion: Section 121

The rule is Section 121 of the tax code, and the tests are straightforward. You must have owned the home for at least two of the five years before the sale, and lived in it as your primary residence for at least two of those five years. The two periods can overlap, and they do not have to be continuous. You also cannot have used the exclusion on another home sale in the previous two years. Meet all three tests, and the exclusion applies.

What Counts as Your Gain

Gain is your sale price minus your adjusted basis, minus selling costs like commissions and transfer taxes. Basis starts with what you paid, plus the cost of major improvements: the addition, the new roof, the renovated kitchen. Routine repairs do not count. This is why improvement receipts matter years later: every documented dollar of basis is a dollar that is not taxed.

How Virginia Taxes the Gain

Virginia has no separate, lower rate for capital gains. Taxable gains are added to your Virginia taxable income and taxed at the state's graduated rates, which run from 2% to 5.75%. So a gain that is fully excluded federally is also excluded for Virginia purposes, but any taxable remainder gets no special treatment at the state level.

Situations That Change the Math

Not every sale is clean. If you converted the home to a rental, depreciation you claimed (or could have claimed) reduces your basis and can create taxable gain even within the exclusion. If you sold before meeting the two-year tests because of a job move, a health issue, or another unforeseen circumstance, a partial exclusion may still be available. If you inherited the home, your basis is generally stepped up to the value at the owner's death, which often erases most of the gain.

Records Worth Keeping

Keep a simple file from the day you buy: the closing statement, receipts for every major improvement, and records of any casualty losses or insurance reimbursements. When you sell years later, this file is the difference between a well-supported tax return and a guess. Your agent's closing records help, but improvement receipts are yours to keep.

FAQs

One planning note: the exclusion is per sale, and you can generally use it once every two years. Sellers who are timing a move around a second property sale should know the two-year clock runs from the sale date, not the tax year.

Selling in Fairfax, Vienna, or McLean? A quick conversation before you list can flag the tax questions worth asking your CPA early, when you still have time to plan. Text Cornerstone Realty Group at (571) 441-1031 for a 5-minute call. This article explains the concepts; your tax professional applies them to your numbers.

Sources: IRS Publication 523 (Selling Your Home) and Internal Revenue Code Section 121 for the federal exclusion rules; Virginia Department of Taxation for the state treatment of capital gains (taxed as ordinary income at graduated rates of 2% to 5.75%). This article is educational and is not tax advice. Consult a licensed tax professional about your situation.

FAQ

Do I owe taxes if I sell my home at a gain in Virginia?

Maybe, at two levels. Federally, the Section 121 exclusion wipes out up to $250,000 of gain ($500,000 joint) if you meet the ownership and use tests. Virginia follows the federal exclusion but taxes any remaining gain as ordinary income at 2% to 5.75%. Many longtime owners owe nothing; large gains above the exclusion are where tax appears.

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

You may still qualify for a partial exclusion if the early sale was caused by a job relocation, health reasons, or another unforeseen circumstance. The partial amount is prorated by how long you owned and lived there. Document the reason and talk to a tax professional before assuming the worst.

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

No. The exclusion applies only to your principal residence. Gains on second homes and investment properties are fully taxable, federally and in Virginia. A property that was once your residence but later converted to a rental has special rules around depreciation and the use tests, so get advice before you sell.

How do home improvements affect my taxes when I sell?

Major improvements increase your basis, which reduces your taxable gain. For example, a $40,000 addition on a home bought for $500,000 lifts the starting basis to roughly $540,000 before selling costs are subtracted. Keep receipts for everything structural: additions, roofs, systems, kitchens, baths. Routine maintenance and repairs do not adjust basis.

Should I talk to a CPA before I list, or after I sell?

Before. Once the sale closes, your planning options narrow to recordkeeping. Before you list, a CPA can flag issues like depreciation recapture, partial exclusions, or timing across two sales, while you still have time to act on them. A short consultation before listing is cheap insurance.

Related: fairfax · arlington · alexandria · All Journals · Home Valuation · Cities We Serve
Own in fairfax? Free 3 values + market PDF
Check My Value →
Cornerstone Realty Group · (571) 441-1031 · Boutique team · ★★★★★ 5.0