Can You Get a Spanish Tax Number Without an NIE? The Little-Known NIF M and Spain’s Two-Month Rule

Spanish NIF M tax number without an NIE, showing the Modelo 030 application form, temporary validity and two-month notification rule.

Most foreign nationals dealing with Spanish bureaucracy are told that obtaining an NIE Number is an essential first step. Whether purchasing property, establishing a business, dealing with an inheritance or fulfilling Spanish tax obligations, the NIE Number plays a central role in identifying foreigners.

However, did you know that Spanish legislation provides for an alternative tax identification number beginning with the letter M?

Known as the NIF M, this relatively unfamiliar identification number can be allocated directly by the Spanish Tax Agency, the Agencia Tributaria, in certain circumstances where a foreign national does not possess an NIE Number.

Spanish legislation also establishes a two-month notification requirement when someone holding this alternative fiscal identification number subsequently obtains an NIE.

In this specialist guide, NIE Numbers Spain examines the legislation behind the NIF M, its practical applications, the application procedure and a fascinating real-life Spanish administrative dispute from 2021 involving an Italian company director.

What is a Spanish NIF M Number?

The NIF M is a Spanish fiscal identification number allocated by the Agencia Estatal de Administración Tributaria (AEAT) to qualifying foreign individuals who do not possess a Spanish NIE Number.

NIF stands for Número de Identificación Fiscal, which translates into English as Tax Identification Number.

Although most foreign nationals use their NIE Number as their Spanish tax identification number, the legislation recognises circumstances in which an alternative identification number may be necessary.

The NIF M allows the Spanish Tax Agency to identify an individual for fiscal purposes even when an NIE Number has not yet been allocated or is not legally required.

However, a NIF M is not an immigration document, a residence permit or an alternative means of obtaining Spanish residency.

The Spanish legislation behind the NIF M

The legal foundation for this identification system can be found in Real Decreto 1065/2007, de 27 de julio, which regulates Spanish tax administration and identification procedures.

Article 20 establishes the rules governing the fiscal identification of foreign individuals.

The legislation recognises two circumstances in which foreigners without an NIE may require a separate fiscal identifier:

  • Individuals who are required to obtain an NIE but have not yet received one.
  • Individuals who are not legally required to possess an NIE but need identification for Spanish taxation purposes.

The legislation also allows the Spanish Tax Agency to allocate an appropriate fiscal identification number on its own initiative in certain circumstances.

The complete legislation is available through the official Spanish government gazette:

Real Decreto 1065/2007 – Articles 20 and 21, Boletín Oficial del Estado

What is the difference between an NIE Number and a NIF M?

Although both numbers can serve a fiscal identification function, they originate from different administrative systems.

FeatureSpanish NIE NumberSpanish NIF M
Full nameNúmero de Identidad de ExtranjeroNúmero de Identificación Fiscal
Issuing authorityMinistry of the InteriorAgencia Tributaria
Initial letterX, Y or ZM
LengthNine charactersNine characters
Primary purposeIdentification of foreign nationalsFiscal identification
ValidityGenerally permanentDepends on eligibility
Establishes residency rightsNoNo
Replaces a mandatory NIE applicationNot applicableNo

An NIE Number has broader administrative applications throughout Spain.

The NIF M principally addresses the need to identify an individual within the Spanish taxation system.

For more information about the general NIE system, read our complete guide to obtaining a Spanish NIE Number.

What does a Spanish NIF M Number look like?

Under Article 20 of Royal Decree 1065/2007, the identification number consists of nine characters:

  • An initial letter M.
  • Seven alphanumeric characters.
  • A final alphabetical verification character.

The initial M distinguishes the number from the standard NIE numbering series.

The familiar X, Y and Z prefixes associated with Spanish NIE Numbers form part of a separate identification system administered by the Ministry of the Interior.

Consequently, a website designed exclusively to validate standard NIE Numbers may not accept a correctly allocated NIF M.

This is an important distinction for software developers, accountants, financial institutions and businesses dealing with international customers.

You can learn more about the structure of conventional NIE Numbers in our Spanish NIE Number validation guide.

