Capital gains tax can be avoided or reduced in a number of ways, including by investing in residential real estate within two years of the sale, purchasing bonds, funding a startup, or utilising the proceeds to pay for tax-exempt bonds. Furthermore, if you kept the property for a particular length of time or used the sale funds for a particular purpose, you can qualify for certain exemptions and deductions.