← Back to Blog

How to register with the Tax Agency as a foreigner

Jul 30, 2026

How to Register with the Tax Agency as a Foreigner

Registering with the Tax Agency is a crucial step for anyone wishing to reside and work in Spain, including foreigners. This process ensures that you comply with tax obligations in the country. Below are the necessary steps and the required documentation to carry out this procedure.

Who Needs to Register with the Tax Agency?

The following groups of individuals must register with the Tax Agency:

  • Foreigners with tax residency in Spain: Those who reside more than 183 days a year in the country.
  • Temporary workers: Foreigners who start working in Spain, regardless of the duration of their contract.
  • Entrepreneurs: Those who initiate an economic or business activity in the country.

Steps to Register with the Tax Agency

1. Obtain the NIE (Foreigner Identification Number)

Before registering with the Tax Agency, it is necessary to obtain the NIE. This number is essential for any economic activity, as it identifies foreigners in the Spanish tax system.

How to Obtain the NIE:

  • Make an appointment: Schedule an appointment at the police station or at the Immigration Office.
  • Required documentation: Present your passport, a recent photo, and the EX-15 form, which can be downloaded from the website of the Ministry of Inclusion, Social Security, and Migration.

2. Complete Model 030

Once you have the NIE, the next step is to complete model 030. This form is the tax registration declaration used to register with the Tax Agency.

  • Where to get it: You can download model 030 from the electronic headquarters of the Tax Agency.
  • Information required: You will need to provide personal data, such as your name, address in Spain, and the reason for registration.

3. Submit the Declaration

The submission of model 030 can be done in two ways:

  • In person: By going to the office of the Tax Agency corresponding to your place of residence.
  • Online: If you have a digital certificate or Clave PIN, you can submit the model online through the electronic headquarters of the Tax Agency.

Required Documentation

To complete the procedure, you will need to present the following documentation:

  • Filled-out Form 030.
  • NIE or identification document.
  • Proof of residence in Spain (such as a rental contract or utility bill in your name).

Final Considerations

It is important to remember that once you are registered with the Tax Agency, you must comply with your tax obligations, such as filing declarations and paying taxes, according to your personal and professional situation.

Registering with the Tax Agency is an essential process for any foreigner in Spain wishing to regularize their tax situation. By following these steps and submitting the required documentation, you can complete this procedure without any issues.

Written by:
Javier Dominguez
Immigration law expert
Publication date: July 30, 2026

Find more information and carry out your procedures with InmiBot

We value your privacy

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking 'Accept All', you consent to our use of cookies. Read our Cookie Policy.