Who can apply for a Spanish NIF M?

Eligibility depends on the applicant’s individual circumstances and the reason a Spanish fiscal identification number is required.

Potential applicants include:

  • Foreign nationals awaiting the allocation of an NIE Number.
  • Individuals with Spanish tax obligations who are not required to obtain an NIE.
  • Certain overseas company representatives.
  • Overseas beneficiaries dealing with Spanish inheritance tax.
  • Individuals participating in qualifying transactions with Spanish fiscal consequences.

The fact that someone has difficulty obtaining an NIE appointment does not automatically make them eligible for a NIF M.

The Tax Agency may require evidence demonstrating why the applicant needs fiscal identification and whether they are obliged to obtain an NIE.

The distinction between nationality, immigration status, tax residency and fiscal identification is particularly important.

Spain’s little-known three-month NIF M rule

One of the most interesting provisions explained in the Spanish Tax Agency’s official guidance concerns the temporary validity period of a NIF M.

Where a foreign national is legally required to obtain an NIE but has not yet received one, the Agencia Tributaria describes a general validity period of three months for a transitional NIF M.

The applicant must demonstrate that the NIE application process has already commenced.

The purpose of this arrangement is to prevent qualifying fiscal transactions from being unnecessarily obstructed while the normal identification procedure remains incomplete.

The temporary identification document should indicate its expiry date.

This means that anyone using a transitional NIF M should pay close attention to the validity period shown on their individual documentation.

Official guidance is available here:

Agencia Tributaria – Fiscal identification numbers for individuals

The difference between temporary and non-transitional NIF M Numbers

Not every NIF M is subject to the same circumstances.

Spanish tax legislation distinguishes between people who must eventually obtain an NIE and people who are not currently required to possess one.

Temporary NIF M

This arrangement is intended for qualifying applicants who still need to obtain their NIE.

For example, someone might have an urgent fiscal obligation arising while their NIE application is being processed.

Non-transitional NIF M

Where a foreign individual is not obliged to possess an NIE, fiscal identification through the NIF M system may continue without the same transitional expiry arrangement.

The individual’s obligations could subsequently change, however.

A new economic activity, immigration status or other connection with Spain could create a requirement to obtain an NIE Number.

Applicants should not assume that a non-transitional NIF M permanently removes all future NIE requirements.

Spain’s mandatory two-month notification rule

There is another important provision that many foreigners are unlikely to encounter in ordinary NIE application guides.

Article 21 of Royal Decree 1065/2007 establishes a notification deadline when someone with a separately allocated fiscal identification number subsequently obtains an NIE or Spanish DNI.

The individual has two months to communicate the change to the Spanish Tax Agency and other relevant parties.

These could include:

  • Accountants and tax representatives.
  • Financial institutions holding the previous fiscal identifier.
  • Companies maintaining relevant tax records.
  • Organisations involved in transactions carrying Spanish fiscal obligations.

The purpose is to maintain consistent identification and prevent the individual’s fiscal history from becoming fragmented.

An example of how the rule works

Imagine a foreign national who needs to complete a Spanish tax declaration but is still awaiting an NIE Number.

The Agencia Tributaria approves a transitional NIF M.

The individual subsequently receives their NIE on 15 February.

The two-month notification period would ordinarily run until 15 April, subject to the applicable rules governing administrative deadlines.

They should notify the relevant organisations and ensure their records reflect the newly allocated NIE.

This two-month requirement is separate from the validity period of a temporary NIF M.

Do not assume that the notification deadline automatically extends an identification document that has already expired.

A fascinating real Spanish legal case involving an NIE Number

Perhaps the most interesting practical example of the NIF M system can be found in a resolution published in Spain’s official government gazette on 23 November 2021.

The decision concerned the appointment of an Italian national to the board of directors of a Spanish company.

The Barcelona Commercial Registry declined to register the appointment because the foreign director’s Spanish fiscal identification was missing.

The company appealed, raising concerns about the administrative requirements imposed upon foreign EU nationals.

