There are a couple of exemptions from capital gains tax. This includes primary residences, and something known as the lifetime capital gains exemption, which applies to qualified small business shares, qualified farm properties, and qualified fishing properties.