Capital gains tax in Costa Rica: what you really pay and how to pay less

Costa Rica taxes local capital gains at 15% in 2026; foreign gains are untaxed, your main home is exempt, and pre-2019 assets can pay 2.25% of price.
Capital gains tax in Costa Rica: what you really pay and how to pay less

Quick answer

Costa Rica taxes capital gains at a flat 15% in 2026, but only on Costa Rican-source gains: local property, shares in local companies and local securities. Gains on foreign assets are outside the tax for individuals. Your main home is exempt, and assets owned before July 2019 can opt for 2.25% of the sale price on their first sale.

Last reviewed: November 2026 · Reviewed by Stéphane Gombauld, tax expert, technologist and digital nomad

Heavnn

Stay tax compliant, wherever you work

Answer a few questions and get a clear plan for your own situation.

Find my savings →

You own, or plan to buy, property or investments while living in Costa Rica, and you want to know what a sale will cost. This guide shows how much you really pay in 2026, which gains are exempt by law, and how to pay less legally.

Costa Rica capital gains tax in 2026: the key figures

Item 2026 rule
Rate on Costa Rican-source gains 15% of the net gain (Law 9635, capital income chapter)
Foreign-source gains (individuals) Not taxed: Costa Rica is territorial
Main home (vivienda habitual) Exempt
Assets held before 1 July 2019 Option: 2.25% of the gross sale price on the first sale after the reform
Rental income 15% on 85% of gross rent = 12.75% effective
Dividends and interest from Costa Rica 15% withholding, final tax for individuals
Capital losses Offset against capital gains; carry forward up to 3 years
Exit tax None

Is this guide for you?

Read on if you…

  • own, or plan to buy, a house, condo or land in Costa Rica;
  • hold shares in a Costa Rican company or local securities;
  • live in Costa Rica and invest abroad, and want to know if your gains are taxed.

Probably not your case if you…

  • sell assets inside your Costa Rican business as part of its trade: those gains fall under corporate or business income tax at up to 30%;
  • trade crypto as your main activity. See our cryptocurrency taxes in Costa Rica guide.

How are capital gains taxed in Costa Rica?

Since July 2019, Law 9635 (Ley de Fortalecimiento de las Finanzas Públicas) taxes capital income and capital gains in a separate schedule. Think of it as a box: rent, interest, dividends and gains go in it, each at 15%, apart from your salary or business income.

The territorial principle

Costa Rica taxes only income from Costa Rican sources. That means gains on assets located, or economically used, in Costa Rica. Shares of a US company in a US brokerage account are foreign-source. Good news: as an individual resident, you pay nothing in Costa Rica on those gains.

Here's the catch. A long-debated bill would move Costa Rica to worldwide taxation (renta global). It has not been approved as of November 2026. Separately, Law 10381 of 2023 taxes foreign passive income of companies belonging to multinational groups without local substance. It does not target individuals.

How the gain is calculated

  1. Take the sale price.
  2. Subtract the acquisition cost, plus improvements and purchase costs you can document.
  3. Apply 15% to the result.

For property, you can update the acquisition cost for inflation using official indices.

What are the rates by asset type?

Asset Resident individual Non-resident
Costa Rican property (not main home) 15% of gain, or 2.25% of price if held before July 2019 15% of gain
Your main home Exempt Not available
Shares in a Costa Rican company 15% of gain 15% of gain
Local listed securities and funds 15% of gain 15%
Foreign shares, ETFs and funds Not taxed Not taxed
Crypto No specific rule; foreign exchanges are generally treated as foreign-source Not taxed
Assets used in your business Business income, up to 25% (individuals) or 30% (companies) Business rules

The 2.25% transitional option

If you owned the asset before 1 July 2019, you may choose to pay 2.25% of the gross sale price instead of 15% of the gain. This applies only to the first sale after the reform. It pays off when your gain exceeds 15% of the price. For a property bought long ago at a low price, it is usually the better option.

The main-home exemption

Gains on your vivienda habitual – the home you actually live in – are exempt. You need to show it was your residence: utility bills, municipal registration, residency card address. A holiday home rented out most of the year does not qualify.

Residents vs non-residents: what changes?

Non-residents pay the same 15% on Costa Rican-source gains. The difference lies in collection and paperwork.

  • You must self-assess and pay the tax on each sale, usually by the 15th of the month after the transaction.
  • You need a Costa Rican tax ID and a TRIBU-CR account, often through a local representative.
  • A treaty may reduce tax on shares, but Costa Rica has very few. See international tax treaties of Costa Rica.

