Obtain NIF in Spain
What the NIF in Spain is, who needs this tax identification number and how individuals and businesses apply for it. Our lawyers can help you apply.

The NIF (Número de Identificación Fiscal) in Spain is required for both individuals and businesses when dealing with tax-related matters. For individuals residing in Spain, the NIF is directly linked to their Spanish DNI number (Documento Nacional de Identidad). For foreign citizens, NIF corresponds to their NIE number (Número de Identidad de Extranjero). Our lawyers in Spain will further explain the requirements and the process of obtaining an NIF.
| Quick Facts | |
|---|---|
| What is a NIF? | The abbreviation NIF refers to the Número de Identificación Fiscal (translated as Fiscal Identification Number or tax ID) required for tax purposes in Spain. |
Entities that are required having NIF in Spain | Individuals and companies |
Types of companies that need to apply for a NIF | Spanish and foreign companies need to obtain NIF in Spain. |
| Is it mandatory to have a NIF? | Yes (as long as the entities are involved in various tax transactions in Spain). |
| Institution in charge with the issuance of a NIF | The Tax Agency |
| Application documents required for individuals | Individuals who must obtain NIF in Spain are required to provide personal identification documents, a completed application form, along with details regarding their residency. |
| Application documents required for companies | The company’s incorporation documents, certificate of registration, the legal entity under which the company is incorporated, the completed application form, the company’s representatives, capital (if applicable), the registered address, tax identificatio |
| Forms necessary for the application | Form 030 for individuals and Form 036 for companies |
| Applicable law | Royal Decree 1065/2007 |
| How long does it take to obtain the NIF? | Applicants can obtain NIF in Spain in maximum 10 days. |
| NIF structure for individuals | 8 digits plus 1 letter |
| NIF structure for companies | 1 letter, 7 digits and 1 control character (a digit or a letter) |
| Fee (yes/no) | No |
| Validity | Temporary or permanent |
| What other types of identification codes are available in Spain? | NIE (Número de Identidad de Extranjero – identification number for foreigners, issued when a person resides here, buys property, etc.). |
Requirements for the NIF in Spain
The NIF number in Spain is a requirement for anyone subject to taxation in the country, serving as an identifier for tax purposes. Without a valid NIF, individuals/businesses cannot engage in financial activities within the country.
The NIF in Spain is required for: opening bank accounts, registering with the social security system, signing contracts, and purchasing property.
During the NIF application process, individuals/businesses must provide correct and complete details. If the application is not accurate, it can lead to delays or rejection.
Individuals/businesses must report any changes, such as: a change of address, to the Spanish Tax Agency. Failure will result in legal repercussions.
Our lawyers in Madrid will ensure the application is correct for both businesses and individuals.
Process of obtaining the NIF in Spain
The application for the NIF in Spain must be done at the Spanish Tax Authority offices. It can be submitted either in person or through a representative, such as our Spanish lawyers.
For natural persons (individuals), the following documents are required:
- The application form (printed and signed in two copies);
- Valid ID documents;
- Proof of residence.
For minors or individuals with disabilities, additional documents are needed to obtain the NIF number in Spain, such as a birth certificate, a guardianship document, and ID documents of the parent/guardian. Representatives will also need to provide their own valid identification and proof of their authority to represent the applicant.
For legal persons (businesses), to apply for the NIF in Spain, other documents need to be presented:
- The application form (printed and signed in two copies);
- ID documents of the person signing the application;
- Document certifying the NIF (or NIE) of the applicant;
- Proof of the company’s existence (such as the deed of incorporation).
Please note that the applicant obtaining the NIF number in Spain for a foreign company must prove he/she has the legal authority to do so. Thus, he/she may be required to submit additional documents, such as a power of attorney or documents from the fiscal authority in the applicant’s home country and a proof of residence.
All the required documents for obtaining an NIF in Spain must be officially translated into Spanish.
Our lawyers in Barcelona can represent individuals and businesses in applying for the NIF. Below, you can watch a short presentation on how to obtain the Spanish NIF:
Why invest in Spain
The NIF number in Spain is mandatory for foreign investors and businesses looking to establish a presence in the country. In this context, we present some interesting statistics about the investment landscape in Spain, as of July 2024:
- The Foreign Direct Investment (FDI) increased by 174 million euros;
- Spain reported capital flows of 5,128 million euros;
- Tourism revenues accounted for 12,315 million euros.
For those interested in buying a property, we can recommend our real estate lawyers in Spain. We can also help you in case you need to open a business in Spain.
Do not hesitate to contact our law firm in Spainif you need a legal representative to apply for the NIF.
Laura Fusté, Attorney at Law · 2 October 2026

