How to get your AEAT reference number (step-by-step guide 2026)

Víctor Lázaro

Víctor Lázaro

• 6 min read

Illustration of a person handing a key to an adviser, a symbol of granting access to their tax data with the reference number

So that we can file your Renta return on your behalf, we need your AEAT reference number. It is an online procedure that takes 2 minutes.


What is the reference number?

The reference number is a code generated by the Spanish tax agency to identify you. With it, your adviser can access your tax data and file your Renta return on your behalf.

Advantages:

  • It takes under 2 minutes to obtain
  • No power of attorney is required
  • Cl@ve or a digital certificate will do, but you can also get it without them, using your DNI/NIE and one figure from your last Renta return
  • It is valid for the whole Renta campaign

Before you start you need

One of these two options:

  • With electronic identification: Cl@ve, a digital certificate or an electronic ID card.
  • Without Cl@ve or a certificate: your DNI/NIE (Spanish ID or foreigner’s ID number), the expiry date of your DNI (for a permanent DNI, the issue date; with an NIE, the document’s support number) and the amount in box 505 of the previous year’s Renta return. If you did not file a Renta return the previous year or that box is zero, you will be asked for the last 5 digits of the IBAN of an account you hold.

No Cl@ve? You do not need it: use the no-Cl@ve option in step 3. If you still want it for other procedures, you can apply at clave.gob.es or in person at a Social Security or tax agency office.


Step 1: open the AEAT website

Go to the reference number page:

https://sede.agenciatributaria.gob.es/Sede/numero-referencia.html


Step 2: click on “Obtén tu número de referencia” (get your reference number)

Under the Gestiones (procedures) section you will see a blue link reading “Obtén tu número de referencia” (get your reference number). Click it.


Step 3: identify yourself

Choose your identification method:

MethodHow it works
Cl@ve Móvil (formerly Cl@ve PIN)Enter your NIF and confirm access in the Cl@ve app on your phone (or with the code you receive)
Cl@ve PermanenteEnter your NIF and the password you set up
Digital certificateSelect the certificate installed in your browser
Electronic ID cardYou need a card reader connected
Without Cl@ve (box 505)Enter your NIF, the expiry date of your DNI (or its issue date, or the support number for an NIE) and the amount in box 505 of your last Renta return, or the last 5 digits of your IBAN if you did not file one

Step 4: copy your reference number

Once you are identified, your reference number appears on screen:

Screen showing the AEAT reference number

The message on screen reads, in Spanish:

Ya puede utilizar la referencia obtenida para acceder a los servicios de Renta. La referencia del NIF [tu NIF] para gestionar Renta es: [tu número de referencia] Por favor, anote esta referencia y consérvela para usos posteriores.

In other words: the reference number for your NIF is ready, and you should note it down and keep it for later use.

  1. Copy that reference number or take a screenshot
  2. Send it to us on WhatsApp together with your ID document

That’s it. With that we can access your tax data and prepare your return.


Common problems

I have neither Cl@ve nor a digital certificate

You do not need them for the reference number: choose the no-Cl@ve option and identify yourself with your DNI/NIE, the expiry date (the issue date for a permanent DNI; the support number for an NIE) and the amount in box 505 of the previous year’s Renta return. If you did not file that return or the box is zero, the last 5 digits of the IBAN of an account in your name are used instead.

If you also want Cl@ve for other procedures, you can obtain it in several ways:

  • Online: if you have a digital certificate, at clave.gob.es
  • By video call: from the Cl@ve website
  • In person: at Social Security offices, tax agency offices or town halls
  • The AEAT app: you can also use the Spanish tax agency’s app

I get an error when identifying myself

  • Check that the expiry date of your ID document is correct
  • If you are using box 505, enter the exact amount, including cents, from the previous year’s return
  • If you are using a certificate, make sure it has not expired
  • Try a different browser (Chrome or Edge usually work better)

The reference number does not appear

Make sure you completed the identification correctly. If the problem persists, try from another browser or device.


Frequently asked questions

Is this the same as a power of attorney?

No. A power of attorney is a more complex formal authorisation that lets your adviser act on your behalf across many procedures. For the Renta return, the reference number is enough in most cases.

How long does the reference number last?

The reference number is valid for the current year’s Renta campaign.

Is it safe to share my reference number?

The reference number only gives access to your tax data for the Renta campaign. It gives no access to your bank account and does not allow any other operation.

Do I need to do anything else after sending it?

No. Once you have the reference number and send it to us with your ID document, we take care of the rest.


Summary

StepAction
1Go to sede.agenciatributaria.gob.es/Sede/numero-referencia.html
2Click on “Obtén tu número de referencia” (get your reference number)
3Identify yourself with Cl@ve, a certificate or DNI/NIE + box 505
4Copy the reference number that appears
5Send it to us on WhatsApp together with your ID document

What we need from you

ItemWhat we use it for
Reference numberTo access your tax data at the AEAT
ID documentTo identify you and verify the information

Need a hand?

If anything is unclear during the process, message us on WhatsApp and we will walk you through it step by step.

Get in touch

Share this post
AEAT Reference number Tax adviser Renta Income tax
Víctor Lázaro

Víctor Lázaro

Marketing Director, Cryptoimpuestos.es

Blog

Latest news and updates

The most recent posts from our blog