To avoid capital gains tax on a buy-to-let property, consider utilising your tax-free allowance, exploring joint ownership with a spouse, deducting costs, establishing a limited company, and determining eligibility for PRR or letting relief. It's essential to seek expert advice for personalised guidance.