Spanish NIE and NIF for Foreign Shareholders and Directors

Passport on a dark desk, the starting point for NIE and NIF for foreign shareholders

Which NIE and NIF for foreign shareholders and directors each participant in a Spanish company needs, who issues them and what must be ready before the deed is signed.

Contents

When a Spanish company is going to have foreign shareholders or directors, one of the first questions is which Spanish identification number each of them needs. NIE, NIF, NIF starting with M, NIF for a foreign entity… The acronyms look alike, are often used as if they meant the same thing and yet they are issued by different authorities for different purposes. Mixing them up is one of the most common reasons why company formations with foreign participants are delayed.

This guide explains what each number identifies, who issues it, what an individual shareholder needs compared with a foreign company, what applies to directors and their representatives, and how to organise the paperwork from abroad so that everything is ready on signing day. It will help you work out which NIE and NIF for foreign shareholders apply in your case, although every file must be reviewed with its own documents.

Understanding the NIE and NIF

Understanding the NIE and NIF starts with where each number comes from. They are two different numbers governed by different rules, even though for foreign individuals they end up being the same.

The NIE: Spain’s foreigner identity number

The NIE (número de identidad de extranjero) is a personal, unique number assigned to foreign nationals who deal with Spain for economic, professional or social reasons. It is issued by the immigration and borders department of the Spanish National Police (Comisaría General de Extranjería y Fronteras), and its purpose is to identify you in your dealings with Spanish public authorities.

Two points are worth remembering:

  • It is for life. Your NIE stays the same even if you change passport, address or circumstances.
  • It is not a permit. As Spanish consulates point out, the NIE does not entitle you to live in Spain, does not prove residence and does not allow you to work. The foreigner identity card (TIE) is a different document, linked to permission to stay or reside.

EU citizens also need an NIE to do business in Spain. If they actually settle in Spain for more than three months, they must also register with the Central Register of Foreign Nationals, which is a separate step.

The NIF: Spain’s tax identification number

The NIF (número de identificación fiscal) is the number every person or entity uses for anything with tax relevance in Spain. It is governed by Royal Decree 1065/2007, and it works differently depending on the holder:

  • Spanish nationals: the NIF is their national ID (DNI) number and letter. Spaniards without a DNI can obtain a NIF starting with K or L depending on their situation; L is used, for example, for Spaniards living abroad.
  • Foreign individuals with an NIE: their NIF is their NIE (article 20.1 of Royal Decree 1065/2007). No separate tax number is needed.
  • Foreign individuals without an NIE: they must ask the Spanish Tax Agency for a NIF starting with the letter M when they carry out transactions with tax relevance (article 20.2).
  • Companies and other entities: the Tax Agency assigns them their own NIF, whose structure shows their legal form or, where relevant, that they are a foreign entity or the permanent establishment of a non-resident (article 22).

The M-type NIF: when it is used and when it is not

According to the Spanish Tax Agency, the M-type NIF is permanent for foreign nationals who are not required to have an NIE, and temporary for those who are, until the Ministry of the Interior assigns their NIE. In that second case, the Agency mentions a general validity of three months and asks for evidence that the NIE has been applied for, or that you are exempt.

In practice, foreign shareholders and directors of a Spanish company usually have an NIE. An M-type NIF may work in some situations, but notaries, the Commercial Registry and banks do not always treat it the same way, so confirm it before building your plans around it.

Quick reference table

WhoUsual numberIssued by
Foreign individualNIE (which also works as their NIF)Spanish Police, through its offices in Spain or Spanish consulates
Foreign individual without an NIEM-type NIF, in certain casesSpanish Tax Agency
Foreign company or entityNIF for a foreign entitySpanish Tax Agency, through a tax registration form
The new Spanish companyProvisional NIF, then definitive after registrationSpanish Tax Agency

Individual versus corporate shareholders

The difference between individual versus corporate shareholders decides which number is needed, which authority issues it and which documents you must provide. It is common for a Spanish company to have both.

Foreign individual shareholders

A foreign individual shareholder will, as a rule, need an NIE, because it must appear in the deed of incorporation and in dealings with the Tax Agency. There are two ways to apply:

  • From your country: at the Spanish consulate covering your place of residence, usually with application form EX-15, payment of the fee (form 790, code 012), your passport, evidence of the economic, professional or social reason for the application and, often, proof that you live within that consulate’s area.
  • In Spain: at the competent immigration or police office, by appointment.

