Capital Gains When You PCS: Selling in Williamsburg, VA

by Jackie Berberabe

Capital Gains When You PCS: Selling in Williamsburg, VA

Will You Owe Capital Gains Tax If You Sell Your Williamsburg Home When You PCS?

Often, no. If you owned and lived in the home for at least two of the last five years, you can exclude up to $250,000 of gain, or $500,000 on a joint return. If PCS orders pulled you away first, service members on qualified official extended duty can elect to suspend that five-year window for up to 10 years, so a home you rented out may still qualify. Your numbers depend on your purchase price, improvements, and selling costs, so confirm them with a tax professional before you list.

If you're a service member with orders in hand and a house in Williamsburg to sell, the tax question tends to show up fast. You bought here, you've built some equity, and someone told you that you'll owe a big bill if you haven't lived there long enough. Here's the good news. The rules for military sellers are friendlier than most people expect, and many sellers qualify to exclude some or all of their gain.

I walk PCS sellers through this conversation before we ever talk about a list price, because the answer shapes your timeline. One note up front: I'm a real estate agent, not a tax advisor. This post explains how the federal rules generally work, based on IRS Topic 701 and IRS Publication 523. Your CPA makes the final call.

How Does the Two-Year Rule Work for Military Sellers?

The starting point is the home sale exclusion. When you sell your main home, you can exclude up to $250,000 of profit from your taxable income. If you file a joint return with your spouse, that goes up to $500,000.

To qualify, you need to pass two tests within the five years before the sale date:

  • Ownership test: you owned the home for at least 24 months.
  • Use test: you lived in it as your main home for at least 24 months.

The two periods don't have to be back to back, and they don't have to cover the same 24 months. You also generally can't claim the exclusion if you already excluded gain on another home sold within the previous two years.

That's the rule for everyone. PCS orders are where it gets interesting.

The Military Election That Pauses the Clock

If you or your spouse are on qualified official extended duty, you can elect to suspend the five-year test period for up to 10 years. In plain terms, the clock pauses while you're away. Duty counts as qualified when both of these are true:

  • The assignment lasts more than 90 days or for an indefinite period.
  • You're stationed at least 50 miles from the home, or you live in government housing under orders.

Here's an example. Say you buy a home in James City County, live in it for three years, and then PCS to a base in another state. You keep the home as a rental for six years and then sell. Without the election, your five-year window would hold no time living in the home, so the exclusion would be off the table. With the election, the six years of duty are suspended, the window reaches back far enough to include your three years of residence, and you can pass the use test.

A few details matter:

  • You make the election on the tax return for the year you sell.
  • You can suspend the test period for only one property at a time.
  • You still need your full 24 months of ownership and use inside the stretched window. A home you only lived in for a year won't pass on the election alone.

If you don't meet the two-year test at all, you may not be out of luck. A reduced exclusion can apply when you sell because of a change in employment or other unforeseen circumstances. That's a prorated amount, and the details matter, so it's a question for your tax professional.

What Might Your Williamsburg Numbers Look Like?

Capital gain isn't your sale price minus what you paid. It's your amount realized, which is your sale price minus selling costs, minus your adjusted basis. Your basis is your purchase price plus the cost of capital improvements, like a new roof, a finished room, or a major HVAC replacement. Routine repairs and paint don't count. Your selling costs, including agent compensation, the grantor's tax, and settlement fees, reduce the amount you realized. If you're deciding what to fix before you list, here's how I think about selling as-is versus making repairs.

Here's an illustrative example, not a prediction:

  • Purchase price: $340,000
  • Capital improvements: $20,000, for an adjusted basis of $360,000
  • Sale price: $480,000
  • Selling costs: about $30,000, using a 6 percent planning figure for total agent compensation, the 0.1 percent grantor's tax, and other fees
  • Amount realized (net sale price): $450,000
  • Gain: $90,000

That $90,000 gain sits well inside the $250,000 exclusion for a single filer. If you qualify, that profit may be excluded from federal tax. If you don't qualify, the full $90,000 could be taxable, and the rate depends on how long you owned the home and your overall income.

The 6 percent figure is a planning number only. Agent compensation is fully negotiable with no standard rate, and it can land below, at, or above 3 percent per side. The grantor's tax on a sale in the City of Williamsburg, James City County, or York County is 0.1 percent of the sale price, about $1 per $1,000. Your settlement agent confirms the exact figure on your settlement statement.

