Most Virginia homeowners who sell their main home owe little or no capital gains tax, because the federal exclusion covers up to $250,000 of gain for a single seller and $500,000 for a married couple filing jointly. If your gain is larger, or the house was a rental, a second home or an inherited property, you pay federal tax on the excess, and Virginia taxes that same gain as ordinary income at rates that top out at 5.75%.
Below, we walk through who qualifies for the exclusion, how to calculate your gain, what Virginia adds, and the situations that catch sellers off guard.
TL;DR
- If you owned and lived in the home for at least 2 of the last 5 years, you can generally exclude up to $250,000 of gain ($500,000 if married filing jointly).
- Virginia has no separate capital gains rate. Any gain you cannot exclude is taxed with your other income, up to 5.75%.
- Federal long-term gain on the rest is generally taxed at 0%, 15% or 20%, and a 3.8% surtax can apply at higher incomes.
- Second homes, rentals and depreciation follow different rules, and a loss on your personal home is not deductible.
- Calculate your gain on the adjusted basis, not the purchase price, so keep records of improvements.
Table of Contents
- Do you owe capital gains tax when you sell a home in Virginia?
- The $250,000/$500,000 exclusion: who qualifies
- How to calculate your taxable gain
- What Virginia charges on the part you cannot exclude
- Federal rates on the taxable portion
- Situations that change the answer
- Reporting the sale on your tax return
- How to keep more of your gain
- Our perspective
- Get your numbers before you list
- FAQ
- Sources
Do you owe capital gains tax when you sell a home in Virginia?
Two layers of tax can apply: federal and Virginia. They work together because Virginia starts its individual income tax computation with your federal adjusted gross income. In a ruling on a Virginia residence sale, Virginia Tax confirmed that taxpayers properly excluded the gain under Internal Revenue Code § 121, the federal home sale exclusion. A later ruling says Virginia permits that exclusion to the extent it is allowed for federal purposes.
In plain terms:
- If the federal exclusion wipes out your gain, you generally owe nothing to the IRS and nothing to Virginia on that sale.
- If part of the gain is left over, that part is taxable federally and in Virginia.
- Virginia has no special break for real estate gains. It does not treat them differently from your paycheck.
Virginia residents are taxable on all income, and nonresidents on Virginia-source income, a category that includes capital gains. We come back to out-of-state sellers below.
The $250,000/$500,000 exclusion: who qualifies
The exclusion is the most valuable tax break most sellers will ever use. Under IRS Publication 523, you can exclude up to $250,000 of gain if you are single, or up to $500,000 if you file a joint return and meet the requirements.
The ownership and use tests
To qualify, you must have owned the home and used it as your main home for at least 2 years (24 months) during the 5-year period ending on the sale date, as the IRS explains. The two years do not have to be consecutive, and the ownership and use periods do not have to be the same two years.
A few practical points:
- Main home means where you actually live. A house you owned but never lived in does not qualify, however long you held it.
- Couples: the IRS describes the $500,000 figure as available on a qualifying joint return when the tests are met. Check Publication 523 for the exact requirements for each spouse.
- Timing matters. If you are three weeks short of 24 months, selling before the date can turn a tax-free sale into a taxable one. Count the days before you sign a contract.
What the exclusion does not cover
The exclusion applies to your main home. Secondary homes such as vacation properties do not qualify and their gain is fully taxable as a capital asset. Part of a home used for business or rented out can also be taxable, and depreciation you claimed may need to be accounted for.
How to calculate your taxable gain
The formula is simple, though the inputs take effort. Per Publication 523, your gain is the amount realized (selling price minus selling expenses) minus your adjusted basis. Basis starts with what you paid, can include eligible purchase and settlement costs, and goes up with improvements.
What tends to count and what does not:
- Selling expenses that reduce the amount realized: agent commissions, and other costs of the sale.
- Basis additions: a new roof, an addition, a finished basement, a remodeled kitchen. Routine repairs and maintenance do not generally count as improvements.
- Records: keep closing statements from both your purchase and your sale, plus receipts for major projects. For a home you have owned 20 years, those receipts are often the difference between a taxable and a tax-free sale.
Virginia-specific closing costs also matter for your net proceeds. Our breakdown of Virginia transfer taxes and a closing checklist shows what a seller typically pays at the table. Those are separate from income tax.
A worked example
This is an illustration, not a prediction of your bill. Say you bought a home for $350,000 and put $50,000 into a kitchen and a new roof. You sell for $900,000 and pay $54,000 in commissions and selling costs.
| Line | Amount |
|---|---|
| Sale price | $900,000 |
| Selling expenses | $54,000 |
| Amount realized | $846,000 |
| Purchase price plus improvements (adjusted basis) | $400,000 |
| Gain | $446,000 |
If you are a married couple filing jointly and you meet the tests, the $500,000 exclusion covers the entire $446,000. Nothing is taxable.
If you are a single owner, you exclude $250,000 and $196,000 remains taxable. At Virginia's top rate of 5.75%, that portion could add about $11,270 of state tax if your income is already above $17,000. Federal tax would come on top, at the long-term rate that fits your overall income.

