You just sold your home in Virginia and made a nice profit. Now you’re wondering: do I have to give some of that money to the government? The answer depends on a few simple things. And once you know the rules, you might be surprised how much you can keep.
Capital gains tax selling home Virginia is one of those topics that sounds scary but is actually pretty simple once you break it down. Most people who sell their main home in Virginia pay zero federal tax on the profit. But not everyone qualifies. And Virginia also has its own state income tax that you need to know about.
In this guide, I’ll walk you through exactly how it all works. We’ll cover the federal capital gains tax, the Virginia state income tax on your sale, the primary residence exclusion, and some smart ways to lower your tax bill before you close.
$250K
Federal exclusion for single filers
$500K
Federal exclusion for married couples
5.75%
Virginia’s top state income tax rate
0-20%
Federal long-term capital gains rates
What Is Capital Gains Tax on a Home Sale?

The Simple Way to Think About It
A capital gain is just the profit you make when you sell something for more than you paid. If you bought your Virginia home for $300,000 and sold it for $450,000, you made a capital gain of $150,000.
The government may want a piece of that profit. That’s what capital gains tax is. But here’s the good news: most Virginia homeowners who sell their main home end up paying zero federal tax on that gain because of something called the primary residence exclusion. We’ll get to that in a moment.
There are two types of capital gains. If you owned the home for less than one year before selling, the profit is a short-term capital gain. That gets taxed at your normal income tax rate, which can be very high. If you owned it for more than one year, it’s a long-term capital gain and you get much better tax rates.
What Counts as a “Capital Asset”?
Your home is a capital asset. So are stocks, vehicles, and art. When you sell a capital asset for a profit, that profit may be taxed. Real estate is one of the biggest capital assets most people own, so knowing the rules can save you a lot of money.
Quick Answer
Capital gains tax is the tax on the money you made from selling your home above what you paid. Most Virginia homeowners who lived in their home for at least 2 of the last 5 years owe zero federal tax on profits up to $250,000 (single) or $500,000 (married).
Federal Capital Gains Tax Rates
Long-Term vs. Short-Term Rates
How much federal tax you owe on your home sale profit depends on how long you owned the home and how much money you made in total that year. For long-term gains, the federal rates are 0%, 15%, or 20%.
| Filing Status | 0% Rate (income up to) | 15% Rate | 20% Rate (income above) |
| Single | ~$48,350 | $48,351 to $533,400 | $533,400+ |
| Married Filing Jointly | ~$96,700 | $96,701 to $600,050 | $600,050+ |
| Head of Household | ~$64,750 | $64,751 to $566,700 | $566,700+ |
Source: IRS Topic No. 409 – Capital Gains and Losses
Honestly, the 0% rate is a huge deal that most people don’t know about. If your total income for the year stays below around $48,000 (single), you pay zero federal tax on your long-term gain. That’s a great reason to plan the timing of your sale carefully.
Short-Term Rates Are Much Higher
If you sell your Virginia home in less than a year of buying it, your profit gets taxed as ordinary income. That can be anywhere from 10% to 37% federally depending on your income. That’s why most people try to hold a property for at least a year before selling. The difference in tax owed can be massive.
I once worked with someone who sold an investment property after 11 months and ended up paying nearly double the tax they would have owed if they had just waited two more months. Timing really does matter here.
The Primary Residence Exclusion (Section 121)
The Biggest Tax Break for Virginia Homeowners
The Section 121 exclusion is the most important tax rule for people selling their main home. It lets you keep a big chunk of your profit completely tax-free. According to the IRS Publication 523, this exclusion allows you to exclude up to $250,000 of profit if you are single or $500,000 if you are married filing jointly.
So if you are married and made a $400,000 profit on your Virginia home, you owe zero federal tax. All of that $400,000 is protected by the exclusion. That’s a real gift from the tax code.
The 2-Out-of-5-Year Rule You Must Meet
To use this exclusion, you must have owned and lived in the home as your main home for at least 2 of the last 5 years before the sale. The two years do not have to be in a row. You also cannot have used this exclusion on another home in the past two years.
| Rule | What It Means |
| Ownership Test | You owned the home for at least 2 years in the last 5 years |
| Use Test | You lived in it as your main home for at least 2 years in the last 5 years |
| Look-Back Test | You have not used this exclusion in the past 2 years |
If you do not fully qualify, you might still get a partial exclusion. This can happen if you are moving for a new job, dealing with health problems, or had an unexpected life change. The IRS is actually pretty fair about this when you have a good reason for selling early.
Good to Know: Virginia follows the same federal exclusion rules. So if your gain is fully covered by the $250,000 or $500,000 exclusion, you likely owe zero state tax too.
How Virginia Taxes Your Home Sale Profit
Virginia Does Not Have a Separate Capital Gains Tax
Here is something many people get confused about. Virginia does not have its own special capital gains tax rate. Instead, any taxable profit from your home sale gets added to your regular income and taxed as ordinary income by the state.
Virginia’s state income tax rates go from 2% up to 5.75%
| Virginia Taxable Income | State Tax Rate |
| Up to $3,000 | 2% |
| $3,001 to $5,000 | 3% |
| $5,001 to $17,000 | 5% |
| $17,001 and above | 5.75% |
For most sellers in Virginia with any meaningful taxable income, your home sale profit will be taxed at the top rate of 5.75%. Virginia also does not have a lower rate for long-term gains the way the federal government does. So even if you qualify for the 0% or 15% federal rate, Virginia still taxes you at its normal income rate on any taxable gain.
The Net Investment Income Tax (NIIT) for High Earners
If you earn a lot of money, there is one more tax to know about. The Net Investment Income Tax (NIIT) adds an extra 3.8% on top of your federal capital gains tax. It applies when your modified adjusted gross income goes above $200,000 (single) or $250,000 (married filing jointly).
This tax often catches high-income Virginia sellers off guard, especially in areas like Northern Virginia where home values are very high. If your gain pushes past the exclusion limit, this extra 3.8% can add up fast.
How Your Cost Basis Can Save You Money
What Is Adjusted Basis and Why Does It Matter?
Your adjusted basis is what you really paid for the home, plus any improvements you made. The higher your basis, the lower your taxable gain. Many sellers leave money on the table because they forget to include all their improvements.
Your adjusted basis usually includes your original purchase price, money you spent on home improvements (like a new roof or a kitchen remodel), certain closing costs from when you bought the home, and selling costs like agent commissions and closing fees.
Let me give you a real example. Say you bought your Virginia home for $350,000. Over the years you spent $40,000 on a kitchen remodel and a new deck. Your adjusted basis is now $390,000. If you sell for $600,000, your gain is $210,000 (not $250,000). That lower number might keep you under the $250,000 exclusion limit if you are single.
What Does Not Count as an Improvement
Routine repairs and maintenance do not add to your basis. Painting the walls, fixing a leaky pipe, or replacing a broken window are not improvements in the tax sense. Only work that adds value or extends the life of the home counts. Keep all your receipts and records. The IRS Publication 523 has a full list of what qualifies.
How to Calculate Your Taxable Gain
A Simple Step-by-Step Example
Calculating your taxable gain is easier than it sounds. Just follow these steps. Let’s use a simple Virginia home sale as an example.
| Step | Amount |
| Sale Price | $550,000 |
| Minus: Selling Costs (agent fees, closing costs) | – $33,000 |
| Net Sale Proceeds | $517,000 |
| Minus: Adjusted Basis (purchase price + improvements) | – $370,000 |
| Total Capital Gain | $147,000 |
| Minus: Primary Residence Exclusion (married) | – $500,000 |
| Taxable Gain | $0 |
In this case, a married couple owes zero federal tax. Even if the gain had been $520,000, only $20,000 would be taxable after the exclusion. That small taxable amount would then be subject to the federal rate and Virginia’s 5.75% state rate.
How Virginia Handles the Reporting
Virginia does not have a separate capital gains tax form. Your taxable gain flows from your federal tax return into your Virginia state return. Virginia starts with your federal adjusted gross income, so whatever is taxable federally will generally be taxable in Virginia too. You report your sale on IRS Form 1040 with Schedule D for capital gains and losses.
Ways to Reduce Your Capital Gains Tax
Legal Strategies Every Virginia Seller Should Know
There are several ways to lower or even eliminate the tax you owe when you sell your Virginia home. These are all legal and many sellers miss them simply because they did not plan ahead.
The biggest thing you can do is track all your home improvements. Every dollar you spent on renovations raises your basis and lowers your taxable gain. Even small projects add up over years of ownership. Keep every receipt, every contractor invoice, every permit.
If you own a rental property or investment property in Virginia, you can use a 1031 exchange to defer your capital gains tax. In a 1031 exchange, you sell your property and roll the profit into a new investment property within a set time period. You do not pay tax until you eventually sell the replacement property without doing another exchange.
Timing Your Sale Wisely
The year you sell can make a big difference. If you retire in 2025 and your income drops way down, selling in that low-income year might mean you qualify for the 0% federal capital gains rate. That could save you thousands. Talk to a CPA about the best year to sell based on your total income.
An installment sale is another option for investment properties. Instead of getting all the money at once, the buyer pays you over several years. This spreads your taxable gain across multiple years, which may keep you in a lower tax bracket each year.
Pro Tip: Always talk to a CPA before you list your home, not after. Tax planning works best before the sale closes. Once the deal is done, your options are very limited.
Special Situations: Rental Properties and Inherited Homes
Selling a Rental Property in Virginia
If you are selling a rental property in Virginia, the rules are tougher. You do not get the primary residence exclusion. Your entire gain is taxable unless you use a strategy like a 1031 exchange.
There is also a special rule called depreciation recapture. When you own a rental, the IRS lets you deduct depreciation each year. But when you sell, you have to “recapture” that depreciation and pay tax on it at up to 25%. This often surprises rental property sellers who did not plan for it.
Selling an Inherited Home in Virginia
Inheriting a home and then selling it is usually much more tax-friendly. When you inherit a property, you typically get what is called a step-up in basis. This means your basis is reset to the home’s fair market value on the date the person passed away. If the home has gone up a lot in value over many years, this step-up can wipe out a massive potential tax bill.
For example, if your parent paid $100,000 for a Virginia home 30 years ago and it is worth $500,000 when you inherit it, your basis is $500,000. If you sell it shortly after for $510,000, you only have a $10,000 taxable gain, not a $410,000 gain. That’s a huge benefit.
Common Mistakes Virginia Sellers Make
Not Tracking Home Improvements
This is the most common and most costly mistake. People spend tens of thousands of dollars improving their homes over the years and never keep records. When it comes time to sell, they can’t prove the improvements happened. That means a higher taxable gain and a bigger tax bill.
To be fair, most of us don’t think about taxes when we’re redoing the kitchen or adding a deck. But going forward, make a simple folder on your computer or in a drawer where you save every home improvement receipt. Future you will be very grateful.
Thinking Moving Out Helps You Avoid Virginia Tax
Some people think that if they move out of Virginia before closing the sale, they won’t owe Virginia state taxes. That’s not how it works. If your property is in Virginia, Virginia taxes the gain from that sale even if you are no longer a Virginia resident when you close. Moving out shortly before closing does not make the gain disappear for Virginia tax purposes.
Forgetting the Grantor’s Tax at Closing
Virginia charges a grantor’s tax when you sell. It is generally $0.50 for every $500 of the home’s sale price. Some counties and cities add their own local transfer taxes on top of that. This is not a capital gains tax, but it is a cost of selling that reduces your net proceeds.
Conclusion
Selling your home in Virginia does not have to mean a big tax bill. Most homeowners who lived in their home for at least two of the last five years can keep up to $250,000 (single) or $500,000 (married) of profit completely tax-free at the federal level. Virginia does not have a separate capital gains tax, but it does tax any remaining gain as regular income at up to 5.75%.
The key is to plan ahead. Track your home improvements, understand your cost basis, and talk to a CPA before you list. For investment or rental properties, a 1031 exchange can help you defer taxes. For inherited properties, the step-up in basis often removes most of the tax burden.
If you have questions about your specific situation, always work with a licensed Virginia CPA or tax attorney. Every sale is different, and getting the numbers right before closing can save you thousands of dollars.
I’d love to hear your thoughts below. Have you sold a home in Virginia and dealt with capital gains tax? What surprised you most about the process?
Frequently Asked Questions
Do I always have to pay capital gains tax when I sell my home in Virginia?
No, not always. Most homeowners who lived in their home for at least 2 of the last 5 years qualify for the primary residence exclusion. This lets you keep up to $250,000 of profit tax-free if you are single, or up to $500,000 if you are married filing jointly. If your profit stays under these limits, you owe zero federal capital gains tax.
Does Virginia have its own capital gains tax rate?
No. Virginia does not have a separate capital gains tax. Any taxable gain from your home sale is added to your regular income and taxed at Virginia’s state income tax rates, which go from 2% up to a top rate of 5.75%. Unlike the federal government, Virginia does not offer lower rates for long-term capital gains.
What is the adjusted basis and how does it lower my tax bill?
Your adjusted basis is your original purchase price plus any money you spent on home improvements, plus certain closing costs. A higher basis means a smaller taxable gain. For example, if you added a new kitchen and a deck, that money gets added to your basis and reduces the profit the government can tax. Always keep receipts for every improvement you make.
What happens with capital gains tax if I sell a rental property in Virginia?
Selling a rental property is more complicated. You do not get the primary residence exclusion. Your full profit is taxable at federal rates (0%, 15%, or 20%) plus Virginia state income tax at up to 5.75%. You may also owe depreciation recapture tax at up to 25% on any depreciation you claimed over the years. A 1031 exchange can help you defer these taxes by rolling the profit into a new investment property.
How do I report my home sale on my tax return in Virginia?
You report your home sale on your federal return using IRS Form 1040 and Schedule D for capital gains and losses. Virginia does not have a separate capital gains form. Your taxable gain flows from your federal return into your Virginia state income tax return automatically, since Virginia starts its calculation from your federal adjusted gross income. If you qualify for the full exclusion, you may not need to report the sale at all.