Utilize the Primary Residence Exclusion:
One of the most well-known methods for avoiding capital gains tax is to take advantage of the primary residence exclusion. Under current tax laws, individuals can exclude up to $250,000 in capital gains ($500,000 for married couples filing jointly) from the sale of their primary residence if they have owned and lived in the home for at least two out of the past five years.
By meeting these requirements, homeowners can significantly reduce or eliminate their capital gains tax liability.