If you live in Spain and commute to work in Gibraltar, you are generally a Spanish tax resident: it is where you spend more than 183 days of the year, or where your spouse and dependants live, that decides it — not where your salary is earned. Here is how the two questions connect.
Spanish tax residency does not depend only on where you work
You are generally treated as a Spanish tax resident if you spend more than 183 days in Spain in a calendar year, if your spouse or dependants live there, or if your main home or the bulk of your assets are in Spain. Working in Gibraltar does not exempt you from this — buying and living in a Spanish property is itself one of the factors that can establish Spanish tax residency.
The July 2026 border treaty does not touch this
The treaty that opened the Gibraltar-Spain border on 15 July 2026 is about movement and policing — removing routine immigration checks and physical barriers at the crossing. It does not change how cross-border workers are taxed. That is governed separately by a 2021 Spain-UK tax agreement specific to Gibraltar, which remains unchanged by the border opening.
What the 2021 tax agreement actually does
That agreement ends double taxation for the roughly 14,000 daily frontier workers who live in Spain and work in Gibraltar: they are not taxed in Spain on their Gibraltar employment income, but must pay the difference between Gibraltar income tax and Spanish income tax if Gibraltar’s rate is the lower of the two.
Why this matters before you buy, not after
If you already live in Spain and commute to Gibraltar for work, buying a Spanish property does not create a new tax problem by itself — your residency position is likely already established. But if you are considering moving to Spain specifically to commute to Gibraltar, the property purchase and the residency question should be reviewed together, since owning your main home in Spain is one of the independent factors that can trigger Spanish tax residency regardless of where you earn your income.
Call us today on +34 919 499 342 or email marialuisa@costaluzlawyers.es before buying property in Spain while working in Gibraltar.
Frequently Asked Questions
If I live in Spain and work in Gibraltar, am I a Spanish tax resident?
Generally yes, if you spend more than 183 days in Spain in a calendar year, or if your spouse and dependants live there, or your main home or the bulk of your assets are in Spain — buying and living in a Spanish property is itself one of the factors that can establish this.
Does the new border-opening treaty change how cross-border workers are taxed?
No — the treaty that opened the Gibraltar-Spain border on 15 July 2026 is about movement and policing, not tax residency. Cross-border worker taxation is governed by a separate 2021 Spain-UK tax agreement specific to Gibraltar, which is unchanged by the border opening.
How does the 2021 tax agreement actually work for frontier workers?
It ends double taxation for the roughly 14,000 daily frontier workers who live in Spain and work in Gibraltar: they are not taxed in Spain on that employment income, but must pay the difference between Gibraltar income tax and Spanish income tax if Gibraltar’s rate is lower.
Does buying a property in Spain near Gibraltar change my tax position?
It can. Spanish tax residency depends on more than just where you work — owning your only permanent home in Spain, or having your family based there, are independent factors that can make you Spanish tax resident even while working in Gibraltar.
Should I get this checked before I buy?
Yes — because the property-buying decision and the tax-residency question are connected, it is worth having both reviewed together before you commit, rather than assuming your Gibraltar employment alone determines your tax position.
This content has been prepared with the assistance of artificial intelligence and reviewed by María Luisa de Castro, a lawyer specialising in Real Estate Law and founder of CostaLuz Lawyers.
The information provided is general and indicative in nature. It should not be used as the sole basis for making professional, legal or investment decisions, and CostaLuz Lawyers assumes no responsibility for decisions taken solely on the basis of this content.
We always recommend personalised review by a qualified professional. For most of our services, initial personalised guidance is free of charge. Get in touch.
