Home sale capital gains exclusion after moving for job and renting out condo — does partial exclusion apply?

Hoping someone here has dealt with this. I bought a condo in 2019, lived in it as my main home for about 2.5 years, then got relocated for work in late 2021. Couldn't sell at the time so I rented it out. Now I'm selling in 2025 and the gain is significant. I know the standard home sale capital gains exclusion requires 2 years of ownership and 2 years of use in the last 5, but I've been renting it out the whole time since the move so I don't hit 2 years of residence in the 5-year lookback window anymore. Someone mentioned a partial exclusion for job-related moves but I'm not sure if I actually qualify or how to calculate it. Also not sure what forms I need or how the rental depreciation I took figures into this. Any guidance appreciated.

32 comments

Did you check whether your move to the new job location qualifies you for the partial exclusion under Publication 523? The IRS does allow a partial exclusion when the main reason for the sale is a change in workplace location, but there are specific tests around distance and timing. Have you looked at that eligibility test?

Hannah P.

Author

I started reading Publication 523 but got confused on where my situation falls. The move was definitely job-driven — my employer relocated me and I had no real choice. I just don't know how the partial calculation actually works once I know I qualify.

The partial exclusion scales the full exclusion amount by a fraction — roughly the shorter of your actual use period or the period since the last exclusion, divided by 24 months. So if you lived there about 30 months total you'd already be over the 24-month threshold and might just get the full exclusion. Wait, did you actually add up your residence months carefully against the 5-year window?

Hannah P.

Author

That's the part I keep second-guessing. I moved out in late 2021 so by the 2025 sale date the 5-year window opens in 2020. I was living there from 2019 through late 2021, which is roughly 2 years of residence inside that window. It's right at the edge and I'm worried about being slightly short.

The 24 months don't have to be consecutive, that's worth remembering. Publication 523 is clear that the ownership and residence periods just need to total 24 months within the 5 years before the sale — not a single unbroken block. So count every month carefully.

Are you accounting for the depreciation recapture piece separately? That part doesn't get excluded no matter what. I had a very similar situation last year — sold a rental that used to be my primary home — and I uploaded my closing disclosure and the depreciation schedules from my prior returns to taxr.ai. Taxr pulled out the accumulated depreciation, flagged that it gets taxed at the unrecaptured Section 1250 rate and can't be sheltered by the home sale exclusion, and drafted a summary showing which part of my gain was excludable and which part wasn't. Saved me from assuming the whole gain was covered.

Hannah P.

Author

I hadn't separated those out at all. So the depreciation I claimed during the rental years comes back as a separate taxable piece even if the rest of the gain qualifies for exclusion?

Yes exactly. The unrecaptured Section 1250 gain — meaning the depreciation you deducted — gets reported and taxed separately. The exclusion only shelters the remaining appreciation gain. Publication 523 and the Schedule D instructions both address this. You need to know your total accumulated depreciation from the rental period before you can figure the net excludable amount.

What was the distance between your old home and the new job location? The workplace change test in Publication 523 looks at whether the new job is at least a certain distance farther from the old home than the old job was. If you don't clear that threshold you'd have to rely on the partial exclusion based on a health or unforeseen event reason instead.

Hannah P.

Author

The new office is several states away so distance is not an issue. The relocation was mandatory, not voluntary. I think I'm fine on the workplace change test, just nervous about the residence month count.

