Deductions & credits

Yes, you will have to pay taxes on the capital gain from the sale of the second home..  You need to calculate the amount pf gain now.   You may need to pay estimated taxes now in order to avoid a penalty for underpayment of 2021 taxes.