What the law says
The figures below are the 2026 rates as the calculator models them, for a full-year employee in the Madrid region. In Spain the IRPF has a state part and a regional part, and each region sets its own scale for the regional half, so the Madrid figures here do not apply to Catalonia, Andalusia or the Valencian Community. Residents are taxed on worldwide income. As a rule you count as resident if you spend more than 183 days in Spain in a calendar year or if your main base of activity or interests is there.
State and Madrid IRPF scales
Both scales are applied to the same taxable base. The base is your salary minus social security, a flat €2,000 of other expenses, and a reduction for work income that applies at low incomes. Each scale is then reduced by the tax on the personal and family minimum, which the calculator sets at €5,550 for the state and €5,956.65 for Madrid, and which rises with each child.
| Taxable base up to | State rate | Madrid rate |
| €12,450 | 9.5% | 8.5% (to €13,362.22) |
| €20,200 | 12% | 10.7% (to €19,004.63) |
| €35,200 | 15% | 12.8% (to €35,425.68) |
| €60,000 | 18.5% | 17.4% (to €57,320.40) |
| €300,000 | 22.5% | 20.5% above €57,320.40 |
| Above €300,000 | 24.5% | 20.5% |
Social security
The calculator charges the employee share at 6.50% of pay, or 6.55% on a temporary contract. It applies up to a monthly contribution base cap of €5,101.20, so earnings above about €61,214 a year carry no extra social security. Employer contributions are paid on top and are not part of your take-home pay.
The Beckham law
The special regime for workers who move to Spain (known as the Beckham law) lets an eligible newcomer be taxed on Spanish employment income at a flat 24% up to €600,000 and 47% above, instead of the progressive state and regional scales. The calculator applies this to gross salary and adds social security separately. The regime is generally for people who were not Spanish tax residents in the years before they arrived, and it runs for the year you arrive and the following years for a limited period. There is an application process with a deadline after you start work, so check the conditions with the tax agency or an adviser. The calculator does not test eligibility.
Annual return and monthly withholding
Your employer withholds IRPF from every payslip. After the year ends you file an annual return (declaración de la renta), which usually runs from spring to the end of June, and any difference is refunded or paid. The calculator shows the tax for a full year at one salary.
How to pay less tax, legally
These are mainstream, legal ways to reduce Spanish tax. Which ones apply depends on your residence and contract.
Check eligibility for the Beckham law before or just after you move
Suits: people moving to Spain for work who were not tax resident before, especially at higher salaries where the flat 24% beats the resident scale.
Caveat: it has conditions and an application deadline, it is temporary, and it can cost more than the normal scale at low incomes. The calculator does not test eligibility.
Contribute to a pension plan
Suits: residents in the higher bands. Contributions to a pension plan (plan de pensiones) can reduce the taxable base up to an annual limit, so check the current limit on the AEAT site.
Caveat: the money is generally tied up until retirement, with limited early-access cases, and withdrawals are taxed as income.
Use flexible compensation through your employer
Suits: employees whose company offers a flexible remuneration plan, for example for health insurance, meal vouchers or childcare. Some benefits paid this way are exempt up to limits.
Caveat: exemptions and limits change, and some benefits reduce your cash pay. Ask your payroll team for the current rules.
Declare your family situation correctly
Suits: anyone with children or dependants. The personal and family minimum lowers IRPF, as the second example shows, and you can claim regional deductions when you file the annual return.
Caveat: the rules for who claims a child when parents file separately depend on your circumstances, so check the details.
Frequently asked questions
How much tax do I pay on €45,000 in Spain?
A resident employee in Madrid pays about €2,925 in social security and about €8,881 in IRPF, so about €11,806 in total, and keeps about €33,194. Other regions have different regional scales. Try your own figure in the Global Income Tax Calculator.
What is the Beckham law and who qualifies?
It is a special regime for people who move to Spain to work. Instead of the progressive state and regional scales, eligible employment income is taxed at a flat 24% up to €600,000 and 47% above. The calculator models that rate on gross salary. The conditions cover your earlier residence and the reason you moved, and you must apply within a deadline, so read the details on the AEAT site.
Why are there two IRPF amounts, state and regional?
Spanish IRPF is split in two halves, a state share and a regional share. Both are calculated on the same base and each uses its own scale. Madrid's scale is lower than the state's in most bands, which is why Madrid is often cheaper than regions that set higher rates. The calculator shows both as separate lines.
Why is my salary paid in 14 payments?
Many Spanish contracts state the annual salary and split it into 14 payments: twelve monthly payments plus two extra ones (pagas extras), often in summer and December. Others spread the same annual figure over 12. The annual tax does not depend on which one you have, only the size of each month's payslip. The calculator works on the annual gross, so divide by 12 or 14 to match your contract.
Is there a cap on social security in Spain?
Yes. Contributions are calculated on a base that has a monthly cap, which the calculator sets at €5,101.20 a month. Earnings above that carry no extra employee social security, so the effective rate falls at high salaries. In the €90,000 Beckham example, social security is €3,979, which is below 6.5% of gross.
Do I still file a tax return if my employer withholds IRPF?
Often yes. Withholding is only an estimate, and the annual return reconciles it with the tax you really owe, applying your family situation and any deductions. Whether you are required to file depends on your income and sources, so check the current rules. The calculator shows the final annual bill.