Two right answers for the same Spanish salary
Ask what tax a Spanish salary pays and there are two correct answers. Your payslip withholds a retención, worked out by the tax agency's own published algorithm on a single national scale that takes no account of where you live. Your annual return then charges the real thing: the state scale plus your autonomous community's own scale. The two are deliberately different, and the gap comes back as a refund or a bill each spring. This calculator shows the annual liability, because that is what the year actually costs, and quotes the retención beside it so you can match your payslip.
The community matters. Across the fifteen communities this calculator models, the top regional rate runs from Madrid's 20.50% to Comunitat Valenciana's 29.50%, with Cataluña at 25.50% in between, all on top of the same state scale, so the same salary can differ by hundreds of euro depending on the address. Four territories, Alava, Bizkaia, Gipuzkoa and Navarra, are outside the system entirely: they levy their own IRPF under a separate agreement, and are not modelled here.
Two mechanisms surprise people. The minimo personal y familiar is not subtracted from your income: the scale is applied to your income, applied again to the minimum, and the second figure taken off the first, so the relief is worth the same to a cleaner and to a chief executive. And your contribution group puts a floor under your social security base, so a graduate in group 1 on a low salary contributes on more than they actually earn. Group 1 has a minimum base of €1,989.30 a month against €1,424.40 for groups 4 to 11, so an engineer in group 1 on €20,000 pays contributions on €23,871.60 and takes home €16,664.68, which is €129.40 less than someone in group 5 on the same pay.
Social security €1,950: 4.70% common contingencies, 1.55% unemployment, 0.10% training and 0.15% for the intergenerational equity mechanism.
After the €2,000 fixed expenses allowance, the base is €26,050. The scales give €2,463 to the state and €2,169.58 to Madrid, each already net of the minimum.
Take-home: €23,417.42 a year, €1,951.45 a month. Your payslip will show a retención of €4,926 at 16.42%, a little more than the €4,632.58 finally due, so expect a refund. Your employer adds €9,195 of its own contributions, 30.65% of pay, so the job costs €39,195.
The minimum grows with the household. Each child adds €2,400 for the first, €2,700 for the second, €4,000 for the third and €4,500 for each one after, and turning 65 and 75 adds €1,150 and a further €1,400. Two children lift the Madrid example's take-home to €24,335.42 without changing the contributions at all.
Low pay is protected twice. The reducción por rendimientos del trabajo takes up to €7,302 off the income of lower earners, in full up to €14,852 and tapering to nothing at €19,747.50. Together with the personal minimum it means that at the 2026 minimum wage of €17,094 a year no IRPF is due, and the only deduction is €1,111.11 of social security, leaving €15,982.89.
The special regime for workers moving to Spain
Someone who moves to Spain for a job can choose to be taxed under article 93 of the IRPF law, the arrangement known as the Beckham law. Employment income is then taxed at 24% up to €600,000 a year and 47% above it, on gross pay as earned. Nothing comes off first: no social security, no reducción, no minimo personal y familiar, and no community scale, so Barcelona and Madrid pay the same. Social security is charged exactly as it would be otherwise. Payroll withholds the same 24%, with no algorithm and no refund to wait for.
The regime covers the year you become resident and the five after it. It is open to people who were not resident in Spain in any of the five previous years and who come to work under a Spanish contract, a posting, a directorship, remote work for a foreign employer or a qualifying business of their own. The choice is made on form 149 within six months of the start date of your Spanish social security registration.
Social security is the same either way: €3,978.94 on the €5,101.20 monthly maximum base, plus €38.23 of solidarity contribution on pay above it.
Under the ordinary rules the IRPF is €23,488.70: €11,569.64 to the state and €11,919.06 to Cataluña, on a base of €73,982.84. Take-home is €52,494.13 a year.
Under the special regime the IRPF is €19,200, 24% of €80,000, and take-home is €56,782.83 a year, €4,731.90 a month, which is €4,288.70 a year more.
The regime does not pay at every salary. A flat 24% of the whole salary costs more than the ordinary scales until those scales, net of the minimum and the reducción, catch up: for a single employee that happens at about €55,000 in Cataluña and €63,900 in Madrid. On €40,000 in Barcelona the regime charges €9,600 against €7,936.25 under the ordinary rules. Above the crossing point the saving grows with pay, because the ordinary scales reach a combined top rate of 45% in Madrid, 50% in Cataluña and 54% in the Comunitat Valenciana. Run both before choosing, because the choice binds for all six years.