During the appeal, the company referred to correspondence from the Spanish Ombudsman, known as the Defensor del Pueblo, dated 22 July 2021.

The correspondence, as described in the published decision, discussed transitional fiscal identification for foreigners awaiting NIE allocation.

However, the competent Directorate-General ultimately dismissed the appeal, maintaining the requirement for fiscal identification in connection with a director’s potential tax responsibilities.

The decision did not establish that a passport alone was sufficient, nor did it establish discrimination under EU law.

The complete administrative decision is available here:

BOE-A-2021-19263 – Resolution of 27 October 2021 concerning the registration of a foreign company director

What can foreign company directors learn from this case?

The 2021 decision illustrates why obtaining identification should be considered early when planning business activities in Spain.

Foreign investors and company directors should distinguish between:

  • Establishing their personal identity through a passport.
  • Establishing the fiscal identification required for a particular transaction.
  • Obtaining immigration documentation where necessary.
  • Meeting the separate requirements of the Commercial Registry.

An overseas passport establishes identity, but it does not necessarily meet every Spanish tax identification requirement.

Where a transaction involves the appointment of a company director, acquisition of shares or formation of a Spanish company, obtain advice from the notary, accountant or company formation specialist handling the transaction.

Waiting until the final registration stage could create avoidable complications.

Can you inherit Spanish property without an NIE Number?

Spanish inheritance proceedings provide another interesting example of circumstances where the NIF M system may be relevant.

International beneficiaries sometimes discover that they have Spanish inheritance tax obligations despite never having previously visited Spain.

The Agencia Tributaria specifically addresses fiscal identification in its published guidance concerning inheritance and gift taxation.

An eligible individual who is not obliged to possess an NIE may be able to request a NIF M for the relevant fiscal procedure.

However, inheritance taxation is only one part of the wider inheritance process.

A person who inherits Spanish property may also need to complete notarial documentation, property registration and other administrative procedures that create additional identification requirements.

It is therefore important to establish whether a NIF M is sufficient for the entire inheritance process or only its taxation element.

Official information can be found here:

Agencia Tributaria – Frequently asked questions about inheritance and gift tax for non-residents

Can you purchase Spanish property using a NIF M instead of an NIE?

Foreign purchasers should not assume that a NIF M automatically replaces the normal requirement to obtain an NIE Number when buying Spanish property.

A property acquisition involves numerous administrative and legal processes, potentially including:

  • Preparation of the purchase deed.
  • Identification of the purchaser.
  • Payment of applicable purchase taxes.
  • Registration of ownership.
  • Banking and financial compliance.
  • Future municipal and national tax obligations.

Although a NIF M may assist with particular qualifying fiscal operations, its acceptance throughout an entire property purchase cannot be guaranteed.

Purchasers should confirm the identification requirements with their Spanish notary and legal representative.

For most overseas property buyers, obtaining a conventional NIE Number sufficiently early remains the appropriate approach.

How to apply for a Spanish NIF M Number

Unlike the ordinary NIE application process, which is administered through the Ministry of the Interior, a NIF M application generally involves the Spanish Tax Agency.

For eligible individuals outside the business and professional tax census, the relevant application form is Modelo 030.

The official title of the form is:

Declaración censal de alta en el censo de obligados tributarios, cambio de domicilio y/o de variación de datos personales.

The form is used for several tax registration and personal information procedures, not exclusively NIF M applications.

You can access the official procedure here:

Agencia Tributaria – Modelo 030 application and registration procedure

Individuals establishing business or professional activities may need a different census procedure, such as Modelo 036.

What documents are required for a NIF M application?

The precise supporting documents depend on the circumstances of the application.

Applicants should be prepared to provide, where applicable:

  • A completed and signed Modelo 030.
  • A valid passport or equivalent accepted identification document.
  • Evidence of an overseas residential address.
  • Information supporting the reason fiscal identification is necessary.
  • Evidence that an NIE application has been submitted, where obtaining an NIE is obligatory.
  • Evidence of exemption from the NIE requirement, where applicable.
  • Suitable authorisation if another person is acting on the applicant’s behalf.

