Taxes in Spain
for expats
Everything you need to know about IRPF, the Beckham Law, double taxation treaties, Article 7p and your obligations as a foreign resident in Spain.
Tax residence in Spain
You are a tax resident in Spain if you spend more than 183 days per year in the country, or if your main economic interests are based here. Sporadic absences count towards the 183 days unless you prove tax residence in another country, and you are presumed resident (unless you prove otherwise) if your spouse, not legally separated, and dependent minor children live habitually in Spain. Once you are a resident, you pay IRPF on your worldwide income.
The year of arrival is particularly complex — you may be resident in two countries simultaneously for part of the year. Always consult a specialist for your arrival year.
Tax residence is a question of fact (days in Spain, economic interests, family) — it does not change automatically with your visa, and no form makes you resident by itself. You should, however, keep your tax address and residence status up to date with the AEAT (Modelo 030, generally within three months of a change of tax address) and keep evidence of the date you became resident, which helps when applying a double taxation treaty.
IRPF — Income tax brackets 2026
Spain operates a progressive tax system. The rates shown are the combined rates (state + regional) for the Community of Madrid, which has among the lowest regional rates in Spain. The bands follow the merged state and regional thresholds and apply to the general taxable base.
| Taxable base | Rate | Visual | Tax in this bracket |
|---|---|---|---|
| Up to €12,450 | 18% | €2,241 | |
| €12,450 – €13,362 | 20.5% | €187 | |
| €13,362 – €19,005 | 22.7% | €1,281 | |
| €19,005 – €20,200 | 24.8% | €296 | |
| €20,200 – €35,200 | 27.8% | €4,170 | |
| €35,200 – €35,426 | 31.3% | €71 | |
| €35,426 – €57,320 | 35.9% | €7,860 | |
| €57,320 – €60,000 | 39% | €1,045 | |
| €60,000 – €300,000 | 43% | Up to €103,200 | |
| Over €300,000 | 45% | 45% on the excess |
The brackets above combine the 2026 state scale (9.5%–24.5%) with the Community of Madrid's regional scale (8.5%–20.5%). Most other regions, including Catalonia, apply higher regional rates, so Madrid is generally one of the most tax-efficient regions for higher incomes. Madrid has announced a further cut to its regional rates planned from 2027.
IRPF Calculator — Estimate your net salary
This calculator gives you an estimate of your net income in Spain. It uses the 2026 brackets for the Community of Madrid and includes employee Social Security contributions.
Net salary calculator (Community of Madrid)
2026 bracketsCalibrated against verified professional payroll calculations for the Community of Madrid (2026). Figures between calibration points are interpolated and figures well outside typical salary ranges are extrapolated, so treat this as a close estimate, not a legal document. Always confirm your exact figure with a gestor or tax adviser.
The Beckham Law — Special expat tax regime
Officially known as the Special Regime for Workers Relocated to Spanish Territory, it allows qualifying expats to pay a flat rate of 24% on Spanish income up to €600,000, instead of the progressive rates (up to 45% in Madrid and higher in some other regions). Income above €600,000 is taxed at 47%, and savings income (dividends, interest, gains) is taxed separately at 19%–30%.
You may qualify if: you have not been a tax resident in Spain in the previous 5 tax years · you move to Spain because of a job with a Spanish employer, an employer-ordered transfer, remote work for a foreign employer, becoming a company director, or certain qualifying entrepreneurial or highly qualified start-up activities · you do not obtain income through a permanent establishment in Spain · you apply (Modelo 149) within 6 months of the start date of your activity in your Spanish Social Security registration. Your spouse and children under 25 may also opt in under certain conditions. The regime covers the tax year in which you become resident plus the 5 following tax years (6 in total).
For a single employee earning €80,000 in Madrid, the Beckham Law saves roughly €3,000 per year compared to standard IRPF (about €19,200 vs about €22,100). Below roughly €60,000–€65,000 there is little or no saving, and it is smaller if you have a spouse or children (the regime ignores family allowances). The saving grows with salary: roughly €6,500–€7,000 at €100,000 and around €16,000 at €150,000.
The application (Modelo 149) must be submitted within 6 months of the start date of your activity shown in your Spanish Social Security registration (or in the documents that keep you in your home country's system). Missing this deadline means losing the benefit for your entire stay. Do not leave it until later.
Double taxation treaties (CDI)
Spain has signed Double Taxation Agreements (CDI) with over 90 countries. They determine which country has the right to tax each type of income and how to avoid paying tax twice on the same income.
Countries with a CDI with Spain — click to read the full treaty text in the BOE:
Article 7p — Exemption for work abroad
If you are tax resident in Spain and travel abroad to work for a non-resident company or a permanent establishment abroad (your employer itself can be Spanish), the income earned during those days may be exempt from IRPF up to €60,100 per year. This is one of the most valuable and underused tax benefits available to Spain-based professionals who travel internationally.
1. You must be a tax resident in Spain (183-day rule). This exemption is not compatible with the Beckham Law.
2. The work must be performed physically outside Spain — remote work from Spain does not count. You must actually travel.
3. The territory where you work must apply a tax identical or analogous to IRPF (deemed met if it has a CDI with Spain with an information-exchange clause) — non-cooperative jurisdictions (tax havens) are excluded.
4. The work must be done for a company or entity not resident in Spain, or a permanent establishment abroad — for services within a group, the foreign entity must actually benefit from them.
You earn €80,000/year. You travel abroad for work 60 days per year. The exempt portion = (60/365) × €80,000 = €13,150 exempt from IRPF, saving approximately €5,650 at the 43% combined marginal rate that applies in Madrid at that income — up to the annual cap of €60,100.
| Aspect | Detail |
|---|---|
| Maximum annual exemption | €60,100/year — income above this is taxed normally |
| Compatible with Beckham Law | No — they are mutually exclusive |
| Day calculation | Days actually worked abroad, normally including travel days |
| Documentation required | Boarding passes, hotel receipts, expense reports and employer certificate |
| Where to declare | Work-income section of the annual Renta declaration (Modelo 100) — check the exact box in the current-year AEAT instructions |
| Audit risk | Medium-high — AEAT scrutinises 7p claims closely. Documentation must be solid. |
| Who benefits most | Executives, consultants and engineers who travel frequently under a Spanish employment contract |
If you travel abroad for work more than 15-20 days per year under a Spanish employment contract, discuss Article 7p with your tax adviser. The potential saving is very significant and the exemption is completely legal — it is simply underused because many employees are unaware of it.
Annual tax return (Renta)
As a tax resident in Spain, you must file an annual tax return (Declaración de la Renta) with the AEAT. The filing period typically runs from April to June for the previous year's income.
You are generally required to file if you earn more than €22,000 from a single payer, more than €15,876 from multiple payers (if the second and subsequent payers together exceed €1,500), among other cases. Holding assets abroad does not by itself oblige you to file the Renta, but if your assets abroad exceed €50,000 in a category (accounts, securities, real estate) you must file the separate informative return Modelo 720 between 1 January and 31 March (crypto-assets held abroad go on Modelo 721). Taxpayers under the Beckham regime are not required to file Modelo 720.
Your arrival year is complex — you may need to file in two countries. The AEAT provides Renta Web to file online. Many expats use a gestor (tax adviser) for their first year. Estimated cost: €150–€400.