When a foreign company operates in Spain through a branch, office, construction site, permanent sales team, or an agent with the power to contract, a critical tax question can arise: how to attribute income and expenses to a permanent establishment. It's not just a matter of knowing whether a presence exists in Spain, but also determining what portion of the profit should be taxed here and what documentation can be used to defend the company before the Spanish Tax Agency.
At MGI Àmbit, a Barcelona-based law and economics firm specializing in international taxation, we advise non-resident companies, multinational groups, and expanding companies that need to properly organize their operations in Spain. Incorrect allocation of income or expenses can lead to tax adjustments, penalties, double taxation, or disputes with the parent company.
Quick summary
- What is a permanent establishment: a stable economic presence of a non-resident in Spain through facilities, a fixed place of business or a dependent agent.
- What is attributed: the income, expenses, assets, risks and functions linked to the activity carried out in Spain.
- Tax key: there must be separate accounting and a defensible methodology.
- Common risk: allocating expenses generically without justifying the actual relationship with the permanent establishment.
- Required documentation: contracts, invoices, payroll, cost accounting, staff functions, allocation criteria and support for related operations.
- Objective: to calculate a reasonable, consistent and defensible tax base before the AEAT (Spanish Tax Agency).
What does it mean to attribute income and expenses to a permanent establishment?
Attributing income and expenses to a permanent establishment means separating for tax purposes what part of the economic activity corresponds to the Spanish presence and what part belongs to the head office or other permanent establishments located in other countries.
A permanent establishment does not usually have a legal personality independent of the head office. However, for tax purposes, it must be analyzed as if it were a separate economic unit: what functions it performs, what resources it uses, what risks it assumes, what assets it employs, and what income it generates.
Simply distributing by percentage of sales is not enough
One of the most frequent mistakes is thinking that it's enough to apply a simple rule: "if Spain generates 20% of sales, Spain bears 20% of all expenses." That criterion may be insufficient or incorrect if it doesn't reflect economic reality.
The allocation should be based on a functional analysis. For example, an office in Barcelona that only provides sales support should not receive the same profit allocation as a branch that negotiates contracts, provides services, employs technical staff, sets prices, and manages clients independently.
Why is this a high-risk fiscal issue?
Incorrect allocation of income and expenses can result in the profit declared in Spain being lower than it should be. In a tax audit, the Spanish Tax Agency (AEAT) may question the criteria used, reject expenses, increase the taxable base, or request additional documentation regarding internal transactions with the head office.
Therefore, international companies operating in Spain must design a clear and stable methodology from the outset. The taxation of a permanent establishment should not be improvised at the end of the fiscal year, once the accounts have been closed and there is insufficient traceability.
Does your foreign company operate in Spain and you're unsure what income and expenses you need to declare here? At MGI Àmbit we analyze your structure, your actual business activity, and your documentation to help you avoid unnecessary tax risks.
First: confirm if there is a permanent establishment in Spain
Before attributing income and expenses, a preliminary question must be answered: does a permanent establishment actually exist in Spain? This analysis is essential because it completely changes the way taxes are levied.
Typical assumptions of permanent establishment
A non-resident company may operate through a permanent establishment when it has facilities, offices, management centers, branches, workshops, warehouses with relevant activity, works of a certain duration or any other place from which it carries out all or part of its activity in Spain on a continuous or habitual basis.
A permanent establishment may also exist when a person acts in Spain on behalf of a foreign company with the power to enter into contracts and exercises that power habitually. This scenario is particularly problematic in international business structures, dependent distributors, exclusive agents, or sales teams that close deals on behalf of the parent company.
Auxiliary activities versus main activity
Not every presence in Spain automatically implies a permanent establishment. Some purely preparatory or auxiliary activities may fall outside this definition, especially when they do not, in themselves, generate an essential part of the business. But this boundary must be analyzed very carefully.
An office that only gathers market information is not the same as an office that negotiates prices, manages clients, provides technical services, coordinates deliveries, and participates in direct revenue generation. Operational reality matters more than the formal name given to the office or local team.
| Situation |
Risk of permanent establishment |
What to review |
| Permanent sales office in Spain |
Medium/high |
Whether you negotiate contracts, close sales, or simply prospect. |
| Agent with the ability to hire |
High |
Real powers, frequency of use, and economic dependence. |
| Logistics warehouse |
Variable |
Whether it is an auxiliary or an essential part of the business model. |
| Work, installation or assembly |
It depends on the duration and the agreement |
Term, activity carried out and applicable double taxation agreement. |
| Technical team deployed to Spain |
Medium/high |
Duration, functions, clients served and decision-making capacity. |
What income is attributed to the permanent establishment
The practical rule is clear: income connected with the functions, assets, and risks of the activity carried out in Spain must be attributed to the permanent establishment. The analysis should not be limited to the place where the invoice is issued, but rather to the place where the economic value is created.
Revenue from sales or services performed from Spain
If the permanent establishment plays a decisive role in generating sales or providing services, those revenues must be attributed wholly or partially to Spain. This occurs when the local team acquires clients, negotiates terms, provides the service, manages its execution, or assumes responsibilities towards the client.
However, if the Spanish office only performs auxiliary tasks and the sale is generated, decided, and executed entirely from abroad, the attribution may be different. The key is to accurately document what the Spanish structure actually contributes.
Income linked to assets related to the permanent establishment
Income derived from assets used by the permanent establishment must also be attributed: machinery, facilities, vehicles, equipment, licenses, inventory or any asset related to the Spanish activity.
If an asset is functionally linked to the activity of the permanent establishment, the income it generates and the associated expenses must be reflected in its separate accounts. The same applies to gains or losses arising from the transfer of related assets.
Internal revenues with the head office or other establishments
In international groups, there may be internal transactions between the head office and the permanent establishment: transfer of personnel, technical support, use of assets, financing, internal services, or cost sharing. These transactions must be analyzed with particular care because they do not all have the same tax treatment.
When the applicable double taxation treaty allows for the valuation of certain domestic transactions, these must be documented using market criteria and economic consistency. The absence of a contract, functional support, or valuation method can transform a seemingly reasonable attribution into a weakness in the event of an audit.
What expenses can be attributed to the permanent establishment
Expenses attributable to the permanent establishment must meet a basic requirement: they must be related to the activity carried out in Spain, be correctly accounted for, and be able to be documented.
Direct expenses of the permanent establishment
These are the easiest expenses to justify because they are directly related to Spanish business activity. They include, among others:
- Salaries and contributions of the staff assigned to the permanent establishment.
- Office, premises, warehouse or operations center rental in Spain.
- Supplies, telephony, software and tools used by the local team.
- Travel expenses related to Spanish clients or projects.
- Professional services contracted in Spain: tax, labor, accounting or legal advice.
- Amortization of assets related to the activity of the permanent establishment.
- Financial or banking expenses directly related to Spanish operations, when they are tax-deductible.
General management and administration expenses
In addition to direct expenses, a reasonable portion of the general management and administrative expenses of the head office that pertain to the permanent establishment may be deducted. These include, for example, costs related to financial management, human resources, systems, compliance, general administration, and international coordination.
These expenses cannot be allocated arbitrarily. They must be distributed using an objective, rational, and consistent criterion. The chosen criterion must reflect the actual use of the services by the permanent establishment.
| Type of general expense |
Possible distribution criteria |
Recommended documentation |
| Group Financial Management |
Transaction volume, assets managed, or time spent |
Annual budget, timesheets, organizational chart and service report. |
| Human resources |
Number of employees or incidents handled |
List of staff, payroll and services provided to the Spanish team. |
| Systems and technology |
Active users, licenses, or actual platform usage |
Contracts, invoices, licenses, usage reports and access. |
| General management |
Time spent, revenue, or gross margin |
Minutes, agendas, internal reporting and allocation criteria. |
| International Marketing |
Campaigns used in Spain or leads generated |
Marketing plan, investment by market and attributable results. |
Expenses that should not be attributed without prior analysis
Not all expenses of the head office can be automatically transferred to the permanent establishment. They must be reviewed with particular care:
- Shareholder or corporate structure expenses that do not benefit the permanent establishment.
- Duplicate costs that are already registered directly in Spain.
- Internal payments for fees, interest, commissions or technical assistance without sufficient support.
- Expenses without an invoice, without a contract, or without evidence of actual service provided.
- Costs allocated using changing criteria or designed solely to reduce the Spanish tax base.
Poorly documented allocation of income and expenses can lead to tax adjustments, interest, and penalties. At MGI Àmbit we help you design a robust methodology for distributing income and expenses between the head office and the permanent establishment.
Practical methodology for allocating income and expenses
The best way to avoid errors is to follow a structured methodology. The goal is for every criterion to be explainable, quantifiable, and defensible in the event of an internal review, audit, or tax inspection.
1. Conduct a functional analysis
Functional analysis identifies what the permanent establishment actually does. It should answer specific questions:
- Who works in Spain and what are their roles?
- Who negotiates contracts, decides prices, or accepts orders?
- What assets are used in Spain?
- What risks does the Spanish structure assume?
- What part of the service or product is executed from Spain?
- Which decisions are made at headquarters and which ones in Spain?
2. Separate the accounting of the permanent establishment
Separate accounting is essential. Without it, the company will not be able to clearly demonstrate which income and expenses correspond to Spain. The accounting must allow for the identification of:
- Revenue billed or attributable to Spanish activity.
- Direct expenses of the permanent establishment.
- General expenses allocated from the head office.
- Affected assets and amortizations.
- Internal operations with the head office or other establishments.
- Reconciliation between local accounting, group reporting and tax return.
3. Define objective allocation keys
When an expense benefits several entities or territories, it must be allocated using a reasonable code. There is no single formula that works for all cases. The code must be chosen according to the nature of the cost.
| Shared expenses |
Most defensible key |
Key to higher risk |
| Management personnel costs |
Hours dedicated or actual responsibilities |
Equal distribution without support |
| Enterprise software |
Number of users or assigned licenses |
Fixed percentage unrelated to usage |
| Global marketing |
Active campaigns by country and leads generated |
Distribution based on sales without analyzing campaigns |
| Financial Department |
Transactions, invoices, or managed entities |
Manual assignment without registration |
| shared office or facilities |
Square meters, positions or effective use |
Verbal estimate without documentation |
4. Document internal operations and transfer pricing
Transactions between a permanent establishment, the head office, and other related parties must be analyzed in accordance with the rules on related-party transactions, where applicable. This requires consistency with the arm's length principle, economic support, and sufficient documentation.
The documentation must explain what service is provided, who provides it, who benefits, how the price or cost allocation is calculated, what margin is applied, and why that margin is reasonable. The more complex the group, the more important it is to have a well-structured tax file.
5. Reconcile the tax return with internal reporting
Many discrepancies arise because local accounting, group reporting, and tax returns do not match. Adjustments are normal, but they must be explained. A good reconciliation should show:
- Accounting result of the permanent establishment.
- Positive and negative fiscal adjustments.
- Non-deductible or limited expenses.
- Internal operations with headquarters.
- Amounts declared in the corresponding form.
- Documentary support for each relevant adjustment.
Checklist for correctly attributing income and expenses
This checklist allows you to review whether the company has a minimum basis to defend its tax attribution:
| Control question |
Why it matters |
Risk if not met |
| Is there separate accounting for the permanent establishment? |
It allows you to isolate income, expenses, assets, and tax adjustments. |
The Spanish Tax Agency (AEAT) can question the entire tax base. |
| Are the team's functions documented in Spain? |
Define what benefit should be attributed to the establishment. |
Risk of undervaluing or overvaluing Spanish income. |
| Do direct expenses have invoices and supporting documentation? |
Test the reality and relationship with the activity. |
Non-deductibility of the expense. |
| Are overhead costs distributed objectively? |
Justify that the distribution is reasonable and continuous. |
Adjustments for arbitrary allocations. |
| Are there internal contracts or service records? |
It supports operations with headquarters and group. |
Rejection of expenses or reclassification of income. |
| Is the applicable double taxation treaty reviewed? |
You can modify the analysis of EP and internal operations. |
Double taxation or incorrect application of domestic rules. |
Common mistakes when attributing income and expenses to a permanent establishment
Mistakes often arise when a company operates internationally rapidly but fails to adapt its tax structure to the actual growth of its business. These are the most common ones.
Confusing billing with value creation
The fact that the invoice is issued from the head office does not mean that all the revenue belongs to the head office. If the Spanish team has secured, negotiated, or performed a substantial part of the service, there may be income attributable to the permanent establishment in Spain.
Allocating global expenses without supporting documentation
General administrative expenses may be deductible to the extent reasonable for the permanent establishment, but simply charging a standard percentage is insufficient. A report or documentation explaining the criteria used and its consistency is required.
Not checking the payment limitations to the head office
Internal payments for royalties, interest, commissions, or technical assistance have specific rules and important limitations. Treating them as if they were ordinary invoices between independent companies can lead to significant tax adjustments.
Ignoring related-party transactions
Transactions between a permanent establishment and its head office, other permanent establishments, or group entities may be subject to related-party transaction rules. Ignoring this is a common mistake among international groups that only prepare transfer pricing documentation for their parent companies, but not for branches or permanent establishments.
Do not update the methodology when the activity changes
A methodology that was valid in the opening year may become obsolete if the permanent establishment begins hiring staff, assuming risks, managing clients, or performing services that were previously carried out from abroad. The attribution of tax liability should be reviewed when the business reality changes.
If your company already operates in Spain through a branch, office, or local team, now is the time to review whether the allocation of income and expenses is correct. An early tax assessment prevents future problems.
Documentation that the company must prepare
The tax attribution must be supported by actual documentation. A company operating through a permanent establishment should retain, at a minimum:
- Organizational chart of the group and the team in Spain.
- Job descriptions for local staff and head office staff.
- Contracts with clients and suppliers.
- Invoices issued and received related to Spanish activity.
- Separate accounting for the permanent establishment.
- Criteria for the allocation of general expenses.
- Annual report on the allocation of income and expenses.
- Internal contracts or agreements with the head office.
- Documentation of related-party transactions where applicable.
- Reconciliation between group reporting and tax returns in Spain.
Model 200, Model 206 and formal obligations
A permanent establishment must comply with accounting, registration, and tax obligations similar to those of a resident entity, although with its own specific characteristics. In practice, permanent establishments file their corporate income tax return using the corresponding form, and form 206 as the payment or refund document when applicable.
This means that the fiscal year-end must be prepared with the same discipline as that of a Spanish company: accounting reconciliation, tax adjustments, review of deductible expenses, installment payments if applicable, supporting documentation and analysis of related-party transactions.
The importance of planning before closing
Waiting until the end of the financial year to decide which income and expenses are attributed to the permanent establishment is bad practice. The allocation should be determined at the start of operations or, at the very least, before the volume of transactions becomes significant.
Prior planning allows you to configure cost centers, accounting accounts, billing processes, internal contracts, and reporting systems that will later make tax defense much easier.
When is it advisable to seek expert advice?
The attribution of income and expenses to a permanent establishment requires expert advice when any of the following situations exist:
- The foreign company has an office, branch, warehouse or a stable sales team in Spain.
- There are employees relocated or hired locally who work for Spanish clients.
- The head office invoices Spanish clients, but some of the work is done from Spain.
- General management expenses are allocated from the parent company to the permanent establishment.
- There are internal operations with other countries in the group.
- There are doubts as to whether the Spanish activity is auxiliary or main.
- The company wants to avoid double taxation or conflicts between tax administrations.
- An inspection, request or review by the AEAT is approaching.
MGI Àmbit, specialists in international taxation and permanent establishments
At MGI Àmbit we help non-resident companies, international groups, and expanding businesses to properly structure their operations in Spain. Our team combines tax, accounting, and legal expertise to analyze whether a permanent establishment exists, calculate attributable income, document deductible expenses, and prepare a strong defense before the tax authorities.
We work with companies that need to open a branch in Spain, review their billing model, allocate head office costs, prepare related-party transaction documentation, or file their non-resident income tax obligations with a permanent establishment.
Do you need to attribute income and expenses to a permanent establishment in Spain? Contact MGI Àmbit and we'll help you review your structure, your tax risks, and the necessary documentation to operate safely.
Conclusion
Attributing income and expenses to a permanent establishment is not a mechanical exercise. It requires understanding the actual activity, separating the accounting, documenting the allocation criteria, and reviewing the applicable tax rules in Spain and in the relevant double taxation treaty.
The key is that the attribution must be consistent with economic reality. If the permanent establishment generates value, uses assets, employs personnel, assumes risks, or participates in the execution of contracts, this reality must be reflected in the taxable base declared in Spain.
With a sound methodology, a company can reduce risks, avoid double taxation, and defend its position before the Spanish Tax Agency (AEAT). With an improvised methodology, any allocation of income or expenses can become a source of tax disputes.
Frequently asked questions about how to allocate income and expenses to a permanent establishment
What income is attributed to a permanent establishment?+
The income attributed is linked to the actual activity carried out by the permanent establishment: sales, services, contracts executed from Spain, returns on affected assets and gains or losses generated by assets linked to the Spanish presence.
What expenses can a permanent establishment deduct?+
You can deduct direct expenses from your business in Spain and a reasonable portion of the general management and administration expenses that correspond to you, provided that they are accounted for, documented and distributed according to objective and continuous criteria.
Is it mandatory to keep separate accounts for the permanent establishment?+
Yes. Separate accounting allows for the identification of income, expenses, assets, and transactions related to the permanent establishment. Without organized accounting, it is much more difficult to defend the taxable income declared in Spain.
Can the expenses of the head office be distributed to the permanent establishment?+
Yes, but only the reasonable portion corresponding to the permanent establishment and with sufficient supporting documentation. The allocation must be based on objective criteria such as hours worked, employees, volume of operations, resource utilization, or any other metric that reflects the actual benefit received.
What happens if too little revenue is attributed to Spain?+
The Tax Agency can regularize the taxable base of the permanent establishment, increase the income attributable to Spain, reject unjustified expenses and demand late payment interest or penalties if it finds tax non-compliance.
Are transactions with the head office considered related-party transactions?+
In many cases, they must be analyzed according to related-party transaction rules. It is necessary to review Spanish regulations, the applicable double taxation treaty, and the financial documentation that justifies prices, margins, or allocation criteria.
What tax models does a permanent establishment in Spain have?+
In general, the permanent establishment declares in the same form as the taxpayers of the Corporate Income Tax, with the particularities of the Non-Resident Income Tax and the corresponding payment or refund document when applicable.
CanMGI Àmbit help to review the tax attribution of a permanent establishment?+
Yes. MGI Àmbit advises international companies on taxation of permanent establishments, attribution of income and expenses, separate accounting, related-party transactions, IRNR, form 200/206 and international tax planning.
Do you have any questions about this topic?
Our team of expert advisors will help you resolve any issues related to our services.
Contact us now
Latest posts by admin admin
(see all)
Related