Pay later
Pay on invoice
Excellent
Rated Excellent
From A-Z a Big Smile!

How to find your NIE number when you have lost it

This information is up to date and has been checked on 2025.

You have an NIE somewhere. It was assigned during a student year in Salamanca, or on a property purchase in 2016, and the paper carrying it did not survive the move. The number is still live in the register: what you lost is your copy of it.

The number never expires and you cannot hold two, so this is a retrieval problem, never an application: that part is settled in renewing your NIE. This guide is the layer underneath: where the number is physically printed, how to tell it from the other codes on the page, how to sanity check what you find, and what an office needs before it looks anything up.

Where the number is already written down

Spend ten minutes with the format in your head before queuing for anything: one letter, seven digits, one letter. That shape sits in more places than people expect, starting with whatever the Policía Nacional or the consulate handed you at the time.

  • The green A4, the certificado de registro de ciudadano de la Unión for EU citizens. The NIE is in the body of the certificate, next to your name. The code near the top right corner or the seal, starting IXESP or AXESP, is the soporte.
  • The TIE, for non-EU residents. The NIE is on the front, in the identity block with the photo and the permit expiry date. The code starting with E on the back, beside the machine-readable chevrons, is the soporte.
  • Spanish tax filings. The NIF sits at the top of every modelo, and for a foreign individual the NIF is the NIE: an old modelo 210, a modelo 100, a modelo 030.
  • Notarial deeds. The escritura for a purchase, a mortgage or an inheritance identifies every party by number, and the notary keeps the original when your copy is gone.
  • Contracts. A Spanish employment contract and its payslips, an account opening file, bank statements, a lease, an insurance policy.
  • Your padrón. The town hall registered you against an identity number, so a certificado de empadronamiento is worth requesting, though what it prints varies by municipality.

One habit prevents the next search: photograph any new document the day it arrives, and store the NIE and the soporte separately.

Telling an NIE apart from a soporte, a NUSS and a DNI

Many failed searches are not searches at all: the number was on the page and was read as something else. Four identifiers circulate on the same documents, each with a recognisable shape.

Infographic: comparison table telling the Spanish NIE, the número de soporte, the NUSS and the DNI apart by their format, an example on the page and what each one identifies.
Infographic: how to tell the NIE, the número de soporte, the NUSS and the DNI apart. · View full size
  • NIE. X, Y or Z, seven digits, a check letter, for example X1234567L. X marks the oldest numbers, Y those issued since 2008, Z the most recent. It identifies the person, and for a foreign individual it doubles as the NIF: see NIE versus NIF.
  • Número de soporte. E plus eight digits on a TIE (E12345678), IXESP or AXESP plus digits on a green A4 (IXESP00012345A). It identifies the document, not you, and changes at every reissue: see the número de soporte.
  • NUSS. Twelve digits written XX/XXXXXXXX/XX, the first two being the province that allocated it. Social security, issued by the TGSS, no relation to the NIE: see the NUSS number.
  • DNI. Eight digits and a check letter, Spanish nationals only. When a form asks a foreigner for a DNI, your NIE is the answer.

The quick rule: nine characters starting with X, Y or Z is you, E or IXESP is the document, twelve digits are social security.

The check letter, and what it tells you about a number you found

The last character is derived from the seven digits by a fixed algorithm, which is why one mistyped digit is normally caught the moment the number is entered in a Spanish form: the pair no longer agrees and the number comes back invalid. We are not publishing the formula, because the structure alone gives you four usable checks.

  • Exactly nine characters: one letter, seven digits, one letter. Six or eight digits means a character was dropped or added.
  • The first letter is X, Y or Z, nothing else. A number starting with another letter is a company NIF, a soporte, or not an NIE at all.
  • Spaces, dots and hyphens are not part of it. X-1234567-L and X1234567L are the same number.
  • The classic misreadings are 0 against O, 1 against I, and on handwriting 5 against S.

One thing not to do: recompute the check letter to make a number work. A wrong digit with a matching letter is not your number, it is a valid number belonging to somebody else: it passes the form check and fails at the counter. Only the register tells you what is right.

Asking the Policía Nacional, and what they need before they look

The register is held centrally by the Dirección General de la Policía. In practice you go to a Policía Nacional station with an extranjería desk, or an Oficina de Extranjería, and ask to be found in it. Being told your own number is free. The obstacle is proving you are the person in the file, which was opened with data you may no longer carry.

Infographic: the four things a Policía Nacional counter needs before it looks up a Spanish NIE, current passport, old passport, the name and birth details as filed, and the original application.
Infographic: what to bring before an office will look up your NIE. · View full size
  • Your current passport, original plus photocopy. Counters compare the number in the file with the document in your hand, and an expired passport blocks more than people expect.
  • The old passport, or its number, if you have renewed since. This is the key the file was opened with.
  • Your name as it was spelled then: a maiden name, a middle name since dropped, surnames in the order the Spanish form recorded.
  • Date and place of birth, which separate you from a namesake.
  • Where and roughly when it was issued: city, year, and whether it went through a police station, a consulate or a gestoría.
  • Anything quoting a partial number, even a bad photocopy. Confirming a number is quicker than finding one.

