Last updated: 30 May 2026 — by Platinum Legal Spain
BLOG · ADMIN & BUREAUCRACY

NIE, NIF & DNI: The Spanish ID Numbers Explained

Few things confuse newcomers to Spain more than the alphabet soup of ID numbers — NIE, NIF, DNI, TIE. People use the terms interchangeably, official forms ask for different ones, and it's never quite clear which you need or how they relate. In practice it's simpler than it looks once someone untangles it. Here's a plain-English guide to what each number is, how they differ, and which one you actually need as a foreigner in Spain.

Book a Consultation The Difference
5.0★Rated on Google
100%English-speaking team
Quick answer

For foreigners, the number that matters is the NIE (Número de Identidad de Extranjero) — your unique foreigner identification number in Spain, used for everything from buying property and paying tax to opening a bank account and signing utility contracts. The NIF (Número de Identificación Fiscal) is the tax identification number: for a Spanish national it's their DNI, and for a foreigner the NIE effectively serves as your NIF for tax purposes — so in practice your NIE is your tax number too. The DNI (Documento Nacional de Identidad) is the national ID number/card for Spanish citizens only. The TIE (Tarjeta de Identidad de Extranjero) is the physical residence card for non-EU residents, which shows your NIE. So: the NIE is the number you need; the NIF is the tax label that your NIE fills for foreigners; the DNI is for Spaniards; the TIE is the card residents carry. We obtain NIEs for clients quickly.

Why It's So Confusing

The confusion is real and understandable. Spanish officialdom, banks, lawyers and forms use the terms NIE, NIF and DNI somewhat loosely, sometimes treating them as interchangeable and sometimes drawing fine distinctions — and the physical card (the TIE) adds another acronym on top. For an English speaker arriving in Spain, it can feel like you're being asked for half a dozen different numbers when really there's one that matters to you.

The good news is that for a foreigner, almost everything comes back to a single number — the NIE — which doubles as your tax number. Once you understand that the various acronyms are mostly different labels and contexts for the same underlying identification, the picture clears up. Let's separate them properly.

NIE vs NIF vs DNI

Here's the clean breakdown:

NumberWhat it is
NIENúmero de Identidad de Extranjero — the unique identification number assigned to a foreigner in Spain. This is the number you, as an expat, need and use for almost everything.
NIFNúmero de Identificación Fiscal — the tax identification number. For a Spanish citizen it's their DNI; for a foreigner, your NIE serves as your NIF. So your NIE is your tax number.
DNIDocumento Nacional de Identidad — the national identity number and card for Spanish citizens only. Foreigners don't have a DNI.

So the key insight: NIF is a function, not a separate number you apply for. It's the tax label — Spaniards' NIF is their DNI, foreigners' NIF is their NIE. As an expat you don't separately "get a NIF"; your NIE plays that role. The DNI simply isn't relevant to you unless you become a Spanish citizen. This is why, in practice, almost everything for a foreigner comes down to having an NIE.

For a foreigner, your NIE is also your tax number (NIF)

You don't apply separately for a NIF. The NIF is the tax-identification label: for Spanish citizens it's their DNI; for foreigners it's the NIE. So once you have your NIE, that single number is your identification for residency, property, banking and tax alike.

Where the TIE Fits In

The other acronym you'll hear is the TIE (Tarjeta de Identidad de Extranjero) — the physical residence card issued to non-EU foreigners who hold a residence permit in Spain (for example, on a Non-Lucrative or Digital Nomad visa). The important distinction: the NIE is a number; the TIE is a card that proves your right to reside and which displays your NIE on it.

So a non-EU resident has both: an NIE (the number) and a TIE (the card showing that number plus their residence status, photo and validity). EU citizens who register as residents historically receive a different green certificate/card rather than a TIE, but they too have an NIE. The takeaway is that the TIE isn't a different identification number — it's the physical credential that residents carry, built around the same NIE. Renewing residence means renewing the TIE card, not getting a new NIE.

