Yes, You may deduct the depreciation on the part of the duplex that was rented. The cost of repairs (ordinary and reasonable) such as repainting, fixing floors, replacing broken windows maybe fully-deductible (rented portion) in the year incurred. When you sell it, you must recapture the depreciation. Depreciation Recapture is assessed when the sale price of an asset exceeds the adjusted cost basis (original cost reduced by depreciation and increased by capital expenditures or improvements).