$Missed Deductions

How does selling a home with a home office affect my exclusion?

Home Buyingintermediate3 answers · 5 min readUpdated February 28, 2026

Quick Answer

You can still claim the full $250,000/$500,000 capital gains exclusion when selling a home with a home office, but you must pay depreciation recapture taxes on any depreciation claimed. For example, if you claimed $8,000 in depreciation, you'll owe about $2,000 in recapture taxes even if your $80,000 gain is otherwise excluded.

Best Answer

RK

Robert Kim, Tax Return Analyst

Best for homeowners selling their primary residence after claiming home office deductions

Top Answer

Your capital gains exclusion remains fully available


Good news: using part of your primary residence as a home office doesn't reduce your $250,000 (single) or $500,000 (married filing jointly) capital gains exclusion. However, you'll still face depreciation recapture taxes on any depreciation you claimed through the actual expense method.


The key distinction is between the primary residence portion (eligible for exclusion) and the business use portion (subject to recapture). The IRS doesn't require you to allocate the exclusion based on square footage or reduce it proportionally.


Example: $150,000 gain with home office depreciation


Tom and Lisa (married) bought their home for $500,000 in 2020. Lisa used 250 sq ft of their 2,500 sq ft home (10%) as a home office and claimed actual expenses. They sold in 2026 for $650,000.


Depreciation claimed (6 years):

  • Annual depreciation: $500,000 × 10% ÷ 39 years = $1,282
  • Total depreciation: $1,282 × 6 years = $7,692

  • Sale calculation:

  • Sale price: $650,000
  • Adjusted basis: $500,000 - $7,692 = $492,308
  • Total gain: $650,000 - $492,308 = $157,692

  • Tax treatment:

  • Depreciation recapture: $7,692 × 25% = $1,923
  • Remaining gain: $157,692 - $7,692 = $150,000
  • Capital gains tax: $0 (covered by $500,000 MFJ exclusion)
  • Total tax owed: $1,923

  • Requirements to qualify for the exclusion


    You must still meet the standard Section 121 requirements:

  • Ownership test: Owned the home for at least 2 of the 5 years before sale
  • Use test: Used the home as your primary residence for at least 2 of the 5 years before sale
  • Frequency test: Haven't used the exclusion on another home in the past 2 years

  • Home office use doesn't affect these requirements as long as the home remained your primary residence.


    Different rules for separate structures


    If your home office was in a separate structure (like a detached garage or shed), different rules may apply. The IRS may treat this as a separate property, potentially disqualifying that portion from the exclusion entirely.


    What you should do


    Before selling, gather all Forms 8829 to calculate total depreciation claimed. If you used the simplified method ($5 per square foot), you have no depreciation recapture concerns. Consider timing the sale with lower-income years to minimize the impact of recapture taxes. Use our refund estimator to project your total tax liability from the sale.


    Key takeaway: Your capital gains exclusion remains fully available when selling a home with a home office, but expect to pay 25% tax on any depreciation previously claimed.

    *Sources: IRC Section 121, IRS Publication 523*

    Key Takeaway: The full capital gains exclusion remains available, but you'll pay 25% tax on depreciation recapture even if your overall gain is excluded.

    Capital gains exclusion availability by home office method and property status

    SituationExclusion AvailableDepreciation RecaptureComplexity Level
    Primary residence, simplified methodFull $250K/$500KNoneSimple
    Primary residence, actual methodFull $250K/$500K25% on depreciation claimedModerate
    Converted to rental, any methodProrated by personal use years25% on all depreciationComplex
    Separate structure officeMay be reduced25% on depreciation claimedComplex

    More Perspectives

    MW

    Michelle Woodard, Tax Policy Analyst

    Best for those who used a home office, then moved and converted the property to rental before selling

    Complex rules for converted rental property


    If you moved out and rented your former primary residence after using it as a home office, the capital gains exclusion rules become more restrictive. You can only exclude gain attributable to periods of personal use, not rental use.


    Example: 3 years personal use, 2 years rental


    David used his home as primary residence with home office from 2019-2022, then moved and rented it out 2022-2024 before selling.


    Exclusion allocation:

  • Total ownership: 5 years
  • Personal use: 3 years (2019-2022)
  • Rental use: 2 years (2022-2024)
  • Exclusion available: $250,000 × (3÷5) = $150,000

  • Depreciation issues:

  • Home office depreciation (3 years): Subject to recapture
  • Rental depreciation (2 years): Subject to recapture
  • Both reduce available exclusion

  • Post-2008 rules are stricter


    For properties converted to rental after 2008, you cannot exclude gain attributable to depreciation claimed during rental periods. This is separate from and in addition to home office depreciation recapture.


    Key takeaway: Converting your former home office to rental property significantly complicates the exclusion calculation and may reduce the benefit substantially.

    Key Takeaway: Converting to rental property after home office use creates complex allocation rules that may significantly reduce your available exclusion.

    RK

    Robert Kim, Tax Return Analyst

    Best for homeowners who used the simplified $5 per square foot method for their home office deduction

    No depreciation recapture with simplified method


    If you used the simplified method for your home office deduction (claiming $5 per square foot up to 300 sq ft annually), you have no depreciation recapture concerns. The simplified method doesn't allow depreciation deductions, so there's nothing to recapture upon sale.


    Example: Clean home sale with simplified method


    Maria used 200 sq ft as a home office for 4 years, claiming the simplified method:

  • Annual deduction: 200 sq ft × $5 = $1,000
  • Total claimed over 4 years: $4,000
  • Depreciation claimed: $0

  • Sale consequences:

  • Full capital gains exclusion available: $250,000
  • Depreciation recapture: $0
  • No additional complications

  • Why this matters for your sale


    Choosing the simplified method over actual expenses means:

  • Lower annual deductions during business use
  • Simpler record-keeping requirements
  • No depreciation recapture upon sale
  • Full exclusion availability without complications

  • Many homeowners find the simplified method provides the best balance of tax benefits and simplicity, especially if they plan to sell within a few years.


    Retroactive method changes not allowed


    You cannot change from actual expense method to simplified method retroactively to avoid recapture. The IRS requires consistency in the method used each year.


    Key takeaway: Using the simplified home office method eliminates all depreciation recapture concerns, allowing you to claim the full capital gains exclusion without complications.

    Key Takeaway: The simplified method creates no depreciation to recapture, making home sales much cleaner and simpler from a tax perspective.

    Sources

    capital gains exclusionhome office deductionhome salesection 121 exclusion

    Reviewed by Robert Kim, Tax Return Analyst on February 28, 2026

    This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.