Military capital gains exclusion on home sale after renting it out

Hoping someone here has dealt with this. I bought a home in 2017, lived in it for about 2.5 years, then got PCS orders and had to move out. We've been renting it since 2020 and I'm finally selling this year. I know the military gets an extended period to meet the 2-of-5-year use test under Section 121, up to 10 years I think, so I should still qualify for the exclusion. But I'm confused about how the depreciation I took on Schedule E interacts with this. The gain on the house itself I expected to exclude, but my preparer mentioned something about depreciation recapture that can't be excluded. Also not sure where the suspended passive losses I never got to use come in. Can anyone walk me through how these pieces fit together?

33 comments

The military suspension rule does extend your window to meet the ownership and use tests under Section 121, but you're right that it doesn't save you from depreciation recapture. Any depreciation you claimed or were allowed to claim while the property was a rental gets taxed as unrecaptured Section 1250 gain, regardless of the exclusion. That part flows through on Schedule D and is not sheltered by the military extension or the exclusion itself. The exclusion only applies to the portion of gain above and beyond that recapture amount.

Darius D.

Author

That's the piece I was missing, thank you. So I need to pull my Form 4562 from each rental year to get the total depreciation claimed before I can even figure out what portion of the gain is excludable.

Confirm on the 10-year suspension. The rule lets qualifying service members suspend the 5-year test period for up to 10 years during qualified official extended duty, so your 2.5 years of personal use can still count toward the 2-out-of-5 requirement even though you've been renting it for a while. Check Publication 523 on irs.gov for the exact definition of qualified official extended duty, because there are specifics about distance and orders that matter.

Darius D.

Author

Good call, I'll check Publication 523. I know I had proper PCS orders so I think I'm fine but want to make sure the distance requirement is met.

Don't overlook your suspended passive losses from the rental years. If your MAGI was above the phase-out threshold while you were renting, you may have losses sitting on Form 8582 that you couldn't deduct. When you sell the property, those suspended losses free up and offset the gain. They don't just disappear.

This is a really important point. Those losses from Form 8582 become fully deductible in the year of sale against any type of income, not just passive income. It's one of the few benefits of finally disposing of the property.

Darius D.

Author

I definitely had years where my MAGI was over the limit so I probably have suspended losses built up. I'll pull my prior year Form 8582s to add those up.

I went through almost this exact situation last year. What helped me most was uploading my closing disclosure, my prior Schedule E returns, and my Form 4562 history to taxr.ai and asking it to map out the gain calculation step by step — it separated the recapture amount, the excludable portion, and where the suspended losses from Form 8582 fit in the sequence. Gave me a clear picture before I handed everything to my CPA. The order of operations matters here: recapture comes out first, then you apply the Section 121 exclusion to what's left, then the passive losses offset whatever taxable gain remains.

Darius D.

Author

That order of operations is exactly what I needed laid out clearly. Recapture first, then exclusion, then passive losses against the remainder. Thank you.

The sequence really does matter and people get it wrong all the time. If you apply the exclusion before carving out recapture you'll overstate what's excluded and that's a problem.

One thing that often gets confused: the Section 121 exclusion is based on your gain from appreciation, not gross proceeds. You calculate your adjusted basis — original purchase price plus any capital improvements, minus total depreciation taken — subtract that from the sales price, and that net number is your total gain. The recapture piece is just the depreciation portion of that gain carved out and taxed at a different rate.

Worth adding: improvements you made while it was your personal residence and while it was a rental both increase your basis. Keep all those receipts. A new roof or HVAC during the rental years goes on Form 4562 as an improvement and also raises your basis when you sell.

Have you confirmed your ownership period satisfies the two-year ownership test as well? The military extension applies to the use test, and most sources say it applies to ownership too, but verify that in Publication 523. If you've owned since 2017 you're clearly fine on ownership, just flagging it because sometimes people sell a property they inherited or received partway through and the ownership clock is different.

The married filing jointly exclusion is up to $500,000 and single is up to $250,000 — but while only one spouse needs to meet the ownership test, both spouses need to meet the use test if they file jointly, and the military suspension applies if either spouse is on qualified official extended duty. If you're married this could significantly increase how much gain you can exclude. Worth knowing before you assume you're only working with the single filer amount.

Darius D.

Author

We do file jointly so that's good news. My spouse was with me in the home those 2.5 years so we should be able to use the full joint exclusion.