What Virginia charges on the part you cannot exclude
Virginia does not differentiate between ordinary income and capital gains. Virginia Tax states that its rates apply to your total Virginia taxable income. There is no 0% or 15% bracket for long-term gains the way there is federally.
The 2026 Virginia schedule is:
| Virginia taxable income | Tax |
|---|---|
| Up to $3,000 | 2% |
| $3,001 to $5,000 | $60 plus 3% of income over $3,000 |
| $5,001 to $17,000 | $120 plus 5% of income over $5,000 |
| Over $17,000 | $720 plus 5.75% of income over $17,000 |
Because most working or retired households already have income above $17,000 before the sale, each additional dollar of taxable gain is usually taxed at 5.75%. A $100,000 taxable gain would therefore add roughly $5,750 of Virginia tax in that situation.
A large taxable gain also sits on top of your other income in the same year, so one big sale can push you into a higher federal bracket for that year.

Federal rates on the taxable portion
For the federal side, the IRS says net long-term capital gains, from assets held more than one year, are generally taxed at 0%, 15% or 20% depending on your taxable income. Short-term gains, from assets held a year or less, are taxed as ordinary income.
So what about a $100,000 taxable gain? A rough illustration for a long-term gain taxed at 15% federally and 5.75% in Virginia: about $15,000 plus $5,750. Your actual figure depends on your bracket, filing status and deductions, and a tax professional should run it.
Two extras to watch:
- Net Investment Income Tax. A 3.8% federal surtax may apply to net gains when modified adjusted gross income is above $200,000 for single filers, $250,000 for married filing jointly or $125,000 for married filing separately. It applies to the lesser of your net investment income or the amount over the threshold.
- Depreciation recapture. If you rented out the property or used part of it for business, the IRS identifies a maximum 25% rate for unrecaptured section 1250 gain, which is the portion tied to depreciation.
Situations that change the answer
Rental properties and second homes
If you are selling a rental, the main-home exclusion generally does not apply to the rental portion, and depreciation recapture can raise the bill. Selling with tenants in place adds its own legal steps, which we cover in our guide to selling a tenant-occupied rental in Virginia. Investors who want to defer the gain should look at Virginia 1031 exchange rules and deadlines. Note that a 1031 exchange is for investment or business property, not your personal residence.
Selling at a loss
If the market went against you, the IRS states that a loss on the sale of personal-use property such as your home is not deductible. Plan your finances accordingly.
You live out of state
A nonresident who sells Virginia real estate is not off the hook. Virginia Tax notes that a nonresident who realizes a gain on property located in Virginia must file a Virginia income tax return and compute liability on Virginia-source income. If you moved away and are selling the old house, raise this with your closing attorney or tax preparer early.
Inherited homes
Heirs often sell a house they never lived in. The main-home exclusion is built around your own residence, so inherited property raises different basis questions. Our checklist for selling an inherited home through Virginia probate and our note on what executors should check before listing cover the process. Ask a CPA how basis applies to your estate before you set a price.
Installment sales
If you finance part of the sale for the buyer, the IRS explains that under the installment method you report each year only the part of the gain received or treated as received. You can elect out and report the entire gain in the year of sale.
Downsizing retirees
Retirees who have lived in a home for decades often have gains well above $250,000, especially in Northern Virginia and parts of Hampton Roads. For a married couple, $500,000 covers many of those sales, but a surviving spouse selling alone should have a tax professional check which limit applies. Our retirement downsizing guide covers the planning around the move itself.
Reporting the sale on your tax return
Per Publication 523, you report the sale on Form 8949 and Schedule D if you have a taxable gain or you received a Form 1099-S. If you have a gain above the exclusion, or choose not to use the exclusion, the sale must be reported. When part of the gain is excluded, the excluded amount is entered as a negative number in column (g) of Form 8949.
Because Virginia starts from federal adjusted gross income, the federal figures flow into your Virginia return.
How to keep more of your gain
- Document your basis. Gather the closing statement from your purchase and receipts for capital improvements.
- Check your two-year clock. Confirm you meet ownership and use tests before listing, not after.
- Time the sale with your income. A year with lower other income can mean a lower rate on the taxable portion.
- Consider a 1031 exchange for investment property. It applies to investment real estate and has strict deadlines.
- Talk to a CPA or enrolled agent before you sign. The right moment is before a contract, when you can still change timing or structure.
Our perspective
We see the same pattern again and again. Sellers spend weeks on staging and price, then discover the tax question the week before closing. By then the options are limited.
Our view is that tax planning belongs at the beginning of a sale. Before we talk list price, we want to know how long you have lived in the home, what you spent on improvements, and whether the property was ever a rental. Those facts shape your net proceeds more than a few thousand dollars of list price does.
We are not tax advisors, and we will tell you so. What we can do is help you pull together the numbers your CPA needs: a realistic sale price from a local market analysis, the selling costs, and a timeline. Then you decide with the full picture.
— Myra
Get your numbers before you list
Your gain starts with what the house is worth today. Beams Realty Group serves Virginia buyers and sellers, and we can help you estimate value, plan the sale and prepare the home for market.

