# What is NIF?

Last updated: 24 November 2026
Country: Spain

The NIF, Número de Identificación Fiscal, is the tax identifier. A company's NIF has nine characters: a letter for the legal form, seven digits and a control character.

## Current rate (Used on every invoice, return and informative declaration.)

No rate. Form letters include A for an SA, B for an SL and J for a sociedad civil.

## Example

A15075062 is a valid SA NIF, and ES followed by the NIF is the VAT number for intra-EU operations.

## How NIF works in Spain

The last character is a check digit or letter. For people the identifier is the DNI, eight digits and a letter, or the NIE for foreigners. A failed check is a warning that asks the user to confirm, never a block.

Spain offers no free lookup by NIF or name, so AccountsOS asks you for the number and checks it, and the VIES service confirms a Spanish VAT number.

Source: https://www3.agenciatributaria.gob.es/static_files/Sede/Biblioteca/Manual/Tecnicos/WS/030_036_037/Manual_Tecnico_WS_Masivo_Calidad_Datos_Identificativos.pdf

## Related terms

- [Modelo 303](https://accounts-os.com/es/glossary/modelo-303-spain)
- [Sociedad Limitada (SL)](https://accounts-os.com/es/glossary/sl-sociedad-limitada-spain)