Two limits. Nobody releases your number to a third party, so it is you at the counter, or a representative under a notarial power of attorney. And it runs through cita previa: appointments are single use, waits run 1 to 4 weeks by province, worst from July to September.

If you need the number on paper rather than read out, that is a different request. The EX-15 covers certificates about your situation in the register as well as first applications, and a certificate carries its own tasa on the modelo 790 código 012. Ticking the right purpose is what makes the appointment useful: see the EX-15 form.

From abroad: going back to the consulate

Outside Spain the consulate is the realistic counter, and the best starting point is the post that handled your original application: it opened the file. If the number was assigned inside Spain, the consulate covering your district is still where to ask, but how much it can consult varies from post to post. Write before you travel, with scans of both passports.

Do not read consular application times as lookup times: for a first NIE, consulates are the slowest route at 6 to 12 weeks between booking and issuance, 4 to 8 weeks of that waiting for the appointment. For a consultation there is no published figure. The remote alternative is a notarial power of attorney, apostilled if signed outside Spain, letting a gestoría ask for you, and it has to cover that request specifically.

When the number is right but the name is not

Second family of cases: you have a number, it is probably yours, and something still refuses to match. Work out which side holds the error.

Downstream is the common one. A bank, an employer, a notary or an insurer typed your number from a phone call or a poor scan, and their copy has one character wrong. Nothing at the Policía Nacional fixes that: send them an image of your document, in writing. Dictating numbers aloud is how these errors start.

Upstream is when the register holds a version of your identity that no longer matches your documents. The usual causes: Spanish forms expect two surnames where most foreign passports carry one, a compound surname split across both fields, a married name recorded instead of the passport name, a middle name dropped, accents and ñ stripped, or a passport renewed since. The number is then correct and still fails.

  • Tax records. Modifying identifying data for an individual, name, surnames and document number, is what the modelo 030 is for: see the modelo 030.
  • The foreigners register. The reference document is your passport: bring the original and ask for the register to be aligned with it. Getting it on paper afterwards is a certificate request.
  • Social security. The NUSS is a separate register with its own copy of your data. If the name differs there too, correct it with the TGSS.

And if two numbers circulate in your name, do not pick the one you prefer: one of them is a transcription error, and only the register settles which.

Why a second application is not the shortcut

When a lookup means an appointment, applying again looks faster. It is not: the register matches you to the file that already exists, and you will have spent the 9,84 euro tasa on the modelo 790 código 012, an EX-15 and a single-use appointment to be told so.

What you want is a consultation, a certificate, or, if what you lost is the document rather than the number, a duplicado: same form, different purpose ticked, the same NIE on the new document, a new soporte on it.

Where to start

Work in this order: each step is cheaper than the next.

  • Ten minutes in your own files with the shape of the number in mind: tax filings, deeds, contracts, bank statements, old phone backups.
  • Run the structural checks on what you find, and separate the NIE from the soporte before using either.
  • If nothing turns up, assemble the identity evidence before booking: both passports, the name as it was spelled, date and place of birth, city and year of the original application.
  • Then book the counter, in Spain or at the consulate, ask for the number on paper if you must prove it to someone else, and correct in writing every downstream copy that is wrong.

At Gestoraz we handle Spanish administrative files remotely, including NIE files and duplicados of a lost document, and the steps that depend on the number: bank account, digital certificate and padrón.

Official sources

  • Policía Nacional, sede electrónica, sede.policia.gob.es: foreigners register, cita previa, NIE and certificate procedures, duplicados.
  • Ministerio de Inclusión, Seguridad Social y Migraciones, Extranjería portal, extranjeros.inclusion.gob.es: official application models including the EX-15, and information on NIE documents.
  • Agencia Tributaria, sede.agenciatributaria.gob.es: recognition of the NIE as NIF, and census updates through the modelo 030.
  • Spanish consular network, exteriores.gob.es: directory of consulates for applications and enquiries from abroad.
Get help from a specialist.
Apply for your NIE entirely remotely.
Register your NIE as NIF or request a new NIF.
Application for your NUSS number.
We fill out the Modelo 210 for you and submit it.
Complete formation of your S.L.
Full registration as Autónomo.
Full registration as Autónomo.
Complete formation of your S.L.

Obtain your Digital Certificate entirely remotely.

We help you with everything necessary to become a resident.
Payment options available afterward or in installments.
Rated Excellent on Trustpilot.
Get help from a specialist.
Request your NIE completely remotely.
Register your NIE as a NIF or apply for a new NIF.
Request your NUSS number.
We fill out the Modelo 210 for you and submit it.
Complete establishment of your S.L.
Full registration as an Autónomo.
Full registration as an Autónomo.
Complete establishment of your S.L.

Request your Digital Certificate completely remotely.

We'll help you with everything you need to become a resident.
It is possible to pay afterwards or in installments.
Rated 'Excellent' on Trustpilot.

Your smile comes first

It’s no coincidence that hundreds of people went before you. Read their experiences and discover why so many people choose Gestoraz.

Featured on  

Logo Expatica