The Costa Rican government introduced on July 1st 2019 this new capital gain tax of 15% based on the difference between purchase and sales price. Properties who had been bought before that date can choose to pay 2.25% based on the sales price.
Owners who used the property as their primary residence are able to be exempt of the capital gain tax.