Updated October 2026
If you leave Spain partway through the year, you can usually obtain an IRPF withholding refund for the tax your Spanish employer withheld as if you still lived here. If you spend fewer than 183 days in Spain, you will normally lose Spanish tax residency for that year and your salary for work done abroad is not taxed in Spain, so the tax withheld on it can be recovered; if you remain resident, the exemption for work performed abroad (artículo 7 p) shelters up to €60,100 a year. You have four years to claim.
You have moved abroad for work. You have changed your life, your home, and your routine. However, upon reviewing your accounts, you realize that the Spanish Tax Agency (Agencia Tributaria) still holds a significant part of your money.
This is a common situation: during the year of your move, your Spanish employer withheld taxes as if you lived in Spain for the entire year, failing to apply the tax exemptions to which you are entitled for residing abroad or working outside the country. The result? You have overpaid by thousands of euros.
The Problem of the Departure Year: Why Do You Overpay Taxes?
The year you move from Spain to another country is, fiscally, chaotic for most taxpayers. The Spanish tax system is rigid, and companies, when in doubt, withhold the maximum amount to avoid penalties.
Generally, three situations arise that generate this credit in your favor:
- Excess IRPF Withholding: Your employer withheld a higher percentage than what was applicable to the salaries generated while you were working in Spain, or even when you were already effectively working abroad.
- Non-application of Article 7p: The exemption of up to €60,100 for work performed outside of Spain before (or during) the process of fiscal de-registration was not applied.
- Full refund of the tax withheld: if you cease to be a Spanish tax resident, your salary for work physically performed outside Spain is not taxed in Spain, even if a Spanish company pays it. You can claim back everything withheld on that part.
Key fact 2026: the Spanish Tax Agency’s 2026 Annual Tax Control Plan (Plan Anual de Control Tributario) lists simulated tax residence outside Spain, especially by individuals, among its priorities. Paradoxically, this makes it easier for those who genuinely leave to prove their departure more forcefully and claim their rights.
When Do You Cease to Be a Tax Resident? The Hurdle of Article 9 of the LIRPF
To make a claim, we must first define your status. According to Article 9 of the Personal Income Tax Law (LIRPF), you are a resident if you meet one of these criteria:
- Permanence: you spend more than 183 days of the calendar year in Spain. Sporadic absences count towards those days unless you prove tax residence in another country.
- Center of economic interests: The main nucleus of your activities or economic interests is located in Spain.
- Family presumption: unless you prove otherwise, you are presumed to be resident if your spouse (not legally separated) and your dependent minor children habitually live in Spain. The “center of vital interests” is not part of this rule: it is the tie-breaker used in double taxation treaties.
Is There a Split Year in Spain?
Unlike countries such as Germany or the United Kingdom, Spain does not generally permit a “split year.” You are either a resident for the whole year, or you are not.
- If you spent more than 183 days in Spain before leaving: You are a tax resident for the entire fiscal year. You must file an IRPF return, but you can claim the exemption for work performed abroad in the final months.
- If you spent less than 183 days in Spain: you could be considered a non-resident for tax purposes for the entire year, unless your main economic interests remain in Spain. In this case, the withholdings on your salary under the Personal Income Tax Law (LIRPF), with progressive scales up to 47% or more in some Autonomous Communities, do not apply. You are only taxed in Spain on the work you did here, under Non-Resident Income Tax (Impuesto sobre la Renta de no Residentes, IRNR) at a flat 19% if you live in the EU or EEA and 24% otherwise; salary for work done abroad is not taxed in Spain. The refund is usually substantial.
The Crown Jewel: Exemption for Work Abroad (Art. 7p)
This is the most powerful way to recover money if, during your year of departure, you maintained tax residency in Spain (by having spent more than half the year here) but worked for a company or project abroad. The Supreme Court has also recognized the possibility of applying this exemption to military personnel assigned to operations abroad (judgment 419/2025 of 8 April, on the UNIFIL mission in Lebanon, a doctrine reaffirmed in 2026).
Article 7.p of the LIRPF allows up to €60,100 annually of income received for work effectively performed abroad to be exempt from taxation.
What Are the Requirements for the 7p Exemption in 2026?
To ensure the Tax Agency does not reject your claim, at Martínez-Cardós we verify strict compliance with the doctrine of the Supreme Court:
- Actual Relocation: You must have physically left Spain. Plane tickets and rental contracts are prime evidence.
- Non-resident beneficiary: The work must benefit an entity or permanent establishment located abroad.
- Analogous tax: in the destination country there must be a tax similar in nature to the IRPF (even if it is not actually paid due to an exemption there), and it must not be a tax haven (paraíso fiscal). This requirement is met if there is a Double Taxation Agreement (DTA) with an information exchange clause.
Teleworking from home in Spain for a foreign company does not qualify for this exemption. The “effective performance” of duties requires your physical presence outside the country.
Case Study: Recovering €12,000 After a Move to Dubai
To help you visualize the impact, let’s look at a real case from our firm (data has been anonymized):
- Client: Javier, a Civil Engineer.
- Situation: He moves to Dubai on September 1, 2024.
- Problem: His Spanish company continued to pay his salary from the Madrid headquarters until December, withholding 35% in IRPF, as Javier had spent more than 183 days in Spain that year (he was a tax resident in 2024).
- Action by Martínez-Cardós:
- We analyzed the contract and proved that from September, his work benefited the subsidiary in the UAE.
- We applied Article 7.p to the portion of his salary from September to December (approximately €35,000 in gross income for that period).
- We recalculated the 2024 Income Tax return filed in 2025.
- Result: The €35,000 became exempt. The tax base dropped drastically. The Tax Agency refunded €12,450 plus late payment interest.
How Do You Claim an IRPF Withholding Refund?
It is not enough to ask for it; you must prove it. If your company did not apply the exemption on your payroll (which is common as a precaution), you must file a corrective self-assessment (autoliquidación rectificativa, the general route for IRPF since the 2024 tax year) or file your initial tax return (declaración de la Renta) applying the exemption directly, while being prepared for an almost certain limited verification procedure (comprobación limitada, known as “la paralela”).
If you become a non-resident in your year of departure, the route is different. The IRPF withheld from your salary counts as Non-Resident Income Tax withholding and is regularized on Modelo 210, where you also request the refund of any excess; the Directorate General of Taxes (Dirección General de Tributos) accepts this in binding ruling V2929-20 of 29 September 2020. Where the withholding should never have been made, as with salary for work performed entirely outside Spain, you can also file a request for the refund of undue payments (solicitud de devolución de ingresos indebidos), as the Central Economic-Administrative Court (TEAC) held in resolution 00/01391/2016 of 11 March 2019.
What Documentation Do You Need to Claim?
The burden of proof falls on the taxpayer. We assemble a solid evidentiary file:
- Detailed company certificates (days and assignments).
- Boarding passes and invoices from daily life abroad.
- International assignment contracts.
- Analysis of the applicable Double Taxation Agreement.
Why Entrust Your Claim to Martínez-Cardós?
Martínez-Cardós Abogados is a Madrid law firm specializing in advice for non-residents (tax, inheritance and corporate law), inheritance and tax law, with more than 35 years of experience in these matters.
- Success rate and specialization: As a specialized family firm, we do not treat your file as just another number. We are familiar with the internal criteria of the Tax Management departments of each administration.
- Litigation experts: If the Tax Agency questions your residency or the application of Article 7p (a frequent occurrence), we do not limit ourselves to administrative appeals. We are lawyers specializing in tax procedures.
- Comprehensive strategy: We don’t just recover money from the past. We design your tax strategy for the coming years: is it better for you to be a Non-Resident? When would it be advisable for you to return to Spain?
Conclusion: How to Recover What Was Over-Withheld
The year you leave is when most money stays with the Spanish Tax Agency for no good reason. If you spent fewer than 183 days in Spain, you can usually recover the tax withheld on work done abroad; if you remained resident, the 7p exemption can sharply reduce the bill. Either way, a successful IRPF withholding refund depends on proving your departure and claiming within four years.
Request a departure-year tax review. We check whether the Tax Agency owes you money before your right to claim expires.
Did you move in 2025, or are you planning to move in 2026?
Don’t leave money on the table. At Martínez-Cardós Abogados, we carry out a quick review of your departure-year tax position: we check whether your withholdings were applied correctly and whether you are entitled to the 7p exemption.
Frequently Asked Questions (FAQs)
Can I recover the IRPF withheld from my salary if I am no longer a Spanish tax resident?
Yes. If you are not resident in your year of departure, your salary for work done outside Spain is not taxed in Spain and you can recover everything withheld on that part; what you earned for work done in Spain is taxed at the 19% or 24% Non-Resident Income Tax rate (IRNR). You claim the refund on Modelo 210 or through a request for the refund of undue payments (devolución de ingresos indebidos).
Can I file a claim if my company refuses to correct the withholding certificate?
Yes. The company’s refusal does not prevent you from applying the exemption. At Martínez-Cardós, we prove the reality of the work performed abroad through alternative means of proof accepted by the Supreme Court, without needing the active collaboration of your former employer.
What is the deadline to claim an IRPF withholding refund?
You have 4 years from the day after the deadline for filing the tax return (declaración de la Renta) for that year. For example, for the 2025 tax return, whose filing period ended on 30 June 2026, you have until the end of June 2030. If you claim as a non-resident on Modelo 210, the four years run from the date the withholding was paid in. However, the sooner you file the claim, the easier it is to gather evidence.
If I move in February, am I considered a Non-Resident for the entire year?
Generally, yes, as you will have spent fewer than 183 days in Spain, provided your main economic interests are not in Spain and your family does not stay here. In this case, if IRPF was withheld, we will claim a refund of the improperly withheld IRPF, and you will pay Non-Resident Income Tax (IRNR) only on what you earned for work done in Spain, usually at a much lower rate, allowing you to recover the difference.
Does the 7p exemption apply if I move to a tax-free country like the UAE or Qatar?
Yes, as long as you work there for a non-resident entity. The rule requires either an analogous tax or a Double Taxation Agreement with an information exchange clause. Spain has treaties with that clause with the United Arab Emirates (in force since 2007) and Qatar (since 2018), and neither appears on Spain’s list of non-cooperative jurisdictions.
Does the 7p exemption apply to executives and board members?
Yes, for executive and management duties performed abroad, provided they are proven. The Spanish Supreme Court confirmed this in judgments 790/2022 of 20 June and 1642/2022 of 13 December. If you hold a management position, keep records of every trip.
How long does the Tax Agency take to issue the refund?
A well-founded claim is usually resolved within 6 months, which is the legal maximum. If the Tax Agency has not refunded a tax return filed on time by 31 December, it must pay you late payment interest (4.0625% in 2026) on the amount due. For refunds of undue payments, interest runs from the date of payment.
Article written by Mario Martínez-Cardós Bada, Spanish lawyer specializing in tax and inheritance law.