Foreign Company in Spain: Do You Need to Register, Pay Tax or Set Up a Permanent Establishment?

Many business owners and entrepreneurs operate through a foreign company and later consider moving to Spain or expanding their activity there.

This leads to key questions:

  • Can I work in Spain with a foreign company?
  • Do I need to register in Spain if I have a foreign company?
  • Do I pay tax in Spain with a foreign company?
  • What is a permanent establishment in Spain?

The answer depends on one critical factor: where the business is actually managed and carried out.

Can you work in Spain with a foreign company?

Yes, it is possible to work in Spain with a foreign company. However, this does not automatically mean that you can avoid Spanish tax obligations.

If you live in Spain or carry out your activity from Spain, the Spanish Tax Authorities may consider that the business is effectively operating in Spain.

This applies even if the company is registered in another country.

Do you need to register in Spain if you have a foreign company?

You may need to register in Spain if your foreign company has a real presence or activity in the country.

Typical situations include:

  • working remotely from Spain on a regular basis
  • managing the foreign company from Spain
  • having clients or business activity in Spain
  • operating through a fixed place of business in Spain

In these cases, the company may be required to register and comply with Spanish tax rules.

Do you pay tax in Spain with a foreign company?

This depends on whether the company has a permanent establishment in Spain.

No permanent establishment in Spain

If the foreign company has no real presence or activity in Spain:

  • it may only be taxed on Spanish-source income
  • there may be limited tax obligations

Permanent establishment in Spain

If the activity is carried out in Spain, the company may be considered to have a permanent establishment in Spain.

This means:

  • the company must pay tax in Spain
  • profits generated in Spain are taxable
  • tax returns must be filed in Spain
  • full compliance obligations apply

What is a permanent establishment in Spain?

A permanent establishment in Spain exists when a foreign company carries out business activities in Spain on a regular basis.

This may happen if:

  • there is a fixed place of business in Spain
  • the company is managed from Spain
  • decisions are taken in Spain
  • someone acts on behalf of the company in Spain

This is one of the most important concepts when operating in Spain with a foreign company.

Can you live in Spain and run a foreign company?

This is one of the most common situations.

If you live in Spain for more than 183 days per year or your main economic interests are in Spain, you may be considered a tax resident in Spain.

In that case:

  • you must declare your worldwide income in Spain
  • income from your foreign company may be taxable in Spain

Do you need to pay Social Security in Spain?

If you live and work in Spain, you may have Social Security obligations even if your company is based abroad.

This depends on:

  • where you physically work
  • how your activity is structured
  • whether EU or international rules apply

Common mistake: “I have a foreign company, so I do not pay tax in Spain”

This is one of the most frequent misunderstandings.

Having a foreign company does not automatically exclude Spanish tax obligations.

If you:

  • live in Spain
  • work from Spain
  • or manage your business from Spain

you may be required to comply with Spanish tax and Social Security rules.

Real risks if the structure is incorrect

If the structure is not properly analysed, the Spanish Tax Authorities may:

  • reclassify the company as operating in Spain
  • apply back taxes
  • impose penalties and interest
  • assess Social Security contributions

Conclusion

Operating in Spain with a foreign company is possible, but it requires careful planning and proper structuring.

The key factors are:

  • where you live
  • where the activity takes place
  • where business decisions are made

Each case must be analysed individually to ensure compliance and avoid unexpected tax risks.

Frequently asked questions

Do I need to register in Spain if I have a foreign company?

It depends on whether your company has activity or presence in Spain. If it does, registration may be required.

Do I pay tax in Spain if I live there but have a foreign company?

In many cases, yes. Spanish tax residency rules may apply.

What is a permanent establishment in Spain?

It is a situation where a foreign company operates in Spain on a regular basis and must comply with Spanish tax rules.

Can I work remotely from Spain with a foreign company?

Yes, but this may create tax and Social Security obligations in Spain depending on your situation.

Need advice before operating in Spain with a foreign company?

If you are planning to move to Spain or operate in Spain through a foreign company, it is important to assess your situation before taking any steps.

We provide advice on:

  • permanent establishment in Spain
  • tax obligations for foreign companies
  • correct international structuring

Contact us for a personalised assessment before proceeding.

Attention! This site uses cookies and similar technologies.

If you agree, click accept. If you prefer to modify them to your liking, click on CONFIGURE COOKIES