Skip to content

Guide · Residencia fiscal en España

Spanish tax residency: the 183-day rule, the other two tests, and the regime for new arrivals

You are resident for Spanish income tax if you spend more than 183 days here in a calendar year, or if your main economic interests are here, or — as a presumption — if your spouse and minor children live here. Newcomers may opt for a special regime at a flat 24% on up to €600,000, but only within six months of starting work.

Checked at source ·

Days in Spain that make you resident
More than 183 in a calendar year

Source: Boletín Oficial del Estado — Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas — arts. 9 y 93 (texto consolidado). Checked .

Special regime rate on employment income
24% up to €600,000; 47% above

Source: Boletín Oficial del Estado — Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas — arts. 9 y 93 (texto consolidado). Checked .

Years the special regime lasts
Year of arrival plus five

Source: Boletín Oficial del Estado — Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas — arts. 9 y 93 (texto consolidado). Checked .

Deadline to opt in
6 months from starting work

Source: Boletín Oficial del Estado — Real Decreto 439/2007, Reglamento del IRPF — arts. 113 a 120, régimen de trabajadores desplazados (texto consolidado). Checked .

Form
Modelo 149

Source: Agencia Tributaria — Modelo 149. IRPF. Régimen especial aplicable a los trabajadores, profesionales, emprendedores e inversores desplazados. Checked .

Residence for immigration and residence for tax are different things

Holding a Spanish residence card does not by itself make you a Spanish tax resident, and not holding one does not stop you from being one. Immigration law decides whether you may live here. Tax law, in article 9 of the income tax act, decides whether Spain taxes your worldwide income. The tests are different and they are applied year by year.

A tax resident pays Spanish income tax, IRPF, on income from anywhere in the world. A non-resident pays non-resident income tax, IRNR, only on income arising in Spain. Which one applies is a matter of fact each calendar year, not a choice.

The three ways to become resident

The first test is time. You are resident if you spend more than 183 days in Spanish territory during the calendar year. Sporadic absences count as days in Spain — a two-week holiday abroad does not reset anything — unless you prove you are tax resident in another country. If that other country is a tax haven, the Tax Agency can require proof that you actually spent 183 days there.

The second test is economic. You are resident if the main core or base of your activities or economic interests is in Spain, directly or indirectly. This test does not count days at all: someone whose business and income are centred here can be resident while spending most of the year elsewhere.

The third is a presumption. If your spouse, not legally separated, and your dependent minor children habitually live in Spain, you are presumed to be resident yourself. It is a presumption, so it can be rebutted with evidence, but the burden is on you.

Meeting any one of the three is enough. They are alternatives, not a checklist.

When two countries both claim you

It is perfectly possible to be resident in Spain under Spanish law and resident somewhere else under that country's law in the same year. Spain has double taxation agreements with many countries, and each contains its own rules for deciding which country wins. Which treaty applies, and how, depends on the other country, which is why this page stops here. The Spanish rule itself says an absence counts as time in Spain unless you prove tax residence elsewhere, and a certificate of tax residence from the other country is how that is normally proved.

The special regime for people who move to Spain

Article 93 of the income tax act lets people who become tax resident because they moved to Spain choose to be taxed under non-resident rules, with adjustments, for the year they arrive and the following five. It is widely called the Beckham law after the footballer, though professional footballers are now expressly excluded.

Under the regime, employment income and income from a qualifying entrepreneurial activity are taxed at 24% on the first €600,000 and 47% above that. Savings income — interest, dividends, gains — is taxed on a separate scale from 19% to 30%. The practical effect most people are after is that income from outside Spain is largely left out, because the regime taxes the person broadly as a non-resident would be taxed, while all their employment income is treated as arising in Spain.

The catch is that you remain liable to wealth tax as a non-resident — on Spanish assets only — and you give up the ordinary deductions and allowances of IRPF, which for a household on a modest salary can make the regime worse, not better.

Who qualifies

You must not have been resident in Spain in any of the five tax years before the year you move. And the move must be caused, in the first year of the regime or the year before, by one of four things.

An employment contract with an employer in Spain, or a posting ordered by your employer with a letter of assignment. Working remotely for a foreign employer counts too, when the work is done exclusively by computer and telecommunications — and the law says expressly that holders of the international teleworker visa, the digital nomad visa, meet this condition.

Becoming a director of a company, with a limit on your shareholding if the company is a passive holding company.

Carrying out an activity officially classed as entrepreneurial under the 2013 entrepreneurs law.

Or working as a highly qualified professional for a startup under the 2022 startups law, or in training, research, development and innovation, where that pay is more than 40% of your total income from work and business.

Separately, you must not obtain income through a permanent establishment in Spain, except in the entrepreneur and highly qualified cases. The regime can also extend to certain family members who move with you, and the regulation gives them their own six-month deadline, counted from their own entry into Spain or from yours if that is later.

How and when to opt in

The option is exercised by an individual communication to the Tax Agency on form 149. The deadline is six months from the start date of your activity as shown on your Social Security registration in Spain — or on the document that keeps you in your home country's social security system, if that applies instead. Miss it and the regime is gone for good for that move: there is no late option.

Before filing form 149 you must have a tax identification number and be in the Tax Agency's census, and you must first upload the supporting documentation through a separate procedure. The registration number of that upload goes on the form.

You can leave the regime voluntarily, but only by giving notice in November or December of the year before the one it takes effect.

Common questions

How many days can I spend in Spain without becoming tax resident?

Up to 183 days in a calendar year on the time test alone — more than 183 makes you resident. But the economic-interests test and the family presumption can make you resident with fewer days, and short absences abroad still count as days in Spain unless you prove residence elsewhere.

Does my residence card make me a Spanish tax resident?

Not by itself. Tax residence is decided under the income tax act each calendar year, by days, economic interests or where your family lives. The card is evidence of where you live, but it is not the test.

Can digital nomads use the Beckham law?

Yes, if they meet its conditions. The law names holders of the international teleworker visa as meeting the employment condition. They still need to have been non-resident for the five previous years and to file form 149 within six months.

What is the deadline for applying for the special regime?

Six months from the start date of your activity as recorded on your Spanish Social Security registration, or on the document keeping you in your home social security system. There is no extension.

Is the special regime always better?

No. You lose the ordinary IRPF allowances and deductions and become liable to wealth tax on Spanish assets. At lower salaries the ordinary system can cost less. Have the numbers run for your own case before opting in.

The procedures this leads to

This is information, not advice

Your own case depends on your nationality, your status and your history with the administration — none of which a web page can see. Confirm anything that matters with the responsible authority or a qualified professional before you act on it.