You claimed the home office deduction for years, depreciating 10% of your house on Form 8829. Now you sell the place for a $180,000 profit — well under the $250,000 tax-free exclusion — and assume you owe nothing. Then your tax software spits out a bill for several thousand dollars anyway.
That bill is depreciation recapture, and it is the one part of your home-sale gain the Section 121 exclusion cannot touch. Here is how it works, how to calculate it, and the planning moves that keep it from blindsiding you.
The Section 121 Exclusion, in 60 Seconds
Before the bad news, the good news. If you owned and used your home as your principal residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain ($500,000 for most married couples filing jointly). You can generally claim the full exclusion only once every two years.
For most sellers, that wipes out the entire tax bill. A single filer who bought for $300,000 and sells for $450,000 has a $150,000 gain — fully excluded, zero tax. But that math changes the moment depreciation enters the picture.
The Carve-Out: Depreciation Comes Back as Taxable Gain
When you claim the home office deduction under the regular method, part of the deduction is depreciation on the business-use percentage of your home. That depreciation reduced your taxable income each year — and it also reduced your home's adjusted basis.
When you sell, the IRS requires you to carve out an amount of gain equal to the depreciation and pay tax on it. This portion is called unrecaptured Section 1250 gain, and it is taxed at your capital-gain rate up to a maximum of 25% — even if the rest of your gain is fully excluded under Section 121.
A Concrete Example
Say you bought your home for $300,000 (excluding land value complications for simplicity), used 10% of it exclusively and regularly as a home office for 10 years, and claimed $9,000 of total home-office depreciation over that period. You sell for $450,000.
- Total gain: $450,000 − ($300,000 − $9,000) = $159,000
- Depreciation portion: $9,000 — taxable as unrecaptured Section 1250 gain (up to 25%, so up to $2,250 in tax)
- Remaining $150,000: excludable under Section 121 — $0 tax
Your "$150,000 tax-free sale" actually costs you up to $2,250. Not catastrophic, but entirely avoidable with the right planning — and the number grows with bigger offices, longer holding periods, and pricier homes.
The "Allowed or Allowable" Trap
Here is the part that stings: the recapture amount is based on depreciation allowed or allowable. That means even if you qualified for the regular-method home office deduction but never bothered to claim depreciation — or your preparer skipped Form 8829 — the IRS still treats you as if you took it. You get the worst of both worlds: no annual tax benefit, but the full recapture bill at sale.
The only clean way around this is to have used the simplified method (more on that below), under which no depreciation is ever allowable.
Inside Your Home vs. a Separate Structure: Different Rules
The IRS draws a sharp line based on where your office sits, and the tax outcome differs dramatically.
Office Within Your Living Area: No Gain Allocation Needed
If your office is a room inside your dwelling unit — a spare bedroom, a converted den, attic space — you do not need to split the gain between the business part and the personal part of the home. The entire gain (minus the depreciation carve-out) qualifies for the Section 121 exclusion, and you do not report the sale of the business portion on Form 4797. This is true whether or not you were entitled to claim depreciation.
Office in a Separate Structure: You Must Allocate
If your office is in a structure separate from the dwelling unit — a detached garage converted to a studio, a backyard shed office, a guest house used exclusively for business — the rules flip. You must allocate the sale price, basis, and gain between the residence and the business structure. The gain allocable to the business portion is reported on Form 4797 and is not excludable under Section 121 at all.
That backyard office pod that felt like a lifestyle upgrade? It can convert a chunk of your otherwise tax-free home appreciation into fully taxable business gain. If you are weighing a detached office against a spare bedroom, put this on the scale.
The Simplified Method: Smaller Deduction, Zero Recapture
The IRS offers a simplified home office option: deduct $5 per square foot of office space, up to 300 square feet, for a maximum deduction of $1,500 per year. No Form 8829, no tracking actual expenses — and critically, no depreciation claimed, which means nothing to recapture when you sell.
For many filers, the trade-off favors simplicity:
- Simplified: up to $1,500/year off, minimal records, clean sale later.
- Regular: often a larger annual deduction (business percentage of mortgage interest, taxes, utilities, insurance, repairs, plus depreciation) — but with depreciation recapture waiting at sale, plus the bookkeeping burden.
When Does the Regular Method Still Win?
Run the numbers before defaulting either way. The regular method tends to win when your actual home expenses are high relative to the $1,500 cap — expensive markets with large mortgages and property taxes, or a genuinely large office percentage. A back-of-the-envelope test:
- Estimate your annual regular-method deduction (business use % × eligible expenses + depreciation).
- Subtract $1,500 (the simplified cap).
- Multiply the excess by your marginal tax rate — that is your yearly savings from the regular method.
- Compare the cumulative savings over your expected holding period against the eventual recapture tax (total depreciation × up to 25%).
If you will own the home for only a few more years, the regular method's extra annual savings often outweigh the recapture cost. If this is your "forever home" that you will eventually sell after decades of depreciation, the simplified method's clean exit looks better. Either way, you can switch methods year to year, so revisit the choice annually.
Recordkeeping That Pays Off at Sale Time
Whether you use the regular or simplified method, keep a small file — physical or digital — that your future self (or your executor) will thank you for:
- Square footage measurements of the office and the whole home, with the date measured.
- Each year's method choice and the return it appeared on (regular with Form 8829, or simplified).
- Total depreciation claimed to date under the regular method, running tally.
- Dates the space qualified — exclusive and regular business use only; a guest room that doubles as an office fails the exclusive-use test.
- Photos of the setup, which help substantiate exclusive use if ever questioned.
Home-office depreciation lives or dies on documentation. The deduction requires exclusive and regular use as your principal place of business (employees working remotely for an employer generally cannot claim it at all — it is for self-employed filers). Sloppy records risk losing the deduction on audit while keeping the recapture, since "allowable" depreciation does not require you to have claimed it correctly.
Five Mistakes That Cost Sellers Real Money
1. Assuming the exclusion covers everything. The $250,000/$500,000 exclusion covers appreciation — not previously deducted depreciation. Budget for the recapture tax when you estimate sale proceeds.
2. Skipping depreciation to "avoid" recapture. As covered above, unclaimed-but-allowable depreciation is still recaptured. If you are on the regular method, claim what you are entitled to; skipping it is pure loss.
3. Putting the office in a detached structure without understanding allocation. The separate-structure rule turns excluded gain into taxable gain. A bedroom office and a detached studio are taxed nothing alike at sale.
4. Forgetting state taxes. Many states conform to the federal treatment, but rates and exclusion rules vary. A sale that is mostly tax-free federally can still generate a state bill on the recaptured portion.
5. Losing track after switching preparers or software. Depreciation tallies get lost in transitions. Keep your own running total rather than trusting that a new preparer will reconstruct a decade of Form 8829s.
Keep Your Home Sale — and Your Books — Clean From Day One
The depreciation recapture surprise is really a recordkeeping failure: small annual numbers, scattered across years of returns, compounding into a sale-day bill nobody budgeted for. The fix is the same habit that protects every other part of your finances — tracking things once, clearly, as they happen.
As you manage your home office and plan for a future sale, maintaining clear financial records is essential. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.





