€40,000 salary after tax in Madrid (2026)

On a gross salary of €40,000 a year in Madrid, you take home about €30,196 a year, or €2,516 a month, under the 2026 rules for a single person without children.

Rules for 2026, checked 15 October 2026 · single, no children · an estimate, not tax advice

Take-home pay a month
€2,516
After income tax and social contributions
Take-home pay a year
€30,196
After income tax and social contributions
Total deductions
24.5%
of your gross pay goes to tax and contributions
If you earn €100 more
€64
more take-home pay

Your deductions

Gross pay, deductions and net pay, per year and per month
ItemPer yearPer month
Gross pay€40,000€3,333
Income tax (state share)IRPF – cuota estatal−€3,873−€323
Income tax (Community of Madrid share)IRPF – cuota autonómica−€3,332−€278
Pension and sickness insuranceContingencias comunes−€1,880−€157
Unemployment insuranceDesempleo−€620−€52
Vocational trainingFormación profesional−€40−€3
Pension reserve levyMecanismo de Equidad Intergeneracional (MEI)−€60−€5
Total deductions−€9,804−€817
Take-home pay€30,196€2,516

What your employer pays

Employer contributions on top of the gross pay, per year and per month
ContributionPer yearPer month
Pension and sickness insuranceContingencias comunes€9,440€787
Unemployment insuranceDesempleo€2,200€183
Wage guarantee fundFondo de Garantía Salarial (FOGASA)€80€7
Vocational trainingFormación profesional€240€20
Pension reserve levyMecanismo de Equidad Intergeneracional (MEI)€300€25
Work accident insurance (IT sector rate)Accidentes de trabajo y enfermedades profesionales (AT/EP)€600€50
Total cost to the employer€52,860€4,405

About this estimate (2026 rules, checked 15 October 2026)

Assumptions

  • Single, no children, no disability, under 65, resident in Spain all year, no other income
  • Income tax is the yearly tax due on the return, not the monthly withholding on payslips
  • No regional deductions that depend on personal circumstances (age, rent, children, donations…)
  • Some regions offer deductions for people who move there; they are not included
  • Employee on a permanent contract under the general Social Security scheme, working all of the tax year
  • Pay spread evenly over the year (extra payments prorated), at or above the minimum contribution base of the job group
  • Employer cost includes the work-accident premium for programming and IT consultancy (CNAE 62, 1.50%)

Sources

This is an estimate under the 2026 rules, not tax advice. Your actual pay depends on your personal situation (family, other income, deductions you claim); check the official sources listed here or ask a tax adviser.

Income tax and social contributions take 24.5% of your gross pay: €7,204 income tax and €2,600 social and health contributions a year. If you earn €100 more, you take home about €64 more.

Income tax uses the rates of Community of Madrid: each Spanish autonomous community sets part of it, while social security is the same across Spain.

Frequently asked questions

How much is €40,000 after tax in Madrid?

About €30,196 a year, or €2,516 a month, for a single person without children under the 2026 rules. Income tax and social contributions take €9,804 a year in total.

What is the monthly net salary on €40,000 in Madrid?

About €2,516: the yearly net of €30,196 divided by 12.

What is the tax rate on €40,000 in Madrid?

24.5% of the gross salary goes to income tax and social contributions. On a raise, each extra €100 you earn leaves you about €64 more take-home pay (a marginal rate of 35.8%).

How many jobs in Madrid pay €40,000 or more?

Spain Dev Jobs lists 75 jobs in Madrid that state a salary of €40,000 or more. See them all.

Why is take-home pay different in Madrid?

Spain splits income tax between the state and the autonomous communities, and each community sets its own rates, so the same salary leaves a different net in each city. Compare Spanish cities.