Start with a free home valuation to see where you stand, or read about how we help you sell your home. If you are also buying your next place, see our guide to the Virginia VIDA match and our advice on avoiding two mortgages at once.
FAQ
Does Virginia have its own capital gains tax?
Not as a separate tax. Virginia taxes capital gains as part of your total taxable income, with no preferential rate. The top rate is 5.75% on income over $17,000.
How much capital gains tax do I pay on $100,000?
It depends on whether the gain is taxable at all. If you qualify for the main-home exclusion, a $100,000 gain is usually fully excluded. If it is fully taxable, expect federal tax at 0%, 15% or 20% for long-term gains, plus Virginia tax of up to 5.75%.
How do I avoid capital gains tax on my home?
Meet the ownership and use tests, which means owning and living in the home as your main residence for at least 2 of the 5 years before the sale. Then the exclusion covers up to $250,000 of gain, or $500,000 on a qualifying joint return. Keep records of improvements to lower your gain.
Do I owe Virginia tax if I live in another state?
Possibly. A nonresident with a gain on Virginia property must file a Virginia return and compute tax on Virginia-source income. Ask a tax professional about filing requirements before closing.
Sources
- Virginia Tax ruling 95-281
- Virginia Tax ruling 09-110
- Virginia Tax ruling 11-48
- Virginia Tax ruling 15-247
- 2026 Form 760ES, Virginia Tax
- IRS Publication 523, Selling Your Home
- IRS Topic no. 701, Sale of your home
- IRS Topic no. 409, Capital gains and losses
- IRS Topic no. 559, Net investment income tax
- IRS: What if I sell my home for a loss?
- IRS Topic no. 705, Installment sales
- 2025 Instructions for Form 8949
