Military capital gains exclusion for home rented while on orders and after separation

Trying to figure out if I still qualify for the home sale exclusion. Bought my house in 2018, got PCS orders in 2021 and rented it out while stationed overseas. Separated from active duty in late 2023, moved back in briefly, then sold in spring 2025. Total gain is significant. I know there's a standard ownership and use test under Publication 523, and I also know there's some kind of military suspension rule that extends the lookback window, but I can't figure out how they interact when you've already separated. My 1099-S arrived and I know I have to report the sale on Form 8949 regardless of any exclusion. What I don't know is whether the suspension still helps me given the rental period and the separation date.

34 comments

Publication 523 is where this all lives. The basic test is 2 years of ownership and 2 years of use as your main home within the 5 years before the sale. The military suspension rule can extend that 5-year window up to 10 years if you were on qualified official extended duty. The key phrase is 'qualified official extended duty,' which means orders to a duty station at least 50 miles from the home or required government quarters. The suspension stops running when you leave active duty, so only the time you were actually on orders counts toward stretching the window.

Tyler P.

Author

That's the part I was fuzzy on. So the suspension isn't indefinite after separation — it only applied during the active duty period itself. That changes my math a bit.

Worth separating two things: the suspension extends how far back the IRS looks for your 2-year use period, it doesn't add use time you didn't have. So if you lived there from 2018 to 2021, that's roughly 3 years of qualifying use. The question is whether the 5-year window (or the extended window) still reaches back to include those years at time of sale.

Tyler P.

Author

Yes, exactly the question. My use period ended in mid-2021 when I left on orders. Sale was spring 2025. Without any suspension, the standard 5-year window from the sale date goes back to spring 2020, which captures about a year of my use. With suspension for the PCS period (mid-2021 through late 2023), that extends the window enough to pull in the full pre-PCS use period.

That reasoning looks right to me. The suspension pauses the clock during qualified duty, so those roughly 2.5 years on orders get added back. Your extended lookback should reach well past 2018, capturing all your pre-PCS residence time.

One thing that tripped up my buddy in a similar situation: the rental income during the PCS period itself doesn't disqualify you from the exclusion, but the part of the gain equal to any depreciation you claimed (or were allowed to claim) on the rental can't be excluded — it's taxed as unrecaptured Section 1250 gain at up to 25%, regardless of the exclusion. That part doesn't get excluded.

Tyler P.

Author

Good reminder. I did take depreciation during the rental years, so I know I'll have a recapture amount. That gets reported separately from the main gain.

Form 8949 is where the sale lands since you got a 1099-S. Part II, long-term, box F because it came on Form 1099-S. Code H in column (f) for the excluded gain, and the excluded amount as a negative number in column (g). Depreciation recapture is a separate line. I uploaded my closing disclosure and the military orders to taxr.ai and had it map out exactly which dollar amounts went where on Form 8949 and Schedule D — it flagged that my recapture had to stay on a separate row even though both items related to the same house.

Tyler P.

Author

The separate row for recapture is news to me. So the excluded gain gets its own Form 8949 entry with code H, and the recapture is reported differently, not lumped in?

Yes, that's right. The unrecaptured Section 1250 gain flows through Schedule D but gets taxed at a different rate; it doesn't get the exclusion treatment. Keep them on separate lines so the numbers tie out.

The election to suspend the 5-year period is not a form you file separately — you just take the exclusion on your return and attach a statement if needed. Publication 523 walks through the eligibility test step by step. Worth doing each step in order because the partial exclusion rules have their own conditions if you don't fully meet the use test.

No, you don't file a separate election form for the military suspension. It's self-executing once you meet the qualified official extended duty definition. You just apply it when you calculate whether you meet the use test.

Separation date matters for a reason people miss: the suspension only covers periods of qualifying active duty. After you separate, the 5-year clock runs normally again. So you need to count the actual days of suspended time precisely — from your PCS report date to your separation date — and add those back to the sale date to find the true lookback end point.

Tyler P.

Author

That's the clearest way I've seen it described. I'll pull my orders and DD-214 to get the exact dates and do the day count properly before I fill in Form 8949.

Schedule D line 10 picks up the totals from Form 8949 Part II with box F checked. If the full gain is excluded and you have no other long-term transactions, Schedule D line 10 could be zero after the column (g) adjustment. The recapture amount feeds into the unrecaptured Section 1250 gain worksheet, which is in the Schedule D instructions.

Just to flag: the married filing jointly exclusion amount is higher than the single filer amount. Publication 523 spells out what each spouse needs to satisfy separately (residence) versus jointly (ownership, prior exclusion). If you're married and your spouse never lived in the house, you may only qualify for the single-filer exclusion amount unless the military exception modifies the analysis for one spouse.

