Dmitry Sheynkman Author Dmitry Sheynkman Tax adviser 6 min read Message the author

VAT number: what it is, how to check it and how to get one in Spain

A VAT number is the number under which a company or entrepreneur appears in the European Union’s shared database of VAT payers. It is needed for exactly one thing: so that a seller in one EU country can invoice a partner in another without tax, with the buyer paying the tax in their own country.

In Spain it is called the NIF-IVA and looks like an ordinary Spanish tax number with the prefix ES. No separate document is issued: the number appears in the European VIES database once you have been included in the register of intra-EU operators.

Below: what this number is not, how to check someone else’s, how to get your own in Spain and what you will have to file afterwards.

What a VAT number is not

Three numbers that are constantly mistaken for one another.

NumberWhat it isVisible in VIES
NIF or CIFthe Spanish tax number of an individual or a company; everyone has oneno
NIF-IVA, also known as the VAT numberthe same number with the prefix ES, assigned on applicationyes, after inclusion in the register
Russian INN and Russian VATunrelated to the EU systemno

The key beginner’s mistake. Having a NIF does not mean you are in VIES. You can work as an autónomo (self-employed) with a Spanish number for years and still not be entitled to invoice Germany without tax.

An invoice between two EU countriesSupplier in SpainES number + NIF, listed in VIESinvoices without IVAshows both numbers on the invoicefiles report 349Client in another EU countryown number, also in VIEScharges the tax itself at homeand deducts it itselfreverse chargeinvoiceOne condition: both numbers valid in VIES on the invoice dateCheck every time, not just once when you take on a clientIf the client’s number is invalidthe Spanish supplier must charge 21% and pay it itself — clients usually do not pay such invoices
The number is not a perk but a condition: without a valid number on both sides, the invoice becomes an ordinary Spanish invoice with tax.

How to check someone else’s number

The check is free and takes seconds: the European Commission’s VIES service. It is important to understand how it works, otherwise the result is easy to misinterpret.

  • There is no single database. The service forwards your query to the national database of the country whose prefix you entered and shows the answer from there. Hence the glitches: if a country’s database is unavailable, there will be no answer.
  • Not all countries show the name and address. This is decided by national data protection law. For Spanish numbers you have to enter the name and address together with the number — the Spanish database will not return them itself, only confirm whether they match.
  • “Invalid” does not mean “fraudster”. First check the number of characters and the prefix. If the number is still invalid, only the tax authority of that country can correct the data — not the European Commission and not you.
  • Check before every invoice. The number may have been cancelled since you checked it last quarter.

Keep proof of the check. In a dispute with the tax authorities, the evidence will be your query on the invoice date, not a general claim that the client “was in the database”.

How to get your own number in Spain

The number is assigned on inclusion in the ROI — Registro de Operadores Intracomunitarios (register of intra-EU operators). If your company is not yet registered in Spain, start by choosing how to establish your presence: entering the Spanish market. The application is not a separate form but part of the modelo 036 return: either at registration or later, as a separate modification.

WhatHow
Formmodelo 036, IVA page
Key fieldbox 582 — application for inclusion in the ROI
Number formatthe ISO-3166 prefix ES plus your ordinary NIF
Decision deadlinethree months
If there is no answerthe application is deemed rejected
Resultthe number appears in the VIES database

Two traps where people lose months.

  • The simplified version of 036 does not include ROI. If you choose the simplified form at registration, box 582 simply is not there, and you will later have to file a modification. A field-by-field walkthrough is in our guide on how to register as an autónomo in Spain.
  • Silence from the tax authority means refusal. Three months of silence does not mean “still under review” but is grounds to consider the application rejected. The tax authority is entitled to refuse and often checks that the business is genuine before including you in the register.

Who must have the number

The law lists four cases, and the third and fourth apply to almost every freelancer working with European clients.

  1. Supplies and acquisitions of goods within the EU.
  2. Legal entities that are not businesses, when they buy goods within the EU.
  3. Recipients of services from suppliers not established in Spain, where the recipient pays the tax. This includes anyone paying European providers for advertising, hosting or subscriptions.
  4. Service providers whose services, under the place-of-supply rules, are deemed supplied in another EU country, if the client pays the tax there. This is the typical case of a freelancer with a client in Germany or France.

The logic of the rule is simple: for business-to-business services, the place of supply is the client’s country, not the supplier’s. So Spanish IVA does not appear on the invoice, and the client charges the tax in their own country — this is the reverse charge, inversión del sujeto pasivo.

What you will have to file afterwards

The number gives you the right not to charge tax, but it adds reporting.

What to fileWhen
Modelo 349, the recapitulative statement of intra-EU transactionsmonthly by default, by the 20th of the following month
The same, quarterlyif neither in the current quarter nor in any of the four previous ones did transactions exceed €50,000 excluding tax
Return for the last period of the yearthe first 30 days of January
July returncan be filed in August and up to 20 September
Record book of certain intra-EU transactionskept on an ongoing basis

The €50,000 threshold is cumulative. If you exceed it in the middle of a quarter, you file a return for the months already passed without waiting for the quarter to end.

Your ordinary tax reporting does not go away: modelo 303 quarterly and the annual 390. The period becomes monthly with turnover above €6,010,121 in the previous year and under several special regimes.

Common mistakes

  • Invoicing without tax before being included in the register. Until your number is in VIES, you must charge Spanish tax at 21%. A European client will generally refuse to pay such an invoice, and the tax is still yours.
  • Checking a client only once. Numbers are cancelled without warning to counterparties.
  • Only one party has a number. The mechanism requires valid numbers on both sides.
  • Forgetting report 349. It is not replaced by the 303 return and is filed separately, even if the amount is small.
  • Waiting for “approval” for more than three months. After three months you should not wait but reapply or find out the reason.

Frequently asked questions

What is a VAT number in simple terms?

It is a VAT payer number under which a business is visible to partners in other EU countries. It confirms that you are a business and lets you trade within the Union without tax on the invoice.

How does it differ from a Spanish NIF?

It is the same number with the prefix ES, but it exists for intra-EU transactions only after inclusion in the register of operators. Having a NIF gives you nothing on its own.

How long does it take to be assigned?

Up to three months. If the tax authority has not replied within that time, the application is deemed rejected.

Do I need the number if all my clients are outside the EU?

Not for dealings with non-EU clients as such. But if you buy services from European providers and you pay the tax on them, the number is mandatory.

Will a Russian INN do?

No. The VIES system only knows numbers from EU countries and Northern Ireland.

What should I do if my number shows as invalid?

Contact your tax authority: only it updates the data in the system. Until it is corrected, you cannot issue invoices without tax.

Official sources

This article is for information only and does not replace tax advice. Thresholds and deadlines are revised: check them as of the date of your transaction.

Read next

Ask a question

A question about your situation?

or leave your contact and we will write first
We reply within an hour during working hours

We use cookies to improve your user experience, analyze traffic and personalize content. Learn more in our Privacy Policy.