Sooner or later every freelancer or small company in Spain that works with Europe hears the same request: "Can you send us your VAT number?" Maybe a client in Germany needs it to apply the reverse charge, or Google Ads keeps adding VAT to your invoices until you enter one. And then the confusion starts: you already have a NIF, so why does your number come back as invalid when someone checks it?
This guide explains what a Spanish VAT number actually is, why having a NIF is not the same as having a valid EU VAT number, how to activate yours through the Registro de Operadores Intracomunitarios (ROI) with Modelo 036, and how to check it in the European Commission's VIES system. It is part of our complete guide to IVA in Spain, so start there if you need the basics of rates and invoicing first.
What is a Spanish VAT number?
In Spain, VAT is called IVA (Impuesto sobre el Valor Añadido), and the tax identification number used for almost everything is the NIF (Número de Identificación Fiscal). There is no separate "VAT number" issued on its own. Instead, the number you use with EU business partners is your NIF with the country prefix ES in front of it. This is called the NIF-IVA or intra-community VAT number.
The underlying NIF depends on who you are:
- Spanish citizens: the DNI number (eight digits followed by a control letter).
- Foreign residents: the NIE, which starts with X, Y or Z, followed by seven digits and a control letter.
- Companies and other entities: a NIF that starts with a letter indicating the type of entity (for example, B for a limited company, an S.L.), followed by digits and a control character. You may still see it called the old name, CIF.
So a freelancer with NIE Y1234567X would use ESY1234567X as their VAT number on invoices to EU businesses. If you want a refresher on how IVA itself appears on a bill, read what IVA means on a Spanish invoice.
Why your NIF is not automatically a valid EU VAT number
This is the point that catches most autónomos out. Every business in Spain has a NIF, but the NIF only becomes a valid intra-community VAT number when the Agencia Tributaria (AEAT) includes you in the Registro de Operadores Intracomunitarios, the ROI. Until then, if a client or supplier checks ESY1234567X in VIES, the result will say the number is not valid for cross-border transactions.
In practice that means that, for the rest of the EU, you are treated as a private consumer rather than a business. Being registered as an autónomo and filing quarterly IVA returns is not enough on its own: inclusion in the ROI is a separate step you have to request.
ROI vs VIES: two different systems
- ROI is the Spanish register kept by the AEAT of businesses that carry out intra-community operations.
- VIES (VAT Information Exchange System) is the European Commission's tool that connects the national registers of all member states and lets anyone check whether a VAT number is valid.
Once the AEAT adds you to the ROI, your number becomes visible as valid in VIES, which is where your German, Dutch or Irish counterparty will look.
Who needs a Spanish VAT number (ROI registration)?
You should request inclusion in the ROI if you are a freelancer or company established in Spain and you carry out, or are about to carry out, any of these operations with businesses in other EU countries:
- Selling services to EU businesses: design, development, consulting, translation, marketing and similar work billed to a company in another member state.
- Buying services from EU businesses: advertising on Google or Meta (invoiced from Ireland), software subscriptions, hosting or professional services supplied from another EU country.
- Selling goods to EU businesses that are shipped out of Spain.
- Buying goods from EU suppliers that are shipped to you in Spain.
The second case surprises many people: you may never invoice a foreign client, yet still need the ROI because your online advertising or software comes from an EU company. Without a valid number, those suppliers will treat you as a private consumer and add VAT to their invoices, and that VAT is generally not something you can recover through your Spanish return.
When you do not need it
If all your clients and suppliers are in Spain, or you only work with clients outside the EU (the UK, the US, Switzerland and so on), you do not need the ROI for those operations. The same applies, in principle, to sales to private consumers in other EU countries, which follow their own rules such as the One-Stop Shop (OSS). Our guide on charging IVA to foreign clients in the EU, UK and US walks through each scenario.
Also note that the Canary Islands, Ceuta and Melilla are outside the Spanish IVA territory (the Canaries use their own indirect tax, IGIC), so businesses established there should check the specific rules that apply to them.
How to get a Spanish VAT number: step by step
Inclusion in the ROI is requested through the census declaration, Modelo 036. You can do it at the same time as you register as self-employed, or later as a change to your existing census details.
- Access the AEAT electronic office (sede electrónica) with a digital certificate, Cl@ve or electronic DNI, and open Modelo 036 (declaración censal de alta, modificación y baja).
- Choose the reason for the declaration. If you are already registered, select the modification option and, within it, the request for inclusion in the Registro de Operadores Intracomunitarios. If you are just starting out, you can request it in the initial registration.
- Complete the IVA section, specifically the part dedicated to the ROI.
- Describe your intra-community activity. Explain which operations you will carry out (services, goods, purchases), with which countries, and attach supporting evidence if you have it: contracts, quotes, pro forma invoices or supplier terms.
- Sign, submit and keep the receipt. The AEAT may review the request and ask for further documentation before confirming your inclusion.
Processing times and review criteria can change, so if you have an urgent contract with an EU client, submit the request well in advance and track its status in the sede electrónica. If you are not yet registered as self-employed, our Spanish guide to registering as an autónomo in 2026 explains how to include the ROI request in the same process, and the step-by-step ROI guide with Modelo 036 (in Spanish) covers each box in more detail.
Tips to avoid a rejected application
- Make sure your census data is consistent: tax address, activity code (epígrafe IAE) and IVA regime should match what you describe.
- Be specific about the planned operations. A vague description is more likely to trigger a request for more information.
- Answer any AEAT requirement quickly. Failing to respond usually delays or blocks the inclusion.
How to check a Spanish VAT number in VIES
Once your request has been processed, verify your own number on the European Commission's official VIES website:
- Select Spain (ES) as the member state.
- Enter your NIF without the ES prefix.
- If the result shows the number as valid, you can share it with your EU clients and suppliers and enter it in platforms such as Google Ads.
Do the same check for every new EU business client before you issue an invoice without IVA, and keep a record (a screenshot or the consultation number) with the invoice. That record is your evidence that you verified the client's business status when you applied the reverse charge.
Using your VAT number on invoices
When you invoice a business in another EU country for a standard service, the service is located in the client's country, so you issue the invoice without Spanish IVA and the client self-assesses the VAT through the reverse charge (inversión del sujeto pasivo). For that invoice to be correct, it should include:
- Your NIF-IVA (ES + NIF) and your client's VAT number with its country prefix.
- The client's full legal name and address.
- A clear description of the service and the date it was performed.
- The taxable base and an IVA line showing that no Spanish IVA is charged.
- A legal mention explaining why, for example "Reverse charge – inversión del sujeto pasivo".
An invoice without IVA is still a full Spanish invoice, so all the general rules apply too. Check our guide to invoice legal requirements in Spain for the complete list.
Obligations that come with ROI registration
Getting your VAT number activated is not a one-off step. Once you are in the ROI, you take on ongoing obligations:
- Modelo 303: intra-community operations must be reflected in the corresponding boxes of your quarterly IVA return. See our English guide to Modelo 303.
- Modelo 349: the informative return of intra-community operations, filed for the periods in which you have such operations. Our Spanish guide to Modelo 349 explains who files it and how often.
- Record books: keep your IVA record books up to date, identifying intra-community operations separately.
The AEAT can also remove you from the ROI on its own initiative, for example if it sees no intra-community activity or your census data is inconsistent. If you stop trading with the EU, you can request removal yourself through Modelo 036. Either way, if you need it again later, you will have to apply again.
Common mistakes with Spanish VAT numbers
- Assuming your NIF is valid in VIES. It is not until you are included in the ROI.
- Removing IVA for an EU client without being registered. Both your number and your client's should validate in VIES.
- Forgetting the ES prefix on invoices to EU businesses, or adding it when entering your number in the VIES search form.
- Not checking the client's number. If it does not validate, you cannot rely on the reverse charge without further advice.
- Skipping Modelo 349 because no IVA was charged. Intra-community services still need to be reported.
Requirements and procedures can change, so for your specific situation always check the official information in the AEAT sede electrónica or ask your gestoría.
Invoice EU clients correctly with Facturi
Once your VAT number is active, the hard part is getting every cross-border invoice right: both VAT numbers, the reverse-charge mention, correct numbering and the data you will later need for Modelo 303 and Modelo 349. Facturi stores each client's country and VAT number, applies the right tax treatment automatically and issues invoices built for the VeriFactu requirements, in English, Spanish or both. Try Facturi free and send your next EU invoice with confidence.
Frequently asked questions about the Spanish VAT number
Is the Spanish VAT number the same as the NIF?
It is built from the same number: the VAT number is your NIF with the ES prefix. The difference is that it is only valid for intra-community operations once the AEAT includes you in the ROI.
Do I need a Spanish VAT number to invoice clients in the UK or the US?
No. ROI registration is only needed for operations with businesses in other EU countries. For UK and US business clients you still invoice without Spanish IVA in most service cases, but for a different legal reason (place-of-supply rules), and those invoices are not reported in Modelo 349.
Why does Google Ads keep charging me VAT?
Google invoices Spanish advertisers from Ireland. If your number is not valid in VIES, Google treats you as a consumer and adds VAT to your advertising invoices. Once you are in the ROI and enter your valid ES number in your billing settings, the invoices should switch to the reverse charge.
How long does ROI registration take?
It depends on whether the AEAT reviews your application or asks for more documents. Submit the request as early as you can and check its status in the sede electrónica rather than relying on a fixed timeframe.