Quick answer
In 2026 you're a Costa Rican tax resident if you spend more than 183 days in the country during the calendar year (Ley 7092, article 2). Residency matters less than elsewhere: Costa Rica taxes only Costa Rican-source income, for residents and non-residents alike. Residents pay progressive rates up to 25%; non-residents face flat withholding.
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 spend part of the year in Costa Rica and wonder whether that makes you a tax resident, and what follows if it does. This guide explains the legal test, how days are counted, what changes between resident and non-resident, and where treaties come in.
Costa Rica tax residency rules in 2026: the key figures
| Item | Rule in 2026 |
|---|---|
| Legal basis | Income Tax Law (Ley 7092), article 2 |
| Main test | More than 183 days in Costa Rica in the tax year |
| Consecutive days needed? | No, days are added up across the year |
| Tax year | Calendar year (1 January – 31 December) |
| Tax base for residents | Costa Rican-source income only (territorial) |
| Resident rates on local business income | Progressive, 0% to 25% |
| Non-resident withholding (remittances abroad) | Flat rates, e.g. 25% on fees for services, 15% on dividends and interest |
| Tax treaties in force | Only a handful (Spain, Germany, Mexico) |
Is this guide for you?
Read on if you…
- split your year between Costa Rica and another country;
- earn some income from Costa Rica, such as rent, a local client or a local company;
- need to know which country can tax you, and on what.
Probably not your case if you…
- want a step-by-step move plan (see our practical guide to obtaining tax residency in Costa Rica);
- are looking for Panama's rules instead – start with tax residency in Panama.
Who is a tax resident in Costa Rica?
Article 2 of Ley 7092 lists who counts as a resident taxpayer. For individuals, two groups matter:
- People physically present more than 183 days in the tax year, continuously or not. This is the rule for almost every expat.
- Costa Rican nationals in the diplomatic or public service abroad, who stay resident while posted.
Companies and branches registered in Costa Rica are residents too. That matters if you run a Costa Rican entity – see legal forms of business in Costa Rica.
How the days are counted
The law speaks of a stay "of more than 183 days". There's no detailed counting rule for partial days in the law. The safe reading: any day you're physically in Costa Rica counts.
The count runs per calendar year. Since the 2019 reform (Ley 9635), the tax year runs 1 January to 31 December. Before, it ran October to September. Old guides still quote the old period.
What doesn't decide residency
- Your immigration status. A DIMEX residence card isn't proof of tax residency.
- Owning a home. Unlike Mexico or Spain, Costa Rica has no "home available" test in domestic law.
- Nationality. Costa Rican citizens abroad aren't resident unless they're on official duty.
What changes when you become resident?
Less than you'd think. Costa Rica uses a territorial principle: it taxes income generated in Costa Rica, by anyone. So residency mainly decides how local income is taxed, not whether foreign income is taxed.
| Income | Resident | Non-resident |
|---|---|---|
| Foreign dividends, interest, gains | Not taxed | Not taxed |
| Local business or freelance income | Progressive rates, 0% to 25%, via annual D-101 return | 25% withholding on gross fees |
| Local salary | Monthly withholding, 0% to 25% | 10% withholding |
| Local rental income | 15% on 85% of gross rent (effective 12.75%) | Withholding on remittance |
| Local dividends and interest | 15% | 15% |
| Gain on Costa Rican property or shares | 15% on the gain | 15% |
Here's the catch for remote workers. Territorial means where the income is produced. If you work physically in Costa Rica, Hacienda may argue the income is Costa Rican-source, even if paid from abroad. The digital nomad law (Ley 10008) exempts qualifying remote workers, which removes that doubt for them.
What if two countries claim you?
This is where Costa Rica differs from most. It has few comprehensive tax treaties. Spain, Germany and Mexico are the main ones in force.
With a treaty
The treaty tie-breaker settles dual residency in a fixed order:
- Permanent home – where you have a home available to you at all times.
- Centre of vital interests – basically where your life is: family, main business, social ties.
- Habitual abode – where you spend more time.
- Nationality, then agreement between the two tax authorities.
Without a treaty
Both countries apply their own rules in full. Your home country may still tax your worldwide income. Costa Rica taxes only your local income. In practice, double tax hits only Costa Rican-source income, and only if your home country gives no credit.
Costa Rica signed the OECD multilateral convention on mutual assistance. It exchanges bank information with many countries under the CRS standard. Assume your home country will see Costa Rican accounts. More detail in our page on Costa Rica's international tax treaties.
How do you prove your status?
Proving you are resident
Hacienda can issue a certificado de residencia fiscal – a tax residency certificate – to registered taxpayers. You'll need it to claim treaty benefits abroad. Request it through Hacienda's online platform.
Proving you are not resident
Keep entry and exit stamps, flight tickets and your lease abroad. If you stay at or under 183 days, these records are your defence. The burden of proof is on you.
Example – Tomás, Spanish software consultant
Tomás spends 200 days in Costa Rica in 2026 and 165 in Madrid, where he keeps his flat. His EUR 90,000 comes from Spanish clients. Both countries see him as resident. The Spain–Costa Rica treaty sends him to his permanent home: he has homes in both, so his centre of vital interests decides. Partner and business are in Madrid, so Spain wins. He pays Spanish tax; Costa Rica taxes nothing.
Tomás had two homes and one treaty to untangle. Your split year may be trickier.
Get your residency position checked across both countries before the next filing deadline.
Check my tax setup →Common mistakes (and what they cost)
- Using the old October–September tax year → you miscount your 183 days and file for the wrong period.
- Treating your DIMEX as tax residency → you claim resident status (or deny it) on the wrong basis and lose treaty relief.
- Assuming territorial means remote work is tax-free → possible reassessment of local-source income, with interest and penalties.
- Ignoring your home country's rules → with no treaty, your old country may keep taxing your worldwide income in full.
- Not keeping travel records → you can't rebut a residency claim when either authority asks.
Frequently asked questions
What is the 183-day rule in Costa Rica?
You're a Costa Rican tax resident if you're physically present more than 183 days in the calendar year, under article 2 of Ley 7092. Days are added up across the year, so they don't need to be consecutive. At 183 days or fewer, you're a non-resident and only your Costa Rican-source income is taxed, through withholding.
Does being a Costa Rican tax resident mean I pay tax on worldwide income?
No. Costa Rica is territorial: residents and non-residents are taxed only on income produced in Costa Rica. Foreign investment income stays outside the net. The open question is work physically done in Costa Rica for foreign clients, which Hacienda may treat as local-source unless you hold the digital nomad status.
Can I be a tax resident of Costa Rica and another country at the same time?
Yes. Each country applies its own rules. If there's a treaty, such as with Spain, Germany or Mexico, the tie-breaker decides using permanent home, vital interests, habitual abode and nationality. Without a treaty, both apply in full, though Costa Rica only ever taxes your local income.
Does owning property in Costa Rica make me a tax resident?
No. Costa Rican law has no home-ownership test. Only the 183-day physical presence count matters for individuals. But the property's rental income and any gain on sale are Costa Rican-source and taxed, whether you're resident or not. Rental income is taxed at 15% on 85% of gross rent.
How do I get a Costa Rican tax residency certificate?
You request a tax residency certificate from the Ministerio de Hacienda through its online platform. You normally need to be registered as a taxpayer and meet the 183-day test. The certificate is what a foreign tax authority or payer asks for before granting treaty benefits, such as reduced withholding.
Related guides
- Practical guide to obtaining tax residency in Costa Rica
- How to cease your Costa Rican tax residency
- Costa Rica's international tax treaties
- Costa Rica tax landscape overview
- Tax residency rules in Panama
- Panama tax landscape overview
- All country tax guides
Sources
- Ministerio de Hacienda de Costa Rica
- SCIJ – Sistema Costarricense de Información Jurídica (Ley 7092, Ley 9635)
- Dirección General de Migración y Extranjería
- OECD – Global Forum on Transparency and Exchange of Information
- PwC Worldwide Tax Summaries – Costa Rica, individual residence
This guide is general information, not personalised tax advice. See how we research and review.
Not sure which country you belong to in 2026?
Get your tax setup checked and see where you're resident, and what each country can tax.
Start with Heavnn →