Running a Foreign Company From a Territorial Tax Country
By Heavnn Editorial TeamReviewed by Stéphane Gombauld, co-founderLast reviewed 26 November 2026
Quick answer
Quick answer: Living in a territorial-tax country such as Panama, Costa Rica, Georgia, Paraguay or Malaysia does not automatically make your foreign company's profits tax-free. Territorial rules exempt income that is genuinely sourced abroad, but work you do from your laptop inside the country is often treated as local-source, and a company you run from your living room can become resident where you sit. Get three things right: where the work is performed, where the company is managed, and whether your former home country still taxes you.
Who this is for
- Freelancers, consultants and agency owners who invoice through a foreign company (US LLC, Estonian OÜ, UK Ltd, Hong Kong company and similar) and live, or plan to live, in a territorial country.
- Founders who want to move personal residence to Latin America, Georgia or Malaysia while keeping their existing company.
- Anyone who has read "foreign income is tax-free" and wants to know what that means for a one-person company in practice.
If you are still choosing where to incorporate, start with where to incorporate a SaaS company when you live abroad. If your plan is to be resident nowhere, read why "tax resident nowhere" rarely works first.
What does a territorial tax system actually exempt?
A territorial tax system taxes residents on income from local sources and leaves foreign-source income alone. The details differ by country, and they matter:
- Panama taxes citizens and residents on income earned from Panamanian sources. Companies pay 25% on Panamanian-source profit.
- Costa Rica states that income earned abroad while tax resident is not taxable, but it taxes services rendered within Costa Rican territory.
- Georgia exempts resident individuals on income that does not have a Georgian source. Georgian-source personal income is taxed at a flat 20%.
- Paraguay taxes individuals on Paraguayan-source income, with personal service income at 8% to 10%.
- Malaysia taxes resident individuals on foreign-sourced income received in Malaysia, but exempts most of it when received between 1 January 2022 and 31 December 2036, subject to conditions.
The key word in every case is source. Being resident in a territorial country only helps if your income really comes from somewhere else.
Where is your income sourced when you work from a laptop?
This is the trap most people miss. Source rules for services usually look at where the work is physically performed, not where the client sits or where the invoice is sent from.
- In Costa Rica, income from services rendered within the territory is Costa Rican-source. A developer coding from Santa Teresa for a German client is performing the service in Costa Rica.
- Panama's residence test refers to people physically located in Panama and generating income there. Work physically done in Panama is often treated as Panamanian-source, even when the client is abroad.
- Paraguay goes further in one direction: pay for services performed abroad counts as Paraguayan-source when the payer is a Paraguayan income tax (IRE or IRP) taxpayer.
Routing the invoice through a foreign company does not change where you did the work. If the company has no staff other than you, and you work from your home office in the territorial country, the tax authority can argue that the company has a permanent establishment there, or that the income is yours as a locally performed service. Costa Rica, for example, defines a permanent establishment as any fixed place where a non-domiciled person's activity is carried out, totally or partially.
What usually holds up better: income that is genuinely generated abroad, such as dividends from a foreign operating company where others do the work, investment income, or services you actually perform while travelling outside the country. What usually does not: full-time client work done at your desk in Panama City or Tbilisi.
Territorial countries compared
| Country | Personal residence test | Foreign-source income of residents | When a foreign company becomes local | Main watch-out |
|---|
| Panama | Physically present and generating income for more than 183 days in the year | Not taxed; only Panamanian-source income is | Incorporated in Panama, or central management located there | Work done in Panama is often local-source; 25% personal top rate |
| Costa Rica | More than 183 days in the fiscal period | Income earned abroad is not taxable | Usually place of incorporation; a fixed place of business creates a PE | Services rendered in Costa Rica are local-source |
| Georgia | 183 days or more in any continuous 12-month period | Exempt if it has no Georgian source | Place of effective management in Georgia | A resident company is taxed on worldwide income at 15% on distributions |
| Paraguay | More than 120 days in a year | Generally outside the system | Check local rules on branches and PE | Services paid by Paraguayan taxpayers count as local |
| Malaysia | 182 days or more in a calendar year | Most received foreign income exempt to 31 December 2036, with conditions | Management and control exercised in Malaysia at any time in the year | A single board meeting held in Malaysia can make the company resident; 24% corporate rate |
Can your foreign company become resident where you live?
Yes, and this is the second big trap. Many countries treat a company as resident where it is managed, not only where it is registered. If you are the sole director and every decision is taken at your kitchen table, that is where the company is managed.
- Georgia treats a company as resident if its place of effective management is in Georgia. A resident company is taxed on its worldwide income, which removes the territorial benefit at company level.
- Malaysia treats a company as resident if management and control is exercised in Malaysia at any time during the basis year; holding even one board meeting there can be enough. Resident companies are taxed on foreign-sourced income received in Malaysia, at a standard 24%.
- Panama treats a company as resident where it is incorporated, and also where its central management is located.
When two countries both claim the company, the tax treaty between them (if there is one) decides, and the answer often depends on the place of effective management. Plenty of territorial countries have few treaties, so you may simply be taxed twice.
Do CFC rules still apply after you move?
Controlled foreign company (CFC) rules tax a shareholder on a low-taxed foreign company's profits before they are distributed. They usually apply to shareholders resident in the country that has the rules. Panama, Costa Rica, Georgia and Paraguay are not known for broad CFC regimes, so the risk sits mostly with the country you left. Three cases come up again and again:
- You never really left. If you keep a home, family or the centre of your life in your old country, you may still be resident there. Germany, for example, applies CFC rules to an unlimited taxpayer who holds more than half of the voting rights or capital of a foreign company whose income is taxed at below 15%. A territorial country taxing your company at 0% is exactly that situation.
- Your old country follows you. Germany's extended limited tax liability can apply for up to ten years after you leave if you are a German national who was resident for at least five of the last ten years, move to a low-tax country and keep essential economic interests in Germany (it bites only in years when the income it covers exceeds EUR 16,500). Spain keeps Spanish nationals who move to a territory it classifies as a tax haven within its personal income tax for the year of the move and the four following years.
- You are a US citizen. US citizens are taxed on worldwide income wherever they live. A US shareholder owning 10% or more of a foreign company controlled by US shareholders must file Form 5471, and CFC income rules can apply regardless of where you reside. See our US citizens abroad page.
The practical fix is a clean exit: document the end of your old residence, cut the ties that matter under the treaty tie-breaker, and check whether any trailing rule applies to your nationality and destination.
Substance and passive income: the newer rules
Under EU pressure, several territorial countries now tax foreign-source passive income in specific cases. Panama taxes foreign-source passive income (dividends, interest, royalties, capital gains and similar) of Panamanian entities in multinational groups at 15% unless they meet substance requirements: qualified staff and facilities in Panama, strategic decisions and risks taken there, and costs consistent with the activity. Costa Rica introduced a similar reform in 2023 for entities in multinational groups that lack substance.
These rules target group entities, not individual freelancers, but they show the direction of travel: a company with no people, no premises and no real decisions anywhere is increasingly hard to defend.
Worked example: a consultant in Panama
Lena is a German-born UX consultant. She moves to Panama, spends 250 days a year there and ends her German residence properly. She keeps her foreign company, which invoices European clients USD 140,000 a year. After USD 20,000 of costs, the company has USD 120,000 of profit, and she pays herself USD 100,000.
The optimistic reading: all income is foreign-source, so Panama taxes nothing.
The realistic risk: Lena does the work at her desk in Panama City. If the tax authority treats her USD 100,000 as Panamanian-source personal income, the progressive scale applies:
- First USD 11,000: 0%
- USD 11,000 to 50,000: 15% of USD 39,000 = USD 5,850
- Above USD 50,000: 25% of USD 50,000 = USD 12,500
- Total: USD 18,350, an effective rate of about 18%.
That is still well below many European rates, but it is not zero, and undeclared income comes with penalties and interest. The same consultant in Georgia faces a different issue: if Georgia treats her company as managed from Tbilisi, it becomes a Georgian resident company. Distributing USD 102,000 would then cost 15% of the grossed-up amount (USD 120,000), so USD 18,000 of Georgian corporate tax.
The lesson: model the realistic case, not the brochure case. A well-documented, slightly taxed structure beats a "0%" structure that collapses in the first audit.
How do banks see this setup?
Banks and payment providers apply the Common Reporting Standard (CRS). When your company holds an account and is classed as a passive entity, the bank looks through it and reports you, as the controlling person, to the country where you declare tax residence. In practice:
- Expect to provide a certificate of tax residence from your new country. Some territorial countries issue them only once you are registered with the tax office, so register early.
- Your self-certification must match reality. Declaring Panama while living in Lisbon is a reporting problem, not a tax plan.
- Be ready to explain source of funds and the company's activity. A clear contract trail and invoices help more than a polished pitch.
- Keep the company's bank and accounting in order where it is incorporated. A dormant-looking company with large flows draws questions.
A setup that holds up
- Become genuinely resident in the territorial country: meet the day test, register with the tax office, get a tax ID.
- Close your old residence on paper and in practice, and check for trailing rules tied to your nationality.
- Decide where the company is managed, and make sure it is not accidentally managed from a country that taxes it on worldwide income.
- Map each income stream: where the work is done, who pays, what kind of income it is.
- Declare local-source income locally. Use the territorial exemption for what is genuinely foreign.
- Keep evidence: travel days, board decisions, contracts, invoices.
Run your days through the tax residency simulator before committing to a country.
Common mistakes
- Assuming client location decides source. For services, where you do the work usually matters more.
- Running the company from a country with management-based residence. Georgia and Malaysia can pull your company into their worldwide system.
- Leaving home on paper only. Keeping your flat, family and doctor at home keeps you resident there, with CFC rules attached.
- Ignoring nationality-based rules. US citizenship and some European exit rules follow you.
- Forgetting the bank. CRS reporting goes to the residence you declare, so a false declaration surfaces quickly.
- Treating a residence permit as tax residence. A visa gives you the right to stay; tax residence depends on days and registration.
Frequently asked questions
Is income from my foreign company tax-free if I live in Panama?
Only the part that is genuinely foreign-source. Work you physically perform in Panama is often treated as Panamanian-source and taxed at up to 25% for individuals.
Does working remotely for foreign clients from Costa Rica count as foreign income?
Usually not. Costa Rica taxes services rendered within its territory, so remote work done in Costa Rica is generally local-source even if the client is abroad.
Can Georgia tax my Estonian or US company?
Yes, if the company's place of effective management is in Georgia. It then becomes a Georgian resident company taxed on worldwide income, with 15% due when profits are distributed.
Do my home country's CFC rules still apply after I move?
Generally not once you have genuinely ceased to be resident, but some countries keep a hold: Germany's extended limited tax liability, Spain's rule for nationals moving to tax havens, and US citizenship-based taxation.
Is Malaysia still territorial for foreign income?
For individuals, most foreign-sourced income received in Malaysia is exempt until 31 December 2036, subject to conditions. Resident companies are taxed on foreign-sourced income received in Malaysia.
Keep reading
Sources
- German Foreign Tax Act (AStG), section 2: extended limited tax liability
- German Foreign Tax Act (AStG), section 7: CFC control test
- German Foreign Tax Act (AStG), section 8: low taxation threshold
- BOE: Spanish Personal Income Tax Law 35/2006, article 8.2
- IRS: US citizens and resident aliens abroad
- IRS: Instructions for Form 5471
- DGI Panama: income tax FAQ (B/. 11,000 and B/. 50,000 thresholds, 15% and 25% rates)
- LHDN Malaysia: introduction to individual income tax (foreign-sourced income exemption)
- PwC Worldwide Tax Summaries: Panama, taxes on personal income
- PwC Worldwide Tax Summaries: Panama, residence
- PwC Worldwide Tax Summaries: Panama, taxes on corporate income
- PwC Worldwide Tax Summaries: Panama, corporate residence
- PwC Worldwide Tax Summaries: Costa Rica, income determination
- PwC Worldwide Tax Summaries: Costa Rica, residence
- PwC Worldwide Tax Summaries: Costa Rica, taxes on corporate income
- PwC Worldwide Tax Summaries: Costa Rica, corporate residence
- PwC Worldwide Tax Summaries: Georgia, taxes on personal income
- PwC Worldwide Tax Summaries: Georgia, residence
- PwC Worldwide Tax Summaries: Georgia, corporate residence
- PwC Worldwide Tax Summaries: Georgia, taxes on corporate income
- PwC Worldwide Tax Summaries: Paraguay, taxes on personal income
- PwC Worldwide Tax Summaries: Paraguay, residence
- PwC Worldwide Tax Summaries: Malaysia, income determination
- PwC Worldwide Tax Summaries: Malaysia, residence
- PwC Worldwide Tax Summaries: Malaysia, corporate residence
- PwC Worldwide Tax Summaries: Malaysia, taxes on corporate income
Last verified: 23 November 2026. This page is general information, not tax or legal advice. Rules depend on your facts, your nationality and the treaties involved.