Deductions & credits

If the closing was in 2020, then you report the home sale on the 2020 tax return to be filed in 2021.  Selling expenses are subtracted from the Sale price of the home.