← All guides
Taxes

How to calculate IRPF in Spain in 2026: complete guide with examples

Amanda Conrado
Amanda Conrado
2026-10-06 · 7 min read
How to calculate IRPF in Spain in 2026: complete guide with examples

IRPF (Impuesto sobre la Renta de las Personas Físicas) is Spain's personal income tax. If you're moving from another country, a few things will probably work differently from what you're used to: the tax scale is split between the central state and the region (comunidad autónoma) you live in, your Seguridad Social (Social Security) contribution comes off before tax is calculated, and there is a “personal allowance” that doesn't behave like a simple tax-free band.

This guide walks you from gross to net salary, step by step, using the 2026 rules and two worked examples. By the end you should be able to sanity-check a job offer (which in Spain is almost always quoted as bruto anual, gross per year) and know how much will actually land in your bank account.

1. Who pays IRPF

IRPF is paid by anyone who is tax resident in Spain. As a rule, you're resident if you spend more than 183 days a year in the country or if the centre of your economic interests is there. Residents are taxed on their worldwide income: a Spanish salary, rent from a property back home, investments abroad. To avoid double taxation, if your country has a tax treaty with Spain (Brazil is one example), that treaty sets out which country taxes each type of income and how tax paid in the other country is credited.

Non-residents pay a different tax, IRNR (Impuesto sobre la Renta de No Residentes), at a flat rate on Spanish-source income. And if you move to Spain for work, you may qualify for the Beckham Law, a special 24% regime we cover in a separate article.

2. From gross salary to taxable base

For an employee (trabajador por cuenta ajena), the path looks like this:

  • Annual gross salary. This includes the extra payments (pagas extra). Many employers pay 14 instalments (12 + June and December); others spread them across 12. The annual total is the same either way.
  • Minus the employee's Social Security contribution. In 2026 the employee rate is 6.50%: 4.70% for common contingencies, 1.55% for unemployment, 0.10% for vocational training and 0.15% for MEI (the Mecanismo de Equidad Intergeneracional, an intergenerational equity levy that rises slightly every year).
  • Minus €2,000 of “otros gastos” (other expenses). Every employee deducts this flat amount with no receipts required. In some cases (relocating to another municipality to take a job, people with disabilities) the amount can be higher.
  • Minus the employment income reduction, which only applies to low salaries (net employment income below roughly €20,000). Above that, it's zero.

What's left is the base liquidable general (general taxable base). That's the figure the progressive scale is applied to.

!
Contributions are capped. In 2026 the maximum contribution base (base máxima de cotización) is €5,101.20 per month (around €61,200 a year). Anything you earn above that pays no Social Security, only IRPF.

3. The scale: state share + regional share

IRPF is a “ceded” tax (impuesto cedido): half of the scale belongs to the state and the other half is set by each region (Madrid, Catalonia, Andalusia and so on). The state half is the same for everyone:

Taxable baseState scale
Up to €12,4509.5%
€12,450 – 20,20012%
€20,200 – 35,20015%
€35,200 – 60,00018.5%
€60,000 – 300,00022.5%
Over €300,00024.5%

Add the state half to a “reference” regional scale (the one the law applies when a region hasn't legislated its own) and you get the combined scale you'll usually see in online calculators:

Taxable baseCombined rate (reference)
Up to €12,45019%
€12,450 – 20,20024%
€20,200 – 35,20030%
€35,200 – 60,00037%
€60,000 – 300,00045%
Over €300,00047%

In practice, every region has its own scale. Madrid, for example, charges less on its regional share, while Catalonia and the Valencian Community tend to charge more in several brackets. For high earners, the gap between regions can reach a few percentage points. That's why the examples below use the reference scale and should be read as approximate.

4. The personal allowance

In some countries, such as Brazil, the tax-free amount works as a 0% bracket. Spain does it differently: the mínimo personal (personal allowance) of €5,550 per taxpayer (more for over-65s, children and other dependants) is run through the scale itself, and the resulting amount is subtracted from the tax you've calculated. Since the first €5,550 falls in the 19% bracket, the effect is a reduction of about €1,054.50 in almost everyone's tax bill.

Children increase that reduction considerably: the allowance per child (mínimo por descendientes) starts at €2,400 for the first child and grows for each additional one, with an extra amount for children under 3. It's worth checking the current figures on the Agencia Tributaria (Spanish tax agency) website, because some regions apply their own allowances to their half.

5. Example 1: gross salary of €30,000

Single person, no children, reference scale. Approximate figures:

StepAmount
Annual gross€30,000
Seguridad Social (6.50%)− €1,950
Otros gastos− €2,000
Taxable base€26,050
Tax per the scale€5,980
Personal allowance reduction− €1,054
IRPF due≈ €4,926
Annual net≈ €23,124

Here's how the tax per the scale breaks down: 19% on €12,450 (€2,365.50), 24% on the next €7,750 (€1,860) and 30% on the €5,850 above €20,200 (€1,755). The result: roughly €1,927 net per month over 12 payments, or about €1,652 over 14. The effective IRPF rate is around 16% of gross, even though this person's marginal rate is 30%.

6. Example 2: gross salary of €50,000

StepAmount
Annual gross€50,000
Seguridad Social (6.50%)− €3,250
Otros gastos− €2,000
Taxable base€44,750
Tax per the scale€12,259
Personal allowance reduction− €1,054
IRPF due≈ €11,205
Annual net≈ €35,545

This time the base reaches the 37% bracket: €2,365.50 + €1,860 + €4,500 (30% on €15,000) + €3,533.50 (37% on €9,550). Net pay comes to about €2,960 per month over 12 payments. The effective IRPF rate is roughly 22%. In Madrid the figure would be a little better; in Valencia or Barcelona, a little worse.

!
Don't confuse your marginal rate with your effective rate. A pay rise that “moves you up a bracket” never lowers your take-home pay: only the portion above the threshold is taxed at the higher rate.

7. Monthly withholding and the annual return

Every month your employer withholds IRPF (the retención), calculated so that by year-end the amount withheld is close to the tax you actually owe. The percentage appears on your nómina (payslip) and changes if your circumstances change, so it's worth telling your employer about the birth of a child, a move to another region or temporary contracts, using form modelo 145.

The annual tax return (declaración de la renta, modelo 100) is filed between April and the end of June of the following year, usually online, starting from the draft the Agencia Tributaria prepares for you. If you have a single employer and earn up to €22,000 a year, you're usually exempt from filing, but it often pays to file anyway to get a refund. In your first year in Spain, though, filing is almost always advisable, because that's where you report income from abroad.

8. What this calculation leaves out

  • Regional deductions (rent for young people, nursery fees, donations, etc.).
  • Pension plan contributions, which reduce the taxable base.
  • Savings income (interest, dividends, capital gains), which has its own scale from 19% to 30%.
  • Joint filing (tributación conjunta), which sometimes pays off for couples with a single income.

To run the numbers for your own situation, use the IRPF calculator on this site: enter your annual gross salary and see contributions, tax and net pay bracket by bracket.

Please note: the figures in this article are educational estimates based on the rules known for 2026. Regional rates and deductions change often; for important decisions, check the official Agencia Tributaria website (sede.agenciatributaria.gob.es) or speak to an asesor fiscal (tax adviser).

Sources and legislation

Informational content, checked against these sources. Not a substitute for professional advice.

Palavras-chave

IRPFIRPF 2026Spain income taxSpanish income tax 2026Spain tax brackets 2026Spain net salary calculatorgross to net salary SpainSeguridad Socialmínimo personalretencióndeclaración de la renta