NIF for Self-Employed vs. Companies in Spain: Key Differences and Structure
When conducting business in Spain, whether as a self-employed individual or by forming a company, you must have a tax identification number (Número de Identificación Fiscal, NIF). However, there’s a fundamental difference in the nature and structure of the NIF for a self-employed person (autónomo) versus a corporate entity. Understanding this is crucial for correct tax filing and business operations in Spain.
The NIF for a Self-Employed Individual (Autónomo)
In the Spanish legal system, a self-employed individual (autónomo) is classified as a “natural person” (persona física). This means their business activity is directly linked to their personal identity, and no new legal entity is created.
Therefore, an autónomo’s NIF is simply their personal identification number. This falls into two categories:
- Spanish Citizens: They use their National Identity Document number (Documento Nacional de Identidad, DNI) as their NIF.
- Foreign Residents: They use their Foreigner’s Identification Number (Número de Identificación de Extranjero, NIE) as their NIF.
For foreigners working in Spain, the NIE number on their residency card serves a dual purpose for both personal and tax identification, eliminating the need to apply for a separate tax number.
The NIF for a Corporate Entity
Unlike an autónomo, a company (such as a limited liability company, SL, or a public limited company, SA) is a “legal entity” (persona jurídica) in the eyes of the law. It is a separate entity from its founders and shareholders. This independence means the company has its own rights, obligations, and assets.
Consequently, every company must apply for its own unique NIF from the Spanish Tax Agency (Agencia Tributaria) upon formation. This NIF is distinct from any individual’s DNI or NIE.

For example, the NIF for the most common type of company in Spain—the limited liability company (Sociedad de Responsabilidad Limitada, SL)—typically begins with the letter “B,” followed by a series of numbers, forming its unique corporate tax ID.
Summary of Core Differences: Natural Person vs. Legal Entity
The fundamental distinction between the NIF for an autónomo and a company stems from the legal difference between a “natural person” and a “legal entity.” In short:
- Autónomo (Self-Employed): A natural person whose personal ID number (DNI/NIE) also serves as their tax number.
- Company (Empresa): A legal entity that has its own specially generated tax number, independent of its members.
This core distinction directly impacts areas such as tax liability, legal responsibility, and asset ownership. For anyone planning to start a business in Spain, deciding whether to operate as an autónomo or a company is the first step in planning their commercial and tax strategy.