To figure the partial exclusion amount you take the maximum exclusion (for a single filer, the number is in Publication 523 — don't want to guess the figure here) and multiply it by the fraction: months of qualifying use or months since last exclusion, whichever is less, over 24. So if you have, say, 22 qualifying months inside the window, you'd get 22/24 of the full amount. The instructions for Form 8949 and Publication 523 both walk through how to report it.

Worth double-checking whether you received a Form 1099-S at closing, because that changes your reporting obligation. Even if your entire remaining gain after depreciation recapture is excluded, you still have to report the sale on Form 8949 if a 1099-S was issued. I had a similar partial-exclusion situation and fed my 1099-S, the depreciation schedule and my closing statement into Taxr — it mapped the gain between the excludable portion and the recaptured depreciation piece, put the right adjustment code in column (f) and the excluded amount as a negative in column (g). Helped me see the full picture before I handed anything to my CPA.

Hannah P.

Author

Yes, I will definitely get a 1099-S. So I report on Form 8949 regardless, use code H in column (f), and show the excluded gain as a negative number in column (g). And the depreciation recapture flows separately on Schedule D. Is that right?

Yes, that's the basic structure. Code H in column (f) on Form 8949 for the excluded portion, excluded gain as a negative in column (g). The unrecaptured Section 1250 gain from the rental period is a separate line on the Schedule D unrecaptured gain worksheet — it doesn't go into the same box as your regular long-term gain. Your CPA or the Schedule D instructions can confirm the exact worksheet lines for your numbers.

Did you file Form 4562 each year you rented it out? Your accumulated depreciation has to match what was actually claimed on those prior returns, not just what you think you should have claimed. The IRS looks at depreciation allowed or allowable — meaning even if you forgot to take it, the recapture amount is still based on what you were entitled to deduct.

Hannah P.

Author

I did file 4562 each year through a preparer so I should have records. I'll pull the prior year Schedule E's to get the total depreciation claimed. Good point about allowed vs. allowable — I didn't realize it could bite you even if you underclaimed.

The holding period question is easy here — you've owned since 2019 so you're well past a year and the gain is long-term. That's box D on Form 8949 Part II assuming the 1099-S reports basis or box F if it doesn't. Wait, actually for a home sale reported on a 1099-S you'd use box F in Part II per the Form 8949 instructions.

Yes, box F is right for a main home sale reported on Form 1099-S, per the 2025 Form 8949 instructions. Part II, box F, then code H and the excluded gain as a negative in column (g). Long-term is correct since the holding period is well over a year.

How long was the total rental period? I ask because if the rental use and personal use overlap in a complicated way there can also be a question about allocating basis adjustments. For a straight primary-then-rental situation like yours it's cleaner, but it's worth confirming you're not in a mixed-use scenario for any of those years.

Hannah P.

Author

Straight conversion — I lived there, then rented it out 100%, no personal use days during the rental period. So I think basis allocation is simpler for me.

Don't forget your adjusted basis isn't just purchase price. Add closing costs from the original purchase, any capital improvements made while you owned it, then subtract the accumulated depreciation. That adjusted basis is what you compare to proceeds to get your total gain before splitting it into the excludable and recaptured pieces.

Is there any scenario where someone in this situation wouldn't qualify for at least a partial exclusion on the job relocation reason?

Yes — if the sale isn't within a reasonable time after the job change, or if the person already excluded gain on another home sold within the 2 years before this sale, they'd lose eligibility. Publication 523 has the full eligibility test with all the steps.

For the depreciation recapture piece: that gain is taxed at the unrecaptured Section 1250 rate, which is capped — the specific rate is in the Schedule D instructions and Publication 550, I'd look it up rather than have someone quote a figure that might be for the wrong year. It does not get the same treatment as regular long-term capital gain and cannot be excluded under the home sale rules.

Hannah P.

Author

Got it — so I need three numbers going into this return: total gain, depreciation recapture portion (taxable regardless), and the remaining gain which may be partly or fully excluded. Then Form 8949 and Schedule D handle the reporting.

Has anyone here dealt with a state that doesn't conform to the federal home sale exclusion? Depending on where the condo is located you might owe state tax even on the federally excluded amount.

Yes, some states have their own exclusion limits or no exclusion at all. That's a separate calculation from the federal Form 8949 and Schedule D work. Worth a quick check on the state tax authority's rules before assuming the exclusion wipes out state tax too.

To confirm an earlier point — the 2025 Form 8949 instructions say that if you received a Form 1099-S you must report the sale on Form 8949 even if no taxable gain results after the exclusion. You can't skip the form just because the net federal tax is zero. That's clear in the Instructions for Form 8949 and in Publication 523 under Reporting Your Home Sale.

Given the size of the gain and the depreciation recapture involved, would you consider working with an enrolled agent or CPA on this? The partial exclusion calculation, the recapture worksheet, prior year depreciation reconciliation — these are all manageable but there's real money at stake if the residence month count or the recapture figure is off.

Hannah P.

Author

Yes, I'm planning to bring this to a CPA who handles real estate transactions. I want to go in with the numbers already pulled together — gain calculation, depreciation total, residence month count — so we can focus the meeting on the judgment calls rather than the basic arithmetic.

One thing I'd flag: if you ever made any capital improvements during the rental period, those get added to basis and also affect the depreciation schedule since they'd have their own depreciation streams. Make sure your CPA reconciles all of it — purchase price, improvements, depreciation on the structure, depreciation on any improvements — before landing on adjusted basis.

Hannah P.

Author

I did replace the HVAC unit during the rental period and my preparer did depreciate it separately. So yes, there's a second depreciation stream to include in the recapture total. Good catch.