I want to sell my house urgently — what are the tax consequences I need to know first?

I want to sell my house urgently and I'm trying to figure out the tax side before I sign anything. I've lived here as my primary residence for about 3.5 years, bought it in 2021. No rental history. I've heard there's some exclusion that could wipe out the gain but I don't know the rules around it or whether I qualify. I also converted part of the basement to a home office for a couple years, so I took some depreciation. Now I'm worried about depreciation recapture on top of everything else. I already looked at my closing docs to estimate the gain and it's not trivial. Can someone walk me through how the Section 121 exclusion works, whether I'd qualify, and what the depreciation recapture piece means for my actual tax bill?

33 comments

The Section 121 exclusion lets you exclude gain from the sale of your main home if you owned and lived in it as your primary residence for at least 2 of the 5 years before the sale. Single filer the exclusion is one amount, married filing jointly it's doubled — the IRS instructions for Schedule D walk through the limits. At 3.5 years you should clear the ownership and use tests with room to spare, so the bulk of your gain may be excludable. The piece that doesn't get excluded is any depreciation you claimed after May 6, 1997 on the home office portion. That recaptured depreciation gets taxed separately, generally at a maximum rate — check Publication 523 on irs.gov for the exact mechanics.

Omar K.

Author

So the home office depreciation is basically carved out and taxed no matter what? Even if the total gain would otherwise be under the exclusion limit?

Correct. The depreciation you claimed on the business-use portion is recaptured and taxed as unrecaptured Section 1250 gain. The exclusion doesn't shelter it. The amount is whatever you deducted on Form 4562 and carried to your Schedule E or Schedule C over those years.

How much depreciation are we talking? If you only used a small corner of the basement as the home office, the deductible percentage of the home's basis would be small and the recapture exposure might be modest. The recapture amount is literally just the total depreciation you claimed on that square footage over the years you took it.

Omar K.

Author

Probably two full years of deductions. The basement room was maybe 10% of total square footage. So not huge but not nothing either.

One thing worth confirming: did you actually take the depreciation deduction, or did you just think about it? The IRS recaptures depreciation "allowed or allowable" — meaning even if you forgot to take it on your return, they can still treat you as if you did. If you didn't take it and want to reconcile before you sell, you'd file Form 3115 to catch up. Worth checking your old Schedule C or Form 8829 lines.

Omar K.

Author

Yeah I did take it both years, it showed up on my Form 8829 attached to Schedule C. So I know the number.

Good that you have the records. Pull those two 8829s and add up the depreciation deduction lines — that total is your recapture exposure when you sell.

Before my own home sale last year I uploaded my purchase closing disclosure, old Form 8829s, and my estimated sale price to taxr.ai and it calculated my adjusted basis, estimated the excludable gain, and separated out the unrecaptured 1250 piece. Really helped me see the net number before I committed to a price. Main takeaway for you: your basis isn't just what you paid. Add closing costs you capitalized at purchase, any improvements you made, then subtract the depreciation you claimed. That adjusted basis is what the gain is measured against.

Omar K.

Author

That adjusted basis piece is something I keep forgetting — I definitely did some work on the house. What counts as a basis-adding improvement vs just maintenance?

Improvements that add value or extend useful life — new roof, addition, HVAC replacement, finished basement — increase basis. Routine repairs like painting or fixing a leaky faucet don't. Keep receipts for anything structural or significant.

Urgency is fine but don't let the timeline pressure you into skipping the basis calculation. I've seen people sell fast, get a 1099-S from the title company, and then panic because they didn't know what their actual gain was. The 1099-S goes to the IRS too so you have to report the sale on Schedule D even if the gain is fully excluded under Section 121.

Wait, you still have to file Schedule D even if the whole gain is excluded?

You have to report the sale if you receive a Form 1099-S. If the gain is fully excluded and you didn't get a 1099-S, you may not need to report it — but most closings generate one. Play it safe and report it, showing the exclusion on Form 8949 with code H.

