Investors & landlords

So in my case, I can deduct all $50,000 for sale expenses (service charge fee = $12.5k, closing fee = $2.5k, and repair cost = $35k) from the gross proceed?  I thank you all for the awesome replies.