When You Need an NIE

You'll need an NIE for essentially any significant interaction with Spanish systems as a foreigner, including:

  • Buying or selling property — you can't complete a property purchase without one.
  • Paying tax — it's your tax number, needed for any Spanish tax filing or liability.
  • Opening a bank account (especially a resident account) and many financial dealings.
  • Working or setting up as autónomo or a company.
  • Residence and visa applications — the NIE is assigned as part of getting residence.
  • Signing utility contracts, buying a car, inheriting assets, and most official paperwork.

Because so much depends on it, the NIE is usually the first thing an expat needs to sort out — often before a bank account, a property purchase or a residence application can proceed. It's the key that unlocks the rest of the bureaucracy, which is why getting it promptly matters.

How to Get an NIE

There are two broad routes to obtaining an NIE:

1

In Spain

Apply at a National Police foreigners' office (or designated office), with an appointment (cita previa), the application form, your passport, supporting documents showing why you need it, and the relevant fee.

2

From abroad

Apply through the Spanish consulate in your home country before you travel — useful if you need the NIE in place before arriving (for example, to buy property remotely).

3

Through a representative

A lawyer can obtain the NIE on your behalf under a power of attorney, so you don't have to navigate appointments and Spanish-language paperwork yourself.

The practical hurdles are usually getting a cita previa (appointments can be scarce in busy areas), assembling the right supporting documents, and doing it all in Spanish. A simple NIE (not tied to residence) is essentially an identification number assignment; getting residence is a separate, bigger process that includes an NIE. Many expats use a lawyer to handle the NIE so it's done quickly and correctly. Our full NIE guide covers the detail, and we obtain NIEs for clients regularly.

Common Mix-Ups

The recurring confusions worth clearing up:

  • "Do I need a NIF as well as an NIE?" — No. Your NIE is your NIF for tax purposes.
  • "Is the NIE the same as the TIE?" — No. The NIE is the number; the TIE is the residence card that displays it.
  • "Should I have a DNI?" — No, the DNI is for Spanish citizens only.
  • "Does my NIE expire?" — The NIE number itself is permanent and yours for life; what can expire is a residence card (TIE) or a certificate, not the underlying number.
  • "Can I use my NIE for tax straight away?" — Having an NIE doesn't itself make you a Spanish tax resident; tax residency depends on your circumstances.

Getting these straight saves a lot of needless worry. The bottom line for an expat: focus on the NIE — it's your number for life, it serves as your tax number, and it's what unlocks property, banking, tax and residence. The other acronyms are context around it. We make sure clients have the right number in place for whatever they're doing.

How We Help

We obtain NIEs for expats — handling the cita previa, the forms, the supporting documents and the Spanish-language process, in Spain or via the consulate, and under a power of attorney if you can't attend in person. We make sure you have the right identification in place for whatever you're doing — a property purchase, a bank account, a residence or visa application, or tax matters — and explain how it all fits together, in plain English. Book a consultation and we'll sort your NIE.

Related Reading

NIE Number in Spain

The full guide to getting and using your NIE.

NIE guide →

Tax Residency in Spain

When you become a Spanish tax resident.

Tax residency →

Banking in Spain

Opening an account — where your NIE is needed.

Banking →

Empadronamiento vs Residency

Two more bits of Spanish admin, untangled.

Empadronamiento vs residency →

Frequently Asked Questions

What's the difference between NIE, NIF and DNI?+

The NIE (Número de Identidad de Extranjero) is the unique identification number for a foreigner in Spain — the number you, as an expat, need for almost everything. The NIF (Número de Identificación Fiscal) is the tax identification number: for a Spanish citizen it's their DNI, and for a foreigner your NIE serves as your NIF, so your NIE is also your tax number. The DNI (Documento Nacional de Identidad) is the national ID number and card for Spanish citizens only — foreigners don't have one. In short, the NIE is the number that matters for expats, and it doubles as your tax number.

