HomeAnalyticsGuidesTax Residency in Spain: Rules for Companies and Individuals

Tax Residency in Spain: Rules for Companies and Individuals

A foreign company establishes a subsidiary in Spain, appoints a local director, and begins operations. Months later, the tax authority determines that the subsidiary's actual management decisions were made abroad. The result: a disputed tax residency status, back assessments covering multiple years, and exposure to penalties that dwarf the original registration costs. This scenario is more common than most international businesses expect.

Tax residency in Spain is determined by the location of incorporation, the registered seat, and – critically – where effective management and control actually take place. For individuals, Spanish tax legislation applies a combination of physical presence, family ties, and economic interest tests to establish residence. Both companies and individuals who meet Spanish residency criteria become subject to corporate income tax or personal income tax on worldwide income, with significant compliance obligations flowing from that status.

This guide covers the procedural requirements and step-by-step timeline for establishing or challenging tax residency in Spain. The documentary checklist for companies and individuals, common errors made by foreign clients. Additionally, a decision framework for the most frequent cross-border scenarios.

How Spanish tax legislation defines residency

Spain's tax legislation applies two parallel sets of rules: one for legal entities and one for natural persons. Understanding both is essential, because multinational structures often involve both a company and its individual shareholders or directors, each potentially caught by Spanish residency rules independently.

For legal entities, Spanish corporate legislation uses three connecting factors. A company is treated as a Spanish tax resident if it was incorporated under Spanish law, if its registered seat is in Spain, or if its effective place of management is located in Spain. The third criterion – effective management – is the one that generates the most disputes. Spanish tax authorities and the Tribunal Supremo (Supreme Court of Spain) have consistently held that effective management means where strategic decisions about the company's core business are actually made. The formal location of board meetings is one factor; the habitual place where senior management exercises its functions carries greater weight in practice.

For individuals, Spanish tax legislation establishes residency on any of three grounds. The first is physical presence: spending more than 183 days in Spain during a calendar year, counting temporary absences unless the individual can demonstrate tax residency elsewhere. The second is the economic centre of interest test: where the individual's primary activities or economic interests are based. The third is the family ties presumption, which treats an individual as Spanish tax resident if their non-separated spouse or minor children are habitually resident in Spain. This last ground is rebuttable, but rebuttal requires affirmative proof of residency in another jurisdiction.

A critical practical point: Spanish tax legislation operates on a calendar-year basis. Residency is assessed for each full tax year. An individual who relocates to Spain mid-year becomes a Spanish tax resident for that full year if the presence threshold is crossed. unless a bilateral tax treaty between Spain and the individual's home jurisdiction allocates residency to the other state for the partial year.

Spain has an extensive network of tax treaties based broadly on the OECD model. Treaty tie-breaker provisions – permanent home, centre of vital interests, habitual abode, nationality – apply sequentially when an individual qualifies as resident under both Spain and another treaty state's domestic rules. Companies should also assess whether their cross-border activities create a permanent establishment in Spain even without formal incorporation. Since permanent establishment exposure triggers Spanish corporate income tax on attributable profits without the full procedural protections of an incorporated subsidiary.

For a detailed analysis of how Spanish tax obligations interact with your corporate structure, see our practice page on tax law in Spain.

Step-by-step process for establishing tax residency

The procedural path differs depending on whether the subject is a company being incorporated in Spain or an individual relocating to Spain. Both paths involve Spain's tax authority, the Agencia Tributaria (Spanish Tax Agency), but the documentary requirements and timelines diverge significantly.

For companies: incorporation and initial tax registration

Step one is incorporation under Spanish corporate legislation. A Sociedad Anónima (SA, public limited company) or a Sociedad Limitada (SL, private limited company) must be constituted by escritura pública (notarised deed) before a Notario (Spanish notary). The SL is the vehicle used in the overwhelming majority of foreign investment structures due to its lower minimum capital requirement and simpler governance rules. The SA is reserved for larger capital structures or listed entities.

Step two is registration in the Registro Mercantil (Commercial Register). Filing must occur within two months of the notarised deed. The Registro Mercantil assigns a registration number and publishes the entry in the official commercial gazette. From the moment of registration, the company acquires full legal personality under Spanish law and is treated as a Spanish tax resident.

