Selling a Home You Took the Home-Office Deduction On

Published: September 6, 2026 · Reading time: 10 min

TL;DR: Every home-office guide warns that depreciation gets recaptured when you sell, and stops there — which leaves most freelancers assuming their office somehow contaminates the whole sale. It doesn't. If the office was a room inside your home, Publication 523 says you do not allocate the gain between business and personal parts at all; the entire gain runs through the §121 exclusion, and only the depreciation is carved out by §121(d)(6) and taxed as unrecaptured §1250 gain at a maximum 25%. A separate structure — a detached studio or converted garage — is the case where allocation really does apply, and it is dramatically more expensive. Simplified-method years produce no recapture, because they allow no depreciation. And "allowed or allowable" means that skipping the depreciation deduction doesn't skip the tax — it just wastes the deduction.

The corpus of advice on this is oddly lopsided. Home-office articles mention recapture in a sentence and move on; capital-gains articles cover §121 and never mention home offices. The interaction — which is the thing an actual freelancer selling an actual house needs — falls between them.


The Rule Most People Don't Know Exists

Start here, because it resolves the anxiety that brought most readers to this page.

Before 2002, a home office genuinely did split the sale: you allocated the gain between the business portion and the residence portion, and only the residence portion got the exclusion. The final regulations under §121 changed that for offices inside the dwelling unit. Publication 523 now states it plainly:

If the part of your property used for business or to produce rental income is within your home, such as a room used as a home office for a business, you do not need to allocate gain on the sale of the property between the business part of the property and the part used as a home.

So a freelancer who used 12% of the house as an office for a decade does not lose 12% of the exclusion. The office's share of the appreciation is excluded along with everything else.

The contrast case matters just as much. For a structure that is not part of the dwelling unit, Pub 523 says the opposite:

You generally can't exclude gain on the separate portion of your property used for business or to produce rental income.

A detached backyard studio, a converted barn, a garage apartment — those are separate portions, and the business share of the gain is carved out and taxed. If you are choosing where to put a workspace and expect to sell the home eventually, that is a real and under-appreciated tax consequence of building the standalone studio.

What Actually Gets Taxed: Only the Depreciation

The carve-out is IRC §121(d)(6), and it is one sentence:

Subsection (a) shall not apply to so much of the gain from the sale of any property as does not exceed the portion of the depreciation adjustments (as defined in section 1250(b)(3)) attributable to periods after May 6, 1997, in respect of such property.

Pub 523 restates it for taxpayers:

You can't exclude the portion of gain equal to any section 1250(b)(3) depreciation adjustments allowed or allowable after May 6, 1997, which must be recaptured and reported under section 1250.

That amount is unrecaptured §1250 gain, taxed at a maximum 25% rate — higher than the 15% or 20% long-term capital-gain rates, lower than ordinary rates.

Notice what is not carved out: appreciation attributable to the office, the office's share of the sale proceeds, or anything else. Just the depreciation.

"Allowed or allowable" is the phrase that bites

The statute says depreciation adjustments, and Pub 523 spells out the consequence: allowed or allowable. You owe recapture on depreciation you were entitled to claim, whether or not you claimed it.

This produces the worst outcome available in this area: a freelancer who claimed the home office on the actual method but never filled in Form 8829's depreciation line gets no deduction in those years and recapture as though they had. If that is your situation, the answer is not to keep ignoring it — a Form 3115 change in accounting method is the mechanism for claiming missed depreciation.

Simplified-method years are genuinely free of it

The simplified method — $5 per square foot, 300 square feet maximum, $1,500 ceiling — allows no depreciation deduction. No depreciation allowed, none allowable, nothing to recapture.

That matters most for the common case nobody writes about: a mixed history. Eight years on the actual method and three on simplified produces recapture from the eight, and nothing from the three. You don't lose the simplified years' protection because you used the actual method earlier, and you don't escape the actual years by switching later. Each year stands on its own. See simplified vs. actual for the choice itself.


