# VAT number in Spain: what it is, yours and when to apply

URL: https://melso.ai/en/blog/vat-number-spain
Published: 2026-11-24 · Updated: 2026-11-24

Your VAT number in Spain is your NIF with the ES prefix. How to check it, when you need ROI registration, and how to apply with modelo 036.

![Geometric card linked to a platform](https://media.babylovegrowth.ai/blog-images/organization-63772/1794867487950_Tarjeta-geometrica-conectada-a-una-plataforma.jpeg)

The Spanish VAT number is your NIF (tax identification number) preceded by the letters "ES". VAT stands for Value Added Tax, which is IVA (Spanish VAT). In Spain, the Agencia Tributaria (the Spanish tax agency) itself uses "VAT number" as the equivalent of [NIF-IVA](https://sede.agenciatributaria.gob.es/Sede/iva/iva-operaciones-comercio-exterior/identificacion-realizar-operaciones-otros-empresarios-ue.html), the number that identifies you to clients and suppliers from other EU countries. If you only sell within Spain, you do not need to do anything special. If you buy from or sell to European companies, you do need to take a specific step: register in the ROI (Registro de Operadores Intracomunitarios, Spain's register of intra-Community operators).

In this guide we explain what it is, how it is formed, where to check it, when you really need it and how to apply for it, in language designed for autónomos (self-employed workers) and freelancers, not tax specialists.

## In summary

- The Spanish VAT number is "ES" + your NIF. It is not a different number, it is the same identifier with a country prefix.
- It is assigned when you request inclusion in the ROI (Registro de Operadores Intracomunitarios), and from then on, you appear in VIES, the European consultation system.
- You need it if you carry out certain intra-Community transactions, such as VAT-liable acquisitions of goods in another EU country.
- Registration is requested using modelo 036 (Spain's tax census declaration form). Modelo 037 was abolished with effect from 3 February 2025.

## Table of contents

- [What the VAT number is and what it is for](#what-the-vat-number-is-and-what-it-is-for)
- [What the VAT number looks like for an autónomo or company in Spain](#what-the-vat-number-looks-like-for-an-autonomo-or-company-in-spain)
- [Where to find my VAT number and how to check it on VIES](#where-to-find-my-vat-number-and-how-to-check-it-on-vies)
- [When you need the VAT number: the actual cases](#when-you-need-the-vat-number-the-actual-cases)
- [How to apply for ROI registration and the VAT number](#how-to-apply-for-roi-registration-and-the-vat-number)
- [What changes in your accounting when you have a VAT number](#what-changes-in-your-accounting-when-you-have-a-vat-number)
- [Common mistakes with the VAT number](#common-mistakes-with-the-vat-number)
- [Perspective: the VAT number should not hold you back](#perspective-the-vat-number-should-not-hold-you-back)
- [How Melso helps](#how-melso-helps)
- [Frequently asked questions](#frequently-asked-questions)
- [Sources](#sources)

## What the VAT number is and what it is for

IVA and VAT are the same thing: value added tax. When a company in Germany, France or Italy buys from you or sells to you, it needs to know that you are a business owner or professional with valid tax identification in your country. That piece of data is your VAT number.

The official website of the Punto de Acceso General explains that the VAT number [identifies business owners and non-business legal entities](https://administracion.gob.es/en/tu-espacio-europeo/derechos-obligaciones/empresas/impuestos/iva/registro-pago) and that it is necessary for certain intra-Community transactions. In practical terms: it is the credential that allows transactions between businesses in different EU countries to be treated under the special intra-Community VAT rules.

For you as an autónomo, it serves three purposes:

1. **Your European client or supplier can identify you** and verify that you exist as an operator.
2. **Your details appear correctly on invoices** that you issue to or receive from other countries.
3. **You can apply the correct VAT treatment** to transactions within the EU, which is then declared on your VAT returns.

## What the VAT number looks like for an autónomo or company in Spain

The Agencia Tributaria defines it like this: the number for VAT purposes is formed by [prefixing "ES" to the tax identification number](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/capitulo-06-impuesto-sobre-valor-anadido/registros/registro-operadores-intracomunitarios.html), where "ES" is the country code for Spain according to ISO 3166 alpha-2.

A fictional example so you can see it:

| Detail | Example |
|---|---|
| NIF of an autónomo (natural person) | 12345678Z |
| VAT number | ES12345678Z |
| NIF of a company | B12345678 |
| VAT number of the company | ESB12345678 |

You might wonder whether the NIF and the VAT number are the same thing. The short answer: the VAT number is built from your NIF, but you do not have it "active" for operating with the EU until you request it. AEAT indicates that it is assigned when you request inclusion in the ROI. If you are unsure what a NIF is exactly and how it differs from a DNI or NIE, it is explained in our guide on [NIF and DNI](https://melso.ai/en/blog/nif-dni-difference-nie-tie-spain), and you can check the letter or format with the [NIF, NIE and CIF validator](https://melso.ai/en/herramientas/validador-nif).

## Where to find my VAT number and how to check it on VIES

If you are already an autónomo or run a company, your base is the NIF shown on your registration with Hacienda (the Spanish tax agency), on your invoices and on your tax registration certificate. Your VAT number is that NIF with "ES" in front, provided you are registered in the ROI.

To find out whether you are registered, there are two ways:

- **Your tax census records.** If you submitted modelo 036 with your ROI registration, you will already have recorded it.
- **VIES.** AEAT explains that the assignment of the NIF-IVA [means the operator is listed in VIES](https://sede.agenciatributaria.gob.es/Sede/no-residentes/iva-empresarios-profesionales-no-establecidos/operaciones-intracomunitarias-consulta-operadores.html), the European system where any EU company can validate another company's number. If your German client enters your VAT number and cannot find it, it is most likely that you are not in the ROI yet, or that the registration has not yet taken effect.

It is worth checking it yourself before issuing your first intra-Community invoice. Your client will check it anyway, and it is better that any issue does not come to light after invoicing.

## When you need the VAT number: the actual cases

Not all autónomos need it. AEAT indicates that business owners established on the mainland and the Balearic Islands must obtain a NIF-IVA and register in the ROI [if they are going to carry out certain intra-Community transactions](https://sede.agenciatributaria.gob.es/Sede/iva/iva-operaciones-comercio-exterior/identificacion-realizar-operaciones-otros-empresarios-ue.html). If you are starting a business and do not yet know whether your activity will require it, this [Operation success for entrepreneurs](https://www.iberestudios.com/noticias/operacion-triunfo-para-emprendedores) can give you ideas to plan your project with a European vision.

According to the Agencia Tributaria, registration covers, subject to the applicable conditions and exceptions:

- Intra-Community supplies or acquisitions of goods liable to VAT.
- Certain services received or provided under the reverse charge mechanism (the client, and not you, settles the VAT in their country).
- Certain acquisitions of goods by legal entities that are not business owners.

The full details are in [the AEAT guide to the ROI](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/capitulo-06-impuesto-sobre-valor-anadido/registros/registro-operadores-intracomunitarios.html). A surprising point: AEAT includes among the cases requiring a NIF-IVA intra-Community acquisitions of goods liable to VAT, [even if the goods are used in business or professional activities abroad](https://sede.agenciatributaria.gob.es/Sede/iva/iva-operaciones-comercio-exterior/identificacion-realizar-operaciones-otros-empresarios-ue.html).

### Common cases for autónomos

| Your situation | Do you need a VAT number? |
|---|---|
| You only invoice clients in Spain | Not needed for that |
| You purchase goods from a supplier in another EU country | Probably yes: it is an intra-Community acquisition of goods |
| You sell goods to companies in other EU countries | Probably yes: it is an intra-Community supply |
| You provide services to EU companies (design, development, consulting) | Usually requested, because your client needs it to apply the reverse charge |
| You receive services from EU suppliers (software, advertising) | Depends on the case: worth checking before operating |

The right-hand column is guidance, not a set rule. The obligation depends on the type of transaction and the conditions and exceptions set by law, so in any doubtful case the sensible approach is to review your specific situation before invoicing. To dig deeper, you have our guide to [intra-Community VAT and the ROI for autónomos](https://melso.ai/en/blog/intra-community-vat-spain) and the [intra-Community VAT tool](https://melso.ai/en/herramientas/iva-intracomunitario), which helps you see how a purchase or sale within the EU is treated.

## How to apply for ROI registration and the VAT number

The procedure is brief in theory and delicate in practice, because one incorrectly ticked box on the census form can cost you weeks.

1. **Be registered as an autónomo or have your company incorporated.** Without registration with Hacienda, there is no active NIF for economic activity. If you are not registered yet, see how [registering as an autónomo online](https://melso.ai/en/tramites/alta) works.
2. **Submit modelo 036.** AEAT indicates that inclusion in the ROI is requested using the [census declaration modelo 036](https://sede.agenciatributaria.gob.es/Sede/iva/iva-operaciones-comercio-exterior/identificacion-realizar-operaciones-otros-empresarios-ue.html).
3. **Tick the correct boxes.** According to the AEAT guide, box 582 is used to request registration and box 584 to indicate the [expected date of the first intra-Community transaction](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/capitulo-06-impuesto-sobre-valor-anadido/registros/registro-operadores-intracomunitarios.html).
4. **Wait for it to update and check in VIES.** Once the number is assigned, you will appear in the European system.
5. **Include your VAT number on intra-Community invoices** and declare the transactions on your relevant VAT returns.

The typical mistake is submitting modelo 036 without thinking about the dates, or leaving the ROI box unticked, and only finding out when the client in another country cannot validate you. Another common mistake is treating it as an isolated formality: ROI registration affects how you invoice and what you declare each quarter afterwards.

### A recent change: farewell to modelo 037

If you come across old guides mentioning modelo 037 (the simplified version of the census declaration), they are outdated. According to AEAT, Order HAC/1526/2024 [abolished modelo 037 with effect from 3 February 2025](https://sede.agenciatributaria.gob.es/Sede/ayuda/calendario-contribuyente/calendario-contribuyente-2026/informacion-sobre-presentacion-modelos-no-periodicos/modelo-036.html), and that simplification is now provided through modelo 036. This is a good reason to rely only on updated sources.

![Modelo 037 gives way to modelo 036](https://media.babylovegrowth.ai/blog-images/organization-63772/1794867545339_El-modelo-037-da-paso-al-modelo-036.jpeg)

## What changes in your accounting when you have a VAT number

Having the number is not a one-off task. Once you start operating with the EU, your monthly and quarterly administration changes:

- **Invoices with complete details.** You include your VAT number and your client's VAT number where applicable, along with the note stating that the transaction is subject to reverse charge or exempt, depending on the case. You can find more detail in our guide to [invoicing foreign clients](https://melso.ai/en/blog/invoicing-foreign-clients-autonomo-spain).
- **Quarterly VAT.** Intra-Community transactions are reported on [modelo 303](https://melso.ai/en/tramites/modelo-303) (the quarterly VAT return), and at year-end on [modelo 390](https://melso.ai/en/tramites/modelo-390), the annual VAT summary return.
- **Document archiving.** It is advisable to keep every invoice from EU suppliers and every VIES check alongside the transaction record.

If you have a more general question and want to review rates, exemptions and deadlines, check our guide to [VAT for autónomos in 2026](https://melso.ai/en/blog/vat-self-employed-spain).

## Common mistakes with the VAT number

- **Confusing it with a new number.** It is not: it is your NIF with the prefix "ES".
- **Invoicing the EU without being in the ROI** when the transaction requires it.
- **Using your client's VAT number without validating it.** If it is not listed in VIES, the transaction is not treated in the same way, and you need to know this before issuing the invoice.
- **Relying on outdated information** about modelo 037.
- **Forgetting the expected date of the first transaction** when filling out the census form.

## Perspective: the VAT number should not hold you back

> Every week autónomos arrive wanting to sell to a client in another country, only to be confronted with three initials nobody explained to them. The VAT number seems like an obstacle, but it is a specific administrative step: registration on the census, the correct box and a check afterwards.
>
> Our view of the gestoría (a private firm that handles tax and administrative paperwork) is that you should not have to fight with boxes or dates. That is why we work with an AI agent you can message on WhatsApp, backed by a team of professionals. You approve the exact documents in the app before they are submitted, and if an error on our part leads to a recargo (surcharge) or penalty, we cover it ourselves.
>
> For anyone starting to invoice outside Spain, that means having invoices organised and taxes filed on time from day one, without spending whole afternoons trying to understand the census.
>
> *Albert*

## How Melso helps

If you are about to take the leap to EU clients, what matters is that your invoicing, expenses and taxes run smoothly without you having to micromanage them. At Melso, you get unlimited invoicing, expense management, professional preparation and filing of IVA and IRPF (personal income tax), and support from professionals in the app and by email. You can also chat with the AI agent via WhatsApp, Telegram, email or web.

The Pro plan costs €49 a month, or €490 a year (equivalent to €40.83 a month), and you can see everything on the [pricing page](https://melso.ai/en/precios/autonomos). If you are not an autónomo yet, you can start with [autónomo registration](https://melso.ai/en/empezar/autonomo). And if you are switching from another gestoría, we handle the transition too.

![Melso](https://media.babylovegrowth.ai/blog-images/organization-63772/1793529409966_melso.jpg)

If you want to try something simple first, check out our [free tax tools](https://melso.ai/en/herramientas) and the [invoice generator](https://melso.ai/en/herramientas/generador-facturas), and for recurring invoicing, [online invoicing with VERI*FACTU](https://melso.ai/en/facturacion).

## Frequently asked questions

### What is the VAT number in Spain?

It is the identification number for VAT purposes, also known as the NIF-IVA. It is formed with the prefix "ES" in front of your NIF and serves to identify you in intra-Community transactions. AEAT uses "VAT number" as the name for this NIF-IVA.

### What is the VAT ID?

VAT ID is another name for the same number: the VAT identifier of a business or autónomo. In Spain it matches the NIF-IVA, which is "ES" plus the NIF. It is often requested on invoices and forms from EU clients and platforms.

### How do I register so that my number appears on VIES?

You need to apply for registration in the ROI using modelo 036, ticking box 582. Once the NIF-IVA is assigned, your number appears in VIES. If your client cannot find you, check that the registration has been processed and that the number is entered correctly.

### Do I need a VAT number if I only invoice in Spain?

To invoice Spanish clients you do not need to register in the ROI. It is required for certain intra-Community transactions, such as VAT-liable acquisitions or supplies of goods in the EU. If you are going to start operating abroad, register before your first transaction.

## Sources

- [Agencia Tributaria: identification for carrying out transactions with other EU business owners](https://sede.agenciatributaria.gob.es/Sede/iva/iva-operaciones-comercio-exterior/identificacion-realizar-operaciones-otros-empresarios-ue.html)
- [Agencia Tributaria: register of intra-Community operators](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/capitulo-06-impuesto-sobre-valor-anadido/registros/registro-operadores-intracomunitarios.html)
- [Agencia Tributaria: intra-Community transactions and operator search](https://sede.agenciatributaria.gob.es/Sede/no-residentes/iva-empresarios-profesionales-no-establecidos/operaciones-intracomunitarias-consulta-operadores.html)
- [Agencia Tributaria: modelo 036, census declaration](https://sede.agenciatributaria.gob.es/Sede/ayuda/calendario-contribuyente/calendario-contribuyente-2026/informacion-sobre-presentacion-modelos-no-periodicos/modelo-036.html)
- [Punto de Acceso General: VAT registration and payment](https://administracion.gob.es/en/tu-espacio-europeo/derechos-obligaciones/empresas/impuestos/iva/registro-pago)
- [Operation success for entrepreneurs](https://www.iberestudios.com/noticias/operacion-triunfo-para-emprendedores)

## Recommendations

- [Intra-Community VAT and ROI for autónomos \(2026\)](https://melso.ai/en/blog/intra-community-vat-spain)
- [VAT for autónomos in 2026: rates, exemptions and deadlines](https://melso.ai/en/blog/vat-self-employed-spain)
- [Modelo 390: annual VAT summary](https://melso.ai/en/tramites/modelo-390)