The Spanish Tax Agency may request further documentation before approving an application.

Consult the official document requirements before submitting your application:

Agencia Tributaria – Supporting documentation for Modelo 030

Can a Spanish NIF M be obtained online?

Yes. The Agencia Tributaria publishes guidance for a remote application procedure for individuals who do not possess Spanish DNI or NIE identification.

The process involves preparing Modelo 030, digitising the necessary supporting documents and submitting the application through the designated electronic registration procedure.

Appropriate electronic identification and representation requirements must be satisfied.

Where an applicant cannot access the electronic service personally, they may need assistance from an authorised representative.

The official instructions are available here:

Agencia Tributaria – Remote NIF application without a Spanish DNI or NIE

Can you obtain a NIF M from outside Spain?

Depending on their circumstances, eligible individuals may also be able to arrange fiscal identification through Spanish diplomatic missions and consular offices.

Applicants should contact their local Spanish consulate to establish whether it provides the relevant service and what documentation is required.

This may be particularly useful for individuals dealing with Spanish fiscal matters from abroad.

However, anyone whose circumstances require a conventional NIE should enquire about the NIE application procedure rather than assuming a NIF M is the correct alternative.

What happens to your tax records when you obtain an NIE?

An important practical consideration is maintaining continuity between the historical fiscal identifier and the new identification number.

Someone who has previously submitted declarations using a NIF M may have accumulated a Spanish tax history under that identifier.

Rather than treating the newly allocated NIE as an unrelated identity, the individual should ensure that their fiscal records are correctly updated.

Keep copies of:

  • The original NIF M allocation document.
  • The newly issued NIE certificate.
  • Previous tax declarations.
  • Evidence of the notification submitted to the Tax Agency.
  • Correspondence confirming any subsequent record updates.

These records may help resolve discrepancies if historic tax information continues to display the former identifier.

The Tax Agency provides an official procedure for updating personal identification and fiscal details.

Does the NIF M establish Spanish tax residency?

No. Possessing a Spanish fiscal identification number does not automatically make an individual a Spanish tax resident.

Tax residency depends on the applicable legislation, the individual’s circumstances and, where relevant, international tax treaties.

Similarly, holding an NIE Number does not automatically establish Spanish tax residency.

It is possible for an individual living overseas to possess Spanish fiscal identification because they have property, financial interests or specific taxation obligations in Spain.

This distinction is particularly important for international property owners and beneficiaries of Spanish estates.

Does having a NIF M allow you to live or work in Spain?

No. The NIF M does not confer immigration status.

It does not:

  • Grant Spanish residency.
  • Provide permission to work.
  • Extend a permitted period of stay.
  • Replace a TIE residence card.
  • Replace EU citizen residence registration.
  • Exempt an individual from immigration requirements.

Fiscal identification and immigration authorisation are separate administrative matters.

Anyone intending to relocate to Spain should establish the appropriate residency and employment requirements for their nationality and circumstances.

Understanding Spain’s different individual identification numbers

Spain uses several initial letters to distinguish special fiscal identification categories.

PrefixIdentification category
KCertain Spanish minors without DNI
LSpanish nationals abroad who are not obliged to possess DNI
MQualifying foreign individuals without NIE
XConventional NIE numbering series
YConventional NIE numbering series
ZConventional NIE numbering series

These categories illustrate why Spanish fiscal identification is more complicated than simply distinguishing between Spanish DNI Numbers and foreign NIE Numbers.

A correctly issued fiscal identifier may belong to a numbering category that is unfamiliar to members of the public.

Common mistakes when dealing with a NIF M

International applicants should avoid several potential misunderstandings.

Mistake 1: Believing a NIF M is a temporary residence permit.

It serves a fiscal identification purpose and does not provide immigration permission.

Mistake 2: Assuming a NIF M removes the need to obtain an NIE.

Applicants who are legally required to obtain an NIE remain subject to that obligation.

Mistake 3: Confusing the three-month validity period with the two-month notification deadline.

These rules address different circumstances and should be considered separately.

Mistake 4: Assuming every business will automatically accept a NIF M.

