Under the military capital gains tax exemption on a home sale, service members can pause the standard five-year testing window for up to ten years while on qualifying duty. That extension gives you as long as fifteen years to meet the two-year residency requirement and exclude up to $250,000 of gain, or $500,000 for married couples filing jointly.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence The rule lives in Section 121(d)(9) of the Internal Revenue Code and exists because PCS moves make the ordinary two-year residency rule hard to satisfy.
The Baseline Exclusion Before the Military Rule Kicks In
The military benefit modifies a general rule, so the general rule has to be on the table first. Section 121 lets you exclude gain from selling your primary home if you pass three tests measured against the five-year period ending on the sale date.
- Ownership: you owned the home for at least 24 months within that five-year window. For joint filers, only one spouse needs to meet this test.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
- Residency: you used it as your main residence for at least 24 months (not necessarily consecutive) in the same window. Both spouses must meet this test to claim the full $500,000.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
- Look-back: you haven’t used the exclusion on another home sale in the two years before this one.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
Pass all three and a single filer excludes up to $250,000; a couple filing jointly excludes up to $500,000.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence
How the Ten-Year Suspension Works
The core of the military rule is a pause button on the five-year clock. Any time you spend on qualified official extended duty stops the clock, up to a maximum of ten years. Add that to the standard five, and your testing window can stretch to fifteen years.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence
The suspension doesn’t waive the 24-month ownership or residency requirements. It gives you more time to satisfy them. And it suspends the entire five-year period in Section 121(a), which means both the ownership test and the use test are paused, not just the residency side.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence
What Counts as Qualified Official Extended Duty
Two conditions have to be met. The duty must be active duty under orders lasting more than 90 days or for an indefinite period, and the duty station must be at least 50 miles from the home, or you must be living in government quarters under government orders.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence Most PCS orders qualify easily. A short TDY under 90 days at a nearby base does not.
If it’s your spouse who is on qualifying duty rather than you, the suspension still applies to the property.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence
Making the Election
There is no separate form to file. You elect the suspension by excluding the gain when you file your return for the year of the sale.2Internal Revenue Service. Publication 523 (2025), Selling Your Home One limit worth knowing: the suspension can only apply to one property at a time, so if you own two homes and are stationed away from both, you have to choose.
Partial Exclusion When You Sell Before Two Years
Sometimes orders come before you’ve built up 24 months in the house, and even the fifteen-year window can’t manufacture time you never had. A partial exclusion is available when a work-related move forces the sale, and a PCS to a duty station at least 50 miles farther from the home than your previous station qualifies.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
The math is straightforward. Take the months (or days) you actually lived in the home, divide by 24 months (or 730 days), and multiply by $250,000. Joint filers run the calculation separately for each spouse and add the results. A single service member who lived in the home for 12 months before orders would get 12 ÷ 24 × $250,000, or a $125,000 partial exclusion.2Internal Revenue Service. Publication 523 (2025), Selling Your Home Any gain above that is taxable.
Renting the Home Out During a PCS
Many military families rent the house after a PCS rather than selling right away. This is where the exemption quietly does its most valuable work, and where the rules are easiest to misread.
The general rule under Section 121(b)(5) is that any period after 2008 when neither you nor your spouse used the home as a primary residence is “nonqualified use.” Gain allocated to that period cannot be excluded, even if you pass ownership and residency. The formula divides nonqualified-use days by total ownership days, and that fraction of the gain is taxable.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
The military carve-out: time on qualified official extended duty does not count as nonqualified use, for up to ten years.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence Any period after the last date you used the home as your main residence, if it falls within the five years before the sale, is also excluded from nonqualified use.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
Combined, these rules mean a service member who lived in the home for two years, then rented it out for seven years while on extended duty, can potentially exclude the entire gain up to the dollar cap. A civilian landlord in the same situation would lose a significant slice of the exclusion to the nonqualified-use allocation.
Depreciation Recapture and the 3.8% Investment Tax
The exclusion protects appreciation. It does not reverse tax benefits you already claimed. Any depreciation you deducted while the home was a rental is recaptured when you sell, no matter how cleanly you meet the Section 121 tests. This unrecaptured Section 1250 gain is taxed at a maximum rate of 25%, regardless of your regular bracket.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Five years of rental with $40,000 in depreciation means $40,000 of taxable recapture at sale.
Gain above the $250,000 or $500,000 cap that isn’t recapture is taxed as long-term capital gain at 0%, 15%, or 20% depending on your taxable income.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Higher-income sellers should also plan for the Net Investment Income Tax. Any capital gain from the sale that is not excluded under Section 121 is net investment income. If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the non-excluded gain may face an additional 3.8% tax on top of the capital gains rate.4Internal Revenue Service. Net Investment Income Tax The excluded portion is not subject to it.
Surviving Spouse Rules
If a service member dies, an unmarried surviving spouse can claim the full $500,000 exclusion, rather than the $250,000 single-filer limit, if the home is sold within two years of the death and the couple would have qualified for the joint exclusion immediately before the death. The surviving spouse also inherits the deceased spouse’s ownership and use periods for the two-year tests, and any suspension that applied during the member’s lifetime continues to protect eligibility.1Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence The two-year window is hard. Close in month 25 and the exclusion drops to $250,000.
Reporting the Sale and Keeping Records
If the entire gain is excluded and no Form 1099-S is issued at closing, you generally do not need to report the sale on your return. The election to suspend the five-year period happens automatically when you exclude the gain.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
You do need to report the sale if the closing agent issues a Form 1099-S, even when the full gain is excluded,5Internal Revenue Service. Instructions for Form 1099-S or if any part of the gain exceeds the exclusion limit, in which case the taxable amount goes on Form 8949 and Schedule D.
Keep the paperwork. PCS orders or other proof of qualified official extended duty, the purchase closing statement, receipts for capital improvements, and depreciation records from any rental period all matter. The closing statement and improvement receipts establish your adjusted basis. The orders prove the suspension.
The State Tax Trap Federal Rules Don’t Fix
Federal Section 121 applies wherever the home sits and wherever you’re stationed. State taxes don’t follow the same logic, and this is where military sellers often get surprised.
Under the Servicemembers Civil Relief Act, service members keep their state of legal domicile for tax purposes and aren’t forced to change it because of a duty station.6Office of the Law Revision Counsel. 50 USC App 571 Residence for Tax Purposes Military wages are taxed only by the domicile state. Capital gains from selling real property, though, are generally sourced to the state where the property physically sits. The SCRA doesn’t reroute that.
The practical result: a service member domiciled in Texas who sells a home in Virginia may owe Virginia capital gains tax on any gain the federal exclusion doesn’t cover. Most income-tax states conform to the federal exclusion, so if Section 121 wipes out the gain federally, the state usually follows. If taxable gain remains, the state where the house is located generally wants its share.
Spouses who elect the service member’s domicile under later SCRA changes generally can’t override the property-situs rule for real estate gains either. Some domicile states offer a credit for taxes paid to the property-situs state. Because sourcing rules and credits differ by state, check both states before closing.