Permanent Establishment in Spain: Risks for Foreign Companies
When does a foreign company become taxable in Spain?
A foreign company can become taxable in Spain independently of incorporating a Spanish company or formally opening a branch. If its people, premises, representatives or projects create a sufficiently substantial business presence, Spain may treat it as operating through a permanent establishment, commonly abbreviated to PE.
This can happen deliberately, when an overseas company registers a Spanish branch. It can also happen unintentionally: a salesperson begins negotiating contracts from Madrid, a director manages the foreign company from Barcelona, an employee works indefinitely from a Spanish home office, or a foreign supplier carries out a long installation project in Spain.
The consequences go beyond obtaining a Spanish VAT number. A PE can bring Spanish corporate-income-tax filings, accounting obligations, payroll and withholding requirements, profit-attribution and transfer-pricing questions, and potential exposure for earlier periods.
A Spanish tax registration does not, by itself, create or prevent a permanent establishment. PE status depends on what the foreign company actually does in Spain, how it does it, and which double-tax treaty applies.
Important: this is general information, not a PE opinion for any particular company. Permanent-establishment analysis is highly fact-specific and must take account of the applicable double-tax treaty, including any modifications made through the Multilateral Instrument.
Permanent establishment in Spain at a glance
What is a permanent establishment in Spain?
A permanent establishment is a taxable business presence of a non-resident person or company. It is not normally a separate legal person from the foreign head office. The Spanish Tax Agency expressly states that a PE has no legal personality separate from its head office.
Under Article 13.1(a) of Spain's Non-Resident Income Tax Act, a non-resident is considered to operate through a PE when, under any legal title, it has facilities or workplaces of any kind in Spain on a continuous or habitual basis through which it carries on all or part of its activity, or when it acts in Spain through an agent authorised to contract in its name and on its behalf who habitually exercises those powers.
The statute specifically lists examples including places of management, branches, offices, factories, workshops, warehouses, shops, natural-resource sites, agricultural operations, and construction, installation or assembly projects lasting more than six months.
This domestic definition is only the beginning. If the foreign company is entitled to protection under a double-tax treaty between Spain and its country of residence, the treaty's PE article must also be examined.
Why the applicable double-tax treaty matters
Spain has an extensive network of double-tax treaties. These treaties commonly restrict the circumstances in which Spain may tax the business profits of an overseas enterprise. Although many follow Article 5 of the OECD Model Tax Convention, their wording is not identical.
The relevant treaty may contain its own rules for fixed places of business, construction and installation projects, dependent agents, independent agents, preparatory or auxiliary activities, warehousing, service activities, anti-fragmentation, insurance activities, or natural-resource work.
Treaties can also be modified by the Multilateral Convention to Implement Tax Treaty Related Measures to Prevent Base Erosion and Profit Shifting, usually called the MLI. Its effect depends on the positions adopted by both treaty countries.
Consequently, there is no safe universal statement such as "six months never creates a PE" or "an employee without signature authority cannot create a PE." The answer depends on the applicable text and the facts.
The main ways a foreign company can create a PE in Spain
1. A fixed place of business in Spain
The traditional form of PE is a physical location that is sufficiently fixed and available to the foreign company, and through which it carries on all or part of its business.
Possible examples include an office or coworking space used continuously by the foreign company, a shop, showroom, factory, workshop, repair facility, warehouse, project office, premises belonging to a Spanish group company but placed at the foreign company's disposal, or a director's or employee's home office in particular circumstances.
Ownership and a formal lease are not essential. The statutory language refers to premises being available under any legal title, and treaty analysis generally focuses on whether the location is effectively at the enterprise's disposal.
2. Employees working in Spain
Having an employee in Spain does not automatically create a PE in every case. Equally, registering as a Spanish non-resident employer does not guarantee that no PE exists.
The analysis should consider what the employee actually does in Spain, whether the work is part of the company's core business, whether the employee generates or maintains revenue, whether the arrangement is temporary or indefinite, whether the company commercially benefits from the Spanish location, and whether the employee negotiates or materially advances contracts.
A software developer who moves to Spain for personal reasons and works solely on internal functions may present a different risk from a Spanish country manager responsible for building the local market. Neither should be classified solely by job title.
3. Remote work and home offices
Cross-border remote work is one of the most common modern PE concerns. A home is not automatically a place of business of the employer simply because an employee performs work there.
Relevant factors may include the continuity of the work from Spain, whether the employee chose Spain for personal reasons or the company required a Spanish location, whether customer meetings or revenue-generating activity occur there, whether the employer bears workspace costs, and whether the place is effectively at the company's disposal.
Spain's Directorate-General for Taxation considered an exceptional COVID-related remote-working arrangement in binding consultation V0066-22. The outcome depended on the particular facts and should not be treated as a general safe harbour for permanent remote work.
4. A dependent agent in Spain
A company may create a PE without having premises of its own if a person in Spain acts for it with sufficient authority and regularity.
Spanish domestic law refers to an agent authorised to contract in the taxpayer's name and on its behalf who habitually exercises that authority. Applicable treaties may use different or broader language. Some modern treaty provisions can also capture a person who habitually plays the principal role leading to contracts that the foreign enterprise routinely concludes without material modification.
Removing formal signature authority from an employee's contract does not solve the problem if the actual sales process shows that the material decisions are made in Spain. Substance is more important than job descriptions or internal signing protocols.
5. Independent agents and contractors
Using a local distributor, consultant or agent does not necessarily create a PE. Many treaties exclude agents that are genuinely independent and act in the ordinary course of their own business.
However, calling someone an "independent contractor" is not conclusive. The review should consider whether the person has several unrelated clients, bears genuine entrepreneurial risk, is economically dependent on the foreign company, works almost exclusively for related enterprises, is controlled in detail, or habitually exercises contractual authority.
6. Construction, installation and assembly projects
Construction and installation work often has a specific duration threshold. Spanish domestic law includes construction, installation and assembly projects lasting more than six months in its PE examples. A double-tax treaty may instead apply a twelve-month threshold, another period, or specific service and project provisions.
The assessment may need to include preparatory work performed at the site, connected phases of the same commercial project, temporary interruptions, work carried out by subcontractors, and projects divided between related companies. Artificially splitting a project into shorter contracts does not necessarily keep each element below the applicable threshold.
7. Warehouses, inventory and fulfilment
Foreign companies frequently obtain Spanish VAT numbers because they import goods, hold stock or use fulfilment services in Spain. VAT registration does not decide whether the warehouse also constitutes a PE for direct-tax purposes.
This is especially important where the company uses a third-party logistics provider, or 3PL, in Spain. A 3PL arrangement normally means that an independent logistics operator stores, picks, packs, labels, returns or ships goods for the foreign company. That does not automatically create a PE, but it also does not remove the need for a PE review.
Spanish domestic law expressly includes warehouses, shops and other establishments in Article 13 of the Non-Resident Income Tax Act. The same article frames the wider test as whether the non-resident has facilities or workplaces in Spain, under any legal title, on a continuous or habitual basis, through which it carries on all or part of its activity, or acts through a habitual contracting agent.
A low-risk 3PL profile may involve a logistics provider that serves many unrelated clients, controls its own warehouse, allocates space flexibly, performs standard storage and fulfilment services, and has no authority to negotiate or conclude sales for the foreign company. The risk increases if the foreign company has a dedicated or identified area at its disposal, keeps personnel or representatives at the warehouse, controls day-to-day warehouse functions, uses the location for customer-facing activity, processes or customises goods there, manages returns as a core commercial function, or uses the 3PL as part of a broader Spanish sales operation.
The contract should match the reality. Clauses saying that the 3PL is independent are helpful only if the provider is genuinely independent in practice, bears its own operating responsibilities, and does not habitually bind the foreign company. The review should also check whether stock in Spain is merely stored or whether the Spanish operation performs functions that are central to revenue generation.
Finally, treaty wording matters. Article 4 of the Non-Resident Income Tax Act provides that the law applies without prejudice to international treaties that form part of Spanish law. Some treaties contain storage, display or delivery exceptions, but those exceptions must be read exactly and may depend on whether the activity is genuinely preparatory or auxiliary and whether related activities in Spain must be combined.
8. Service activities performed in Spain
Some Spanish treaties contain a service PE provision. These provisions may allow a PE to arise where an enterprise provides services in Spain through employees or other personnel for more than a specified period, even without a conventional fixed office.
This is not a universal rule. Companies providing consulting, engineering, technology implementation, management, training or other on-site services should record who performs the work, where it is performed, the number of days spent in Spain, which entity contracts with the customer, and where personnel are directed and supervised.
9. A Spanish subsidiary acting for its foreign parent
Owning or controlling a Spanish subsidiary does not, by itself, make that subsidiary a PE of its foreign parent. The companies remain separate legal and taxable persons.
PE risk may nevertheless arise if the subsidiary habitually concludes or secures contracts for the parent, makes premises available to the parent's personnel, performs the parent's core business rather than genuine support functions, holds inventory for the parent, or operates without meaningful functional independence.
10. Digital business, websites and servers
Selling to Spanish customers through a website does not normally create a conventional PE merely because the website is accessible in Spain. A website is software and data, not itself a physical place.
The position can be different where the enterprise owns or has a server, infrastructure or other equipment at its disposal in Spain and carries on material business functions through it. Local employees, dependent agents, inventory, fulfilment or management activity may also create risk even though the customer interaction appears digital.
Branch, subsidiary and PE are not the same thing
A Spanish branch is a registered extension of the foreign company. It is not a separate Spanish company, and it will ordinarily be treated as a permanent establishment where it carries on business in Spain.
A Spanish subsidiary, usually an S.L., is a separate Spanish legal entity. The foreign parent does not automatically have a PE merely because it owns the subsidiary. However, the parent may still create a PE if the subsidiary habitually acts for it, concludes or secures its contracts, or makes premises available to it.
A non-resident registration or Spanish VAT registration is different again. A foreign company may need a Spanish NIF or VAT number because it imports goods, sells to Spanish customers, holds stock, makes taxable supplies, appoints a tax representative, or has other Spanish reporting obligations. That registration does not, by itself, create a permanent establishment. The company will have a PE only if its Spanish activity also satisfies the fixed-place, dependent-agent, warehouse, personnel, project or treaty rules discussed above.
A permanent establishment is the tax result of the activity carried on in Spain. It may exist even if no branch has been registered and no Spanish company has been incorporated.
Tax and compliance consequences of a Spanish PE
If a foreign company has a PE in Spain, Spain may tax the profits attributable to that PE. The analysis is not simply "Spanish turnover equals Spanish taxable profit." Functions, assets, risks, personnel, transfer pricing and head-office support must be reviewed.
The general Spanish corporate income tax rate is 25%. The Spanish Tax Agency confirms that PEs apply the tax rate corresponding under the Corporate Income Tax rules, and that the general rate is 25%. Qualifying newly created entities may benefit from a 15% rate under Article 29 of the Corporate Income Tax Act for the first profitable tax period and the following one. Qualifying empresas emergentes, or Spanish startups under the Startup Law, may also apply a 15% rate for the first profitable tax period and the following three, provided they keep that status. These reduced rates are not automatic and must be checked before relying on them.
PEs generally file the annual Model 200 and make instalment payments through Model 202, where applicable. They may also have Spanish accounting, registration and formal obligations similar to resident entities. In practical terms, this means Spanish bookkeeping, bank reconciliation, supporting invoices and contracts, profit-attribution records, and accounts that can sustain the figures declared in the Spanish tax return.
The PE's activities may generate Spanish VAT filings, payroll, employment-tax withholding and other reporting obligations. These requirements depend on the transactions and workforce; they should not be inferred solely from the existence of the PE.
Where the Spanish operation is structured as a registered branch or Spanish company, annual accounts must also be prepared, approved and, where applicable, deposited. Article 279 of the Capital Companies Act regulates the deposit of annual accounts, and Article 282 provides for registry closure where the filing obligation is not met. In plain terms, if annual accounts are not deposited, the company or branch may be unable to register later changes to deeds, administrators, powers, share capital, registered office or other corporate acts while the default persists, subject to limited legal exceptions.
The consequences can become more serious if the default is repeated. Article 147 of Royal Decree 1065/2007 allows the Tax Administration to revoke a tax identification number where a company fails to deposit annual accounts for four consecutive financial years, and the sixth additional provision of the General Tax Law provides that publication of NIF revocation in the BOE can prevent notarial authorization of many legal instruments and block access to public registries until the NIF is rehabilitated.
Spanish law also contains a complementary tax on certain PE income transferred abroad. Important exemptions or treaty limitations may apply, including for qualifying EU head offices and treaty-country situations.
What if the PE was not registered on time?
An unregistered PE does not cease to exist because the company did not identify it. If the facts meet the test, the Tax Agency may examine earlier periods and assess tax, interest and, where legally applicable, penalties.
As a general rule, Article 66 of the General Tax Law gives the Administration four years to determine the tax debt and four years to demand payment of tax debts that have been assessed or self-assessed. That does not always mean the last four calendar years. Under Article 67, the limitation period is normally counted from the day after the relevant filing or payment deadline ends. For a PE corporate-tax return, this usually means looking at the filing deadline for each Model 200 period, not merely the financial year-end.
The four-year period can also be interrupted. Article 68 includes interruption by formal administrative actions known to the taxpayer, taxpayer actions leading to liquidation or payment, and relevant appeals or claims. Therefore, the practical review should cover all non-prescribed tax periods, which often means roughly the last four open tax periods but may differ depending on deadlines, prior filings, AEAT communications and procedural history.
If the company regularises voluntarily before any prior request from the Tax Agency, Article 27 applies the surcharge regime for late returns without prior request. The surcharge is generally 1% plus an additional 1% for each full month of delay. After 12 months, the surcharge is 15%, and delay interest is charged from the day after those 12 months until the late return is filed. This voluntary route can exclude sanctions that might otherwise have been imposed for the late declaration.
If the issue is identified after a Tax Agency review or inspection has started, the position changes. The Administration may assess the unpaid PE tax for non-prescribed periods, charge delay interest under Article 26, and consider penalties where the facts justify them. Article 191 treats failure to pay the tax that should result from a correct self-assessment as a tax infringement, unless the taxpayer has regularised under Article 27 or another legal exception applies. The power to impose tax sanctions also generally prescribes after four years under Article 189.
Separate from late-filing surcharges and sanctions, if an assessed or self-assessed debt is not paid in the voluntary payment period, executive-period surcharges under Article 28 may apply. In other words, the cost of a late PE regularisation can include the original tax, late-filing surcharges where the company regularises voluntarily, delay interest, executive-period surcharges if payment is not made on time, and penalties where the Tax Agency regularises and the legal conditions for sanctioning are met.
A structured response should include preserving the facts, identifying the applicable treaty, determining the likely PE start date, mapping Spanish functions and risks, quantifying attributable profits, reviewing VAT, payroll, withholding, Social Security and accounting obligations, calculating which periods remain open, evaluating voluntary correction, and aligning the operating structure for the future.
Regularisation should be coordinated with advisers in the head-office country so that foreign tax returns, double-tax relief and group reporting remain consistent.
Permanent-establishment risk checklist for Spain
A foreign company should seek a Spanish PE review if one or more of the following is true:
- An employee, director or contractor works regularly from Spain.
- Someone in Spain negotiates or concludes customer contracts.
- Spanish orders are routinely approved abroad without material changes.
- The company uses an office, coworking space, home office, warehouse or customer premises in Spain.
- Stock or equipment is maintained in Spain.
- Personnel install, assemble, repair or supervise equipment in Spain.
- A construction or implementation project continues for several months.
- A Spanish subsidiary carries out substantial activities for its foreign parent.
- Senior management controls the wider foreign business from Spain.
- The company is registered for Spanish VAT but its operations have expanded.
- A non-resident employer registration is being used for personnel performing commercial functions.
- The business describes itself publicly as having a Spanish office or Spanish operation.
- No one has reviewed the relevant double-tax treaty and the MLI.
The presence of one of these facts is not a legal conclusion. It identifies issues that should be reviewed together.
Practical examples
US software company with a developer in Tenerife
A US software company allows one developer to move to Tenerife permanently. The developer does not meet customers, negotiate contracts or manage the company. The move was requested for personal reasons, and the company does not present the home as its Spanish office.
This does not justify an automatic PE conclusion. The home-office facts, the employee's activity and the Spain-US treaty must be reviewed. Spanish payroll, Social Security, immigration and employment obligations may still arise independently.
UK sales director operating from Barcelona
A UK company's sales director lives in Barcelona, negotiates commercial terms with Spanish and European clients and sends contracts to London for routine signature. The company's Spanish revenue depends materially on that work.
The lack of formal signature authority is not a complete defence. The arrangement may raise dependent-agent and home-office PE issues under the applicable treaty, as well as Spanish employer and payroll obligations.
German manufacturer installing equipment in Spain
A German manufacturer supplies industrial machinery and sends personnel and subcontractors to install it at a Spanish customer's plant. The project is divided into several contracts and phases.
The company should review the construction or installation threshold in the Spain-Germany treaty, how connected periods are counted, whether subcontractor time is relevant, and whether the site is otherwise a fixed place of business.
Foreign e-commerce company holding stock in Spain
A foreign retailer stores goods with a Spanish fulfilment provider and registers for Spanish VAT. It has no employees in Spain and does not control a dedicated warehouse area.
VAT registration does not itself create a PE. The contract with the fulfilment provider, control over the premises, functions performed, applicable treaty exceptions and any related Spanish activities determine the direct-tax position.
Founder managing a foreign company from Madrid
The founder and sole director of a foreign company relocates to Madrid and makes all important commercial, banking and strategic decisions from Spain.
This is not merely an employee-PE question. It may raise Spanish effective-management and corporate-residence risk under Article 8 of the Corporate Income Tax Act. The treaty residence provisions and the substance of management abroad require urgent review.
How to reduce PE risk before expanding into Spain
Risk management should reflect reality; it should not consist of inserting disclaimers into contracts that contradict the business operation.
- Define what Spanish personnel may and may not do.
- Ensure actual contracting procedures match documented authority.
- Record where negotiations and key decisions occur.
- Review long-term remote-working requests before approval.
- Avoid presenting a private home as a Spanish corporate office without analysis.
- Monitor days and connected phases for projects in Spain.
- Review warehouse and fulfilment arrangements before moving stock.
- Confirm that independent agents are genuinely independent in practice.
- Align subsidiary functions and remuneration with transfer-pricing documentation.
- Review the applicable treaty rather than relying on generic PE summaries.
The objective is not to avoid Spanish obligations at all costs. It is to choose the correct structure early, price the compliance cost accurately and avoid discovering an undeclared PE after the business has already accumulated exposure.
How Strong Law and Compliance can assist
Strong Law and Compliance assists international companies in determining how to establish and operate in Spain while keeping their legal, tax, accounting, payroll and employment obligations aligned.
Depending on the company's circumstances, our work may include reviewing Spanish activities for permanent-establishment risk, analysing the applicable double-tax treaty and MLI position, comparing non-resident registration, branch and Spanish S.L. options, obtaining Spanish NIF and VAT registration, registering a foreign entity as a Spanish employer, establishing a Spanish branch or subsidiary, regularising a Spanish PE, and providing Spanish accounting, tax filings, payroll and continuing compliance.
If your foreign company already has employees, premises, stock, representatives or projects in Spain, the safest time to review the structure is before the next contract or expansion, not after a tax enquiry.
Frequently asked questions
Does a Spanish VAT number create a permanent establishment?
No. Obtaining a Spanish NIF or VAT registration does not, by itself, create a PE. It also does not prove that the company has no PE. VAT registration and direct-tax PE status are governed by different tests.
Can a foreign company employ someone in Spain without creating a PE?
Possibly. Employment in Spain does not automatically create a PE in every case. The employee's activities, authority, work location, duration and importance to the business must be reviewed under Spanish law and the applicable tax treaty. Spanish employer, payroll and Social Security obligations may arise even without a PE.
Does a remote employee's home create a Spanish PE?
Not automatically. The analysis may consider whether the home is used continuously for the business, whether the employer requires or benefits from the Spanish location, whether core activity occurs there and whether the place is effectively at the company's disposal.
Can a salesperson create a PE without signing contracts?
Yes, depending on the applicable treaty and the facts. Some treaty provisions can capture a person who habitually plays the principal role leading to contracts that the foreign company routinely approves without material modification. Formal signature limits must match actual conduct.
Is a Spanish branch a separate company?
No. A branch is a registered extension of the foreign company and does not normally have separate legal personality. The foreign parent remains directly responsible for the branch.
Is every Spanish branch a permanent establishment?
A branch carrying on business in Spain will ordinarily constitute a PE. However, a PE can also arise without a registered branch. Commercial registration and tax status are related but distinct concepts.
How long can a foreign company work in Spain without a PE?
There is no single universal period. Spanish domestic law, the applicable tax treaty, the type of activity and the way connected projects are counted must all be considered. Construction, installation and service provisions can use different thresholds.
Does a warehouse in Spain create a PE?
It may. Spanish domestic law lists warehouses, while some treaties protect particular storage or delivery activities when they are genuinely preparatory or auxiliary. Control of the premises, personnel, functions, stock and related activities must be reviewed.
Does a Spanish subsidiary create a PE for its foreign parent?
Not merely because the parent owns or controls it. A PE may nevertheless arise if the subsidiary habitually acts for the parent, concludes or secures its contracts, provides premises to it or performs the parent's core business in circumstances covered by the treaty.
What tax return does a Spanish PE file?
Spanish PEs generally file Model 200 for their annual direct-tax return and Model 202 for instalment payments where applicable. VAT, payroll, withholding and information returns depend on the PE's activities.
Is PE registration the same as forming a company in Spain?
No. A PE is not normally a separate legal person. Forming a Spanish S.L. creates a separate Spanish company. Registering a branch formalises an extension of the foreign parent. The appropriate option depends on the intended activity, risk, workforce, duration and commercial objectives.
Official legal and administrative sources
- Spanish Non-Resident Income Tax Act - Royal Legislative Decree 5/2004
- Article 13: income obtained in Spain and domestic PE definition
- Articles 16-23: taxation of income obtained through a PE
- Article 8 of the Corporate Income Tax Act: Spanish corporate tax residence and effective management
- Article 29 of the Corporate Income Tax Act: tax rates
- Startup Law: 15% rate for qualifying empresas emergentes
- Article 279 of the Capital Companies Act: deposit of annual accounts
- Article 282 of the Capital Companies Act: registry closure
- Article 147 of Royal Decree 1065/2007: NIF revocation
- General Tax Law: effects of NIF revocation
- Article 66 of the General Tax Law: four-year limitation periods
- Article 67 of the General Tax Law: start of limitation periods
- Article 68 of the General Tax Law: interruption of limitation periods
- Article 26 of the General Tax Law: delay interest
- Article 27 of the General Tax Law: late-filing surcharges without prior request
- Article 28 of the General Tax Law: executive-period surcharges
- Article 189 of the General Tax Law: limitation period for tax sanctions
- Article 191 of the General Tax Law: failure to pay tax due under a self-assessment
- Article 295 of the Mercantile Registry Regulations: definition of a branch
- Article 300 of the Mercantile Registry Regulations: registration of the first Spanish branch of a foreign company
- AEAT: definition of a permanent establishment
- AEAT: PE taxation and principal filing obligations
- Ministry of Finance: Spain's double-tax treaties
- OECD: 2025 Update to the Model Tax Convention