Step three is obtaining a tax identification number (Número de Identificación Fiscal, NIF) from the Agencia Tributaria. This can be initiated provisionally at the point of executing the notarial deed and converted to a definitive NIF once Registro Mercantil registration is confirmed. Without a definitive NIF, the company cannot open a bank account, enter into supply contracts, or file tax returns.

Step four is VAT registration and, where applicable, enrolment in the special Intrastat reporting regime if the company engages in intra-EU trade above the applicable threshold. VAT registration in Spain is administered separately from income tax registration but is handled through the same Agencia Tributaria census.

The complete process from notarised deed to operative NIF typically takes between three and six weeks, assuming clean documentation and no objections from the Registro Mercantil. Complex ownership structures involving non-EU shareholders can extend this timeline by two to four additional weeks, as notaries require apostilled or legalised corporate documentation from the foreign parent.

For individuals: establishing and documenting tax residence

An individual who meets the 183-day presence test or the economic centre of interest test is automatically subject to Spanish personal income tax from the date residency commenced. There is no formal act of "registration" that triggers residency – the obligation arises by operation of law. However, obtaining a Número de Identificación de Extranjero (NIE, foreigner's identification number) is a prerequisite for any formal interaction with Spanish authorities, including filing tax returns, registering property, and opening bank accounts.

NIE applications are processed by Spanish immigration authorities, typically at a Comisaría de Policía (police station) or, for applicants outside Spain, through a Spanish consulate. Processing takes between two and six weeks in most cases. The NIE does not itself establish tax residency, but it is the administrative gateway to compliance.

Individuals moving to Spain should file a census registration form with the Agencia Tributaria within one month of commencing activities generating Spanish-source income. If the individual intends to claim non-resident treatment under a tax treaty for part of the year, the treaty position must be documented proactively – it is not automatic.

For investors establishing a Spanish company alongside personal relocation, the corporate and individual tax residency timelines often run in parallel. Coordinating the two processes is important: mismatches in timing can create gaps in tax coverage or unintended dual residency periods.

For guidance on the corporate law aspects of Spanish market entry – including company type selection and governance structuring – see our service page on corporate law in Spain.

To discuss how the tax residency rules apply to your specific structure in Spain, contact us at info@ferrazwhitmore.com.

Documentary checklist and common errors by foreign clients

Documentation requirements fall into two categories: documents that Spanish authorities require in standard form, and documents that foreign clients must obtain from their home jurisdiction and have prepared for Spanish use.

For companies:

  • Original or certified copy of the foreign parent's constitutional documents, apostilled or legalised and translated by a sworn translator (traductor jurado) into Spanish
  • Certificate of good standing or equivalent from the home jurisdiction's commercial register, dated within three months
  • Board resolution authorising Spanish incorporation and identifying the authorised representative
  • Identity documentation for all directors and beneficial owners, meeting Spain's anti-money laundering requirements under financial legislation
  • Evidence of the registered address in Spain – a lease agreement, property title, or domiciliation agreement with a registered agent

For individuals:

  • Valid passport and, for EU nationals, current national identity document
  • Proof of accommodation in Spain: lease contract, property deed, or hotel registration for short transitional periods
  • Certificate of tax residency from the prior home jurisdiction, covering the year of departure, to support treaty tie-breaker claims where applicable
  • Employment contract, shareholder agreement, or other documentation establishing the economic basis for Spanish residence
  • For individuals applying the Beckham regime or other special tax regimes: specific applications must be filed within six months of registration with Spanish social security

The most frequent errors made by foreign clients fall into three categories.

First, reliance on paper domicile. Many foreign clients incorporate an SL with a registered address in Spain but continue to make all strategic decisions from abroad. Spanish tax legislation does not require physical presence at the registered address for day-to-day operations. However, when the company's real decision-making centre is abroad, the company risks being treated as not genuinely Spanish tax resident for treaty purposes. Or. in the reverse scenario. being claimed as a tax resident by Spain even when incorporated elsewhere, on the basis that effective management is in Spain.

Second, missing the exit tax obligations in the home jurisdiction. When an individual relocates to Spain, most European jurisdictions impose exit tax charges on unrealised capital gains, deferred income, or company interests held at the point of departure. Foreign clients frequently focus exclusively on Spanish arrival obligations and overlook departure filings in Germany, the Netherlands, the United Kingdom, or other prior home states. Withholding tax obligations on cross-border dividend payments may also shift at the point of residency change.

Third, underestimating beneficial ownership disclosure requirements. Spanish corporate legislation now imposes strict obligations on companies to identify and register their ultimate beneficial owners in the Registro Mercantil. Non-compliance triggers administrative penalties and can block the company's ability to contract with public entities. Foreign clients operating through multi-layered holding structures sometimes discover, after incorporation, that their ownership chain is difficult to document in the form required by Spanish law.

A non-obvious risk concerns the interaction between the 183-day rule and travel patterns. An individual who maintains a home in Spain but spends a majority of each year abroad may still be treated as Spanish tax resident if their economic centre of interest remains in Spain. The Tribunal Supremo has confirmed this position in multiple cases involving senior executives. Keeping contemporaneous records of physical presence, work location, and family ties is advisable from the first day of Spanish activity – not retrospectively.

Cross-border considerations and decision framework

Spain's corporate income tax system applies to worldwide profits of Spanish tax resident companies. For multinationals, this creates a structural question: should the Spanish operating entity be a tax resident subsidiary. A branch (which creates a permanent establishment but not a separate legal entity). Alternatively, a contractual arrangement that avoids permanent establishment altogether?

Each structure has a different risk and cost profile. A resident subsidiary is fully subject to Spanish corporate income tax but benefits from Spain's participation exemption regime, which can shield dividends and capital gains from group companies from further taxation, subject to conditions. A permanent establishment is taxed in Spain only on profits attributable to it, but cannot access the participation exemption in the same way, and treaty benefits may be more limited. A purely contractual arrangement avoids Spanish corporate income tax exposure. However. Spanish tax authorities apply an economic substance test: if the arrangement results in income that is effectively generated through Spanish activities, the permanent establishment threshold may still be crossed.

For individual investors, the decision between Spanish tax residency and non-resident investment is driven primarily by the effective tax rate on expected income types. Spanish personal income tax applies progressive rates to employment and business income. Investment income – dividends, interest, capital gains – is taxed at savings income rates, which are lower. Non-residents earning Spanish-source income pay a flat withholding tax rate, modified by the applicable tax treaty rate where one exists.

The special tax regime for inbound workers and executives. commonly known as the Beckham regime after its high-profile application. allows qualifying individuals to elect to be taxed as non-residents for up to six years from their first year of Spanish residency. This means that only Spanish-source income is taxed, at a flat rate rather than the progressive scale. The regime is not automatic and requires a timely application. Individuals who qualify but miss the filing window lose the election permanently for their current Spanish residency period.

For businesses comparing Spain and Portugal as bases for European operations. Our companion guide on tax residency in Portugal provides a parallel analysis of the Portuguese rules. This differ materially in their treatment of effective management and the use of holding structures.

A practical decision framework for the most common scenarios:

  • Foreign company opening a Spanish office with a local director who takes decisions independently: Spanish corporate income tax residency will likely apply. Structure the entity as an SL with full Spanish tax registration from day one.
  • Foreign company with a Spanish commercial agent or distributor: Assess whether the agent's activities cross the permanent establishment threshold under Spanish tax legislation and the applicable treaty. This requires fact-specific analysis of the agent's authority and habitual conduct.
  • Individual relocating to Spain for employment with a multinational: Assess Beckham regime eligibility immediately. Apply within the six-month window. Obtain a tax residency certificate from the prior home jurisdiction to document the exit position.
  • High-net-worth individual with investment portfolios in multiple jurisdictions: Model the tax cost of Spanish residency against the treaty-reduced withholding tax rates available as a non-resident before establishing physical presence in Spain.

To explore legal options for structuring your tax position in Spain, schedule a consultation at info@ferrazwhitmore.com.

Self-assessment checklist before taking action

This guide applies to your situation if one or more of the following conditions is present:

  • You are incorporating or have incorporated a company in Spain and need to confirm its tax residency status and obligations
  • You are relocating to Spain or have spent more than 100 days there in the current calendar year and are approaching the 183-day threshold
  • You manage a foreign company that takes decisions partly or wholly through individuals based in Spain
  • You are an executive considering the Beckham regime and have not yet filed the required election
  • You have received a query or assessment from the Agencia Tributaria regarding the tax residency of a company or individual in your group

Before initiating any formal procedure, verify the following:

  • Where are management and control decisions for each entity in your structure actually made? Document this in board minutes, email records, and management agreements.
  • Have you obtained a definitive NIF or NIE? Without it, no Spanish tax filing is possible.
  • Have you assessed exit tax exposure in your home jurisdiction for the year of departure?
  • If a tax treaty applies, have you gathered the documentation needed to support a treaty tie-breaker claim?
  • Are beneficial ownership disclosures complete and filed at the Registro Mercantil for all Spanish entities?

Frequently asked questions

Q: If a foreign company appoints a Spanish resident director, does it automatically become a Spanish tax resident?

A: Not automatically. Appointing a Spanish resident director is one factor that Spanish tax authorities examine, but the decisive question is where the company's effective management – meaning where its strategic decisions are habitually made – is located. A Spanish director who has genuine authority over the company's core business decisions can bring the company within Spanish corporate income tax. A director who simply executes instructions received from abroad typically does not, though the position requires careful documentation. Engaging a lawyer in Spain with experience in cross-border structures is advisable before making any director appointment that could shift the effective management analysis.

Q: How long does it take to obtain a tax identification number for a new Spanish company, and what does it cost?

A: Obtaining a provisional NIF at the time of executing the notarised deed takes one to two business days. Converting the provisional NIF to a definitive NIF following Registro Mercantil registration typically takes a further two to four weeks, depending on workload at the relevant register and the completeness of documentation submitted. Agencia Tributaria registration itself carries no direct government fee. The principal costs are notarial fees for the deed of incorporation, Registro Mercantil registration fees. Additionally. Professional fees for the translation and legalisation of foreign corporate documents. all of which vary depending on complexity and document volume.

Q: Can a Spanish tax resident company hold foreign subsidiaries without those subsidiaries becoming Spanish tax residents too?

A: Yes, as a general rule. A foreign subsidiary incorporated and managed outside Spain retains its non-Spanish tax residence, even if its parent company is a Spanish tax resident. The key safeguard is ensuring that the foreign subsidiary's management and control genuinely rests outside Spain. that board decisions are made by directors present in the subsidiary's home jurisdiction. That management functions are performed there. Additionally, that the subsidiary has real economic substance. Spanish controlled foreign corporation rules under tax legislation may attribute certain passive income of low-taxed foreign subsidiaries to the Spanish parent, but that is a separate analysis from tax residency itself. A law firm in Spain with international tax expertise can assess whether your group structure meets the substance requirements.

About Ferraz & Whitmore

Ferraz & Whitmore is an international law firm based in Lisbon, advising business clients across 46 jurisdictions. Our tax law practice covers corporate income tax structuring, tax residency planning, permanent establishment analysis, and cross-border compliance for companies and individuals operating in Spain and across the EU. We combine Portuguese civil law expertise with English common law tradition to deliver integrated advice across multiple legal systems. an approach that is particularly valuable for clients managing tax exposure across Iberian, European, and Atlantic markets. Our attorneys have advised on tax residency matters before the Agencia Tributaria and in treaty-based disputes across both civil law and common law systems. The firm is a member of international legal associations focused on cross-border tax and corporate practice. As an international law firm in Spain with a Lisbon base, Ferraz & Whitmore provides direct access to Spanish and EU regulatory regimes alongside enforcement and arbitration support in English-speaking jurisdictions. To discuss your tax residency position in Spain, contact us at info@ferrazwhitmore.com.

Disclaimer: This publication is provided for informational purposes only and does not constitute legal advice. The information herein should not be relied upon as a substitute for professional legal counsel tailored to your specific circumstances. Ferraz & Whitmore assumes no liability for actions taken or not taken based on the contents of this material. For advice regarding your particular situation, please contact info@ferrazwhitmore.com.