Primary home capital gains

In 2021 I sold a primary residence i held for 6 months. I am claiming the (523??) Exclusion because we moved for a job. 

 

On December 1st I am selling our home again that we held for 6 months. I am curious what other things I can deduct from the profit. 

Part of me things I can deduct the closing costs from the beginning, is this true? I know I'll subtract the selling fees and any improvements I made. I can't use the same exclusion again. 

 

Are there any other things that I "paid" into the home that I can deduct from the capital gains? Not the mortgage interest right?