
How to Obtain a Spanish NIF for a Foreign Company
A foreign company may need a Spanish tax identification number when it carries out certain transactions or has tax obligations in Spain. The procedure depends on the company’s country of incorporation, its legal form, the reason for applying and the activities it plans to carry out.
This guide explains what a Spanish NIF for a foreign company is, when it may be needed, which documents are commonly requested and how to approach the application. A NIF application should be assessed individually: obtaining a number does not, by itself, determine whether the company must register for VAT, pay a particular tax or establish a permanent presence in Spain.
What is a Spanish NIF for a foreign company?
The NIF, or Número de Identificación Fiscal, is the tax identification number used by the Spanish Tax Agency (AEAT) to identify individuals and entities for tax purposes. A foreign legal entity may need a Spanish NIF to complete certain transactions or procedures in Spain.
A Spanish NIF is not the same as the company’s tax number in its home country. It is also distinct from a Spanish VAT registration and from an EU VAT identification number used for certain cross-border transactions. The company may need one or more of these registrations depending on what it does in Spain.
Foreign entities are generally identified under the relevant category for their legal and tax circumstances. The precise classification should be confirmed when preparing the application; the initial letter of a number should not be assumed without checking the company’s situation.
When might a foreign company need a NIF in Spain?
A NIF for foreign companies in Spain may be required when a company undertakes an operation with tax or administrative significance in Spain. Examples can include acquiring or transferring certain assets, entering into particular contracts, registering a branch, hiring staff or dealing with Spanish tax authorities.
The exact requirement depends on the transaction and the company’s circumstances. Selling to a Spanish customer, for example, does not automatically mean that every foreign supplier has the same Spanish registration or tax obligations. VAT rules, the place of supply, the type of customer and the company’s establishment must be considered separately.
Does a Spanish NIF mean the company has a permanent establishment?
No. A permanent establishment is a separate tax question that depends on the company’s activities and circumstances. Obtaining a NIF does not, on its own, establish that the company has a permanent establishment in Spain.
A foreign company may need a Spanish NIF even if it does not have an office or other permanent establishment in the country. Whether it must register for tax, appoint a representative or file returns is assessed separately under the rules applicable to its activities.
Spanish NIF and Spanish VAT registration: what is the difference?
A Spanish NIF identifies the company before the tax authorities. Spanish VAT registration concerns whether the company must register and account for VAT in Spain. The two are related in some cases, but they are not interchangeable.
Having a NIF does not automatically mean that the company must submit quarterly VAT returns. Filing requirements depend on the company’s transactions, registration status and other applicable rules. The VAT treatment should be reviewed before the company starts invoicing or selling in Spain.
How to apply for a NIF for a foreign company
The foreign company NIF application is generally made to the AEAT using census Form 036 for a legal entity. The form and supporting documents must reflect the company’s actual legal details and the reason for requesting the number.
- Confirm the purpose of the application. Identify the transaction, activity or administrative procedure for which the company needs a Spanish NIF.
- Check the company’s details. Confirm its legal name, legal form, country of incorporation, registered address and registration details.
- Prepare the supporting documents. Requirements vary by country, legal form and application. Documents may need to show that the company exists and identify the person authorised to act for it.
- Review formalities for foreign documents. Depending on the document and country of origin, legalisation or an apostille and an official Spanish translation may be required.
- Complete and submit Form 036. The application should use the correct details and include the supporting evidence required for the company’s case.
- Respond to any request for further information. The AEAT may ask for additional documentation or clarification before assigning the NIF.
The AEAT’s official guidance confirms that legal entities apply for a NIF using Form 036. You can consult its information about the NIF for legal persons and entities .
Documents commonly reviewed
The documents depend on the application. They may include the company’s certificate of incorporation or equivalent, current evidence of registration in its home country, identification of its legal representative and proof of that person’s authority to act.
Documents issued outside Spain may need to be legalised or apostilled and translated into Spanish. These requirements are not identical for every country or every document, so it is better to check the specific documents before arranging translations or legalisation.
Do companies in particular sectors need a NIF?
Companies in technology, renewable energy, tourism, real estate and e-commerce may encounter Spanish tax or administrative procedures that require a Spanish NIF. The sector alone does not establish the requirement: the specific transaction and the company’s role in it must be reviewed.
For example, an overseas company investing in Spanish property, bidding for a contract or selling goods may need different registrations and supporting documents. A NIF should not be treated as a substitute for checking VAT, corporate tax, employment or licensing requirements.
Common mistakes to avoid
- Assuming that a home-country tax number replaces a Spanish NIF.
- Confusing the NIF with Spanish VAT registration or an EU VAT identification number.
- Assuming that a NIF automatically creates an obligation to file quarterly VAT returns.
- Submitting company documents without checking whether legalisation, an apostille or translation is required.
- Using a representative’s details without confirming their authority to act for the company.
- Relying on a standard processing time before the documents and the application have been reviewed.
How Gestoría eMadrid can help
Gestoría eMadrid assists foreign companies with Spanish tax and administrative procedures. We can review the company’s circumstances, explain which documents may be needed and help prepare the application to the AEAT. The scope of the work, any representation requirements and the estimated timing can be discussed after an initial review of the case.
To ask about a Spanish tax identification number (NIF) for your company, contact Gestoría eMadrid and include the company’s country of incorporation, legal form and the reason it needs a Spanish NIF.
Frequently asked questions
Can a foreign company apply for a Spanish NIF without opening an office?
In some cases, yes. A physical office is not a universal prerequisite for obtaining a NIF. The company’s reason for applying and its tax situation should be reviewed.
Is a Spanish NIF the same as a VAT number?
No. The NIF identifies the company for Spanish tax purposes. VAT registration and an EU VAT identification number are separate matters and depend on the company’s transactions and obligations.
Does obtaining a NIF automatically mean that the company must file tax returns?
No. Filing obligations depend on the company’s activities, registrations and tax position. They should be assessed separately from the NIF application.
How long does it take to obtain a NIF?
There is no single timeframe that applies to every application. Timing depends on the documentation, the circumstances of the company and whether the AEAT requests further information.
Do foreign company documents always need an apostille?
Not in every case. Whether legalisation, an apostille or an official translation is required depends on the country, the document and the procedure.
Read this article in other languages: