Getting your 2025 tax reference number is essential for filing your 2026 income tax return in Spain. This six-digit code allows you to manage all services related to the 2025 tax campaign, including filing your return, checking its status, and making payments or refunds.
The reference number is issued by the Spanish Tax Agency (AEAT) and can be obtained through two main methods: online via the AEAT website or using the official AEAT mobile app. Both methods require you to identify yourself electronically, either with a digital certificate or with the Cl@ve system.
What Is the Tax Reference Number and Why Do You Need It?
The tax reference number is a unique identifier that the AEAT assigns to each taxpayer for a specific tax campaign. It is not the same as your NIF (tax identification number), although both are used in tax procedures. The reference number is required to access personalized services such as filing your return, modifying a submitted return, or checking the status of a refund.

Without this number, you cannot complete many online procedures related to the 2025 tax return. Therefore, obtaining it is the first step before you start your filing process.

How to Get Your Tax Reference Number Online
To obtain your reference number via the AEAT website, follow these steps:

- Go to the AEAT website at sede.agenciatributaria.gob.es and navigate to the "Número de referencia" section.
- Click on "Obtén tu número de referencia" in the "Gestiones" box.
- Identify yourself using a digital certificate (FNMT or DNIe) or the Cl@ve system (including Cl@ve PIN).
- Once identified, the system will display your reference number along with your NIF for verification.
The process is straightforward and takes only a few minutes. Make sure you have your digital certificate or Cl@ve credentials ready before you start.

How to Get Your Tax Reference Number via the Mobile App
The AEAT mobile app is available for both Android and iOS devices. To obtain your reference number through the app, you need to download it from Google Play or the App Store, open it, and select the option to get your reference number. You will then be asked to identify yourself using the same methods as on the website. The longer history behind the story is traced in Letras del Tesoro in Spanish Income Tax: How They Are Taxed.
The app provides a convenient way to access your reference number on the go, especially if you don't have your computer at hand. However, ensure you are using a secure internet connection when transmitting personal data. The background to this story is set out in Check Your 2025 Tax Return Status Online in 2026. A related thread runs through Spain Tax Return 2025: Key Dates for 2026 Filing Campaign. Earlier coverage in Do You Need to File a 2025 Tax Return in 2026? Income Thresholds shows how the argument developed.
Comparison of Methods to Obtain Your Tax Reference Number
| Method | Requirements | Pros | Cons |
|---|---|---|---|
| AEAT Website | Computer, internet, digital certificate or Cl@ve | Full access to all services, larger screen | Requires computer and card reader for certificate |
| AEAT Mobile App | Smartphone, internet, digital certificate or Cl@ve | Convenient, accessible anywhere | Smaller screen, potential connectivity issues |
What to Do If You Encounter Problems
If you have trouble obtaining your reference number, check that your digital certificate is valid and installed correctly, or that your Cl@ve credentials are active. The AEAT provides support through its website and helpline. Additionally, you can visit an AEAT office in person for assistance, though an appointment may be required. A closer look at the same subject appears in Deduct Vet Expenses on Your 2025 Spanish Tax Return: Regional Rules. Anyone following the wider picture can start with How to Amend Your 2025 Spanish Tax Return After Filing. The same theme surfaces in Deduct Your Gym Membership on Spain's 2025 Tax Return, which takes a different angle.
Remember that the reference number is campaign-specific, so you will need a new one for each tax year. Keep it safe and do not share it with unauthorized third parties. Context on how this played out before sits in Renta 2025: Key Boxes to Review on Your 2026 Tax Return. A companion piece, Deduct Glasses and Contact Lenses on Your 2025 Tax Return: Regional Rules, approaches the same subject from another angle.
FAQ
What is the tax reference number?
The tax reference number is a six-digit code issued by the Spanish Tax Agency (AEAT) that allows you to access and manage services related to a specific tax campaign, such as filing your income tax return.
Can I get my reference number without a digital certificate?
Yes, you can use the Cl@ve system, which includes Cl@ve PIN, to identify yourself and obtain your reference number. Both methods are available on the AEAT website and mobile app.
Is the reference number the same for every year?
No, the reference number is unique to each tax campaign. You must obtain a new one for each year's tax return.
What if I lose my reference number?
If you lose your reference number, you can obtain it again by following the same process on the AEAT website or app. It is not a permanent code, so you can retrieve it as needed.
Obtaining your 2025 tax reference number is a quick and necessary step for filing your 2026 tax return. Whether you choose the website or the mobile app, the process is secure and user-friendly. Make sure you have your identification method ready and follow the steps outlined above to get your number without hassle.