Spain treats you as tax resident in any calendar year in which you spend more than 183 days here, in which the main base of your economic interests is here, or in which your spouse and dependent children live here. This guide sets out those three tests as the income tax law states them, how the days are counted, what happens when the United Kingdom treats you as resident too, the certificate that proves where you are resident, what changes once you are resident, and the special regime for people who move to Spain to work. The facts come from the law, the Spanish tax agency and gov.uk, linked where they appear, as they stand in October 2026.
Tax residence decides which country taxes your income and your wealth. It is not the right to live here, and it is not the 90/180-day rule. The rates that apply once you are resident are in income tax in Spain in 2026, and this guide does not repeat them.
Not the 90/180-day rule
Two rules use a day count, and they answer different questions.
The 90/180-day rule decides whether a British, American or other visitor from outside the EU may be in Spain at all. It counts days spent anywhere in the Schengen area over a rolling window of 180 days, as set out in the 90/180-day rule, explained.
The 183-day test decides which country taxes you. It counts days in Spain alone, over the calendar year from 1 January to 31 December, and it applies to everyone, whatever their passport.
Keeping within one rule settles nothing about the other. A residence permit does not settle tax either. The tax agency’s page on residence notes that a residence permit, or an administrative residence in a country, does not by itself make a person tax resident there (Agencia Tributaria). Owning a home does not make you tax resident either, because none of the tests looks at ownership.
The residence visas point the other way. The non-lucrative visa and the digital nomad visa are for people who live here, and living here for most of a year makes you resident under the first test.
The three tests
Article 9 of the personal income tax law treats you as habitually resident in Spain if any one of these applies.
- The days. You spend more than 183 days in Spain during the calendar year. Time away on trips, which the law calls sporadic absences, still counts as time in Spain unless you prove that you are tax resident in another country. Where that country is one Spain lists as a tax haven, now called a non-cooperative jurisdiction, the tax agency can ask you to prove 183 days there. Temporary stays under unpaid cultural or humanitarian agreements with Spanish public bodies are not counted.
- The centre of your interests. The main core or base of your activities or economic interests is in Spain, directly or indirectly. This test looks at where your business and your economic interests are based, not at where you sleep, so it can make you resident on fewer days.
- The family. The law presumes you are resident if your spouse, from whom you are not legally separated, and your dependent children under 18 live habitually in Spain. It is a presumption, so it gives way to proof that you are resident elsewhere.
More than 183 days means 184 or more. The count that matters is the calendar year, not any twelve months, and every day in Spain counts towards it, whether you spent it at home, in a hotel or with friends.
The whole year, not part of it
Spain does not split a tax year. The tax period is the calendar year (article 12), and the tax agency states that a person is resident or non-resident for the whole of it, because a change of residence does not interrupt the period. If you arrive early enough in a year to spend more than 183 days here, Spain treats you as resident for that whole year, the months before you came included.
The United Kingdom works differently. Its tax year runs from 6 April to 5 April, residence is decided by the statutory residence test, and in the year you move abroad the year is usually split into a resident part and a non-resident part (gov.uk). So the two systems can overlap in the year of a move, and that overlap is what the double taxation convention is for.
When both countries say you are resident
Each country applies its own law, so both can treat you as resident in the same year. The double taxation convention between the UK and Spain, signed in London on 14 March 2013 and in force since 12 June 2014, settles which one counts. It has applied to income tax in Spain since 1 January 2015 and in the United Kingdom since 6 April 2015, as gov.uk’s page on the Spain treaty records.
Article 4 works through four questions in order and stops at the first one that gives an answer.
| Order | The question | You are resident in |
|---|---|---|
| 1 | Where do you have a permanent home available to you? | That country. With a home in both, the one with which your personal and economic relations are closer, your centre of vital interests |
| 2 | If that cannot be decided, or you have a permanent home in neither, where do you habitually live? | That country |
| 3 | If you habitually live in both or in neither, which are you a national of? | That country |
| 4 | If you are a national of both or of neither | The two tax authorities settle it by mutual agreement |
Once residence is settled, the rest of the convention decides which country may tax each kind of income. Pensions are the case most buyers ask about, and the articles that decide them are set out in retiring to the Costa del Sol. Owners from other countries have pages of their own: taxes for American owners, skatt i Sverige for Swedish owners and skatt på bolig i Spania for Norwegian owners.
The certificate that proves it
Each country certifies its own residents, and a certificate of tax residence is valid for one year, as the tax agency’s residence page notes.
Proving you are resident in Spain. The tax agency issues a certificate of tax residence when its own records show that you are resident here. For a country with a treaty, such as the United Kingdom, it certifies that you are resident in the sense of that treaty, and it is issued in Spanish and English. You request it online, identifying yourself with Cl@ve, a digital certificate or an electronic DNI, and it is issued at once where possible (Agencia Tributaria). If the agency’s records do not yet show you as resident, for example before your first resident return, the request produces a refusal, and the same service lets you send documents so that it can be reviewed.
This is the paper HMRC asks for. A Spanish resident who wants a UK pension, a purchased annuity, interest or royalties paid without UK tax, or the UK State Pension exempted, applies on form DT-Spain Individual and attaches a certificate of residence under the convention from the Agencia Tributaria, as HMRC’s form and notes set out.
Proving you are resident somewhere else. Spain counts your days away as days here unless you prove tax residence in another country, and the proof is a certificate from that country’s tax authority. In the United Kingdom it is HMRC’s certificate of residence, which confirms to a foreign tax authority that you are UK resident and can be requested online.
What changes when you become resident
| Non-resident owner | Tax resident in Spain | |
|---|---|---|
| Income tax | Spanish income only, on the non-resident return | Income from everywhere, on the annual return |
| Your home here | A notional income each year if it is not let | No notional income on your main home |
| Wealth tax | On what you own in Spain | On what you own everywhere, with up to €300,000 of your main home exempt |
| Assets abroad | Nothing to declare in Spain | Form 720 where any of three groups is over €50,000 |
| Selling your main home | The non-resident rules | Gain exempt over 65, or relieved if reinvested |
Income tax. From the first resident year, Spain taxes your income from everywhere: a pension, rent from a home you kept, interest and gains. For the 2025 tax year the return was filed between 8 April and 30 June 2026 (tax agency calendar). The convention is there so that the same income is not taxed in full by both countries, as gov.uk’s living in Spain guidance explains.
Your home here. A non-resident pays tax each year on a notional income from a home that is not let, on Modelo 210. A resident’s main home carries no notional income, because article 85 leaves out the habitual residence. A second home you keep for your own use still counts.
Wealth tax. A resident is taxed on net wealth everywhere, not only in Spain (wealth tax law, article 5), and gains the exemption of up to €300,000 for a main home in article 4. In Andalucía the regional rebate means nothing is payable below 3.7 million euros of net wealth, where the national solidarity tax begins (Ley 38/2022). A return is still due if your assets are worth more than 2 million euros (article 37), and the rebate above 3.7 million is explained in wealth tax in Spain and why Andalucía is different.
Assets abroad. A resident with more than €50,000 abroad in any of three groups files an information return, form 720, between 1 January and 31 March (tax agency). The groups are bank accounts, then securities, insurance and annuities, then property (Real Decreto 1065/2007). It carries no tax. After the first one you file again only when a group rises by more than €20,000, or an asset in it is sold or closed (tax agency). Cryptoassets held abroad are not on form 720 but on a return of their own, form 721, above the same €50,000 (Real Decreto 1065/2007, article 42 quater). gov.uk’s guidance is plain: residents must declare assets held outside Spain, and there are penalties for not doing so.
Selling your main home. As a resident, the gain on selling your main home is exempt from tax once you are over 65 (article 33.4), and at any age it can be left out of tax if the whole of the proceeds goes into a new main home, on conditions the regulation sets (article 38). The rules for a seller who is not resident are in selling property in Spain as a non-resident.
The special regime for people who move here to work
A newcomer who moves to Spain for work can choose to be taxed differently for six years. The tax agency’s manual for non-residents sets out the conditions.
- You were not resident in Spain in any of the five tax years before the move.
- The move is for work: a contract with a Spanish employer or a posting by your employer, remote work under the international teleworking visa, becoming a company director, an activity classed as entrepreneurial, or highly qualified work for a start-up or in training, research and innovation.
- It runs for the year of the move and the five years after it.
Under it you stay an income tax payer but are taxed under the non-resident rules. Income from work is taxed at 24% up to €600,000 and 47% above that, savings income at 19% to 28%, and other income only if it arises in Spain (tax agency manual). You opt in on form 149 within six months of the start of the work shown in your Spanish social security registration (tax agency), and file form 151 each year.
Two consequences follow. You are not treated as resident for the purposes of a double taxation treaty, and you do not file form 720 (tax agency). Every route into the regime is a move for work, so it is not open to someone who moves here to retire. The remote-working route is covered in more detail in the digital nomad guide linked above.
Keeping the record
Tax residence is decided on facts, so keep them: travel records, the dates of flights, and where your income is paid and managed. Registering on your town’s padrón records where you live, but Marbella’s town hall puts it plainly: registering does not make you tax resident (Ayuntamiento de Marbella). What the padrón is for, and how each town handles it, is in the padrón guide.
None of this is advice on your own position. It is the framework, so that the questions you take to a tax adviser who works across both countries are the right ones, asked before the moving date is fixed rather than after.
How I handle it
I am not a tax adviser and I do not give tax advice. What I do is put the tax position into the plan for the purchase. When a buyer is moving here, the completion date, the move itself and the first resident year are worked out with their adviser before the offer, so the purchase fits the plan rather than the other way round.
For a buyer who will stay non-resident, I make sure the annual non-resident return and the count of days are understood before the keys change hands. For one who is becoming resident, I introduce an adviser who handles residents with income from the UK and stay alongside them while the move is planned. If you are weighing a move, book a call and we can start with the timetable. Buying with me sets out how I work.
Common questions
How many days do you have to spend in Spain to be tax resident?
Is the 183-day rule the same as the 90/180-day rule?
Does buying a property in Spain make me a tax resident?
Can I be tax resident in both the UK and Spain?
How do I get a certificate of tax residence in Spain?
What changes when I become tax resident in Spain?
What this relates to




