Empty carpeted living room with large windows and natural light

Selling a House Capital Gains Tax: The Military PCS Exception Explained

October 08, 2026

Most people who sell the home they live in pay no capital gains tax on it. The IRS lets you exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly, if you owned the home and lived in it for at least 2 of the 5 years before the sale. For a military family, there is one more piece most people don't realize: if you PCS away and keep the house, you can choose to pause that 5-year clock for up to 10 years while you are on qualified official extended duty. That one rule is often the difference between a tax-free sale and a tax bill.

Here is how the rules work, in plain language, straight from IRS Publication 523, Selling Your Home.

How does capital gains tax work when you sell a house?

Your gain is not the sale price. The IRS math is two steps:

  • Selling price minus selling expenses equals your amount realized.
  • Amount realized minus your adjusted basis equals your gain or loss.

Your basis starts with what you paid for the home, plus certain closing costs and the cost of improvements you made over the years. Some items lower it, such as depreciation you took while the home was a rental. That is why keeping receipts for a new roof, an added room, or a remodel matters. Every dollar of improvement you can document raises your basis and shrinks your gain.

If you sell at a loss, the IRS is clear: a loss on the sale of your main home is not deductible.

Who qualifies for the $250,000 or $500,000 exclusion?

Publication 523 lays out three tests. You need to pass all three for the full exclusion.

  • Ownership: you owned the home for at least 24 months out of the 5 years before the closing date.
  • Residence: you lived in it as your main home for at least 24 months of those same 5 years. The months do not have to be in one block.
  • Look-back: you did not take this exclusion on another home sale in the 2 years before this one. You can only use it once every 2 years.

For the $500,000 amount on a joint return, both spouses must meet the residence and look-back tests, and at least one spouse must meet the ownership test.

What is the military exception for capital gains on a home sale?

This is the part that matters most if you are reading this with PCS orders in hand.

Under Publication 523, you can choose to suspend the 5-year test period while you are on qualified official extended duty. That means both of these are true:

  • You are called or ordered to active duty for an indefinite period, or for a set period of more than 90 days.
  • You are serving at a duty station at least 50 miles from your main home, or you are living in government quarters under government orders.

The suspension can last up to 10 years. Added to the normal 5-year window, that means the IRS can look back as far as 15 years for your 2 years of ownership and residence. You can only suspend the 5-year period for one property at a time.

Here is why that matters. Say you lived in a home for 2 years, then PCS'd and rented it out. Without the suspension, once you have been gone more than 3 years, you no longer have 2 years of residence inside the last 5. With the suspension, the time you spent on qualified duty can be set aside, so a family that keeps a house through two or three assignments may still qualify when they finally sell.

The rule covers more than the military. Publication 523 also lists uniformed service members of NOAA and the Public Health Service, Foreign Service personnel, intelligence community employees, and Peace Corps employees.

What if you have to sell before you hit 2 years?

Orders do not always line up with the 2-year mark. Publication 523 allows a partial exclusion in some cases, and a work-related move is one of them. That includes taking or being transferred to a new job at a work location at least 50 miles farther from the home than your old work location.

The reduced exclusion is figured on a worksheet. In short, you take the shortest of your time living in the home, your time owning it, or the time since you last used the exclusion, divide it by 24 months, and multiply by $250,000 (or the joint amount if you qualify for it). Someone who lived in the home 12 months before a qualifying move could exclude up to half of the full amount.

What changes if you rented the house out?

Many PCS families keep the old house as a rental. Two rules come with that.

  • Depreciation comes back. Any depreciation you took or were allowed to take after May 6, 1997 can't be excluded. That part of the gain gets reported as recapture, even if the rest of the gain is tax-free.
  • Some rental time can reduce the exclusion. Publication 523 treats periods after 2008 when the home was not your main home as nonqualified use, with exceptions. The rules for who owes what here are detailed, so this is the place to sit down with a tax professional and the Publication 523 worksheets.

Do you have to report the sale on your tax return?

Not always. Publication 523 says you don't need to report the sale if you can exclude all of your gain and you did not receive Form 1099-S. If you received a 1099-S, or if any part of your gain is taxable, you report it using Form 8949 and Schedule D. Depreciation recapture goes on Form 4797.

Common mistakes military sellers make

  • Assuming the tax hit is automatic. Plenty of families keep a house they could have sold tax-free, or sell in a panic, because they never checked the rules.
  • Forgetting the suspension is a choice. The IRS says you may choose to suspend the 5-year period. Talk to your tax preparer about it before you file.
  • Losing the improvement receipts. No records, no basis increase.
  • Waiting too long on a rental. Even with the suspension, the clock does not run forever. Know where your window ends before your next set of orders.
  • Ignoring depreciation. You can't skip depreciation to avoid recapture. The rule covers depreciation you were allowed to take, not just what you claimed.

Selling is only one side of a PCS. If you are deciding whether to keep the old house and buy again here, read can you use your VA loan again while you still own a home. Once you own in Nevada, the Nevada property tax cap is the next tax rule worth knowing.

Frequently asked questions

How much capital gains can I exclude when I sell my house?

Up to $250,000 of gain, or up to $500,000 for a married couple filing jointly, if you meet the IRS ownership, residence, and look-back tests in Publication 523.

Do I have to live in the house 2 years to avoid capital gains tax?

For the full exclusion, yes. You need 24 months of ownership and 24 months of living there as your main home within the 5 years before the sale. A work-related move can qualify you for a partial exclusion if you fall short.

How does the military capital gains exception work?

If you are on qualified official extended duty, meaning active duty for more than 90 days or an indefinite period at a station at least 50 miles from the home or in government quarters, you can choose to suspend the 5-year test period for up to 10 years.

Can I suspend the 5-year rule on more than one house?

No. Publication 523 says you can't suspend the 5-year period for more than one property at a time.

Do I pay tax on depreciation when I sell a former rental?

Yes. Depreciation allowed or allowable after May 6, 1997 can't be excluded and is reported as recapture on Form 4797.

Is a loss on selling my home deductible?

No. The IRS says a loss on the sale of your main home can't be deducted.

The rules in this article come from IRS Publication 523 (2025), Selling Your Home, checked on October 8, 2026. Tax rules can change, and your situation may have details this article does not cover. This is general education, not tax advice. Confirm your numbers with a tax professional before you sell.

Jennifer Rodriguez

Jennifer Rodriguez

Jennifer Rodriguez is a Las Vegas REALTOR® and Military Relocation Professional specializing in VA home buying and military relocation. She helps buyers and homeowners navigate their next move with a focus on Northwest Las Vegas, including Centennial Hills, Skye Canyon, and surrounding communities. Through local market knowledge, education, and straightforward guidance, Jennifer helps her clients make confident real estate decisions.

Instagram logo icon
Youtube logo icon
Back to Blog

Have PCS orders to Nellis? Let's build your plan before you land.

Book a free 15-minute call. We'll talk through your timeline, your VA benefit, and which Northwest Las Vegas neighborhoods fit your family, so your house-hunting days go to decisions instead of discovery.

Book a 15-Minute CallRather text? 702-944-5373