Worked Example: A Twelve-Percent Office, Sold in 2026

Priya bought her home in 2014 for $340,000$60,000 allocated to land, $280,000 to the building. She used 12% of it as a home office, on the actual method with depreciation, for eight years, then switched to the simplified method for the last three. She sells in 2026 for $600,000 with $36,000 of selling costs. She files single.

Step 1 — the depreciation. Only the building is depreciable, and only the business share, over 39 years:

Depreciable basis$280,000 × 12% = $33,600.00
Annual depreciation$33,600.00 ÷ 39 = $861.54
Eight actual-method years$6,892.31
Three simplified-method years$0.00

Step 2 — the gain.

Amount realized$600,000.00 − $36,000.00 = $564,000.00
Adjusted basis$340,000.00 − $6,892.31 = $333,107.69
Gain$230,892.31

Step 3 — apply §121. Priya owned and lived in the home well past the two-of-five-years test, so the exclusion is available.

The 25% figure is a ceiling, not a rate: unrecaptured §1250 gain is taxed at the lesser of 25% or the rate that would apply if it were ordinary income. Priya is in the 22% bracket in the year of sale, so 22% is what she actually pays — the cap never binds for her.

Carved out by §121(d)(6) — unrecaptured §1250 gain$6,892.31
Tax on it at her 22% rate (below the 25% ceiling)$1,516.31
Gain eligible for exclusion$224,000.00
Excluded (under the $250,000 single limit)$224,000.00
Total federal tax on the sale$1,516.31

A decade of home-office deductions, on a $230,892 gain, costs $1,516.31 at closing — or $1,723.08 for an otherwise identical seller whose ordinary rate in the sale year is at or above 25%, where the ceiling does bind. Either way it is a fraction of what the one-line warnings imply.

The same facts, in a detached studio

Change one thing — the office was a separate structure in the backyard rather than a room in the house — and the allocation rule applies:

Inside the dwellingSeparate structure
Business-allocated gainnot allocated$230,892.31 × 12% = $27,707.08
Unrecaptured §1250 gain at her 22% rate$1,516.31$1,516.31
Remaining business gain at the 15% long-term rate$20,814.77 → $3,122.22
Total federal tax$1,516.31$4,638.52

$3,122.22 more, on identical economics, because of where the desk was. The recapture piece is the same in both columns — what the separate structure adds is tax on the office's share of the appreciation, which the no-allocation rule would otherwise have excluded entirely.

Was the depreciation worth taking at all?

This is the question the standard advice answers backwards. The usual heuristic — "if you'll sell within a few years, use simplified to avoid recapture" — treats recapture as a penalty. Compare the rates instead:

  • Depreciation reduces Schedule C net profit, so it saves income tax and self-employment tax. At a 22% bracket that is roughly a 34.58% combined marginal rate.
  • Recapture is capped at 25% and carries no self-employment tax.

Priya's $6,892.31 of depreciation saved about $2,383.36 in tax across those eight years and cost $1,516.31 at sale — a net $867.05 ahead, before counting eight years of having the money. Even for a seller whose sale-year rate reaches the 25% ceiling, the cost is $1,723.08 and the spread is still positive at $660.28.

Deducting at ~35% and repaying at no more than 25% is a favorable spread, not a trap. The genuine reasons to prefer the simplified method are that it needs no basis records, no Form 8829, and no thirty-year paper trail — not recapture avoidance.


The Other §121 Rules That Still Apply

The home office doesn't suspend the ordinary requirements, and a freelancer planning a sale should check all of them:

  • Ownership and use. §121(a) requires that during the 5-year period ending on the sale date, the property was "owned and used by the taxpayer as the taxpayer's principal residence for periods aggregating 2 years or more."
  • The dollar limits. §121(b)(1) caps the exclusion at $250,000; §121(b)(2)(A) substitutes $500,000 for a qualifying joint return.
  • Once every two years. §121(b)(3) denies the exclusion if you already used it on another sale within the 2-year period ending on this one.
  • Nonqualified use. §121(b)(5)(A) provides that the exclusion "shall not apply to so much of the gain ... as is allocated to periods of nonqualified use" — periods after 2008 during which the property was not the principal residence of the taxpayer or spouse. This is aimed at rental-then-move-in patterns rather than home offices, but a freelancer who rented the place out before living in it needs to run it.

