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

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:

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.

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

CountryPersonal residence testForeign-source income of residentsWhen a foreign company becomes localMain watch-out
PanamaPhysically present and generating income for more than 183 days in the yearNot taxed; only Panamanian-source income isIncorporated in Panama, or central management located thereWork done in Panama is often local-source; 25% personal top rate
Costa RicaMore than 183 days in the fiscal periodIncome earned abroad is not taxableUsually place of incorporation; a fixed place of business creates a PEServices rendered in Costa Rica are local-source
Georgia183 days or more in any continuous 12-month periodExempt if it has no Georgian sourcePlace of effective management in GeorgiaA resident company is taxed on worldwide income at 15% on distributions
ParaguayMore than 120 days in a yearGenerally outside the systemCheck local rules on branches and PEServices paid by Paraguayan taxpayers count as local
Malaysia182 days or more in a calendar yearMost received foreign income exempt to 31 December 2036, with conditionsManagement and control exercised in Malaysia at any time in the yearA 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.

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:

  1. 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.
  2. 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.
  3. 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:

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:

A setup that holds up

  1. Become genuinely resident in the territorial country: meet the day test, register with the tax office, get a tax ID.
  2. Close your old residence on paper and in practice, and check for trailing rules tied to your nationality.
  3. Decide where the company is managed, and make sure it is not accidentally managed from a country that taxes it on worldwide income.
  4. Map each income stream: where the work is done, who pays, what kind of income it is.
  5. Declare local-source income locally. Use the territorial exemption for what is genuinely foreign.
  6. Keep evidence: travel days, board decisions, contracts, invoices.

Run your days through the tax residency simulator before committing to a country.

Common mistakes

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

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.

Last verified: 2026-11-26. This page is general information about international tax and is not tax or legal advice. Rules change and depend on your facts; confirm your situation with a qualified advisor before acting.