Selling a Home Used Partly for Business: How the Home Office Affects Your Exclusion
Selling a home that has been used partly for business creates a tax question that surprises many owners: does the home office disqualify part of the gain from the $250,000/$500,000 exclusion under IRC 121? The answer depends on two factors: where the office was located (inside the home vs. a separate structure) and whether depreciation was claimed. For offices within the home (a dedicated room or area), the IRS simplified the rules starting in 2003: the entire home, including the office portion, qualifies for the Section 121 exclusion, BUT depreciation allowed or allowable after May 6, 1997 must be recaptured as unrecaptured Section 1250 gain at a maximum 25% rate. For offices in a separate structure (a detached building), the business portion is treated as a different property and doesn’t qualify for the exclusion at all, meaning you must allocate the gain and pay capital gains tax on the business portion. The simplified home office deduction method ($5/sq ft, max 300 sq ft) claims zero depreciation, so choosing that method eliminates the recapture problem entirely.
Home sale with business use, rules summary:
| Office Location | IRC 121 Exclusion | Depreciation Recapture |
|---|---|---|
| Within the home (room, area) | Full gain eligible for exclusion | Must recapture depreciation taken after 5/6/1997 at max 25% |
| Separate structure (detached building) | Business portion doesn’t qualify for exclusion | Full gain on business portion taxable (LTCG + depreciation recapture) |
IRC 121 basic requirements:
| Requirement | Rule |
|---|---|
| Ownership test | Owned the home for at least 2 of the last 5 years |
| Use test | Used as principal residence for at least 2 of the last 5 years |
| Exclusion amount | $250,000 (single), $500,000 (MFJ) |
| Frequency | Generally once every 2 years |
Depreciation recapture on home office (within the home):
| Element | Details |
|---|---|
| What’s recaptured | Depreciation allowed or allowable after May 6, 1997 |
| Tax rate on recapture | Maximum 25% (unrecaptured Section 1250 gain) |
| “Allowable” means | Even if you did NOT claim the depreciation, you must recapture it if you were entitled to it |
| Simplified method users | $0 depreciation claimed = $0 recapture |
How does a home sale work with a home office?
What are the two methods for calculating the home office deduction?
The simplified method allows $5 per square foot of your home used for business, up to 300 square feet, for a maximum deduction of $1,500. The regular method calculates actual expenses (mortgage interest or rent, property taxes, utilities, insurance, repairs, depreciation) based on the percentage of your home used exclusively and regularly for business. The regular method requires more recordkeeping but often produces a larger deduction, especially for larger office spaces or expensive homes. Under the regular method, the home office deduction cannot create a business loss, but excess deductions carry forward to the next year. Employees working from home cannot claim the home office deduction under current law (the deduction was suspended for employees by the TCJA through 2025), but self-employed individuals and independent contractors remain eligible.
What expenses qualify under the regular home office deduction method?
Direct expenses (used solely for the office, like painting the office room) are fully deductible. Indirect expenses (benefiting the entire home) are deductible based on the business-use percentage: mortgage interest or rent, property taxes, homeowner’s insurance, utilities, general repairs, and depreciation of the home. The business-use percentage is typically calculated as the square footage of the office divided by total home square footage. Unrelated expenses (like lawn care or kitchen remodeling) are not deductible. The home office deduction cannot create a business loss under the regular method; excess deductions carry forward to future years.
Related guides:
-
Converting Rental Property to Personal Use (or Vice Versa): Tax Rules and Basis Adjustments
-
I’m a Canadian selling my US rental. What is depreciation recapture?
-
Selling Business Real Estate: Capital Gains, Depreciation Recapture, and 1031…
-
Depreciation Recapture: What Happens When You Sell Business Assets (Sections …
Can you claim a home office deduction if you also rent office space?
Yes, having a separate office doesn’t automatically disqualify your home office deduction as long as your home office meets the regular and exclusive use test under IRC 280A. The home office must be your principal place of business or a place where you regularly meet clients, even if you also maintain another workspace. Under the Soliman test from the Supreme Court decision, a home office qualifies as your principal place of business if you perform substantial administrative or management activities there and have no other fixed location for those activities. The simplified method allows a $5 per square foot deduction up to 300 square feet ($1,500 maximum), while the regular method requires tracking actual expenses and calculating the business-use percentage of your home.
Start with a Diagnostic: a CPA licensed in the US and Canada reads your file and tells you in writing what's wrong and how to fix it, three to four business days after you finish the questions. The report is $250. If you hire us for any work after that, you get the $250 back as a discount on that work. Or send us your return or your letter and get a fixed price, free.
One or two plain-English guides a week on US-Canada tax. No spam, unsubscribe anytime.
Done. The next guide will land in your inbox.
Yarik Yarosh, CPA. "Selling a Home Used Partly for Business: How the Home Office Affects Your Exclusion." Blue Cloud CPA, September 5, 2026. https://bluecloudcpa.com/guides/small-business-selling-home-used-for-business-tax-rules
This guide is general information, not tax advice for your specific situation. Which points apply, and how, depends on your facts.