The short answer
Check the §121(d)(9) election before you look at a 1031, because it usually wins. Electing it suspends the running of the five-year ownership-and-use period for any time you or your spouse serve on qualified official extended duty, up to 10 years, so the 2-of-5 test can reach back across as much as 15 years of ownership. Where the election still works, §121 erases up to $250,000 or $500,000 of gain permanently, while a 1031 only postpones it. Where the election has run out, the exchange becomes the tool that is left.
At a glance
| The election | §121(d)(9)(A): suspends the 5-year period during qualified official extended duty |
|---|---|
| Maximum suspension | 10 years, so the lookback can span up to 15 years of ownership |
| Qualified duty | Station at least 50 miles from the home, or living in government quarters on orders |
| Duration of orders | Active duty for an indefinite period or a definite period of more than 90 days |
| Who counts | Uniformed services, Foreign Service, intelligence community; a spouse's duty also counts |
| Rental years | §121(b)(5)(C) excepts up to 10 years of qualified duty from nonqualified use |
| Depreciation | Never excluded: §121(d)(6) sends it to §1250 at a 25% maximum rate |
| After separation | The 5-year period runs again, leaving roughly 3 years to sell |
The suspension is the reason a ten-year PCS rental can still be sold tax-free
Ordinarily the exclusion needs two years of residence inside the five years ending on the sale date. §121(d)(9) lets an individual elect to stop that five-year period from running while serving on qualified official extended duty, and §121(d)(9)(B) caps the extension at 10 years.
Add the two together and the test can look across a 15-year ownership, which Publication 523 states directly. That is long enough to cover a first tour, a second tour and the rental years in between.
The election is per property and it is a choice, not an automatic result, so it has to be identified before the return for the year of sale is filed. Ask your CPA to confirm it applies to your orders and your dates.
What counts as qualified official extended duty: fifty miles, or government quarters, plus the order length
Publication 523 sets out both halves. The duty must be at a station at least 50 miles from the home, or under orders to live in government quarters, and it must be an order to active duty for an indefinite period or for a definite period of more than 90 days.
Members of the uniformed services, the Foreign Service and the intelligence community are covered, and Publication 523 also extends comparable treatment to Peace Corps personnel. A spouse's qualifying duty works as well as the service member's own, which matters for a dual-income household where the orders belong to one of you.
A short school assignment, a 60-day TDY or a move inside 50 miles will not suspend anything. Keep the orders themselves with the property file, because they are the evidence for the election years later.
Worked example: bought 2014, PCS in 2016, sold 2026 with $380,000 of gain and no capital-gains tax
Hypothetical and rounded. A married couple buys a house near a base in 2014 for $300,000 and lives in it for two years. Orders in 2016 send them 900 miles away; they rent the house for the next ten years, claiming $80,000 of depreciation, and they are still on active duty when they sell in 2026 for $600,000.
Adjusted basis is $220,000, so realized gain is $380,000. Electing the suspension for the ten duty years pushes the five-year lookback back to the 2011-2016 stretch, inside which they lived in the house for two years, so the exclusion is available. The rental decade is not nonqualified use, because §121(b)(5)(C) excepts up to ten years of qualified official extended duty.
Depreciation is the only piece that is taxed: $80,000 of unrecaptured §1250 gain at a maximum 25% rate, roughly $20,000 of federal tax, plus the 3.8% net investment income tax if their income is above the threshold. The remaining $300,000 falls under the $500,000 joint exclusion and is not taxed at all. A 1031 on the same sale would have deferred that $20,000 and locked $600,000 into replacement property.
Once the orders end, the five-year period starts moving again and you have roughly three years
The suspension covers time on qualified duty and nothing else. When you separate or retire, the clock resumes on that date, and the two residence years you banked will stay inside the lookback for about three more years.
Change the example above so the couple separated in 2021 and sold in 2026. Counting backward from the sale, five unsuspended years reach only to 2021, the residence years of 2014 to 2016 fall outside, and the exclusion is gone. Had they closed in 2023 instead, the suspended decade would still have been reachable.
This is the single most expensive date in a PCS landlord's file, and almost nobody writes it down. Put the separation date and the three-year mark in the same place you keep the deed.
When the window has closed, the exchange changes the question from how much tax to which property
Without the exclusion, the whole gain is in play, and §1031 defers all of it, including the depreciation that §121 never covered. For a family whose old base housing has appreciated for a decade, that is often the larger number.
It comes with obligations the exclusion does not have: a qualified intermediary engaged before closing, identification within 45 days, and a purchase within 180 days, all described on our deadlines page. It also keeps you in real estate, which is exactly what many PCS landlords wanted to leave.
For a household that has already moved six times, the usual reason to exchange is to stop being a long-distance landlord without paying for the privilege. Replacement that requires no management — a DST interest or a net-leased property — is the version of the trade that actually solves the problem.
- Exclusion still available and you want out: sell, exclude, pay tax only on depreciation.
- Exclusion gone and the gain is large: exchange, and choose replacement you will not have to manage from overseas.
- Exclusion gone and the gain is small: compare the tax against the intermediary's fee and the 180-day risk before committing.
Two houses, two statutes: the exclusion on one and an exchange on the next
Families who have kept a house at more than one duty station can use both tools in sequence, since §121 applies per sale and §121(b)(3) only limits you to one exclusion in any two-year period. A sale in 2026 and a second sale in 2029 can each carry their own treatment.
Where a single property was both a residence and a rental at the time of sale, Rev. Proc. 2005-14 supplies the order of operations, applying the exclusion to realized gain first and the exchange to what survives it.
None of this is advice about your orders, your state of legal residence or your basis. Take the dates and the numbers to a CPA who has handled military filings, and to your own attorney, before you sign a listing agreement.
The file to build now, whether you sell this year or in five
This file answers both questions at once. It supports the §121(d)(9) election if you sell inside the window, and it supports the held-for-investment position if you end up doing an exchange instead.
- Orders for each period of qualified official extended duty, with dates and duty-station distances.
- Move-in and move-out dates for every period you occupied the house, documented by more than memory.
- Depreciation schedules for every rental year, including years a preparer may have missed.
- Settlement statements from purchase and from any refinance, plus receipts for capital improvements.
- Lease agreements and property-manager statements that show the house was genuinely rented.
Related questions
Does the suspension apply automatically, or do I have to claim it?
It is an election. Publication 523 describes it as a choice to suspend the five-year test, so it has to be applied on the return that reports the sale rather than assumed.
My spouse is the service member and the house is in my name. Does the election still work?
Section 121(d)(9)(A) covers duty served by the individual or the individual's spouse, so a spouse's qualified official extended duty supports the election. Confirm the vesting and the filing status with your CPA.
We were stationed 40 miles away but lived in government quarters. Does that count?
Publication 523 treats government quarters under government orders as an alternative to the 50-mile test, so the distance alone does not decide it. The order length still has to exceed 90 days or be indefinite.
Can I use the exclusion and still exchange into a rental on the same sale?
Yes, where the property qualifies under both statutes. Rev. Proc. 2005-14 applies §121 to the realized gain first and lets §1031 defer what remains, including the depreciation piece.
Does a VA loan on the house affect whether I can do a 1031?
The tax test looks at how the property was held, not at the loan program. Occupancy covenants and assumption rules are a matter between you and the lender, so read the note and ask the servicer before you plan around it.
Sources
Checked against these publications on September 19, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.
- 26 U.S.C. §121, including (b)(5), (d)(6) and (d)(9) (Cornell LII)
- IRS Publication 523, Selling Your Home
- Rev. Proc. 2005-14, applying §§121 and 1031 to one exchange (IRS)
- 26 U.S.C. §1031 (Cornell LII)
- IRS Topic no. 409, Capital gains and losses (25% unrecaptured §1250 rate)
- IRS Instructions for Form 8824, Like-Kind Exchanges
