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?
This is a critical area where past tax choices intersect with the exclusion rules for selling a principal residence under Section 121. When you sell your main home in 2025, you may exclude up to USD 250,000 (single) or USD 500,000 (married filing jointly) of the gain from taxation. However, the portion of the home previously used exclusively and regularly for business via the home office deduction can complicate this exclusion.
### The General Rule for Principal Residence Exclusion (Section 121)
To qualify for the exclusion, you must meet both the ownership and use tests: you must have owned and used the property as your principal residence for at least two out of the five years leading up to the sale.
### The Impact of the Home Office Deduction
When you claimed the home office deduction (either as a self-employed individual on Schedule C or as an employee before the Tax Cuts and Jobs Act suspended the deduction for W-2 employees), you were essentially treating a portion of your home as a business asset. This business use creates a problem upon sale because the IRS requires you to 'un-do' or adjust the gain calculation for the business portion.
The Crucial Adjustment:
Any gain attributable to the portion of the home for which you claimed the home office deduction (either through depreciation or the simplified method) is not eligible for the Section 121 exclusion. This portion must be calculated separately and is subject to capital gains tax.
How to Calculate the Ineligible Gain:
- Determine the Business Portion: Calculate the percentage of the home used exclusively and regularly for business (e.g., 10% of the total square footage).
- Calculate Total Gain: Determine the total gain realized from the sale.
- Allocate Gain: The gain must be allocated proportionally between the residential portion and the business portion.
- Exclude the Residential Gain: You can exclude the gain attributable to the residential portion, provided you meet the ownership and use tests.
- Tax the Business Gain: The gain allocated to the business portion is taxable. This gain will be treated in one of two ways:
- If Depreciation was Taken: The gain up to the amount of depreciation previously claimed is taxed as ordinary income (depreciation recapture, per Section 1245).
- If Gain Exceeds Depreciation: Any further gain on the business portion is taxed as a long-term capital gain (if held long-term).
Example: A taxpayer sells a home with a USD 200,000 total gain. They used 10% of the home as an office and claimed USD 15,000 in depreciation over the years.
- Residential Portion (90%): Gain is eligible for exclusion (up to the USD 500,000 limit).
- Business Portion (10%): Gain allocated to this portion is subject to tax. The first USD 15,000 of this gain is taxed as ordinary income (recapture). Any remaining gain on that 10% is taxed as capital gains.
Recommendation for 2025: If you are planning to sell a primary residence that was used for business, you must calculate the business use percentage and account for past depreciation when reporting the sale on Form 8925 (Part of Schedule D filing).
This rule applies even if you are now using the Simplified Option for the home office deduction, as the depreciation is deemed to have occurred.
Sources
No spam. Just this answer, straight to your inbox.