In both cases you may apply through a duly accredited representative, but the applicant or the representative must attend in person, and the representative needs a power of attorney that expressly authorises the application. Requirements, fees and processing times vary between offices, so check the specific office’s information before booking. The London consulate, for instance, asks for an apostilled power of attorney when a representative applies.

Foreign corporate shareholders

A foreign company does not get an NIE: it needs a Spanish NIF for entities. The Tax Agency states that non-resident entities must have a NIF when they carry out transactions with tax relevance, and acquiring shares in a Spanish company is one. The application is made with the tax registration form (form 036), and the person filing it on the company’s behalf must prove their authority and have a Spanish NIF of their own.

The usual documents are evidence that the foreign company exists (for example, a certificate from its company registry, or its incorporation documents and by-laws), evidence of who represents it and the identification of those representatives. Foreign documents must carry an apostille or diplomatic legalisation and, if they are not in Spanish, a sworn translation. Under article 24 of Royal Decree 1065/2007, the Tax Agency may check the information provided and refuse the number if it is not accurate.

Besides the company’s NIF, the individual signing for the corporate shareholder, or the attorney acting for it, will have to be identified by the notary. And the company must declare its beneficial owners: the individuals who ultimately own or control it.

Beneficial owners

Beneficial owners are not necessarily direct shareholders of the Spanish company, but the notary must identify them at incorporation under anti-money laundering rules. Expect to provide their identification and, depending on the structure, documents showing the chain of control. Whether a beneficial owner needs a Spanish identification number depends on their role in the transaction; do not assume either way, and confirm it with the notary.

Foreign directors and representation

Foreign directors and representation raise questions of their own, because directors do not just invest: they run the company, represent it and sign on its behalf.

Individual directors

As a general rule, Spanish law does not require a director of a limited company (SL) to be Spanish or to live in Spain. What a foreign director does need is a Spanish identification number, in practice usually an NIE, because their identity must appear in the deed and in the Commercial Registry.

Also keep in mind that a director’s appointment takes effect when it is accepted (article 214 of the Spanish Companies Act). The director can accept in the deed itself, in person or through an attorney with express authority if the notary accepts it, or later in a separate document. Either way, their identification must be in order for the appointment to be registered.

A company as director

A company, Spanish or foreign, can also be a director. In that case, article 212 bis of the Spanish Companies Act requires it to appoint one individual to perform the duties of the office on a permanent basis. That means two identifications: the corporate director’s NIF and that of the individual it appoints, who will normally need an NIE if they are a foreign national.

Representing the company before the Tax Agency

The director will represent the company before the Spanish Tax Agency, and companies are required to deal with it electronically. This usually requires a representative’s digital certificate, and obtaining one means identifying the person who will use it. If the director lives abroad, plan from the start how that certificate will be obtained and who will monitor electronic notifications.

Attorneys and other representatives

Someone who signs the deed as attorney for a shareholder does not become a shareholder or director. They identify themselves before the notary with their own ID and the relevant power of attorney. If they will also handle tax formalities on behalf of a foreign entity, the Tax Agency states that they need their own NIF.

Being a shareholder or director is not a right to live or work in Spain

Neither the NIE nor a directorship gives you, by itself, permission to reside or work in Spain. If a director plans to move to Spain or work here personally, the applicable immigration rules must be reviewed with a specialist, separately from the company formation.

Preparing documents from abroad

How well you handle preparing documents from abroad has more impact on your timeline than anything else. Identifying everyone involved is usually the slowest step, because it depends on appointments and offices that whoever coordinates the formation cannot control.

Start with a list of everyone involved

Before booking any appointment, list every person and entity that will take part and what each one needs:

  • Each individual shareholder: do they already have an NIE? Is their passport valid and does it match the NIE record?
  • Each corporate shareholder: does it have a Spanish NIF? Does it have recent certificates of existence and a resolution approving the investment?
  • Each director: do they have an NIE? If the director is a company, who will be the appointed individual?
  • Each attorney: which power of attorney do they need, and for which steps?
  • Beneficial owners: who are they, and which documents show the chain of control?

