Tax residence: when Spain treats you as its own
More than 183 days in the calendar year, or having the centre of your economic interests here. Either one of the two already makes you tax resident, and then Spain taxes your worldwide income. And half-residence does not exist: it is the whole year or none of it.
First things first: Cairos is in Spanish
You can read this page in several languages, but the application you are going to work in is in Spanish only: the menus, the invoices, the tax forms and the help screens. There is no English version and there is still no date for one. Support answers in Spanish too. If you have just arrived in Spain and do not read Spanish comfortably, tell us before you decide: we would rather you knew now than found out on your first day. Our plans and their limits are on pricing.
If you settle in the Basque Country or Navarre, this changes
Álava, Bizkaia, Gipuzkoa and Navarre have their own foral tax regime: you do not file with the state Tax Agency but with their Hacienda Foral, which has its own forms, its own deadlines and its own rates. This page describes the common regime, which is the one that applies in the rest of Spain. And there is one difference worth knowing before any other: in Álava, Bizkaia and Gipuzkoa the invoicing obligation is not VeriFactu, it is TicketBAI, and it is already in force. In Navarre there is no equivalent system approved today. If you are going to settle there, start with that page and talk to an accountant based in that territory.
The two tests in article 9, and one of them is enough
This whole subject starts in a single article: article 9 of Ley 35/2006, del IRPF. It says that a taxpayer is deemed to have their habitual residence on Spanish territory when either of two circumstances applies. Either: you do not need both.
| Test | What it says exactly | The trap |
|---|---|---|
| a) The 183 days | That you spend more than 183 days of the calendar year on Spanish territory. | For that count, sporadic absences are added in, unless you can prove tax residence in another country. A three-week trip does not come off if you cannot show you are tax resident somewhere else. |
| b) The centre of economic interests | That the main centre or base of your activities or economic interests is in Spain, directly or indirectly. | No day counter helps here. If your business, your income or your assets are here, you can be resident even if you spend most of the year abroad. |
There are two further points in the same article. In countries or territories treated as tax havens, the administration can require proof that you were there for 183 days. And temporary stays in Spain arising from unpaid cultural or humanitarian cooperation agreements with Spanish public authorities are not counted.
The family presumption
The same article adds that it will be presumed, unless proved otherwise, that the taxpayer habitually resides in Spain when, under the tests above, their spouse who is not legally separated and their dependent minor children habitually reside here. It is a presumption, not a certainty: it can be rebutted with evidence, but the burden is on you.
Half-residence does not exist
It is the most expensive miscalculation made by anyone who moves halfway through the year, and it is settled by two short articles.
Article 12 says the IRPF tax period is the calendar year and that the tax becomes chargeable on 31 December. Article 13 adds the only exception: the tax period will be shorter than the calendar year when the taxpayer dies on a day other than 31 December.
From which follows the practical consequence: either you are tax resident for the whole year, or you are not resident for any of it. The year is not split at the date you arrived. If you settle in Spain in March and spend more than 183 days here, you are tax resident for the whole year, including the January and February you spent living in another country.
That is why the month you move in is not a logistical detail. Arriving in June or arriving in August can change which country taxes you that year.
What changes according to whether you are resident or not
| Tax resident | Non-resident | |
|---|---|---|
| Which tax you pay | IRPF | Income Tax for Non-Residents (IRNR) |
| On what income | Your worldwide income: what you earn here and what you earn abroad | Only Spanish-source income |
| How it is taxed | On the progressive scale, with personal and family allowances and with deductions | Normally transaction by transaction, without the progressive scale and without the personal allowance |
| Reporting obligations on assets held abroad | Form 720 and form 721 can reach you | No |
| The impatriate regime | It is the case where it makes sense: you are resident and you are taxed under the IRNR rules. It is in the impatriate regime | Does not apply |
The impatriate regime is precisely the hybrid between the two columns: you acquire tax residence in Spain and, at the same time, you are taxed under the rules of the Income Tax for Non-Residents.
When two countries claim you: the treaty
It is a more frequent situation than it looks. Spain treats you as resident because you spend more than 183 days here; your country of origin treats you as resident under its own domestic law. Both are right under their own rules, and both want to tax your worldwide income.
That is settled by the double taxation agreement between the two States, where one exists. Spain has agreements with most of its trading partners, and all of them follow a very similar structure. As a concrete, published example, the agreement with Germany, whose article 4.2 sets out the tie-breaker rule in this order:
Permanent home
You are treated as resident of the State where you have a permanent home available to you. If you have one in both, you move to the next step.
Centre of vital interests
The State with which they have the closest personal and economic relations. This is where family, work, accounts, assets and social life come in.
Where they habitually live
If the centre of vital interests cannot be determined, or if you have no permanent home in either, the test is where you habitually live.
Nationality
If you habitually live in both States, or in neither, it is settled by the State of which you are a national.
Agreement between administrations
And if you were a national of both, or of neither, the competent authorities of the two States settle the case by mutual agreement.
One nuance from paragraph 1 of the same article that is worth remembering: the expression «residente de un Estado contratante» — resident of a Contracting State — does not include people who are liable to tax in that State only on income from sources within it. In other words: paying tax in a country on what you earn there does not make you, for treaty purposes, a resident of that country.
Every treaty is different
The structure repeats, but the details do not. The rates, the exemptions and even the wording change from one treaty to another, and some have been modified by the multilateral convention against base erosion. Find yours on the list published by the Ministry of Finance and read it, or ask your adviser to read it. We cannot summarise a hundred treaties for you here.
How it is proved, and why the paperwork matters
Tax residence is proved with a certificate of tax residence issued by the tax authority of the country in question. In Spain it is issued by the Tax Agency, and there are two versions: the plain certificate of tax residence and the certificate for the purposes of the treaty with a specific country, which is the one that works for applying the treaty.
The existence of that piece of paper is not minor bureaucracy. It works in both directions:
- So that you are not overtaxed abroad. If you are resident in Spain and you are paid from another country, the foreign payer needs your Spanish certificate to apply the treaty rate instead of their own domestic one.
- So that you do not withhold too little here. If you are the one paying a non-resident supplier, you can only apply the treaty rate if the recipient has given you a certificate of tax residence that is in force. Without that piece of paper you withhold at the domestic rate, even when the treaty says zero, and the responsibility lies with whoever withholds, not with whoever is paid.
That second case is settled with form 216 every quarter and summarised on form 296 in January. Cairos works them out from the expenses whose supplier has a country other than Spain on their record, and asks about the certificate on the screen itself.
Resident or not, the invoices still have to be issued
Cairos issues them compliant with VeriFactu from the very first one, and leaves the quarter worked out for you.
Questions about tax residence
What is our field and what is not
Tax and invoicing are our field: taxes, forms, VAT and compliant invoices. Visas, residence permits and consular formalities are not. We explain them here because your tax position makes no sense without them, but we are not immigration lawyers and this does not replace one. For an actual case — a refusal, a renewal, an arraigo application — find a specialist firm.
How this page is kept up to date
Every figure on this page comes from the consolidated text on the BOE or from the Tax Agency's E-Office, with the legislation cited beside it. What changes every year — the cuota de autónomos, the fees, the bands — is deliberately not reproduced here: an out-of-date figure on a website is worse than no figure at all. Last reviewed: 27 August 2026. If you spot something out of date, write to us at hola@cairos.es.
This is information, not tax or legal advice. Tax residence is decided on specific facts and under a specific treaty: for your own case, a tax adviser.
If you are resident, the quarter is yours
Cairos keeps invoices and expenses and works out the 303, the 130 and the 349. The application is in Spanish; your data is always exportable.
Free plan, no card · No minimum term · Support in Spanish