Selling AH - what about the legal costs?


Registered User
First time posting here so total novice with forums.

I was 10 years in my Affordable House last July. Paid 280,000 for it and market value was 370,000 at time of sale so 24.3% discount.

I am looking to sell this year and my house is valued at approx. 280k which I paid for it.
There is high demand in the area and if it went into a bidding war above the 280k I assume all profit goes to SDCC. However the question I have is, what about the costs of selling? Can that be deducted from the profit of sale before paying out to SDCC if for example I sold for 300k?