Working remotely from Spain for a foreign company is possible, but the employment, Social Security, tax and immigration implications should be reviewed before the arrangement begins. The fact that the employer has no subsidiary or office in Spain does not mean that Spanish rules can be ignored when an employee habitually performs services from Spain.

The company may need to enter into a written remote-work agreement, register as an employer, obtain a Spanish Social Security contribution account code, operate payroll in line with Spanish obligations and assess whether the employee’s activities create a permanent establishment.

For the employee, tax residence, salary taxation, permission to live and work in Spain and Social Security coverage are also relevant. Each area has its own rules, so the entire case should not be decided by a single criterion such as the 183-day threshold.

Quick answer: when an employee habitually works from Spain for a foreign company, Spanish mandatory employment rules and Spanish Social Security will normally require review. The foreign company may need to register as an employer without necessarily forming a Spanish subsidiary. Tax residence, payroll withholding and permanent establishment exposure require separate analyses.

 

More information

 

What does working from Spain for a foreign company mean?

This situation arises when an individual performs employment duties from a home or another location in Spain while the employer is established in another country.

It may involve several different scenarios:

  • A foreign company directly hires an individual who already lives in Spain.
  • An existing employee permanently moves to Spain while retaining the original contract.
  • The company authorises a temporary period of remote work from Spain.
  • The employee divides working time between Spain and another country.
  • A non-EU national moves to Spain under an international remote-work permit.

Duration, nationality, the employer’s country, the employee’s duties and the actual working pattern can all change the obligations. The arrangement should therefore be classified correctly before a contractual or registration structure is selected.

Main areas to review

Area Main question Possible obligation
Immigration Can the individual legally live and work from Spain? Visa, authorisation or residence registration.
Employment Which mandatory rules protect the relationship? Contract, remote-work agreement, working time, pay and health and safety.
Social Security Which country’s system applies? Employer registration, employee registration and contributions.
Personal taxation Where is the employee resident and where is salary taxed? Tax returns, withholding and double-tax relief.
Corporate taxation Does the employee’s presence create obligations for the company? Registration, payroll or permanent establishment.

Which employment law applies?

In an international employment relationship, the parties may choose the law governing the contract within the limits established by conflict-of-law rules. That choice cannot deprive the employee of protection under mandatory provisions of the law that would otherwise apply.

When work is habitually performed from Spain, Spanish mandatory employment rules must be reviewed. A Spanish collective bargaining agreement may also apply depending on the business activity and the circumstances.

Relevant matters include:

  • Salary and remuneration structure.
  • Working time, schedules and time recording.
  • Annual leave, rest periods and statutory leave.
  • Equal treatment and non-discrimination.
  • The right to disconnect.
  • Protection in termination situations.
  • Occupational health and safety.
  • Employee representation and collective bargaining.

Translating a foreign employment contract is not enough. The agreement should be adapted to the reality of work performed in Spain.

Remote-work agreement

Spanish Law 10/2021 regulates distance work within its scope and requires a written agreement before remote work begins.

The agreement should cover the applicable inventory of equipment, expenses, working hours, the proportion of office and remote work, the chosen workplace, monitoring measures, duration and reversibility arrangements.

In an international setting, it should also address:

  • The authorised country and address of work.
  • The duty to report any change of location.
  • Data protection and cybersecurity requirements.
  • Coordination with Social Security and tax compliance.
  • Grounds for reviewing or ending the authorisation.

Equipment and expenses

Spanish distance-work rules recognise the right to sufficient equipment, tools and necessary maintenance. They also provide that remote work should be paid for or compensated by the employer and should not require the employee to bear expenses connected with the equipment needed for the work.

The applicable collective agreement may regulate the amount and method of compensation. The arrangement should be documented and distinguished from salary.

Occupational health and safety

Home working does not remove the employer’s preventive duties. The company must assess risks in the area used for work while respecting the privacy of the home.

In addition to ergonomics, display-screen work and physical conditions, the review should cover working-time organisation, breaks, isolation and psychosocial risks.

Where the foreign company has no prevention structure in Spain, it should define how these obligations will be met and whether a specialist provider will be appointed.

Data protection and security

Accessing foreign systems from Spain may involve the processing of personal data and international data transfers. The company should review the legal basis, service providers, destination countries and security measures.

Policies should cover devices, networks, local storage, printing, incident management, confidentiality and the return of equipment.

Where are Social Security contributions paid?

The general Social Security principle looks to the country where the work is physically performed. If the employee habitually works from Spain, Spanish Social Security may apply even though the employer is established abroad.

However, a temporary situation may be covered by EU coordination Regulations, a bilateral agreement or an applicable exception. An A1 certificate or other certificate of coverage may temporarily preserve the home-country system if all conditions are met.

Simply continuing to pay foreign contributions does not prove that the foreign system is legally applicable.

Registering the foreign company with Spanish Social Security

Where Spanish Social Security applies, the foreign company may need to register as an employer, obtain a contribution account code, register the employee before work begins and pay the corresponding contributions.

This employment registration does not itself amount to forming a subsidiary and does not automatically determine the existence of a permanent establishment for tax purposes.

Depending on the company’s structure and home country, representation may be needed to manage Spanish formalities. The applicable process should be checked for the specific case instead of assuming that a representative office is always required.

Is a subsidiary or branch required?

Not necessarily. A foreign company can have employer obligations without incorporating a Spanish company.