Get the order right

A sensible sequence, which may vary from case to case, is:

  1. Apply for the NIEs of any individuals who do not have one, since this is the most unpredictable step.
  2. At the same time, gather, apostille or legalise and translate the corporate shareholders’ documents, and apply for their NIF.
  3. Prepare and review the powers of attorney for anyone who will not attend, including, if useful, the authority to apply for the NIE on their behalf.
  4. Apply for the company name certificate once the timing of the previous steps is clear.
  5. Ask the bank which identification and source-of-funds documents it requires.
  6. Only set the signing date once every identification number has been assigned.

Keep personal details consistent

Many problems come not from a missing document but from documents that do not match. Names transliterated differently, surnames in a different order (Spanish documents usually show two surnames), a middle name that appears in the passport but not in the NIE record, or a renewed passport with a new number can all raise questions at the notary, the Registry or the bank. Make sure all documents use the same details and, if they differ, prepare documentary evidence explaining why.

Foreign documents: apostille, legalisation and translation

Foreign public documents to be used in Spain, such as company certificates, resolutions or powers of attorney, need a Hague apostille if the issuing country is a party to the Hague Convention, or diplomatic legalisation if it is not. If they are not in Spanish, they will normally need a sworn translation by a translator appointed by the Spanish Ministry of Foreign Affairs. Handling these steps in parallel rather than one after another saves weeks.

Identification before signing

Having all identification before signing in place avoids the most frustrating scenario: notary, company name and funds are ready, and the deed cannot be signed because one identification number is missing.

Identification of everyone appearing or represented

The notary must identify both those who appear and those who are represented, and the deed must state the identification numbers of shareholders and directors. The prudent approach is not to set the signing date until each individual shareholder has an NIE (or a NIF confirmed as valid for their case), each corporate shareholder has its NIF and each director is identified. In some cases proof of a pending application is accepted, but do not count on it without confirming with the notary.

The new company’s provisional NIF

Once the deed is signed, the new company applies for its own NIF. Under Royal Decree 1065/2007, that NIF is provisional until the company provides the deed of incorporation, the articles of association and a certificate of registration with the Commercial Registry; it then becomes definitive. Whoever signs the tax registration must prove their authority to represent the company, so the directors’ identification is essential once again.

Beneficial ownership and source of funds

Alongside the identification numbers, have the information on beneficial owners and on the source of the funds contributed as share capital ready. The notary and the bank will ask for it, and gathering it at the last minute is a frequent cause of postponements.

What the company will need after signing

Once registered, the company files its tax registration for the start of activity and begins meeting its tax obligations: Corporate Income Tax, VAT if it makes taxable supplies, withholding taxes if it pays salaries or certain fees, plus accounting, statutory books and annual accounts. When shareholders are non-resident, dividends or directors’ fees may be taxed in Spain under non-resident income tax rules, with possible reductions under tax treaties. Getting the identification details right from the start makes all of this easier.

Checklist: NIE and NIF for foreign shareholders and directors

This list summarises what is usually checked before signing. It is a guide only: the notary, the Registry, the Tax Agency or the bank may ask for more documents depending on the case.

  • Valid passport or ID for every shareholder, director, appointed individual and attorney.
  • NIE for every foreign individual shareholder and director, or an M-type NIF where confirmed as valid for that case.
  • Spanish NIF for every foreign corporate shareholder, obtained through the tax registration form.
  • Recent certificate of existence and representatives for each foreign company, apostilled or legalised and translated where needed.
  • Resolution of the foreign company’s competent body approving the investment and appointing its representative.
  • Appointment of the individual representative if a director is a company.
  • Powers of attorney for anyone not attending, with the necessary powers.
  • Information on beneficial owners and the control structure.
  • Information on the source of the funds contributed.
  • Consistent details across all documents (names, surnames, document numbers).

Practical examples

These examples are simplified and for illustration only. They show how the rules above apply, but every real case must be reviewed with its own documents.

An Italian shareholder who does not live in Spain

An Italian professional wants to set up a company in Spain with a Spanish partner. Although she is an EU citizen, she needs an NIE to be a shareholder. As she is not moving to Spain, she applies at the Spanish consulate covering her home in Italy and, meanwhile, signs a power of attorney for the formation. Her Spanish partner uses his national ID. The signing date is set once she receives her NIE.