The two-out-of-five-year rule is worth double-checking in your specific case. The 5-year lookback window runs from the date of sale, not from when you bought it. So if you haven't lived there for a continuous stretch — say you moved out for a year and rented it — the count changes. You said no rental history which helps, but make sure the 24 months of use are within that window.

Omar K.

Author

Lived there continuously since I bought it, so that should be clean.

Something a lot of people miss: if you used any portion of the home for business in the year of sale, you may need to allocate the gain between the residential and business portions separately. The Section 121 exclusion applies only to the residential portion. The IRS changed the rules on this for "within the home" offices (meaning the office is inside the dwelling, not a separate structure), and those now qualify for the exclusion too — unlike a detached structure used for business. Since your basement office is inside the home you should be in the better category, but confirm with IRS Publication 523.

When I sold a rental a few years back (different situation, I know) I gave Taxr my Schedule E history and my cost basis worksheet and it flagged that I'd under-reported depreciation in one year, which would have changed my recapture number. For a primary home with a home office component the same kind of check applies — your cumulative depreciation claimed has to be accurate before you can trust the recapture figure. Worth running through your four 8829 returns if you can find them.

Omar K.

Author

You said four — I only took it two years. Am I missing something or were you just speaking generally?

Speaking generally from my own situation. For you it's just the two years. Point stands though — add up those two 8829 depreciation lines and that's your number.

What's your expected sale timeline? If you're closing before year-end that affects which tax year the gain lands in and therefore your planning window for estimated payments. Capital gain on the recapture piece is taxable in the year of sale.

Omar K.

Author

Probably within 60 days. So this tax year for sure.

Don't forget state taxes. The Section 121 exclusion is a federal rule. Some states conform to it, some have their own limits or don't allow it at all. If you're in a state with an income tax you need to check whether the exclusion applies there too or whether you owe state tax on the full gain.

Does anyone know whether the exclusion amount is the same for all filers or if it scales?

It's fixed by filing status. Single filers get one limit, married filing jointly get double that. The IRS hasn't changed the base amounts in a long time. See Publication 523 for the exact figures — I won't quote them here because the keyword in this thread didn't ask about the specific dollar amount.

Went through a similar urgency sale two years ago and I had Taxr read my closing disclosure alongside my old tax returns. It put together a basis schedule showing every year's depreciation, the improvement costs I'd entered, and what the net gain would be after the exclusion. Helped me decide whether to try to close in this calendar year or wait — in my case the recapture wasn't enough to change the year strategy, but at least I knew. Main thing: get your numbers lined up before you sign a purchase agreement so you're not surprised at closing.

Omar K.

Author

This is what I really needed to hear. I'll pull together my closing docs, the two 8829s, and my improvement receipts and do the math before I commit to a number.

One procedural note: when you file for the year of sale, you'll report on Form 8949 and Schedule D. The Section 121 exclusion shows up on Form 8949 as code H with the excluded amount as a negative adjustment in column (g). The unrecaptured Section 1250 gain from the home office depreciation flows separately and is taxed at a different rate than regular long-term capital gain. Your Form 1040 instructions for Schedule D will walk through the unrecaptured 1250 worksheet line by line.

Omar K.

Author

So the recapture doesn't just get lumped with the excluded amount — it has its own line treatment on the return?

Exactly. The exclusion is entered as a negative adjustment on Form 8949 with code H, but the recapture is carved out first and taxed at its own rate. You can't exclude it. It's a small amount for most people with a home office but it won't be zero.

If your gain after the exclusion and after recapture is still significant, run an estimated tax calculation for the quarter the sale closes. Underpayment penalties can add up if a large capital gain lands in Q3 or Q4 and you haven't adjusted withholding or made an estimated payment. The Form 2210 instructions cover the thresholds.

To get the full picture before closing: calculate your adjusted basis (purchase price plus closing costs plus improvements minus depreciation claimed), subtract from expected net sale price after selling costs, compare to the exclusion limit for your filing status, and isolate the recapture amount. Those are the four numbers you need. Everything else on the return flows from them.

Omar K.

Author

This is a clean way to frame it. I think I have all the inputs now — I just need to sit down and do the math. Thank you all, genuinely helpful.