Tax lawyer: tax residence in Gibraltar and the Spanish Tax Agency
If you have moved to Gibraltar, or say you live there, and the Spanish Tax Agency (Agencia Tributaria, Hacienda) asks you to prove that you are not tax resident in Spain, the argument is not won with a certificate. It is won with facts: where you sleep, where your family is and where your interests are. We organise that evidence and defend you before Hacienda. We work from La Línea de la Concepción, very close to the border, and we see clients both at the office and by video call.
Lawyers and tax advisersSpain–Gibraltar residenceOnline or in person
Hacienda reviews of people who say they live in Gibraltar
What is in dispute is not only where you live, but whether, for tax purposes, you are still resident in Spain. The difference matters: someone who is resident in Spain pays tax here on all their income, wherever it comes from, while a non-resident pays only on what they earn in Spanish territory.
These reviews usually start in one of these ways:
- a letter asking you to justify your residence in Gibraltar for one or more years;
- a tax review because you still have a home, family or business in Spain;
- a proposed personal income tax assessment (IRPF) that treats you as a resident and claims tax on your worldwide income;
- a notice about a change of tax address that Hacienda questions.
We are lawyers and tax advisers with an office in La Línea. We know the people who live on both sides of the border and how these files are argued. The same team reviews your case, gathers the evidence and files the submissions.
To startThe whole Hacienda letter, the deadline stated in it and, if you have them, the contract for your home in Gibraltar and your latest tax return.
What we do when your tax residence is in dispute
Analysis of your residence
We apply Spanish law and the 2019 Agreement in detail, and identify where your position is weak and where it is solid.
Gathering and organising the evidence
Overnight stays, home, family, work and assets, year by year, with documents that Hacienda can check.
Answering tax notices and reviews
We prepare the reply within the deadline, with the documents requested and those it is wise to add.
Submissions and appeals
If there is already a proposed assessment or penalty, we file submissions and, where appropriate, appeal.
Regularising tax years
When residence in Spain turns out to be unavoidable, we study how to file or correct the returns before the debt grows.
Residence certificates
We advise you on which certificate to ask for, from whom and what value it has in each case.
How the law decides whether you are tax resident in Spain
The Personal Income Tax Act (article 9) sets two tests. Meeting one is enough.
The first is time. You are resident if you stay more than 183 days of the calendar year in Spanish territory. Sporadic absences count as days in Spain, unless you prove your tax residence in another country.
The second is the centre of interests: the main base of your activities or economic interests is in Spain, directly or indirectly. If you keep economic activities in Spain, such as a business, a directorship or investments, or your assets are here, it counts against you.
There is an added presumption. The law presumes, until proven otherwise, that a person is resident in Spain if their spouse (not legally separated) and their dependent minor children live here. If you live in Gibraltar but your family stays in La Línea, Hacienda starts from that presumption and it is for you to rebut it.
For territories regarded as tax havens, the law adds that the tax authority can require proof of a stay there of 183 days in the calendar year. Gibraltar was on that list until June 2026. That is why, until now, the burden of proof has fallen on you.
Tax residence in Gibraltar under the 2019 Agreement
We go through your ties to the territory with you: where you spend most of the year, where your family is and where your assets and your company are. With those facts and the tax authority’s approach, a lawyer explains your obligation to file and which evidence it is wise to gather before deciding anything.
When a person is resident in both Spain and Gibraltar at the same time, the tax agreement that Spain and the United Kingdom signed on Gibraltar applies. It was signed on 4 March 2019, published in the Official State Gazette (BOE) on 13 March 2021 and entered into force on 4 March 2021. Gibraltar has its own tax regime and its own residence rules, and that is why conflicts arise. Article 2 of the Agreement settles them as follows.
A person is considered resident exclusively in Spain if any of these four circumstances applies:
More than 183 overnight stays in Spain during the calendar year. Sporadic absences are added to the place where you sleep most nights.
Spouse or partner and dependent family members with habitual residence in Spain. Spanish tax law applies.
The only permanent home available to you is in Spain.
Two thirds of your net wealth, direct or indirect, is in Spain.
If those tests are not conclusive, the Agreement considers you resident only in Spain, unless you show that you have a permanent home for your exclusive use in Gibraltar and that you stay there more than 183 days.
Two special rules always apply, on top of the above:
- Spanish nationals who moved to Gibraltar after the signing of the Agreement are considered, in all cases, tax resident exclusively in Spain.
- Non-Spanish nationals who prove their new residence in Gibraltar do not lose Spanish tax residence during the year of the change and the following four. This does not apply to anyone who spent less than one full tax year in Spain, nor to registered Gibraltarians who were here for less than four years.
The Agreement adds that Gibraltar’s special regimes, such as the one for high net worth individuals or Category 2, are not enough on their own to prove tax residence there.
Four years after the move: the rule in article 8.2 of the Personal Income Tax Act
Spanish law has its own exit rule. Spanish nationals who prove their new tax residence in a tax haven do not lose their status as personal income tax taxpayers. It applies in the year of the change and the following four. In practice, you are taxed in Spain as if you had not left, for five tax years.
For Gibraltar, that rule has so far operated alongside the Agreement’s, which for Spanish nationals is harsher still: it does not depend on any time limit.
Gibraltar leaves the tax haven list: what changes for your case
Gibraltar leaves the Spanish list of non-cooperative jurisdictions under Order HAC/649/2026, which the BOE published on 27 June 2026. According to the Spanish Tax Agency, it applies to taxes whose tax period begins from 28 June 2026. For personal income tax, the first year affected would be 2027. For periods already open or closed, the previous list still applies.
This does not let off anyone who is already under review:
- Years before 2027 are reviewed with Gibraltar on the list.
- The Agreement’s rule for Spanish nationals who moved after 2019 does not depend on the list.
- The tests of 183 days, centre of interests and the family presumption remain the same.
What we do not yet know is how the tax authority will apply the four-year rule to someone who moved before the removal and has tax years that fall after it. We study it case by case, without taking anything for granted.
Evidence that carries weight in a residence review
There is no single document that settles everything. Hacienda looks at the whole picture, which is why it is best to present the evidence organised by year.
Home in Gibraltar
Rental contract or deed, and utility bills in your name.
Actual presence
Documents showing where you spend the night: expenses, travel, entry records, daily activity.
Family
Where your partner and children live, and which school they attend. It is one of the pieces of evidence that carries the most weight.
Work and economic activity
Contract or payslips from Gibraltar, and whether you keep a business, directorships or income in Spain.
Assets
Properties, accounts and companies, and where they are.
Tax residence certificate
It is issued by the tax authority of each territory. In Spain, a person who is resident here requests it on the Spanish Tax Agency's online office, to present it in another country. The Gibraltar one confirms what the law there says. The Agreement refers to each party's domestic law, including as regards these certificates, and its tie-breaker rules apply in case of conflict: a certificate does not close the argument on its own.
What Hacienda knows about you and Gibraltar
The 2019 Agreement provides for stronger administrative cooperation between the two authorities. Gibraltar must send Spain data on registered workers with a home in Spain, and the parties exchange information that is foreseeably relevant to their taxes. Hacienda can check what you say against what it receives.
In general, the tax authority can review the years that have not expired under the statute of limitations, which are the last four. If what is in dispute is a residence declared in Gibraltar years ago, time runs in your favour, but not automatically: a tax notice or a review action interrupts the limitation period.
When you receive a notification, send it to us in full: we will identify the procedure that has been opened and how much time you have left to reply.
EU–United Kingdom agreement on Gibraltar, situation at 3 November 2026 · It was signed in Brussels on 14 July 2026 and, according to the Spanish Ministry of Foreign Affairs, has applied since 15 July, although the European Parliament still has to ratify it. It deals with the border and the movement of people. In the official documentation we have consulted, there is no change to the tax residence rules of the 2019 Agreement. If this changes, this page will be updated.
How we handle your tax residence defence
Before any engagement, we give you in writing what the work includes, so that you decide well informed.
01
Reading the letter
We identify the procedure, the years affected and the deadline.
02
Timeline
We reconstruct with you where you lived, slept and worked each year.
03
Evidence and strategy
We choose which documents to submit and which test in the law or the Agreement works in your favour.
04
Filings and follow-up
We file the reply or submissions online and follow the file until it is resolved.
“
A typical case in La Línea
A few years ago a person rents a flat in Gibraltar and stops filing in Spain. Their partner and children stay in La Línea, and they spend many weekends at home. One day a communication arrives from the Spanish Tax Agency asking them to explain where they have lived in recent tax years.
We review their situation in the light of article 9 of the Personal Income Tax Act and the 2019 Agreement, reconstruct where they were each year and look at what evidence there is for and against. From there we tell them what defence is reasonable, without promising the outcome.
Also online
If you work shifts or live elsewhere, we work by video call. The letter and documents reach us by WhatsApp, you sign with a digital certificate and we file the documents online.
Common questions about tax residence in Gibraltar
Your situation is not listed here? Send us the letter from Hacienda on WhatsApp and we will tell you which procedure it is and how many days you have left.
How many days do I have to be in Gibraltar to be tax resident there?
More than 183 overnight stays in the calendar year, and not only that: if your spouse and children live in Spain or your only permanent home is here, the 2019 Agreement can consider you resident only in Spain. Days are one of the tests, not the only one.
Is my Gibraltar residence certificate enough?
It proves your residence under Gibraltar law, but it does not stop Spain from considering you resident if you meet its own tests or the Agreement’s tie-breakers. It is one more piece of evidence.
What happens if I am Spanish and move to Gibraltar?
If the move came after the signing of the Agreement, in March 2019, the Agreement considers you in all cases tax resident exclusively in Spain. We review your date and your situation before Hacienda does.
Does anything change because Gibraltar is no longer a tax haven?
For personal income tax, the removal from the list applies to tax periods that begin from 28 June 2026, that is, from 2027. It does not alter the Agreement’s rules or the residence tests. Earlier years are reviewed with the previous list.
How many years can Hacienda review?
In general, the last four years that have not expired. The limitation period can be interrupted by actions of the tax authority, which is why each case needs to be looked at.
Can I ask for a tax residence certificate in Spain?
If you are resident in Spain, yes, on the Spanish Tax Agency’s online office, with Cl@ve or a digital certificate, stating the country with a treaty or «no treaty». If you do not meet the requirements, the office issues a refusal. We advise you on which certificate suits you.
Do you work with people who live in Gibraltar?
Yes. Our office is in La Línea de la Concepción, close to the border, and we can also work with you by video call.
Other services of the firm
Send us your Hacienda letter and we will review it
Send us the notification you received and your Gibraltar papers by WhatsApp, or use the form with a short summary. We will reply with the procedure involved and how to approach your defence.
Office in La Línea de la Concepción. We work with you online or in person.
C/ Cervantes 2, entreplanta, despacho 4 · 11300 La Línea de la Concepción
WhatsApp 652 948 572 · 956 174 981 · pablo@asesoriaserra.es