The appropriate option depends on the activity:

  • Foreign employer registration: allows employment and Social Security obligations to be managed without forming a separate operating entity.
  • Branch: a secondary establishment carrying on the foreign company’s activity without separate legal personality.
  • Subsidiary: a Spanish company with its own legal personality.
  • Representative office: a presence generally limited to preparatory or auxiliary tasks rather than ordinary commercial activity.

A representative office should not be created solely to process payroll without checking whether that structure matches the actual activity.

The employee’s tax residence

Tax residence does not depend only on the employer that pays the salary. Spanish rules examine presence for more than 183 days during the calendar year, the main centre or base of activities or economic interests and a rebuttable family presumption.

If two countries treat the individual as resident, the double tax treaty may resolve the conflict through tests such as permanent home, centre of vital interests, habitual abode and nationality.

For further detail, see our guide to tax residence and international remote work.

Where is the salary taxed?

Double tax treaties generally connect salary to the place where employment is physically exercised. Working from Spain may therefore create taxable income in Spain even where the contract, payer and bank account are foreign.

A Spanish tax resident generally reports worldwide income in Spain, with double-tax relief available where applicable.

A non-resident may also be taxable in Spain on remuneration corresponding to work physically performed in Spanish territory.

Withholding obligations of the foreign employer

Payroll withholding should be analysed under Spanish law and the applicable treaty. It is not appropriate to state automatically that a foreign company without a permanent establishment can never have withholding obligations, or to transfer self-employment payment obligations to an employee.

In particular, Spanish form 130 relates to advance payments for certain business and professional activities. It is not the general mechanism through which an employee reports foreign salary every quarter.

The correct treatment depends on residence status, whether the payer has a withholding obligation and how annual taxation is settled.

Special tax regime for people moving to Spain

Individuals who acquire Spanish tax residence as a result of moving to Spain may consider the special regime for inbound workers, professionals, entrepreneurs and investors if they satisfy its requirements.

The regime is not automatic. The individual’s previous situation, reason for the move, employment or professional relationship, activities and election deadlines should be reviewed.

An international remote-work visa does not by itself guarantee access to the special tax regime.

Permanent establishment risk

An employee’s home does not automatically create a permanent establishment for the foreign company. Risk increases when the presence is stable, the location is at the company’s disposal, an essential part of the business is carried on there or the employee habitually participates in concluding contracts.

Particular attention should be given to:

  • Sales, management and business-development duties.
  • Authority to negotiate or sign.
  • Habitual management of Spanish customers.
  • Public use of the home as a business address.
  • The duration and continuity of the work.
  • A commercial reason for operating from Spain.

See also our guide to corporate tax and international remote work.

Employee or self-employed contractor?

A company should not present a relationship as self-employment if, in practice, it has the characteristics of employment. Dependence, the allocation of business risk, organisation, hours, equipment and control should all be reviewed.

A commercial services agreement does not remove employment obligations where the reality is an employment relationship. Incorrect classification can lead to reassessments and liabilities.

Employer of Record: what should be reviewed?

Some businesses use an Employer of Record to hire locally without forming a subsidiary. This can be an operational alternative, but it does not eliminate the need to review responsibilities, day-to-day direction, data protection, costs, termination and possible tax presence.

The option should be compared with direct foreign-employer registration and with establishing the company’s own Spanish structure.

Recommended process for the company

  1. Determine whether the move is temporary, habitual or permanent.
  2. Check nationality and permission to work.
  3. Determine the applicable employment law.
  4. Adapt the contract and enter into the remote-work agreement.
  5. Determine the applicable Social Security system.
  6. Register the company and employee where required.
  7. Configure payroll, contributions and withholding.
  8. Assess tax residence and permanent establishment exposure.
  9. Review occupational safety, data and equipment.
  10. Set a date for reviewing the arrangement.

Common mistakes

  • Assuming that a foreign contract excludes Spanish employment rules.
  • Continuing foreign contributions without checking the applicable system.
  • Confusing employer registration with a permanent establishment.
  • Requiring the employee to file form 130 for salary income.
  • Creating a representative office without reviewing its actual functions.
  • Ignoring occupational risks in the home workplace.
  • Treating a dependent employee as self-employed.
  • Reviewing only the 183-day threshold.
  • Approving the move before assessing its consequences.

Checklist before work begins

  • Permission to live and work reviewed.
  • Employment law and collective agreement identified.
  • Contract and remote-work agreement adapted.
  • Equipment, expenses and working hours documented.
  • Occupational risk prevention organised.
  • Social Security system determined.
  • Employer and employee registration prepared.
  • Payroll and withholding reviewed.
  • Tax residence analysed.
  • Permanent establishment exposure assessed.
  • Data protection checked.
  • Review date established.

Does your company have an employee working from Spain?

At Adlanter, we coordinate the employment, tax, immigration and Social Security review needed to choose the right structure and manage compliance in Spain.

Through our international mobility services and employment advisory services, we help foreign businesses register, hire and manage professionals in Spain.

Nuestros expertos

  • Adlanter

    Expertos en asesoría fiscal, laboral, mercantil, contable, movilidad internacional y gestión del talento. Compartimos análisis, novedades normativas y contenido especializado para ayudar a empresas y profesionales a tomar decisiones informadas y afrontar con seguridad los retos de un entorno empresarial en constante evolución.

Do you have any questions?

If you have any questions after reading "Working Remotely from Spain for a Foreign Company", we are here to help you.

Let's talk. We guide you clearly and step by step.

Contact us now