A Dutch company as sole shareholder

A company from the Netherlands is going to be the sole shareholder of a Spanish limited company. It does not need an NIE but a NIF for a foreign entity, which it applies for with form 036, providing its apostilled and translated company registry extract. Its managing director signs a power of attorney in favour of an attorney in Madrid. The director of the new company will be a British manager, who applies for his own NIE through the consulate. The notary also asks for documents on the parent company’s beneficial owners.

A company as director

Three foreign shareholders in Spain and abroad decide that their foreign holding company will be the director of the new SL. Under article 212 bis of the Spanish Companies Act, that company appoints one individual to perform the role. Two identifications are therefore needed: the corporate director’s NIF and the appointed individual’s NIE.

How DomiciliaEmpresa can help

If you need Spanish company formation advice on NIE and NIF for foreign shareholders, DomiciliaEmpresa reviews who is involved in your company, which number each person or entity needs and the best order to apply. We help you prepare the documents for your corporate shareholders’ NIF, coordinate the powers of attorney and set the signing date once everything is ready.

If you want to set up a company in Spain with partners from other countries, we can also provide a registered office in Madrid, where this fits the way your company will actually be managed, and look after your Spanish business tax compliance afterwards. If you are interested in combining company formation, registered office and tax services, ask us about any promotions available at the time.

Frequently asked questions

Are the NIE and the NIF the same thing for a foreigner?

For a foreign individual with an NIE, yes for tax purposes: their NIF is their NIE. But they are different concepts: the NIE is issued by the Police to identify foreign nationals before Spanish authorities; the NIF is the number for tax matters. A foreign company never has an NIE; it has a NIF.

Can I be a shareholder with an M-type NIF instead of an NIE?

It may be possible in some cases, but do not take it for granted. The Tax Agency treats it as temporary for people who are required to have an NIE, and notaries, the Registry and banks may not all accept it. The usual route is to obtain an NIE.

Can someone else apply for my NIE?

Yes, through a duly accredited representative with a power of attorney that expressly authorises the application. Either you or your representative must attend the office in person.

Does the NIE let me live or work in Spain?

No. The NIE is an identification number and does not authorise residence or work. Residence and work are governed by Spanish immigration rules and require their own permits.

Does my NIE change if I renew my passport?

No, the NIE is permanent. Your passport number does change, though, so the incorporation documents should show your current passport and you should be able to show the link between the old and new passport if there are discrepancies.

Does the attorney signing for me need an NIE?

Not necessarily, because they sign in your name and identify themselves with their own ID. What you, as the shareholder, will need is your own Spanish identification number. If the attorney will handle tax formalities for a foreign entity, the Tax Agency states that they need a NIF.

Conclusion

The NIE and the NIF are not the same, even though for a foreign individual they end up being one number. Individual shareholders normally need an NIE; foreign companies need a NIF for entities; directors need their own identification and, if the director is a company, so does the individual it appoints. Sorting out the NIE and NIF for foreign shareholders and directors before setting the signing date is the best way to avoid delays.

Because requirements vary by country, type of shareholder and office, we recommend checking any questions with professionals before booking appointments or signing documents. The DomiciliaEmpresa team can review your case, explain which identification each participant needs and coordinate the formation, registered office and tax management of your company in Madrid. Get in touch with no obligation and we will tell you where to start.

Setting up your Spanish company from abroad? Ask about company formation

Official sources

Related services

See all services →

More than 25,000 clients trust us

+20

years of experience

+25,000

clients

+65,000

procedures completed

Let's talk

Request information, no strings attached

Tell us what your company needs and we'll reply within 24 hours.

Information request (EN)

Privacy policy | Legal notice

Data protection: Controller: Consultoría Asesor Pyme Profesional, S.L. Purpose: to handle your request. Legal basis: pre-contractual measures or legitimate interest, as applicable. Recipients: as set out in the policy. Rights: you can exercise them at info@domiciliaempresa.es.

You can also contact us

91 445 86 32
Mon-Fri 10:00 - 18:00

info@domiciliaempresa.es
Reply within 24 h

C/ General Álvarez de Castro 41, Office 10
Madrid