Guideline / Spain

Spain Tax ID Number (TIN) Guide 

Introduction

In Spain, a Tax Identification Number (TIN) serves as a unique identifier for individuals, businesses, and entities in all tax-related matters. Having the correct TIN is crucial to ensure compliance with Spanish tax regulations. All data presented in this guide is verified from official tax authority websites and trusted government sources.​ 

Tax Identification Number Types 

Spain utilizes several types of TINs, each designated for specific categories of taxpayers:​ 

  • Número de Identificación Fiscal (NIF): This is the primary TIN used for both individuals and legal entities. For individuals, the NIF is identical to their Documento Nacional de Identidad (DNI) number. For legal entities, it was formerly known as the Código de Identificación Fiscal (CIF).​
  • Número de Identificación de Extranjero (NIE): Assigned to foreign residents in Spain, the NIE starts with the letter ‘X’ or ‘Y’ and is used for tax and legal purposes.​

TIN Format and Structure 

The structure of each TIN type is as follows:​ 

  • NIF for Individuals: 
    • Format: 8 digits followed by a letter (e.g., 12345678A).​
    • Structure: 
      • First part: 8-digit unique identifier. 
      • Last part: A single letter used as a checksum to validate the number. 
  • NIF for Legal Entities: 
    • Format: A letter, 7 digits, and a letter (e.g., A12345678).​ 
    • Structure: 
      • First part: A letter indicating the type of entity (e.g., ‘A’ for public limited companies). 
      • Middle section: 7-digit unique identifier. 
      • Last part: A single letter used as a checksum. 
  • NIE: 
    • Format: A letter, 7 digits, and a letter (e.g., X1234567T).​ 
    • Structure: 
      • First part: A letter (‘X’ or ‘Y’) assigned to foreign residents. 
      • Middle section: 7-digit unique identifier. 
      • Last part: A single letter used as a checksum. 

The letters ‘I’, ‘Ñ’, ‘O’, and ‘U’ are excluded from the checksum calculation. The sequence of letters used for validation is: T, R, W, A, G, M, Y, F, P, D, X, B, N, J, Z, S, Q, V, H, L, C, K, E.

Issuing Authority and Registration Process 

The Agencia Tributaria (Spanish Tax Agency) is responsible for issuing TINs in Spain.​ 

  • Official Name: Agencia Estatal de Administración Tributaria.​ 

Registration Process: 

  1. Eligibility Requirements: 
    • Individuals: Spanish citizens or foreign residents.​ 
    • Legal Entities: Companies and organizations operating in Spain.​ 
  1. Required Documents: 
  • For Individuals: 
    • DNI for Spanish citizens. 
    • NIE for foreign residents. 
  • For Legal Entities: 
    • Company registration documents. 
    • Proof of entity type (e.g., public limited company, limited liability company). 
  1. Application Process: 
  • Online: Through the Agencia Tributaria’s official website.​ 
  • In-Person: At local tax offices or designated government centers.​ 
  1. Fees: Typically, there are no fees for obtaining a TIN.​ 

For detailed instructions and forms, visit the Agencia Tributaria’s official website.​ 

TIN Verification and Lookup 

Individuals and businesses can verify their TIN through the Agencia Tributaria’s official channels.​ 

  • Online Verification Tool: Available on the Agencia Tributaria’s website, allowing users to validate TINs in real-time.​ 
  • Contact Information: For assistance, contact the Agencia Tributaria via their official contact channels listed on their website.​ 

Using official resources for TIN verification ensures accuracy and compliance with tax regulations.​ 

TIN and VAT Number Connection 

In Spain, the NIF serves as the VAT number for businesses. The format for VAT numbers aligns with the NIF for legal entities, starting with a letter indicating the entity type, followed by 7 digits and a checksum letter (e.g., ESA12345678).

Importance of Accurate TIN Validation 

Validating your TIN is essential to:​ 

  • Ensure accurate tax filings and payments.​ 
  • Avoid legal issues and potential penalties.​ 
  • Facilitate smooth business transactions and compliance with Spanish tax laws.​ 

Accurate TIN validation is crucial for maintaining proper tax records and ensuring compliance with Spanish tax regulations.​ 

Unmatched Real-Time Tax ID Validation in 130+ Countries

TaxDo gives you instant access to real-time Tax ID validation/lookup in 130+ countries — powered by direct connections to official tax authorities. Skip the format checks. Get the truth.