Yes. You'll need to pay capital gains tax if your property wasn't your primary residence for every single year that you owned it. This tax amount works out to 50% of any profit you make when you sell the property. For example, if you make a net gain of $100,000 on a property, you'll pay capital gains tax on $50,000 of that.
There are a number of loopholes you can take advantage of to reduce your tax bill. Learn more about how capital gains tax works here.