If I sell my primary residence which I also used partly as an office, how does the home office deduction history affect my capital gains exclusion in 2025?
Using a portion of your primary residence exclusively and regularly for business purposes (qualifying for the home office deduction on Schedule C) creates a complication when you later sell that home and attempt to claim the Section 121 exclusion for capital gains exclusion.
### The Section 121 Exclusion
Generally, homeowners can exclude up to USD 250,000 (single) or USD 500,000 (married filing jointly) of gain realized on the sale of their main home, provided they meet the ownership and use tests (lived in and owned the home for at least two of the five years preceding the sale).
### The Impact of Home Office Use
When part of the home was used for business and the home office deduction was claimed in prior years, the IRS mandates a reduction in the capital gains exclusion due to depreciation recapture.
- Depreciation Recapture Requirement: Any depreciation taken for the home office deduction during the period the property was used as a principal residence must be recaptured as ordinary income upon sale, regardless of whether the gain falls below the exclusion limit. This recapture is taxed at a maximum rate of 25%.
- Exclusion Reduction: The portion of the gain attributable to the business use (the area that was depreciated) is not eligible for the Section 121 exclusion. You must calculate the gain allocated to the business use separately.
### Calculation Example (Illustrative)
Suppose you sell your home for a total gain of USD 400,000. The home office occupied 10% of the total square footage, and over the years, you claimed USD 30,000 in total home office depreciation.
- Gain Subject to Recapture/Not Excludable: The gain allocated to the 10% business portion (or at least the USD 30,000 depreciation claimed) is removed from the exclusion calculation.
- Recapture Tax: The USD 30,000 depreciation claimed must be reported on Form 4797 and taxed as ordinary income (at up to 25%).
- Remaining Gain: The remainder of the gain (USD 400,000 minus the recaptured portion) is tested against the exclusion limits (e.g., USD 500,000 for MFS). In this case, the remaining gain is likely fully excludable.
Crucial Point: If you fail to claim the home office deduction in prior years, even if you qualified, you avoid the depreciation recapture and the reduction of the Section 121 exclusion upon sale.
IRS Reference: The rules governing the exclusion are found in IRC Section 121. The requirement to recapture depreciation when a residence is sold after business use is explicitly detailed in IRS guidance related to the home office deduction and Section 121.
No spam. Just this answer, straight to your inbox.