When would capital gains tax be due for a stock sale in Dec 2021 vs Jan 2022

Currently refinancing and paying down the mortgage by selling some stock that is a long term gain. Trying to decide if there is a benefit to waiting until Jan to sell it.  If I were to sell the stock in January 2022, when would the capital gains tax be due? Would the tax be due in 2023 or would I have to make a quarterly tax payment in 2022?  The amount of stock is roughly $40,000 with a long term gain of about $15,000.