The Core Definition of a Spanish Company’s NIF
In Spain, when a company is established, it is assigned a unique tax identification number, the NIF (Número de Identificación Fiscal), by the Spanish Tax Agency (Agencia Estatal de Administración Tributaria, AEAT). This number serves as the company’s sole identifier within the Spanish tax system, functioning like an ‘ID card’ for the legal entity. It is used for all tax-related and commercial legal matters. The NIF is permanently linked to the company’s legal identity and is a core symbol of its legal existence.
The Principle of Immutability for the NIF
Spanish law stipulates that a company’s NIF is strictly permanent. This means that as long as a company legally exists, its NIF will absolutely not change. This principle ensures the continuity and accuracy of tax supervision, preventing companies from evading tax liabilities or legal obligations by changing their identification number. The immutability of the NIF is a fundamental rule within the Spanish commercial legal framework.
Company Information Changes and NIF Stability
During a company’s operations, many core details can be legally changed, but these changes do not affect its NIF. A company can apply to the Commercial Registry (Registro Mercantil) to modify the following information based on its business needs:

- Company Name (Razón Social)
- Registered Office (Domicilio Social)
- Shareholder Structure (Estructura de Socios)
- Director/Legal Representative (Administrador)
Although these changes can significantly impact the company’s operations, they are all considered adjustments within the framework of the same legal entity. Therefore, the Spanish Tax Agency will not assign a new NIF due to these modifications. The company’s legal identity remains continuous, and its tax history and liabilities are carried forward.
The Only Way to Get a New NIF: Dissolution and Re-establishment
In practice, the only legal way to obtain a completely new NIF is to terminate the legal existence of the current company. This process involves two separate legal steps:
- Dissolve and Liquidate the Original Company: Follow the statutory procedures to liquidate and dissolve the existing company, completing its final de-registration at the Commercial Registry to fully terminate its legal status.
- Establish a New Company: Initiate the company registration process again to form a brand-new, independent legal entity. This new company, even if it uses a name similar to the original one, will be assigned a new and unique NIF by the Spanish Tax Agency upon its incorporation.
It is important to clarify that this is not ‘changing’ the NIF, but rather creating a new entity to replace the old one. All legal responsibilities and tax obligations of the original company must be settled before its dissolution is finalized.