A software engineer who works from home in Spain for a foreign company does not, on that fact alone, create a permanent establishment of the company in Spain. Under Spain's non-resident income tax law and its tax treaties, a permanent establishment arises when the company has a fixed place of business at its disposal in Spain, or a person in Spain who habitually concludes contracts on its behalf. Spain's tax authority has applied that test to a remote employee's home office and found no permanent establishment where the company did not require the employee to work from home, kept an office available abroad and paid nothing for the home office.
What a permanent establishment in Spain is
A permanent establishment is a taxable presence of a foreign company in Spain: the point at which the company's business profits in Spain become taxable in Spain. Spain's non-resident income tax law (Ley del Impuesto sobre la Renta de No Residentes, article 13) defines it as a company having, continuously or habitually, facilities or workplaces of any kind in Spain where it carries out all or part of its activity, or acting through an agent authorised to contract in its name who habitually exercises that power.
Tax treaties use the same two tests. The treaty between Spain and the United States (article 5) defines a permanent establishment as a fixed place of business through which a company carries on all or part of its business, and adds a second route: a person who habitually exercises in Spain an authority to conclude contracts in the name of the company. When a treaty applies, its definition is the one that decides.
When a remote employee does not create a permanent establishment in Spain
A remote employee's home in Spain is not a permanent establishment of the employer just because the employee works there. The home becomes a fixed place of business of the company only if it is at the company's disposal, and that depends on the facts, according to a binding ruling of Spain's Directorate General of Taxes (Dirección General de Tributos, DGT), V0066-22 of 18 January 2022.
In that ruling, an employee of a UK company worked from his home in Spain for more than 183 days in 2020. The DGT concluded that the home office was not at the company's disposal because of three facts:
- The employee chose to work from Spain: he decided unilaterally to stay, for personal reasons.
- The company kept an office available abroad: it had a place for him to work in person in the United Kingdom, so it did not require him to work from home.
- The company paid nothing for the home office: it covered no housing costs and paid no extra remuneration for using the home for work.
The same ruling quotes the OECD's commentary on its Model Tax Convention: a home office could be a permanent establishment when it is used on a continuous basis for the company's business and the company has required the person to use that location for the business.
When a remote employee can create a permanent establishment in Spain
A remote employee can create a permanent establishment in Spain in two situations, each matching one of the two tests in Spain's law and the treaties.
- The home office is at the company's disposal: the employee works from home in Spain on a continuous basis because the company requires it, for example because the company has no office for that person anywhere else, and the place has a degree of permanence. In ruling V0066-22, the DGT stressed that whether a permanent establishment exists is a matter of proof, based on the specific facts.
- The employee habitually concludes contracts for the company: a person in Spain who has and habitually exercises authority to conclude contracts in the company's name creates a permanent establishment under article 5 of the Spain–US treaty, unless the person is an independent agent acting in the ordinary course of business.
The treaty also excludes places used only for preparatory or auxiliary activities, such as storing goods or collecting information for the company.
Software engineer vs salesperson: two remote employees compared
The two tests explain why the role matters as much as the location. A software engineer and a salesperson working from home in Spain for the same US company sit in very different positions.
| Factor | Software engineer working from home in Spain | Salesperson working from home in Spain |
|---|---|---|
| Typical work | Writes and reviews code for the company's product | Negotiates and signs deals with customers |
| Authority to conclude contracts | None | Often, if the company grants it |
| Dependent-agent test | Not met when the engineer concludes no contracts | Can be met if the person habitually concludes contracts |
| Fixed-place-of-business test | Depends on whether the home is at the company's disposal | Depends on whether the home is at the company's disposal |
| What keeps it clear | No requirement to work from home and no company-paid home office, or hiring through an EOR | No authority to conclude contracts, or a Spanish entity for sales |
The same reasoning applies to indirect taxes: in ruling V1233-23 of 10 May 2023, on VAT, the DGT found that, on the facts described, a UK company with four remote workers in Spain did not appear to have a permanent establishment for VAT, because the workers' homes were not at the company's disposal and the workers appeared to lack authority to contract on its behalf.
Hiring setups compared by permanent establishment exposure (2026)
A foreign company can employ engineers in Spain through four setups, and each one answers the permanent establishment question differently.
| Setup | Who employs the engineer | Permanent establishment exposure for the foreign company | Main obligations in Spain | When it fits |
|---|---|---|---|---|
| Direct employee, no Spanish entity | The foreign company | Depends on the facts: the home office and contracting tests | Spanish payroll and employer obligations, run by the company | One or two engineers, with a clear remote setup |
| Genuine contractor (autónomo) | Nobody: the engineer is self-employed | Not an employee of the company; the contractor works independently | The contractor invoices and handles their own taxes | Project-based or flexible work |
| Employer of record (EOR) | The EOR, a Spanish employer | The engineer is not the company's employee in Spain | The EOR runs payroll and employment obligations | Full-time employees without a Spanish entity |
| Own Spanish entity | The company's Spanish subsidiary | The entity is taxed in Spain as a company in its own right | Corporate tax, payroll and accounts in Spain | A stable team that keeps growing |
Kulturo's guide to hiring in Spain without a legal entity compares these routes in detail, with what each one costs and when to move from one to the next.
How to keep a remote setup in Spain clear of permanent establishment
A foreign company with a remote engineer in Spain can keep the permanent establishment question clear by aligning the facts with the tests the DGT applied in ruling V0066-22:
- Do not require work from the home. Make remote work the employee's choice, and keep an office or workspace available elsewhere if the role allows it.
- Do not turn the home into a company facility. Avoid paying for the home as a workplace or branding it as a company office.
- Keep contracting authority outside Spain. An engineer who builds the product does not need, and should not habitually exercise, authority to sign contracts for the company.
- Document the arrangement. Keep the employment contract, the remote-work agreement and the facts in writing, because the existence of a permanent establishment is decided on proof.
- Use an employer of record or an entity when the team grows. Both put the employment relationship in a Spanish employer.
The remote-work agreement itself, with its rules on expenses and time records, is covered in Kulturo's guide to working hours in Spain. A Spanish tax adviser should review any specific case before the company commits; Kulturo does not give tax advice.
How an employer of record changes the picture
An employer of record is the simplest way to employ an engineer in Spain without a Spanish entity, because the EOR is the legal employer in Spain and runs Spanish payroll, so the engineer is not the foreign company's own employee there. The company still directs the engineer's day-to-day work and pays the EOR a monthly invoice.
When a client has no Spanish entity, Kulturo runs the search and the engineer is employed through Kulturo's employer of record partner Deel, which is the legal employer; Kulturo is a Barcelona tech recruitment agency with clients in more than 8 countries.