Investors & landlords

I was expecting the recapture and when viewing the Form 4797 it shows it. But what doesn't appear anywhere is the cost of the improvements/assets purchased. It is stating a gain on the sale of $32,400 as it is not adding the cost of the improvements to the cost basis of the structure. It is showing a loss on the land of $555. So it is recapturing the depreciation taken on the structure and improvements without adding the cost of the improvements to the original purchase price of structure????