Spain tax guide

Moving to Spain for work: how your salary is taxed

Spain taxes salaries with IRPF, which has a state half and a regional half, plus 6.50% social security. Where you live changes the bill: on €50,000 the gap between the cheapest and the dearest region is about €903 a year. On €40,000 in Madrid you take home €2,157 in each of 14 payments.

How your salary is taxed

Two things come off a Spanish salary:

  • Social security: 6.50% of your pay on a permanent contract (6.55% on a temporary one), up to a maximum of €61,214 a year. Above that a small solidarity contribution applies. Your employer pays about 30.6% on top.
  • IRPF (Impuesto sobre la Renta de las Personas Físicas), the income tax, worked out on your yearly income.

For an employee, IRPF is calculated like this:

  1. Start from gross pay, subtract social security and a general €2,000 deduction for work expenses.
  2. Lower incomes get an extra work income reduction of up to €7,302.
  3. Apply the state scale and your region's scale to the result separately and add the two together. The regions set their own rates, so the combined top rate ranges from 45.0% to 53.8%.
  4. Subtract the tax on your personal minimum (€5,550 for the state; some regions use more) and on the minimum for each child, so that part of your income is effectively tax-free.

Worked example: €40,000 a year in Madrid

Single employee, permanent contract, 2026

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
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

No children, individual return. See the full €40,000 breakdown.

Take-home pay at common salaries

Gross per yearMadrid, per yearPer payment (×14)Catalonia, per year
€20,000€16,829€1,202€16,652
€25,000€20,077€1,434€19,844
€30,000€23,452€1,675€23,091
€40,000€30,196€2,157€29,464
€50,000€36,190€2,585€35,308
€60,000€42,184€3,013€41,124
€80,000€53,853€3,847€52,494
€100,000€65,227€4,659€63,590

Single employee, permanent contract, standard rules. See every region side by side on the regions page.

Your payslips: 14 payments and withholding

Every employee in Spain has a legal right to two extra payments (pagas extraordinarias) a year. One is paid at Christmas; the timing of the other is set by the collective agreement, and summer is the most common. That is why salaries are quoted as a yearly gross amount paid in 14 parts. A collective agreement can spread the extras across the 12 months instead (prorrateadas). Either way the yearly salary and tax are the same.

Each month your employer withholds IRPF using the national withholding formula, based on the personal details you give your employer on form 145 (it is not sent to the tax agency). That formula does not use the regional scales, so in some regions withholding is slightly too high or too low; the difference is settled in your annual return.

When you become tax resident

You are tax resident in Spain for a calendar year if:

  • you spend more than 183 days in Spain during the year (short trips abroad still count unless you prove residence elsewhere), or
  • the main centre of your business or economic interests is in Spain.

It is presumed that you are resident if your spouse and minor children live in Spain. Unlike many countries, Spain has no split year: you are resident or non-resident for the whole calendar year. If you arrive late in the year and are not resident that year, Spanish salary is taxed under non-resident income tax instead, generally at 24% of the gross, or 19% if you are resident in another EU or EEA country, unless a tax treaty says otherwise.

The Beckham Law

The special regime for people moving to Spain, known as the Beckham Law, lets you pay a flat 24% on employment income up to €600,000 (47% above it) for the year you become resident and the next five. You qualify if you have not been tax resident in Spain in the previous five years and move for a job, a posting, remote work or certain director and startup roles.

In Madrid it beats the normal rules above about €64,500 a year; on €100,000 it is worth +€6,711 a year. Below that, the normal rules with their personal minimums are cheaper.

First steps after you arrive

  1. Get your NIE, the identification number for foreigners that you need for your contract, tax and a bank account. It is only a number: it does not give you the right to live or work in Spain. EU, EEA and Swiss citizens staying more than three months register in person within three months of arriving and receive a registration certificate showing the NIE. Non-EU nationals staying more than six months apply for a TIE card within a month of arriving.
  2. Get a social security number. Your employer must request it if you do not have one, or you can request it yourself online through Import@ss with your NIE.
  3. Fill in form 145 for your employer with your family situation, so the right amount of IRPF is withheld.
  4. Decide on the Beckham Law within six months of your social security registration.
  5. Register on the padrón (the local population register) at your town hall, which you need for many other procedures.

