Tax Residency, Permanent Establishment (PE) and CFC Rules for an Estonian OÜ — A Practical Guide for Spanish Tax Residents


Tax Residency, Permanent Establishment (PE) and CFC — in Simple Terms

Spain is your country as tax residence Estonia is the country of your company.
Even if you have an OÜ registered in Estonia, your personal tax residency remains in Spain, and Spain has the right to tax you as an individual.

On this page, we explain: tax residencewhat it means
permanent establishment when the rules may apply
CFC — controlled foreign companieshow to understand the risks before registering an OÜ,
rather than after receiving a letter from Hacienda

I live in Spain, and the company is in Estonia. Is this a problem?

La mayoría de dudas sobre una OÜ no vienen de Estonia, sino de España. La lógica de Hacienda es simple:
Where you live is where you pay taxes as an individual.An OÜ facilitates international business operations,
tax residence Thus, you personally have tax obligations in Spain, and your Estonian company has them in Estonia.

  • Spanish Tax Resident if you live here for more than 183 days a year, have your family here, or your main economic interests are here.
  • OÜ in Estonia A tool for contracts, invoices, banking, and business in the EU.
  • Conclusion Working with an OÜ while living in Spain is legal, but the structure must be logical and transparent — for both the tax authorities and banks.

In simple terms: Spain is your home as an individual. Estonia can be the home of your company.
It is important that this setup looks reasonable during an audit.

How We Analyze Tax Residency, PE, and CFC

Before making any promises, we review your personal situation,
not marketing positioning:

1. Tax Residency (your actual status)

Where you actually live, how many days a year you spend in Spain, and where your family and main income are.
La tax residence which has the right to tax you as an individual

2. Actual Activities of the OÜ

What the company does an OÜ structure IT, marketing, consulting, SaaS, client countries.
Is there a team or are you alone, and where decisions are made.

PE / CFC

We assess whether there are any risks permanent establishment in Spain.
Whether the rules may apply CFC — controlled foreign companies
to the company’s income.

What Tax Residency Is — in Simple Terms

La tax residence and the country that considers
that you live there for tax purposes.

  • The 183-Day Rule More than 183 days living in Spain → usually a Spanish tax resident.
  • Center of Interests Even with fewer days, having your family, home, or business in Spain can make you a resident.
  • Company ≠ Individual An OÜ in Estonia does not automatically change your tax residency.

In simple terms: Tax residency answers the question "Where do you actually live?",
not "where the company is registered."

PE and CFC — what’s the difference and why it matters

There’s a PE и CFC and OÜ in Estoniatalk about , but most often without explaining how it works in practice for a Spanish tax resident.
Below is everything you need to know about these concepts.

Permanent Establishment (PE — Permanent Establishment)

  • Basic Definition PE is a situation where a foreign company effectively operates like a Spanish company, even if it is legally registered in another country (for example, in Estonia).
  • Examples All work is carried out from Spain, the director and employee is the same person living in Spain, with no office, staff, or real activity outside Spain.
  • In short: If your OÜ effectively operates as a Spanish company, Hacienda may treat it as Spanish and apply Spanish taxation.
  • The real risk arises when the sole director lives in Spain; decisions are made from Spain; most clients are Spanish; outside Spain, the company exists only "on paper."

Controlled Foreign Companies (CFC)

  • Means that the rules CFC — controlled foreign companies allow Spain to tax certain income of foreign companies if they are effectively managed by a Spanish tax resident.
  • When CFC rules are applied: a Spanish resident controls a foreign company; the company receives passive income: interest, royalties, automatic or quasi-passive income.
  • Typical Activities of an OÜ: Active services — IT, marketing, consulting, SaaS — are usually less problematic than passive income.
  • In short: CFC is a set of rules that prevents "parking passive money" in a foreign company to avoid taxation.

What’s important to understand in practice Many freelancers and digital teams
are afraid permanent establishmentalthough their real risk is more often related to PE rather than to CFC rules.