Records: The Part That Fails Years Before the Sale

Everything above is computed from documents that have to survive from the year you claimed the deduction to the year you sell — often two decades.

Keep, for as long as you own the home plus three years:

  • The purchase closing statement (original basis)
  • The land vs. building allocation — the tax assessment or appraisal used to split them
  • Every capital improvement invoice
  • Your Form 8829 Part III history, year by year, including which years used which method
  • Records of business-use percentage changes
  • The sale closing statement

The home-office records guide sets out the same file in more detail. The failure mode is not dramatic: it is a taxpayer who knows they had an office for "about ten years" and cannot produce the schedule, and therefore cannot prove which years were simplified.

Reporting

  • The excluded gain generally doesn't appear on the return at all — if you receive a Form 1099-S, or have gain you can't exclude, you report the sale on Form 8949 and Schedule D.
  • The unrecaptured §1250 gain is computed on the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions and taxed at up to 25%.
  • Form 4797 is the business-disposition form and is generally not how an inside-the-dwelling home office is reported — that is one of the practical benefits of the no-allocation rule. A separate structure used in business is the case where 4797 enters the picture.

This is the §1250 side of a subject the corpus otherwise covers only for equipment. Our depreciation recapture guide handles the §1245 counterpart — cameras, computers, vehicles — where recapture is ordinary income rather than a capped 25% rate. Same word, materially different tax.


Frequently Asked Questions

Do I have to split the sale of my home between business and personal use if I had a home office?

Not for an office inside your home — Pub 523 says you "do not need to allocate gain." Only the depreciation is carved out. A separate structure is different: the business portion generally can't be excluded.

How much of my gain is actually taxed because of the home-office deduction?

Only the post-May-6-1997 depreciation, under §121(d)(6), taxed as unrecaptured §1250 gain at a maximum 25%. The office's share of the appreciation is not carved out.

Does the simplified home-office method create depreciation recapture?

No — it allows no depreciation, so there is nothing to recapture. In a mixed history, only the actual-method years generate recapture.

What if I never actually claimed the depreciation — do I still owe recapture?

Yes. The standard is "allowed or allowable." If you were entitled to it and didn't take it, consider a Form 3115 to claim the missed depreciation rather than leaving the deduction unused.

Is it better to use the simplified method just to avoid recapture?

Usually not. Depreciation saves income tax and SE tax at a combined rate commonly in the mid-30s; recapture is capped at 25% with no SE tax. The spread favors deducting.


Authoritative References

Related reading: Form 8829 explained · Home-office records: what to keep · Simplified vs. actual home-office method · Home office vs. coworking space · Depreciation recapture (§1245) · Home-office carryover · Form 3115: changing accounting method · Schedule C Line 30: home office


The Number You Need in 2036 Is the One You File in 2026

Recapture is computed from a Form 8829 history and a land/building split you have to still possess a decade or two later — and the year-by-year record of which method you used is what decides how much of it is taxable. CentSense keeps your home-office records and receipts organized and retrievable long after the filing season they belong to, so the basis file exists when the closing statement finally arrives. Free tier includes 10 AI scans per month; Solo is $5/month for unlimited scanning.

Start free →


This guide is general education for U.S. freelancers and independent contractors filing for the 2026 tax year. It is not personalized tax advice. Home sales combine basis records, state tax, and sometimes rental history, and the worked example above is illustrative rather than a template; confirm your figures with a CPA or EA before you file.

Related reads

Continue learning with more tax and expense guides for freelancers.

Compare alternatives

See how CentSense stacks up to other expense and receipt tools for freelancers.