Especialistas en IVA, Aduanas, RAP y Fiscalidad medioambiental Specialists in Spanish VAT, Customs, EPR and Environmental Tax

What is the Spanish Tax Identification Number (NIF)?

The Spanish NIF (Número de Identificación Fiscal) is the official tax ID issued by the Spanish Tax Agency (AEAT), and you cannot operate in Spain without it. From signing contracts and issuing invoices to registering for VAT or dealing with Spanish authorities, the NIF is the first requirement for any legal, commercial, or tax activity in the country.

Whether you are an entrepreneur, a freelancer, or a foreign company entering the Spanish market, your NIF is the key that unlocks your ability to do business legally and efficiently in Spain.

At VAT & GREEN TAX, we secure your Spanish VAT number in just 3–4 business days with a fast and fully online notarisation process. VIES registration is usually completed within 2–3 weeks, ensuring you can operate without delays.

Why is the NIF important for businesses?

Holding a valid NIF allows companies to:

Without a NIF, a company cannot legally trade or expand in the Spanish market.

Get your Spanish VAT number in just 3–4 business days with a fully online notarisation process.
VIES activation typically completed within 2–3 weeks.

NIF vs. VAT Number: What’s the Difference?

Although often confused, the NIF and VAT number serve different purposes:

  • NIF: The general tax identifier used for all tax-related obligations.
  • VAT Number: Assigned when a company registers for VAT, often after submitting a census declaration. It is also required for Intra-EU transactions, in which case VIES registration is mandatory.

Note: In Spain, the VAT number typically corresponds to the company’s NIF (tax identification number). It becomes valid for intra-EU VAT transactions only once registered in the VIES (VAT Information Exchange System). In such cases, the VAT number is formatted as ES + NIF.

Spanish NIF and VAT number format

Type of EntityFormat ExamplePrefixNotes
Domestic CompanyESB12345678ESNIF and VAT share same number.
Foreign CompanyESN1234567XESRequires local representation for non-EU companies.

All VAT numbers registred within the VIES database include the “ES” country code, but format varies by entity type.

How to Register for VAT in Spain

To register for VAT and obtain a valid NIF:

Step-by-Step process to obtain a Spanish NIF

  1. Schedule an appointment with the Spanish Tax Agency.
  2. Submit required documents (see below).
  3. Receive provisional NIF.
  4. Submit census form (Modelo 036) for VAT and VIES registration.
  5. Receive definitive NIF (within approx. 7 days).

At VAT & GREEN TAX, we typically obtain NIF within 48-72 hours after receiving complete documentation.

Required documents for foreign companies

  • Power of attorney for local tax agent.
  • Passport of the legal representative.
  • Extract from the national commercial register.

Providing accurate and complete documentation is crucial to avoid delays.

Common Issue: VAT number without VIES Registration

One of the most frequent situations we encounter is companies that already have a Spanish VAT number (NIF) but are not registered in the VIES system.

This creates a major limitation, as the company cannot carry out intra-EU transactions correctly, often leading to rejected invoices or rejection from clients/suppliers or marketplaces.

In many cases, companies only become aware of the issue once operations are affected or transactions are blocked.

Why Is a Company not registered in VIES?

There are several common reasons why a company may have a VAT number but still not appear in the VIES database:

  • No VAT representative appointed when required.
  • Failure to respond to Tax Authority (AEAT) requests or audits.
  • Incorrect or incomplete VAT registration.
  • Legal representative not properly identified.
  • Missing or insufficient supporting documentation.
  • Outstanding tax debts with the Spanish Tax Authorities.

These situations are particularly common among non-resident companies operating in Spain.

How we solve It

At VAT & GREEN TAX, we regularly assist companies facing these issues.

We begin with a detailed assessment to identify the underlying cause. Based on this, we:

  • Liaise directly with the Spanish Tax Authorities (AEAT).
  • Prepare and submit the required documentation.
  • Respond to inspections and official requests.
  • Regularise the VAT status and ensure VIES activation.

Our approach is practical and focused on achieving results efficiently, allowing your company to operate without restrictions.

Need to activate your Spanish VAT Number in VIES?

If your company has a Spanish VAT number but is not active in VIES, we can help you resolve the situation quickly and securely.

Avoid delays, rejected transactions and compliance risks. Ensure your VAT number is fully operational for intra-EU activities.

Contact us today and we will assess your case through our email hola@vat

No VAT registration threshold in Spain

Unlike other EU countries, Spain has no revenue threshold for VAT registration.

As soon as your business activities require VAT compliance, registration must be initiated immediately, regardless of revenue.

It is important to review, prior to register, the Spanish VAT rules applicables to the transactions carried out in Spain, Specially, the reverse charge mechanism.

Storing goods in Spain: tax implications

Companies storing goods in Spanish territory must:

  • Register for a Spanish NIF and VAT number
  • Ensure proper inventory tracking and storage purpose
  • Maintain documentation for VAT exemption in Intra-EU movements:
    • Sales invoices.
    • CMR (transport documents).
    • Proof of delivery.

How to check VAT number Validity: VIES

The VAT Information Exchange System (VIES) is the EU’s official tool for:

  • Verifying the validity of a NIF/VAT number
  • Ensuring compliance for intra-community transactions

To use it:

  1. Visit the VIES website.
  2. Enter the full VAT number (e.g., ESB12345678).
  3. Check the status.

Need help with VAT in Spain?

For professional assistance in advisory, obtaining your Spanish NIF, registering for VAT, and managing ongoing compliance.

contact the experts at VAT & GREEN TAX. Our e-mail is hola@vatgreentax.com