Practical examples — when an Estonian OÜ works, and when it doesn’t

Each case is individual, but in practice we often see similar situations.
These examples help clarify where PE and CFC risks typically arise — and where they do not.

B2B software developer / IT freelancer

You live in Spain, work with clients in the EU and the US, and have little to no Spanish clients.
usa una You use the OÜ for contracts and receiving payments. You pay yourself a salary and/or dividends and report them in Spain.

Structure assessment: the activity is active and international; CFC risk is generally low; PE risk is assessed based on where management decisions are made and how the company is represented in Spain.
With proper documentation, this structure is often workable and defensible.

Designer with clients only in Spain

You live in Spain, and all your clients are Spanish.
The OÜ is used only for invoicing for the same work,

that you previously performed as permanent establishment Structure assessment:
The actual activity has not changed; There is no activity in Estonia; The OÜ is used as a “wrapper.”
In this case, the risk of Permanent Establishment (PE) is high, and in most cases it is more logical and safer to operate through a Spanish structure (autónomo or SL).

Online consulting with clients across the EU

You live in Spain and provide consulting or digital services to companies from various EU countries.
You use the OÜ for contracts, VAT/OSS (VAT OSS in the EU )
and fintech accounts.

Structure assessment: the structure can be compliant; Proper documentation of activities is key; Income (salary, dividends) is correctly reported in Spain.
In each such case, we separately analyze tax residency, PE, and potential risk areas to avoid unforeseen issues.

How we handle tax residency, PE, and CFC

Analysis before registration or structural changes

This is not just about registering an OÜ, but about an OÜ structurespecifically in your case.
We analyze:

  • you tax residence and your partners;
  • The company’s actual activity and client geography;
  • Risk permanent establishment in Spain
  • The applicability of rules CFC — controlled foreign companies in relation to you.

Based on this, a decision is made: Whether an OÜ in Estonia is suitable; Whether a combined structure is needed.
Or it may be safer to remain as an autónomo or SL in Spain.

Accounting and Tax Support

If the structure is deemed appropriate, we take care of the complex part:
VAT/OSS , when required. Annual reporting.

We also: prepare clear documentation for banks and fintech platformsKYC/AML package— KYC (“Know Your Customer”) and AML checks
We coordinate information that may be requested by
your Spanish asesoría.

⚠️ All information is of a general nature. Specific decisions are made only after analyzing your case.
and the current legislation of Spain and Estonia.

If you are looking for more information about company registration in Estonia
Go to the extended guide via the link..

Frequently Asked Questions: Tax Residency, PE, and CFC

  • Is it legal to have an OÜ while living in Spain?
    Yes. It’s legal. Personal income is properly declared in Spain;
    The company is not used as a “shell” to hide real activity.
  • Does e-Residency make you a tax resident of Estonia?
    No via e-Residency — it is a digital tool for managing a company; it
    does not change tax residenceyour personal tax residency.
  • Can CFC rules apply to you?
    Las CFC — controlled foreign companies They are considered when there is passive income.
    For active services (IT, marketing, consulting), the analysis is different — this is exactly why the cases
    are considered individually.
  • When does the risk of PE arise?
    Risk permanent establishment It arises when all activity
    with clients mainly in Spain and no real business activity in Estonia,
    except for formal registration. Privately, we explain the criteria of “formality.”
  • Can you “move your tax residence” just by creating an OÜ?
    No tax residence It is determined by your actual place of residence,
    not by the country where the company is registered.

How much can you save with a properly structured OÜ?

Instead of guesses, you get a numerical estimate of:
your current structural costs, a scenario with an Estonian OÜ plus Irys accounting support,
administrative hours that could be freed up, and the level of risk in relation to the Spanish tax authority.

The calculator does not replace tax advice, but it gives you
a quick, easy-to-understand snapshot to help you to decide whether it is worth
reviewing your case in detail.


Scroll to Top