Investors & landlords

put another way,  any gain (based on the reduced basis) is taxable up to the lesser of the gain or the depreciation taken.