Get your taxes done using TurboTax

You have to recapture all the depreciation taken for the home office and then pay capital gains on the recaptured amount when the home is sold.  The recaptured depreciation is not included in any exclusion you are eligible to receive on the home sale.