Home Finance Taxes Spanish tax numbers: a guide to NIE, NIF, and CIF numbers
Last update on April 01, 2020

Abbreviations can make the beginning stages of life abroad challenging. Discover what the NIF and NIE numbers are, how you get them, and what you’ll need them for with this guide to Spanish tax numbers.

If you live or own property in Spain, you will need a Spanish tax identification number. Which one you will need depends on whether or not you are a Spanish citizen and whether you are applying as an individual or a company. There are three different Spanish tax numbers that are used for a wide range of legal, economic and social activities – the NIF (for Spanish citizens), the NIE (for non-citizens such as foreign residents or non-residents with property in Spain) and the CIF (for businesses).

This guide to Spanish tax numbers will look at what the Spanish tax number is, who needs a Spanish number, how to apply for a Spanish tax number, requirements for a Spanish tax number and using your Spanish tax number. There is also a further information section at the end of the guide with links to useful websites and web pages containing more detailed information on tax numbers in Spain.

Spanish tax numbers: NIF, NIE and CIF numbers

Everyone who conducts legal or financial activities in Spain needs a Spanish tax identification number. This ranges from Spanish citizens to those buying property in Spain. The Spanish tax number is a form of identification used mainly for tax purposes but also for a range of other financial and legal transactions such as opening a bank account or getting a driving licence.

Spanish tax numbers are issued by the Spanish Ministry of the Interior (Ministerio del Interior). There are three types of Spanish tax number issued.

NIF (Numero de Identificacion Fiscal)

This is the tax ID for Spanish citizens. This is your Spanish ID number (DNI) plus one letter, so your Spanish NIF number consists of 8 numbers plus two letters.

NIE (Numero de Identificacion de Extranjero)

This is the tax ID for foreigners and non-citizens, including non-residents with Spanish property or carrying out legal or financial transactions in Spain. The NIE consists of a letter, followed by 7 digits, followed by another letter.

CIF (Certificado de Identificacion Fiscal)

This is the tax ID for all companies registered in Spain. It consists of a letter followed by 8 digits. The letter represents the type of company (e.g. Ltd company). This number also serves as a Spanish VAT number.

For more information, see our special guide on the Spanish NIE number for foreigners, and our guide to Spanish taxes.

Spanish NIF number

Who needs a Spanish tax number?

Tax identification numbers in Spain are mandatory requirements for anyone carrying out legal or economic activities in Spain, including those buying Spanish property, temporary workers and those setting up a business based in Spain. All Spanish citizens with Spanish ID will have one, as will all foreign residents in Spain. If you are involved in the running of a business in Spain, you will usually have two Spanish tax numbers (an individual tax ID plus your company tax number).

Spanish tax numbers are essential so that the Spanish Tax Agency can accurately calculate the fiscal responsibilities of everyone paying tax in Spain. Even in cases where it is not obligatory for Spanish citizens to have ID (e.g. children aged under 14), a Spanish tax number will be needed if financial transactions are carried out.

For foreign residents, those from the EU/EFTA will need to apply for an NIE number after three months of residence in Spain. Those from outside the EU/EFTA will usually make their NIE application along with their Spanish residency application.

See our guide to the NIE number for information on tax numbers for foreign residents and our guide to Spanish citizenship for more information on who qualifies as a Spanish citizen.

How to apply for a Spanish tax number

If you are a foreigner needing to apply for a Spanish tax number, you can apply through any of the following ways:

  • through the processing office of a local police station if you are living in Spain.
  • through the Provincial Tax Office of your local municipality if you are living in Spain and applying for a CIF for a business.
  • through a Spanish embassy or consulate if you are living abroad. This is most commonly used by non-residents with property or conducting business in Spain.
  • through an authorised Spanish resident (lawyer, notary, friend or family member) holding power of attorney to represent you

If you are a foreign resident in Spain and you decide to take Spanish citizenship, you won’t need to make a separate application for a Spanish NIF number. You can carry on using your NIE number until your NIF number arrives. This should happen shortly after you receive your official Spanish ID card.

Spanish tax numbers can take anything from a couple of days to a couple of weeks to be issued, depending on where you are making your application. To be safe, it is advisable to make your Spanish tax number application as early as possible to avoid any delays.

Spanish tax numbers are normally printed on a document in certificate form. Once your document is ready, you will need to collect it (or have a representative collect it) from the office where it was processed. See our additional guide for information specific to the NIE number in Spain.

Tax numbers in Spain

Requirements for a Spanish tax number

The Spanish tax number requirements vary from one processing office to another. Typical requirements for individual tax numbers are:

  • a completed application form (available from the processing office)
  • valid ID
  • proof of address
  • if the application is being made through a third party representative, proof of Power of Attorney will be needed

Typical requirements for companies are:

  • Certificate from the registry of companies stating that the company is legally a corporation
  • Proof of company’s legal name, address, nationality, registration date, names and NIE/NIF of company representatives
  • a valid ID of the company representative making the application

Using your Spanish tax number

Your Spanish tax number can be used in a variety of common transactions including:

Further information