Leaving Costa Rica: how to end your tax residency cleanly in 2026

Costa Rica tax residency ends at 183 days or fewer in a year. No exit tax in 2026, but close VAT, RUT and CCSS and keep paying 15% on local rent and gains.
Leaving Costa Rica: how to end your tax residency cleanly in 2026

Quick answer

You stop being a Costa Rican tax resident in 2026 by spending 183 days or fewer in the country in a calendar year. There's no exit tax and no formal "departure" filing. But you must file a final D-101 return, close your tax and VAT registrations, and keep paying 15% on any Costa Rican rent or gains.

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.

Check my tax setup →

You're leaving Costa Rica, or spending less time there, and you want a clean exit. This guide shows when your tax residency ends, which registrations to close, what Costa Rica can still tax after you go, and a before-during-after exit plan.

Ceasing Costa Rica tax residency in 2026: the key figures

Item Rule in 2026
When residency ends Tax year with 183 days or fewer in Costa Rica
Legal basis Income Tax Law (Ley 7092), article 2
Exit tax on unrealised gains None
Final income tax return (D-101) Due 15 March of the year after your last taxable year
Rental income after you leave Still taxed (15% on 85% of gross rent for residents; withholding for non-residents)
Gain on selling Costa Rican property 15% of the gain
Registrations to close Taxpayer register (RUT), VAT, CCSS, electronic invoicing
Immigration residence Separate; lapses or is cancelled under DGME rules

Is this guide for you?

Read on if you…

  • are moving from Costa Rica to another country this year or next;
  • run a registered activity in Costa Rica that you want to close;
  • will keep a property, bank account or company in Costa Rica after you leave.

Probably not your case if you…

When do you stop being a Costa Rican tax resident?

Residency is decided per calendar year. You're resident if you spend more than 183 days in Costa Rica in that year (article 2, Ley 7092). Spend 183 days or fewer, and you're a non-resident for that year. The full rules are in our guide to Costa Rica tax residency.

There's no split year. If you leave on 15 August 2026, you've spent about 227 days in Costa Rica. You're resident for all of 2026. From 2027, if you stay away, you're a non-resident.

Good news: Costa Rica has no exit tax. Leaving doesn't trigger tax on gains you haven't realised, like shares or crypto you still hold.

Why leaving matters less here

Costa Rica taxes only Costa Rican-source income, resident or not. So "leaving" changes how local income is taxed – and nothing for foreign income. The real work is closing registrations and handling what you leave behind.

What should you close before you go?

1. Your activity and taxpayer registration

If you were registered with a lucrative activity, file a desinscripción – a deregistration – with Hacienda. It now goes through the TRIBU-CR platform. Until you do, monthly VAT (D-104) returns stay due, even if they're zero.

2. Your final income tax return

File the D-101 return for your last year of activity by 15 March of the following year. Leaving in 2026 means filing by 15 March 2027.

3. Electronic invoicing

Stop issuing electronic invoices once your activity ends. Invoices issued after deregistration can create VAT exposure.

4. CCSS social security

Cancel your registration as a self-employed worker or voluntary insured with the CCSS. Otherwise contributions keep accruing as debt.

5. Your immigration status

Tell the DGME if you give up your residence. Temporary residence lapses if not renewed. Long absences can also cost you permanent residence.

What can Costa Rica still tax after you leave?

Anything sourced in Costa Rica. As a non-resident, it's usually collected by withholding when money leaves the country.

Income after you leave How it's taxed in 2026
Rent from a Costa Rican property Taxed in Costa Rica; non-resident withholding applies
Sale of Costa Rican property 15% of the gain; property bought before July 2019 may opt for 2.25% of the sale price on its first sale
Dividends from a Costa Rican company 15% withholding
Interest from Costa Rican banks 15% withholding (lower rates for some regulated instruments)
Fees for services from a Costa Rican client 25% withholding
Foreign income Not taxed in Costa Rica

Also keep in mind the annual corporate tax if you keep a Costa Rican company, and the yearly beneficial ownership filing with the Central Bank. See legal forms of business in Costa Rica.

Your exit plan: before, during and after

Before you leave

  1. Pick your departure date with the 183-day count in mind.
  2. Check when your new country makes you resident. Paraguay and Mexico, for example, use very different tests.
  3. Decide what to do with property, bank accounts and any company.
  4. Collect proof of your new home: lease, registration, tax ID.

During the move

  1. Deregister your activity, VAT and electronic invoicing.
  2. Cancel your CCSS registration.
  3. Settle all pending VAT and income tax returns.
  4. Keep entry and exit stamps and flight records.

After you leave

  1. File your final D-101 by 15 March of the following year.
  2. Ask your Costa Rican bank to update your tax residence for CRS reporting.
  3. Track remaining Costa Rican income and the withholding applied.
  4. Get a tax residency certificate in your new country for any treaty claim.

Example – Sofia, Canadian online coach

Sofia lived in Nosara and ran a registered coaching activity with local and foreign clients. She leaves for Mexico City on 30 June 2026, after 181 days in Costa Rica. She's a non-resident for 2026. She deregisters in June, files her last VAT return, and files a final D-101 for her local income by 15 March 2027. She keeps her flat and rents it out. That rent stays taxable in Costa Rica.

Sofia closed five registrations and kept one taxable flat. Your exit has its own loose ends.

Get your exit plan checked so nothing keeps running in Costa Rica after you've gone.

Check my tax setup →

Common mistakes (and what they cost)

  • Leaving without deregistering → monthly VAT returns stay due, and late-filing penalties add up for each one missed.
  • Expecting a split-year → a mid-August departure still makes you resident for the whole year.
  • Forgetting the CCSS → contribution arrears keep growing and can follow you if you return.
  • Assuming non-residents don't pay on local rent → unpaid tax on Costa Rican rental income, plus interest.
  • Not proving residency in the new country → your old or new country may treat you as resident in both, with no treaty to fix it.

Frequently asked questions

Does Costa Rica have an exit tax?

No. Costa Rica doesn't tax unrealised gains when you leave. Shares, crypto or property you still hold aren't taxed on departure. Gains are taxed only when you sell, and only if the asset gives Costa Rican-source income, such as a Costa Rican property or shares in a Costa Rican company.

Can I stop being a Costa Rican tax resident halfway through the year?

No. Costa Rica has no split-year rule. Residency is decided for the whole calendar year by the 183-day test. If you spend more than 183 days in Costa Rica before leaving, you're resident for that full year. Your non-resident status starts on 1 January of the following year.

Do I need to file a tax return in the year I leave?

If you were registered with an activity or had Costa Rican-source income, yes. File the annual D-101 return by 15 March of the following year. You'll also need to deregister your activity and file outstanding monthly VAT returns. With only foreign income and no registration, there's usually nothing to file.

What happens to my Costa Rican rental property when I leave?

You can keep it. The rent remains Costa Rican-source income and stays taxable, collected through non-resident withholding or your own filing. When you sell, the gain is taxed at 15%. For property bought before July 2019, you may opt for 2.25% of the sale price on the first sale.

Do I have to give up my Costa Rican residence permit?

No, tax residency and immigration residency are separate. You can keep a residence permit while being a non-resident for tax. But permits come with conditions, such as renewals and CCSS enrolment, and long absences can put permanent residence at risk. Check the DGME rules before you decide.

Sources

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

Leaving Costa Rica in 2026?

Plan your exit with a full check of your tax setup, so you close everything and start clean in your new country.

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.