A Spain VAT number isn’t a new number: it’s your Spanish tax ID (NIF) with the ES prefix in front. What you actually need is registration in Spain’s Registry of Intra-Community Operators (ROI), run by the Spanish Tax Agency. Until then, the number won’t show up in VIES, and you can’t use it to deal as a business with clients and suppliers in other EU countries.
The question usually comes up in a hurry: a French client asks for your Spanish VAT number before paying an invoice, or a platform won’t let you continue without it. And one detail decides a lot of invoices. Since March 1, 2020, selling goods VAT-free to another EU country requires two things: a valid VAT number from your client and reporting the sale on Form 349. If either one fails, the sale is taxed in Spain.
This guide covers who needs one, how to get it with Form 036, how long it takes, how to run a Spain VAT number check in VIES and which mistakes cost you the exemption.
In 30 Seconds
- What it is: a Spain VAT number is your NIF with the ES prefix, active once the Spanish Tax Agency adds you to the ROI.
- How to apply: file Form 036, tick box 582 and enter the date of your first transaction in box 584.
- How long it takes: the Tax Agency has three months to decide; if it doesn’t answer, the application can be treated as denied.
- How to check it: in VIES, the EU database; without a valid number from your client, you can’t sell goods to them VAT-free.
What Is a VAT Number in Spain (and What It Isn’t)
A Spain VAT number, also called NIF-IVA or intra-community VAT number, is your Spanish tax identification number (NIF) with the ES prefix in front. The Spanish Tax Agency activates it when it registers you in the Registry of Intra-Community Operators (ROI), and it identifies you in transactions with businesses in other EU countries.
Here’s a nuance worth knowing early: it isn’t a different number from your NIF, but having an NIF isn’t enough either. If you’re not in the ROI, your number won’t appear in VIES, which is where your clients check whether they can deal with you VAT-free. It isn’t the EORI either, the number customs uses for imports and exports outside the EU. People mix them up because, for a business established in Spain, the EORI is also ES plus the NIF, but it’s requested separately and serves a different purpose.
It’s governed by Article 25 of Royal Decree 1065/2007, which sets the ES prefix and ties the number to ROI registration.
| Holder | NIF | Spain VAT number example |
|---|---|---|
| Individual with a DNI (Spanish ID card) | 00000000T | ES00000000T |
| Foreign individual with an NIE (Foreigner Identification Number) | X0000000T | ESX0000000T |
| Limited liability company (SL) | B00000000 | ESB00000000 |
Fictitious examples. The Spain VAT number format is always ES followed by 9 characters, according to the VIES format table.
Is Spanish NIF a VAT Number?
Only once you’re in the ROI. Your Spain VAT registration number is your NIF with ES in front, with no spaces or dashes: ES plus your DNI or NIE if you’re self-employed, or ES plus the company’s NIF. To see whether it’s active, look it up in VIES: if it shows as valid, you can use it on your invoices. If you’re still unsure how the CIF and the NIF relate, we explain it in our guide to CIF and NIF in Spain.
Who Needs a Spain VAT Number and Who Doesn’t
You need one if you buy or sell goods with businesses in another EU country, or provide or buy services from them.
Here’s how it works in the most common cases:
| Situation | Do you need it? | Why |
|---|---|---|
| You sell goods to a company in France | Yes | It’s an intra-community supply: it can be VAT-free if the requirements are met. |
| You buy materials from a supplier in Germany for your business | Yes | It’s an intra-community acquisition: you report the VAT in Spain. |
| You invoice a service to a company in Portugal | Yes | The service is taxed in Portugal, and your client reports the VAT there. |
| You buy online advertising or software from a company in Ireland | Yes | You report the VAT in Spain (reverse charge). |
| You sell online to consumers in other EU countries | Not for that sale | Your customer has no VAT number: distance-selling rules apply. |
| You sell to the Canary Islands, Ceuta or Melilla | No | They’re outside the territory where Spanish VAT applies: these aren’t intra-community transactions. |
| You sell to a company in Great Britain | No | The UK isn’t in the EU. Northern Ireland is a special case: it appears in VIES with the XI prefix. |
| You only carry out exempt transactions that don’t allow you to deduct VAT | Not assigned | Article 25.3 of Royal Decree 1065/2007 excludes it. |
Sales to consumers follow a different logic. If your distance sales to EU consumers exceed €10,000 a year, the VAT of the customer’s country applies. It can be reported through the One-Stop Shop (OSS). We cover it in our guide on how to start an online business in Spain.
Here’s an example with numbers: Marta, a self-employed worker in Valencia, buys €500 of advertising from a company based in Ireland. If she gives them her Spain VAT number, the invoice arrives for €500 with no VAT. Marta then reports the Spanish VAT on that purchase, €105 (21%), on her Form 303 as both output VAT and input VAT. If she can deduct it in full, the net effect is zero.
If she doesn’t provide it, the Irish company can treat her as a consumer and charge her VAT: Implementing Regulation (EU) 282/2011 allows this when the customer doesn’t provide a VAT number.
Do I Need a Spain VAT Number If I’m Self-Employed?
Yes, if you carry out any of the transactions in the table: being self-employed (autónomo) doesn’t require it or exempt you on its own. You may need it even if you don’t sell abroad, just by buying tools or advertising from businesses in other EU countries. Your number will be ES followed by your DNI or NIE, and you apply for it with Form 036. We cover it alongside the other tax obligations of self-employed workers in Spain.
How to Get a Spain VAT Number, Step by Step
You get a Spain VAT number by applying for ROI registration on Form 036 and ticking box 582.
It’s the same form used for the business census. Since February 3, 2025, Form 037 no longer exists, so all registrations and changes in that census go through Form 036.
- Make sure you have an NIF. If you’re self-employed, it’s your DNI or NIE; if you’re a company, it’s the company’s NIF, even if it’s still provisional.
- Choose the type of return. If you’re starting your business, request the ROI in the registration return itself; if you’re already registered, file an amendment return and tick box 130.
- Tick box 582 and fill in box 584. Box 582 is the ROI registration request; box 584 is the expected date of your first intra-community transaction.
- File Form 036. Limited liability companies (SL) and corporations (SA) must file it online, on the Spanish Tax Agency’s official e-portal.
- Respond to any requests. The Tax Agency may review your application and ask for documents, which you submit through the official e-portal.
- Check your number in VIES. Once it shows as valid, you can start issuing intra-community invoices.
Summary of the Steps
- Have your NIF ready: DNI, NIE or the company’s NIF.
- Use the registration Form 036 or the amendment one (box 130).
- Tick box 582 and enter the date in box 584.
- File Form 036 on the Spanish Tax Agency’s e-portal.
- Respond to any requests you receive.
- Check in VIES that your number is active.
How Long Does It Take to Get a Spain VAT Number?
The Spanish Tax Agency has up to three months to decide. If it doesn’t answer within that period, the application can be treated as denied under Article 25 of Royal Decree 1065/2007. The law doesn’t set a shorter deadline, and the actual timing depends on the checks the Tax Agency carries out in each case.
A timing tip: apply before you close your first cross-border deal, not after. While it’s pending, a supplier in another EU country can treat you as a business if you prove it some other way (Article 18 of Implementing Regulation (EU) 282/2011).
Watch out for the grounds for denial and removal, because they’re set out in Articles 24, 25 and 146 of the Regulation:
- Inaccurate information: if, after reviewing the application, the Tax Agency concludes the details don’t match reality, after giving you 10 days to respond.
- Provisional NIF not completed: if a company doesn’t submit the documents for its definitive NIF on time.
- Removal from the Tax Agency’s index of entities: for example, when a company hasn’t filed Corporate Income Tax for three consecutive periods.
- Unreachable tax address: if for more than a year you couldn’t be notified at your tax address after at least three attempts.
Spain VAT Number Check: How to Verify One in VIES
You check a Spain VAT number in VIES, the EU system that verifies in real time whether a number is registered for trade within the EU.
There are two routes. The European Commission’s VIES website lets you check any number by selecting the country; depending on the country, it also shows the holder’s name and address. The Spanish Tax Agency’s check requires a digital certificate or an electronic DNI. Its advantage: if you identify yourself with your own Spain VAT number, the reply serves as proof to the tax authorities that you checked that number on a specific date.
In practice: run the Spain VAT number validation before your first VAT-free invoice and keep the result with the invoice. If the client changes details or orders again months later, check again.
What If My Spain VAT Number Doesn’t Show Up in VIES?
First, confirm the Tax Agency has approved your ROI registration: without it, your number won’t appear even if your NIF is correct. If you applied less than three months ago, it may still be pending. If that time has passed with no answer, it can be treated as denied, so it’s worth reviewing the application before filing it again. If the problem is incorrect data, only the tax authority that issued the number can fix it in VIES.
If it’s your client’s number that doesn’t appear, check the characters and the country prefix with them. Some countries only register in VIES the businesses that trade with other EU countries. Until the number is valid, invoice with Spanish VAT: according to the Spanish Tax Agency, without a valid number the supply is subject to VAT and not exempt.
What Obligations Come With Being an Intra-Community Operator
Being an intra-community operator adds three obligations: issuing invoices with the right details, reporting VAT on what you buy abroad and filing Form 349.
| Obligation | What it means | Rule |
|---|---|---|
| Invoice | For exempt sales of goods and when your client reports the VAT, include their VAT number and either a reference to the exemption or the note «inversión del sujeto pasivo» (reverse charge). | Royal Decree 1619/2012, art. 6 |
| Form 303 | You report the VAT on your intra-community purchases and on services billed by businesses in other countries, as output VAT and, if you’re entitled to it, as input VAT. | Law 37/1992, arts. 84 and 85 |
| Form 349 | Summarizes your intra-community transactions. It’s monthly, or quarterly if your intra-community supplies and services don’t exceed €50,000 in that quarter or in any of the previous four. The last period of the year is due by January 30. | VAT Regulation, art. 81 |
| Form 347 | What you already report on Form 349 isn’t repeated on Form 347. | Royal Decree 1065/2007, art. 33 |
Form 349 doesn’t replace your other returns: the VAT on each transaction still goes on Form 303, and the general rules of VAT (IVA) in Spain still apply. If you also file Form 347, leave out what’s already on Form 349. Our accounting and tax filing team reconciles all three returns so they don’t contradict each other.
Mistakes That Cost You the Intra-Community VAT Exemption
These mistakes turn a VAT-free sale into a sale with Spanish VAT, or keep your number out of VIES.
- Invoicing VAT-free with a number you haven’t checked. If your client’s VAT number isn’t valid, the sale is taxed in Spain. Here’s an example with numbers: Jorge sells machinery worth €12,000 VAT-free to a company in Toulouse. If his client’s number wasn’t valid, the sale is taxed at 21%: that’s €2,520 in VAT he never collected.
- Leaving the sale off Form 349. Since March 2020, reporting it is a condition for the exemption under Article 25 of Law 37/1992 on VAT, not a minor formality.
- Putting the EORI, or the NIF without ES, on the invoice. The invoice must show the number you’re using for the transaction.
- Treating sales to the Canary Islands, Ceuta, Melilla or Great Britain as intra-community. They aren’t, and they follow export rules or their own local taxes.
- Invoicing before you’re registered. Your clients won’t be able to validate your number, and being in the ROI was already mandatory.
Spain VAT Number for Foreign Companies and Foreign Entrepreneurs
A foreign company or individual can hold a Spain VAT number, but they need a Spanish NIF first.
- If your company isn’t established in Spain: it first obtains a Spanish NIF and then applies for the ROI on the same Form 036, boxes 582 and 584. If it’s established outside the EU, Spain’s VAT Law requires it, with some exceptions, to appoint a representative in Spain. If you’re also relocating staff, we handle it through our business immigration service.
- If you’re a foreigner starting out as self-employed: your NIF is your NIE, under Article 20 of Royal Decree 1065/2007, so no NIE means no Spain VAT number. If you’re not an EU citizen, you also need an authorization that allows you to work for yourself, which we handle through our self-employed work permit service.
- If you’re setting up a company in Spain: it can apply for the ROI as soon as it has an NIF, even a provisional one. And watch the order: if it later fails to submit the documents for its definitive NIF, the Tax Agency can remove it from the ROI. We coordinate it as part of company incorporation in Spain.
Getting your Spain VAT number is only half the job. The other half is using it correctly on every invoice, on Form 303 and on Form 349, because that’s what keeps the exemption in place.
At ILLAY Legal, we handle ROI registration and take care of accounting and VAT for self-employed workers and businesses, including those coming from outside Spain. We do it through our tax advisory services in Spain, fully online and in your language. Tell us what you buy or sell, where your clients are and whether you’re already registered with the Tax Agency, and we’ll tell you what to apply for and how to invoice in the meantime.
Frequently Asked Questions About the Spain VAT Number
What Does a Spanish VAT Number Starting With B Mean?
It belongs to a limited liability company (sociedad de responsabilidad limitada, SL). In Spain, the first letter of a company’s NIF shows its legal form: B for an SL and A for a corporation (sociedad anónima, SA), under Order EHA/451/2008. So a number that starts with ESB belongs to an SL, and one that starts with ESA to an SA. The letter tells you what kind of entity you’re dealing with, not whether its number is active, which you still need to check in VIES.
How to Find Spanish VAT Number of a Client or Supplier?
Ask them for it, because VIES can’t search for a VAT number by name or address, according to the European Commission. A Spanish business has to show the number it uses on the invoices it issues for these transactions. It can also send you its ROI registration certificate, which the Spanish Tax Agency issues in Spanish and in English. Once you have the number, check it in VIES before you invoice VAT-free. If VIES doesn’t display names for that country, confirm the details with the company in writing.
Is There a Spain VAT Registration Threshold?
No, not for businesses established in Spain. According to the Spanish Tax Agency, Spanish law doesn’t include the small-business franchise scheme that some other EU countries use, so there’s no turnover below which a Spanish business is exempt from VAT. ROI registration has no threshold either: it depends on the type of transaction, not on how much you sell. The €10,000 figure you may have seen is a different rule, the one for distance sales to consumers in other EU countries.
Are VAT Numbers Country Specific?
Yes. Each EU country issues its own VAT numbers, with its own prefix and format: ES for Spain, FR for France and XI for Northern Ireland, for example. A Spain VAT number identifies you for transactions carried out from Spain; if you need to register for VAT in another country, you apply there under its rules. The European Commission publishes the format for each country in the VIES help section, which helps you spot a typo before you run a check.
What Documents Are Needed to Apply for a Spanish VAT Number?
The core document is Form 036, filed with your Spanish NIF. A new company also submits documents such as its deed of incorporation and bylaws with its census return, through the Tax Agency’s electronic registry. For the ROI itself there’s no fixed list: the Tax Agency may review the application and ask for documents that support your activity. It helps to have proof that the business is real ready, such as contracts or client invoices. If you’re outside Spain, a representative or an authorized tax intermediary (colaborador social) can file for you.
How to Identify a Fake Spain VAT Number From a Supplier?
Run it through VIES first: if it comes back invalid, don’t treat the supplier as VAT-registered until it’s sorted out. Check that the format matches the country, ES plus 9 characters for Spain, and, if VIES shows the name, that it matches the supplier. For a Spanish supplier, you can also ask for its ROI registration certificate. Keep one exception in mind: according to the Spanish Tax Agency, a supplier under another EU country’s small-business franchise scheme has no VAT number and doesn’t charge VAT, and that’s legitimate.
What Are the Benefits of Voluntary VAT Registration in Spain?
For a business that trades with other EU countries, ROI registration isn’t really voluntary: it’s mandatory once you carry out intra-community transactions. What it does bring are real advantages. You can sell goods VAT-free when the requirements are met and buy from EU suppliers without them charging their VAT. You can also invoice services to businesses abroad without Spanish VAT, and you appear in VIES, where clients and suppliers will check you. The trade-off is extra filings, such as Form 349, which are easier to handle when they’re organized from the first transaction.