Tax residency itself depends on spending more than 183 days in Costa Rica in a calendar year. Our tax residency in Costa Rica guide covers the test.

Is there an exit tax when you leave Costa Rica?

No. Costa Rica has no exit tax on unrealised gains. When you leave, you only need to settle tax on any Costa Rican assets you sell. Your next country may tax gains differently, so time big sales with care. See the practical guide to ceasing your tax residency in Costa Rica.

How can you pay less, legally?

  • Live in the property first. Making it your main home turns a taxable gain into an exempt one.
  • Choose the 2.25% option where it wins. Run both calculations for assets held before July 2019.
  • Keep every invoice. Documented renovations and purchase costs reduce your gain.
  • Use losses. A capital loss offsets capital gains for up to three years.
  • Hold growth assets abroad. Foreign portfolios stay outside Costa Rican tax under current law, but check your home country's rules.

Example – Mark, US consultant living in Nosara

Mark bought a rental villa in 2016 for USD 300,000 and sells it in 2026 for USD 520,000. Documented improvements: USD 40,000. Gain: USD 180,000. Under the standard rule he owes 15%, USD 27,000. Under the transitional option he owes 2.25% of USD 520,000, USD 11,700. He chooses 2.25% and saves USD 15,300. His US ETF gains of USD 60,000 the same year are foreign-source: no Costa Rican tax.

Mark's sale had two legal options and one saved him USD 15,300. Yours might too.

Find your savings before you sign a sale in Costa Rica.

Find my savings →

Common mistakes (and what they cost)

  • Assuming a holiday home is a main home → the exemption is denied, and you owe 15% plus interest and a 50% penalty on the shortfall.
  • Not comparing the 2.25% option → paying 15% of a large gain when 2.25% of the price was far cheaper.
  • Losing purchase invoices → a gain calculated on the bare price difference, often thousands higher.
  • Selling through a company without checking → the gain lands in corporate tax at 30% instead of 15%.
  • Ignoring your other country → your home country may still tax the gain if you never properly left it.

Frequently asked questions

What is the capital gains tax rate in Costa Rica in 2026?

The rate is a flat 15% of the net gain on Costa Rican-source assets, under Law 9635. Assets owned before 1 July 2019 can instead pay 2.25% of the gross sale price on their first sale. Gains on your main home are exempt, and foreign-source gains of individuals are not taxed in Costa Rica.

Do I pay Costa Rican tax on my foreign stock gains?

No, not as an individual under current law. Costa Rica taxes only Costa Rican-source income, so gains on foreign shares, ETFs or funds held abroad are outside its scope. A bill to move to worldwide taxation has been debated for years. Check its status before relying on this for future years.

Is the sale of my home in Costa Rica taxed?

Not if it is your habitual residence. The main-home exemption covers the gain on the property you actually live in. Keep proof such as utility bills, municipal records and your residency address. Second homes and properties rented out most of the year are taxed at 15% of the gain.

How are non-residents taxed on Costa Rican property sales?

Non-residents pay the same 15% on the gain, or 2.25% of the price for assets held before July 2019. They must obtain a tax ID, self-assess and pay after each sale, often through a local representative. Costa Rica has few tax treaties, so relief at home depends on your country's foreign tax credit rules.

Can I offset capital losses in Costa Rica?

Yes. Capital losses can be set against capital gains within the capital income schedule. Unused losses carry forward for up to three years. They cannot reduce salary or business income. Keep records of the loss-making sale, because the tax administration can ask for them when you claim the offset.

Does Costa Rica have an exit tax?

No. Leaving Costa Rica does not trigger tax on unrealised gains. You only pay when you actually sell a Costa Rican asset, whether you live there or not. Your new country of residence may treat future gains differently, so plan the timing of large sales around your move.

Sources

This guide is general information, not personalised tax advice. See how we research and review.

Selling property or shares in Costa Rica?

Find your savings by comparing every legal option before you sell.

Start with Heavnn →
About the author
Heavnn

Heavnn

Heavnn is a borderless tax technology solution supporting the future of work. We assist international remote workers with the design and implementation of their global tax setups.

Welcome to Heavnn University!

Access all of our learning resources, blogs, and articles for digital nomads, remote workers, and distributed teams right here on Heavnn University. For more tailored advice, take our digital interview below!

Design Your Global Remote Setup
Heavnn University

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Heavnn University.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.