Spanish NIF and Modelo 030 for Foreigners

Foreign buyers, sellers, heirs and property owners often hear about a Spanish NIE and a Spanish NIF. The terms are related, but they are not always the same administrative step. You may already have an NIE and still need to confirm or update how your details are recorded with the Spanish Tax Agency (Agencia Tributaria, or AEAT).

Seb Leeson Legal Group assists international clients with identifying the correct documentation, applying for NIE numbers where appropriate, and dealing with tax identification and registration issues relevant to property transactions, inheritance and Spanish tax returns.

What is a Spanish NIF?

The NIF (Número de Identificación Fiscal) is the taxpayer identification number used for Spanish tax purposes. For an individual who already has an NIE, the NIF will generally be that same NIE number. The fact that the number is the same does not always resolve questions about how the person’s identity, address or other details appear in the Tax Agency’s records.

What is the difference between an NIE and an NIF?

The NIE (Número de Identidad de Extranjero) is an identification number issued to foreigners by the Spanish authorities. The NIF identifies a taxpayer to the Tax Agency. Many foreign individuals use their NIE as their NIF, but some people who do not have an NIE may need an NIF allocated directly by the Tax Agency, subject to the legal conditions.

A tax identification number is not the same as permission to reside in Spain. Nor should an NIF issued by the Tax Agency automatically be treated as a substitute for an NIE where the latter is legally required.

What is Modelo 030?

Modelo 030 is the Spanish Tax Agency’s census declaration for certain individuals. It may be used, depending on the circumstances, to request registration in the taxpayer census, apply for an NIF if the person qualifies, notify a change of tax address or correct personal details. It is generally intended for individuals outside the business/professional census; businesses and self-employed persons may need a different form, such as Modelo 036.

When might a foreign property owner need it?

  • Before purchasing or selling a Spanish property if the Tax Agency cannot match the individual’s identification details.
  • When an heir needs tax identification for Spanish inheritance filings or registration formalities.
  • When a non-resident property owner needs to regularise details for Modelo 210 or another return.
  • When personal details or the declared tax address need to be updated in AEAT records.
  • When an individual has no NIE and qualifies to request an NIF directly through the Tax Agency.

Not every holder of an NIE must submit Modelo 030. The correct procedure depends on the actual tax-census position and the transaction.

Can a foreigner obtain an NIF without an NIE?

In qualifying cases the Tax Agency may assign an NIF to a foreign individual who does not have an NIE. An NIF beginning with M is used in certain cases for foreigners without an NIE. Where obtaining an NIE is legally required, such a tax identification number may be transitional; it does not independently confer immigration or residence rights.

Documents and practical steps

The documentation depends on the purpose and the route used. It may include a passport or identity document, an existing NIE certificate if any, evidence supporting a tax identification request or change of details, contact/address information and, where an authorised representative acts, suitable representation documents.

  1. Determine whether you already have an NIE or NIF and whether AEAT recognises it correctly.
  2. Identify whether Modelo 030, an NIE application or another tax-census procedure is required.
  3. Prepare the appropriate evidence and, if applicable, the authorisation or power of attorney.
  4. Submit the correct application or declaration to the competent authority and check the result before the property or inheritance deadline.

How we help international clients

We coordinate tax-identification issues as part of our conveyancing, inheritance and non-resident tax services. If you are buying in Spain, read our NIE number guide and buying-property guide. If you are dealing with an estate, see inheritance in Spain. You can also contact our office for assistance with your circumstances.

Spanish-NIF-and-Modelo-030

Frequently asked questions

Are an NIE and an NIF two different numbers?

For most foreign individuals who have an NIE, that number is also used as their NIF. The tax registration associated with it may still need to be verified or updated.

Do all foreigners need to complete Modelo 030?

No. Modelo 030 is used for defined census, NIF and personal-data situations. Whether it is necessary depends on the individual’s status and records.

Can I buy property with an NIF beginning with M?

The relevant authorities, notary and circumstances determine what identification is acceptable. An M-type NIF is not automatically a replacement for an NIE where an NIE is required.

Does an NIE give me Spanish residence rights?

No. Holding an NIE on its own does not establish residency or permission to live or work in Spain.

Can your firm handle the paperwork for me?

We can assess the appropriate route and explain representation requirements, including whether a power of attorney is necessary for the relevant procedure.

General information reviewed on 15 October 2026. Individual documentation and procedure vary. Official guidance: AEAT – Modelo 030 instructions and AEAT – NIF for individuals.