€40,000 salary after tax in Spain

On a gross salary of €40,000 in Madrid, you pay €7,204 IRPF and €2,600 social security in 2026, so you take home €30,196 a year: €2,157 in each of 14 payments, or about €2,516 a month on average. Each extra €100 you earn at this level is worth about €61 after tax.

Take-home per payment (14 a year)€2,157
Per year€30,196
Monthly average€2,516
Effective rate24.5%
Marginal rate39%
Employer cost€52,860
  • Take-home 75.5%
  • IRPF 18.0%
  • Social security 6.5%
ItemYearPer paymentMonthly average
Gross salary€40,000.00€2,857.14€3,333.33
Social security−€2,600.00−€185.71−€216.67
IRPF (income tax)−€7,204.32−€514.59−€600.36
Take-home pay€30,195.68€2,156.83€2,516.31

Single employee in Madrid, permanent contract, 2026, 14 payments. Change the region or your situation.

€40,000 after tax in every region

RegionIRPFTake-home per yearPer payment (14)vs Madrid
Ceuta and Melilla€3,098€34,302€2,450+€4,106
Madrid€7,204€30,196€2,157—
La Rioja€7,322€30,078€2,148−€117
Cantabria€7,481€29,919€2,137−€276
Murcia€7,482€29,918€2,137−€278
Canary Islands€7,495€29,905€2,136−€290
Castilla y León€7,561€29,840€2,131−€356
Valencia€7,599€29,801€2,129−€395
Galicia€7,604€29,796€2,128−€400
Asturias€7,676€29,724€2,123−€472
Andalusia€7,681€29,719€2,123−€477
Aragon€7,692€29,708€2,122−€488
Castilla-La Mancha€7,745€29,655€2,118−€541
Extremadura€7,770€29,630€2,116−€566
Balearic Islands€7,828€29,572€2,112−€624
Catalonia€7,936€29,464€2,105−€732

Single employee, permanent contract. The Basque Country and Navarre have their own tax systems.

How the €40,000 is taxed in Madrid

IRPF

Gross salary€40,000.00
Social security−€2,600.00
Net work income€37,400.00
General deduction for other expenses−€2,000.00
Taxable base€35,400.00
State tax (state scale on the base, minus the scale on the €5,550 personal and family minimum)€3,872.50
Regional tax, Madrid (regional scale, minimum €5,957)€3,331.82
IRPF€7,204.32

Social security

6.50% of €40,000€2,600.00
Social security€2,600.00

Permanent contract: common contingencies 4.70%, unemployment 1.55%, training 0.10% and the intergenerational equity mechanism 0.15%. Your employer pays about 32.1% on top (€12,860 a year, assuming office work).

€40,000 after tax depending on your situation

Situation (Madrid)Per yearPer paymentDifference
Single, no children€30,196€2,157€0
Two children (shared with the other parent)€30,671€2,191+€475
Single parent, one child€31,247€2,232+€1,052
Married, joint return, spouse without income€31,148€2,225+€952
Married, joint return, two children€32,098€2,293+€1,902
Beckham Law (24%)€27,800€1,986−€2,396

Children assumed to be 3 or older. In an individual return each parent claims half of the children's allowance.

Salaries near €40,000

Gross salaryTake-home per yearPer paymentEffective rate
€32,000€24,802€1,77222.5%
€35,000€26,827€1,91623.4%
€40,000€30,196€2,15724.5%
€45,000€33,194€2,37126.2%
€50,000€36,190€2,58527.6%

Final yearly IRPF for an employee resident in Spain, before regional deductions that depend on expenses. Methodology and sources.