The requirements of individual transactions, institutions and registration procedures may differ.

Mistake 5: Failing to update fiscal records after receiving an NIE.

Maintaining consistent identification is important for preserving accurate fiscal records.

Frequently asked questions about Spanish NIF M Numbers

Can a foreigner obtain a Spanish tax number without an NIE?

Yes. Spanish legislation provides for a NIF beginning with M in qualifying circumstances.

Is a Spanish NIF M the same as an NIE Number?

No. They are separate identification categories allocated by different authorities.

Can British citizens apply for a NIF M?

British nationality does not automatically prevent eligibility. The applicant must satisfy the requirements applicable to their particular fiscal circumstances.

Can EU citizens obtain a NIF M?

Yes, where the relevant conditions are satisfied. EU citizenship alone does not determine eligibility.

Can I obtain a NIF M because I cannot find an NIE appointment?

Not necessarily. You must meet the fiscal identification requirements established by the Spanish Tax Agency.

Does a temporary NIF M expire?

Yes. The Agencia Tributaria describes a general three-month validity period for transitional NIF M identification. Check the expiry date on your individual document.

Do I have to tell Hacienda when I receive my NIE Number?

Yes. Article 21 establishes a two-month notification requirement for individuals who subsequently receive the appropriate permanent identification number.

Can I convert a NIF M into an NIE Number?

The Ministry of the Interior must allocate the NIE through the applicable procedure. The existing NIF M cannot simply be converted by changing its initial letter.

Can I use a NIF M to open a Spanish bank account?

Acceptance depends on the bank’s identification, compliance and account-opening requirements.

Can I apply for a NIF M using Modelo EX-15?

Modelo EX-15 is associated with NIE and certain foreigner certification procedures. The ordinary NIF M fiscal identification application for eligible non-business individuals uses Modelo 030.

Does a NIF M make me liable for Spanish taxes?

The allocation of a fiscal identifier does not itself establish a new tax liability. Liability depends on the individual’s activities, assets, income and other relevant circumstances.

Conclusion: The Spanish identification number most foreigners have never heard of

Spain’s NIF M system demonstrates that Spanish fiscal identification and foreign identity registration are closely connected but administratively distinct.

The provisions contained in Royal Decree 1065/2007 provide a mechanism for eligible individuals who require Spanish fiscal identification without currently possessing an NIE.

The transitional validity arrangements and the subsequent two-month notification requirement are important details that foreigners should understand before relying on this alternative identification number.

The 2021 Commercial Registry decision also illustrates the practical consequences of overlooking fiscal identification when participating in Spanish business activities.

For most foreign nationals purchasing property, relocating to Spain or establishing wider economic interests in the country, obtaining an ordinary NIE Number remains an essential administrative step.

Nevertheless, understanding the NIF M provides a more complete picture of how Spain identifies foreign individuals within its taxation system.

Need help obtaining your Spanish NIE Number?

NIE Numbers Spain provides specialist information about Spanish NIE applications, documentation and identification procedures.

Visit our complete Spanish NIE Number guide to learn more about the application process, or visit MY NIE for assistance arranging your Spanish NIE appointment and preparing the relevant application paperwork.

Related articles from NIE Numbers Spain

Continue exploring the Spanish NIE identification system:

Official Spanish government sources and legal references

This article draws upon primary Spanish government legislation and administrative guidance.

  1. Boletín Oficial del Estado – Royal Decree 1065/2007, Articles 20 and 21
  2. BOE – Resolution of 27 October 2021, Reference BOE-A-2021-19263
  3. Agencia Tributaria – Individual fiscal identification numbers
  4. Agencia Tributaria – Technical manual explaining individual NIF composition
  5. Agencia Tributaria – Official Modelo 030 procedure
  6. Agencia Tributaria – Supporting documentation for Modelo 030
  7. Agencia Tributaria – Non-resident inheritance and gift taxation

This article provides general information derived from published Spanish legislation and official administrative guidance. It does not constitute individual legal, immigration or taxation advice.

Last reviewed: 27 November 2026.