Local appreciation is why this matters. The Williamsburg Area Association of Realtors reported a median sale price of $480,000 for the fourth quarter of 2025, up 16 percent from a year earlier. Many owners here have built real equity, so it's worth running your own numbers even if you think your gain is small. If your gain does top the exclusion, only the amount above it is taxed. Market conditions change, so I pull current local data for your property when we talk.

To run your own estimate, gather three things: the settlement statement from when you bought, receipts for any major improvements, and your orders with the dates of your duty assignment. With those in hand, your CPA can help you calculate your basis and confirm whether the election applies to you.

What Can Trip Up a PCS Seller?

Most of the surprises I see fall into the same few buckets.

  • Renting before you sell. Renting after you move can still work, especially with the election. But rental years bring depreciation and nonqualified use rules into play. Your military orders keep rental years from shrinking your exclusion, but they don't change the depreciation rule. Depreciation you claimed, or could have claimed, while renting can never be excluded. That part of your gain is taxable, generally at up to 25 percent. Map this out with a CPA before you decide to rent, and read my breakdown of whether to sell or rent when you PCS.
  • Selling soon after a prior exclusion. If you excluded gain on another home within the last two years, the two-year rule can limit you.
  • State taxes. State income tax is a separate question from the federal exclusion. It can depend on where you're legally a resident and where the property sits, so ask your tax professional before closing.
  • Missing records. Keep receipts for every capital improvement. They raise your basis and lower your gain. You may also receive Form 1099-S after closing, and your settlement agent handles that paperwork. Here's how the settlement agent gets chosen in Virginia.
  • Timing. If you're close to a milestone date, talk to your CPA before you set your closing date. A good tax decision shouldn't override a sound market strategy, so I like to look at both side by side.

A realistic sale price is the first number in your gain calculation. Your specific numbers depend on your purchase date, your improvements, and your orders, and that's where a local market analysis comes in. It's exactly the kind of planning I do with military sellers before their orders turn into a deadline.

Frequently Asked Questions

Do military members pay capital gains tax when they sell a house?

Not always. If you owned and lived in the home for at least two of the last five years, you can exclude up to $250,000 of gain, or $500,000 on a joint return. Service members on qualified official extended duty can elect to suspend the five-year window for up to 10 years, which helps many PCS sellers qualify.

Can you still qualify for the exclusion if you rented your Williamsburg home after a PCS?

Often, yes. The military election pauses the five-year clock while you're on qualified extended duty, so rental years may not disqualify you. You still need 24 months of ownership and use inside the extended window, and depreciation claimed on the rental can't be excluded.

How long can the five-year test period be suspended?

Up to 10 years, and the suspension plus the standard five-year test period can't exceed 15 years. You can suspend it for only one property at a time, and you make the election on the tax return for the year you sell.

What if you haven't lived in the home for two years before your orders arrive?

You may qualify for a reduced exclusion if you sell because of a change in employment or other unforeseen circumstances. The amount is prorated based on how long you owned and lived in the home. A tax professional can confirm whether your situation qualifies and calculate the number.

Ready to Plan Your Move?

Your orders set the clock, but you still have choices about how to sell. Knowing your likely gain before you list helps you decide whether to sell, rent, or time your closing. Planning a move to or from the Williamsburg area? I put together the Williamsburg Military Relocation Guide, loaded with local insights, tips, and the details that make a PCS or relocation go smoother. Grab your copy here: https://jacquelinedeleon.lofty.me/military-relocation-guide


One note before you act on this. This post explains how Virginia law generally works. It isn't legal advice, and it can't account for the facts of your transaction. Statutes and deadlines change, contract terms vary, and outcomes often turn on details specific to your deal. Before you act on anything here, especially anything involving terminating a contract, an earnest money deposit, a refund, or a possible claim, talk with a Virginia real estate attorney. I'm glad to refer you to one. Because this post also covers federal tax rules, please review your own situation with a CPA, Enrolled Agent, or tax attorney before you take any tax position or file your return.


About Jackie Berberabe
Jackie Berberabe is a licensed real estate agent in the Commonwealth of Virginia and a Military Relocation Professional with Real Broker, LLC, serving Greater Williamsburg, including James City County and York County. With more than 20 years of experience, she helps military members, relocating buyers, and local sellers move through every step from preparation to closing, with deep knowledge of VA loans and the local market. Reach Jackie at 757-870-1902 or jackie@goodtobeehome.com. Real Broker, LLC, 855-450-0442.

GET MORE INFORMATION

Jackie Berberabe

Jackie Berberabe

Agent License ID: 0225065891

+1(757) 870-1902

Name
Phone*
Message