Do I need a NIF as well as an NIE?+

No. The NIF is a function, not a separate number you apply for. It's the tax-identification label: for Spanish citizens their NIF is their DNI; for foreigners it's their NIE. So as an expat you don't separately "get a NIF" — your NIE plays that role for tax purposes. Once you have your NIE, that single number serves for residency, property, banking and tax alike. This is one of the most common points of confusion, but the answer is simple: your NIE is your tax number.

Is the NIE the same as the TIE?+

No — the NIE is a number, the TIE is a card. The NIE (Número de Identidad de Extranjero) is your unique foreigner identification number. The TIE (Tarjeta de Identidad de Extranjero) is the physical residence card issued to non-EU foreigners who hold a residence permit, which displays your NIE along with your photo, residence status and validity. So a non-EU resident has both: the NIE number and the TIE card that shows it. Renewing your residence means renewing the TIE card, not getting a new NIE — the number stays the same.

When do I need an NIE?+

You need an NIE for essentially any significant dealing with Spanish systems as a foreigner: buying or selling property (you can't complete without one), paying tax (it's your tax number), opening a bank account, working or setting up as autónomo or a company, residence and visa applications, signing utility contracts, buying a car, and inheriting assets. Because so much depends on it, the NIE is usually the first thing an expat needs to sort out — often before a bank account, property purchase or residence application can proceed. We obtain NIEs for clients quickly.

How do I get an NIE?+

There are three routes: in Spain (at a National Police foreigners' office with an appointment/cita previa, the form, your passport, supporting documents and the fee); from abroad (through the Spanish consulate in your home country before you travel); or through a representative (a lawyer obtaining it on your behalf under a power of attorney). The practical hurdles are usually getting a cita previa, assembling the right documents, and doing it in Spanish. Many expats use a lawyer to handle it so it's done quickly and correctly. We obtain NIEs for clients regularly.

Does my NIE expire?+

The NIE number itself is permanent — it's yours for life and doesn't change. What can expire is a residence card (the TIE) or a residence certificate, which need renewing, but the underlying NIE number stays the same throughout. In the past some NIE certificates had limited validity for certain purposes, which caused confusion, but the number assigned to you is permanent. So once you have your NIE, you don't need to reapply for a new number — you just renew your residence card when required. We can advise on renewals.

Does having an NIE make me a Spanish tax resident?+

No — having an NIE doesn't itself make you a Spanish tax resident. The NIE is simply your identification (and tax) number; tax residency is a separate question determined by your circumstances, broadly whether you spend more than 183 days a year in Spain or have your main economic interests here. You can have an NIE as a non-resident (for example, to own a Spanish property and pay non-resident tax) without being tax resident. Understanding your tax-residency position is important and separate from holding an NIE. We advise on tax residency and handle the NIE.

Can I get an NIE before moving to Spain?+

Yes — you can apply for an NIE from abroad through the Spanish consulate in your home country, which is useful if you need the number in place before arriving, for example to buy a property remotely or set things up in advance. Alternatively, a lawyer can obtain it for you in Spain under a power of attorney, so you don't have to travel or navigate the appointments and paperwork yourself. Getting the NIE early often smooths the rest of the process, since so much depends on it. We obtain NIEs both in Spain and via the consulate route for clients.

Get Your NIE Sorted, Stress-Free

We handle the appointments, forms and Spanish-language paperwork to get your NIE in place — the number that unlocks property, banking, tax and residence. Book a consultation with our English-speaking team.

Book a Consultation NIE Number Guide

This article provides general information about Spanish identification and tax numbers and does not constitute legal or tax advice. Procedures and requirements vary and change over time. Platinum Legal Spain works with a team of legal, immigration and tax specialists; for advice on your situation, please book a consultation.

Speak with a Specialist

Get tailored legal advice from our English-speaking team in Spain. We respond within 24 business hours.