Asset Sales

I sold my investment home in 2021. What all can I show as expenses from my closing statement? Can I include the mortgage payoff amount as expense? For e.g.

Total sale price = $100,000

Mortgage payoff = $50,000

Closing Cost = $5,000

Real Estate Commission = $3,000

Can I show total expense as $58,000 or will it be $8,000?