Your tax return

The annual return (declaración de la renta) is filed in spring for the previous year: returns for 2025 were filed from 8 April to 30 June 2026. You do not have to file if your only income is a salary of up to €22,000 from one employer. The limit drops to €15,876 if you had two or more employers and the second and later ones paid you more than €1,500 in total, or if your employer did not have to withhold Spanish tax, which can be the case with a foreign employer. Filing often makes sense anyway, because it settles any difference between withholding and your real tax.

What is changing

No 2027 State Budget has been presented, and a general election is due on 29 November 2026, so the 2026 rules are the latest confirmed. A new state deduction for tenants (10% of rent paid, if your taxable income is below €33,007.20) applies from 8 October 2026 under Royal Decree-law 29/2026, but it still needs to be validated by Parliament and is not in our calculator yet. Some regions have also announced changes for 2027; we will add them once they are approved.

Sources

Frequently asked questions

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

A single employee on €40,000 a year in Madrid takes home €30,196 in 2026: €2,157 in each of 14 payments, or €2,516 a month on average. The figure changes slightly by region.

Which Spanish region has the lowest income tax?

For a €50,000 salary, Madrid leaves the most (€36,190 a year) and Extremadura the least (€35,287) among the common-regime regions, a difference of €903. The Basque Country and Navarre have their own systems.

When is the Beckham Law worth it?

For a single employee in Madrid, the Beckham Law's flat 24% beats the normal rules above about €64,500 a year. On €100,000 it is worth +€6,711 a year. You must apply within six months of your Spanish social security registration.

Do the extra payments mean I earn more?

No. A salary of €42,000 paid in 14 payments is €3,000 a payment, and the same salary spread over 12 is €3,500 a month. The yearly pay and tax are the same; only the timing changes.

This guide explains the general rules for employees and is not personal tax advice. Rules change and individual situations differ, so check with the tax authority or a tax adviser before making decisions. Spotted something out of date? Email [email protected].

More expat tax guides

All guides →
Spanish payslip explainedDevengos and deducciones, the social security lines, your IRPF withholding rate and the extra payments.Ireland tax guideIncome tax, USC and PRSI, emergency tax in your first weeks, tax residence and the credits to claim.Portugal tax guideIRS and social security, the 14 payments, tax residence, and choosing between IFICI and IRS Jovem.Netherlands tax guideBox 1 tax and credits, holiday allowance, the 30% ruling and its 2027 change, and health insurance.Germany tax guideTax classes, wage tax, church tax, social insurance, your first payslips and the tax return.Italy tax guideIRPEF, INPS and local surcharges, the 13th month and TFR, tax residence, the impatriati regime and your first year.France tax guideSocial contributions and CSG, income tax by household, the default withholding rate, the impatriés regime and your first return.UK tax guideIncome tax and National Insurance, emergency tax codes, residence and the split year, and the new foreign income rules.Turkey tax guideSGK, income tax that rises through the year, the minimum wage exemption, gross versus net offers and work permits.Emergency tax in IrelandWhy your first Irish payslip can lose 40% plus 8% USC, how to stop it in a few minutes and how the refund works.30% ruling in 2027Who keeps 30%, who drops to 27%, the higher salary threshold and what it does to your take-home pay.German payslip explainedSteuerbrutto, Lohnsteuer, Soli, the four social insurance lines and the codes at the top, with a worked example.Dutch payslip explainedBruto loon, loonheffing, the loonheffingskorting, holiday allowance reservation and the 30% ruling line.Portuguese payslip explainedVencimento base, meal allowance, holiday and Christmas pay, social security and IRS withholding.Italian payslip explainedImponibile, INPS, IRPEF and the deductions, regional and municipal surcharges, the 13th month, TFR and the conguaglio.UK payslip explainedYour tax code and emergency codes, the National Insurance letter, PAYE, pension and student loan lines, P45 and P60.French payslip explainedBrut, the contribution headings, CSG and CRDS, net avant impôt, the withholding line and the montant net social.