If you are required to pay capital gains tax, you pay the tax when you sell your property. However, the capital gains tax is dependent on several factors, including your current tax bracket, the length of time you’ve owned and occupied the property, and whether the house is your primary residence.
Be sure to check the IRS requirements for paying the capital gains tax to determine when you have to pay and if you are eligible for an exemption.