NIF: The Unique Identifier for Spanish Businesses
NIF stands for “Número de Identificación Fiscal,” which translates to Tax Identification Number. It is a unique code assigned by the Spanish Tax Agency (Agencia Estatal de Administración Tributaria) to all legal entities and business organizations operating in Spain. This number is fundamental for conducting legal business in the country and is used throughout every stage of a company’s lifecycle, from incorporation to daily operations.
Key Legal and Commercial Functions of the NIF
Obtaining an NIF is a prerequisite for any company to conduct business activities in Spain. Its core functions cover all major economic and legal areas, including:
- Tax Filing: All companies must use their NIF to declare taxes, such as Value Added Tax (VAT or IVA) and corporate income tax, to the tax authorities.
- Commercial Transactions: When issuing and receiving invoices, the NIF of both parties must be included. This is a basic requirement for a valid invoice.
- Signing Contracts: Whether for a lease, employment contract, or business partnership agreement, the NIF is crucial for verifying the legal identity of the contracting parties.
- Financial Operations: A valid NIF must be provided when opening a corporate bank account with a Spanish bank.
The Standardized Format of an NIF
A Spanish company’s NIF follows a standardized format consisting of one letter followed by eight digits. This structured code helps to quickly identify the legal form of the company.
Format: 1 Letter + 8 Digits (e.g., A12345678)

The First Letter Reveals the Company Type
The first letter of an NIF is not random; it directly corresponds to the company’s legal form. This letter provides an initial indication of a business’s organizational structure. The two most common types are:
- Letter A: Represents a public limited company (Sociedad Anónima, S.A.), typically used for larger corporations.
- Letter B: Represents a private limited liability company (Sociedad de Responsabilidad Limitada, S.L.), the most common form for small and medium-sized enterprises (SMEs) in Spain.