When I sold my rental after a deployment stretch I used Taxr to check my numbers against Form 8949 and Schedule D before my CPA filed. I uploaded my depreciation schedules and it walked me through how the unrecaptured 1250 gain would appear on the Unrecaptured Section 1250 Gain Worksheet inside the Schedule D instructions — that worksheet is where the recapture amount gets calculated and fed into the tax computation. It flagged that I had an error in my total depreciation claimed across the years. Worth checking carefully.

Darius D.

Author

I didn't even know there was a specific worksheet for that inside the Schedule D instructions. I'll look for the Unrecaptured Section 1250 Gain Worksheet specifically.

The worksheet is easy to miss because it's embedded in the Schedule D instructions booklet, not a standalone form. The number from that worksheet ultimately feeds into Schedule D line 19, and once that line has an amount you figure your tax on the Schedule D Tax Worksheet rather than the Qualified Dividends and Capital Gain Tax Worksheet.

If the suspended losses on Form 8582 are large and your situation is complicated, consider whether this is a job for a CPA who specializes in military tax issues. Some installations have free tax assistance through the base legal office or VITA sites that handle military returns specifically. This sale has several moving pieces and an error on the recapture or the exclusion calculation can be costly.

Something worth double-checking: the depreciation you were "allowed or allowable" is what gets recaptured, not just what you actually claimed. If you forgot to take depreciation in some years on Schedule E, the IRS still treats it as if you did for recapture purposes. You can file Form 3115 to catch up on missed depreciation before the sale.

Darius D.

Author

This is a critical point I hadn't thought of. I want to confirm I took it every year before I close. My returns show Schedule E each year so I think I did but I'll verify the Form 4562 depreciable basis and annual amounts.

Form 3115 to claim missed depreciation is a change in accounting method and it goes on the return for the year you file it. The cumulative catch-up adjustment is called a Section 481(a) adjustment. Worth doing before you sell rather than after because it clears the allowed/allowable issue cleanly.

The rental period also affects your state return in some states. A few states don't conform to the federal Section 121 exclusion fully, and military-specific extensions under federal law don't always carry over to state law. Worth checking your state's rules separately, especially if you've moved states during the rental period.

Darius D.

Author

Good point. I'm selling in a different state from where I'm currently stationed so I'll need to check both states' rules on this.

Timing the sale within the same tax year as other large deductions can help absorb any taxable gain that isn't excluded or offset by passive losses. If you have significant passive losses from other rental properties, those can also offset the remaining taxable gain from this sale in the same year. Passive loss rules treat a full disposition differently from ongoing rental activity.

Before my own PCS-related home sale I uploaded my HUD-1 and several years of Schedule E to Taxr and it prepared a draft gain calculation worksheet showing each component — basis, improvements, depreciation, the excludable amount, and the recapture — so I could see the full picture and ask my enrolled agent targeted questions rather than starting from scratch. Really cut down the time I spent with her. The enrolled agent then confirmed the numbers and filed.

Darius D.

Author

Prep work like that is what I need to get done before I go into my CPA appointment. Having the numbers organized by component will make that meeting much more productive.

To summarize the sequence since a few people touched on it: (1) Calculate total gain — adjusted sale price minus adjusted basis. (2) Carve out unrecaptured Section 1250 gain equal to total depreciation claimed, taxed at its own rate using the worksheet in the Schedule D instructions. (3) Apply Section 121 exclusion to the remaining appreciation gain up to your limit. (4) Any suspended losses from Form 8582 offset whatever taxable gain is left after steps 1 through 3. Steps matter.

This is the clearest walkthrough of the order I've seen. The passive losses in step 4 are the last piece, but they aren't capped at what's left taxable after the exclusion and recapture — once the whole property is sold to an unrelated party, any excess offsets your other income too.

Also worth flagging: selling costs — real estate commissions, title fees, transfer taxes — reduce your amount realized, which lowers total gain before you even get to the exclusion. People sometimes forget those and overstate the gain going into the calculation.

Yes, and repairs done specifically to prepare the house for sale can sometimes be treated as selling costs too, depending on the facts. That's worth asking your CPA about since it's fact-specific.

You mentioned you've been renting since 2020. Make sure you have records of when the property was converted from personal use to rental use, because that conversion date sets the depreciable basis and starts the depreciation clock. If you had a gap between moving out and finding a tenant, the property is placed in service when it was ready and available for rent, not necessarily when the first tenant moved in.

Darius D.

Author

I do have that date documented from when I listed it. Good reminder to have that ready for my CPA along with everything else.