Tyler P.

Author

Single filer in my case, so that simplifies things. Good flag for anyone married reading this though.

The 1099-S showing up means you have to report the sale on Form 8949 even if the entire gain is excluded. That's the rule — no 1099-S means you might not need to report at all if the gain is fully excludable, but once a 1099-S exists, the return has to show it. Code H and the negative adjustment in column (g) take care of it.

Yes, confirmed. Got caught by that myself last year — received a 1099-S and assumed a full exclusion meant nothing to file. Had to amend to add the Form 8949 entry with code H.

Publication 551 is relevant for the basis side: your starting basis is purchase price plus closing costs, then adjusted upward for any capital improvements during ownership and downward for depreciation claimed during the rental period. Getting that adjusted basis number right determines whether the gain figure you're working with is accurate before you even apply the exclusion. I ran my closing documents and depreciation schedules through Taxr and it built out the adjusted basis calculation showing each addition and subtraction — made it easy to see that I'd been underestimating my improvements and my gain was actually lower than I thought.

Tyler P.

Author

Underestimating improvements is a real risk. I need to pull all my receipts from work done before the PCS move. Things like a roof replacement and new HVAC could move the basis meaningfully.

Yes, capital improvements (not repairs) add to basis. A roof or HVAC system qualifies. Repainting or fixing a leaky faucet doesn't. The distinction is in Publication 551 and also Publication 523's worksheet.

The partial exclusion is worth looking at if the full exclusion doesn't apply cleanly. If your use test falls short because the suspended period math doesn't quite work out, a partial exclusion based on the fraction of the 2-year period you did use the home may still shelter a large portion of the gain — but only if the main reason for the sale was a change in workplace location, a health issue, or an unforeseeable event. The IRS worksheet in Publication 523 covers that calculation.

DD-214 is your documentation that the duty was qualifying. Keep it with your tax records. If the IRS ever questions the suspension, you'd need to show the duty station was at least 50 miles from the home or that government quarters were required. The orders themselves showing the duty location are the supporting document for that.

Tyler P.

Author

Already have both scanned. Good to know those are exactly the documents that matter if this ever gets questioned.

Form 8949 column (e) is adjusted basis, and that number has to reflect the depreciation you deducted during the rental period — it reduces your basis, which increases the total gain even if the exclusion covers most of it. The recapture piece is what stays taxable no matter what. I gave Taxr my Schedule E from the rental years and the Form 8949 draft, and it checked that the cumulative depreciation deducted matched what was reducing my column (e) basis — they hadn't been matching and I would have underreported the recapture.

Tyler P.

Author

This is the step I was most likely to mess up. The depreciation on Schedule E each year has to roll forward and reduce column (e) on Form 8949. I'll need to add those up from every rental year.

Exactly. Each year's Form 4562 or Schedule E shows the depreciation claimed. Add them up. That total is both the basis reduction in column (e) and the recapture amount that stays taxable.

The Section 121 exclusion does not apply to any gain attributable to periods of non-qualified use after 2008. Non-qualified use is time when the home wasn't your main home, but there's a specific ordering rule: rental or vacancy after your last use as a main home (within the 5-year period) does not count as non-qualified use, and neither does time on qualified official extended duty (up to 10 years). It's periods before your last use as a main home when it wasn't your residence that create the non-excludable portion of gain. Publication 523 has the non-qualified use fraction calculation.

Yes, this is a point people miss. Non-qualified use before your last use as a home (not counting qualified official extended duty or time after you moved out for good) creates a taxable fraction even if you otherwise meet the exclusion requirements. The fraction is non-qualified use days divided by total ownership days.

Tyler P.

Author

So the brief period I moved back in after separation, before the sale — that's qualified use and resets the last-use date, right? Meaning anything after that brief period of re-occupancy wouldn't count as non-qualified use, and the PCS rental time is covered by the qualified extended duty exception.

Section 121 and the military suspension rules together can get complicated fast when you add non-qualified use fractions on top. If your gain is large and the numbers are close to the exclusion limit, a CPA who handles military tax situations would be worth the consult before you file. The interaction between the non-qualified use fraction, the recapture, and the suspended window is not something you want to get wrong on a big transaction.

Tyler P.

Author

Agreed. I think I have enough now to build the initial worksheet and know what questions to bring to a CPA. This thread has been genuinely useful for structuring the problem.

To confirm the reporting flow: sale goes on Form 8949 Part II box F because of the 1099-S, code H in column (f), excluded gain as a negative in column (g), proceeds from the 1099-S in column (d), adjusted basis in column (e). Recapture is handled through the unrecaptured Section 1250 gain worksheet tied to Schedule D, not through the code H adjustment. Schedule D line 10 picks up the net from Part II box F. That's the sequence.