Skip to main content
Glama

Spain Salary and Income Tax Calculator

Net salary in Spain (2026)

net_salary
Read-onlyIdempotent

Take-home pay for an employee in Spain from a gross yearly salary in EUR, with 2026 rules: every tax and contribution itemised with its local name, the effective and marginal rate, employer cost and the step-by-step workings. Covers: State + regional IRPF for Madrid, Catalonia, Andalusia and Valencia; Personal, age and children minimums as each region sets them; Joint return reduction; Beckham regime for inbound workers; Social security with the solidarity contribution above the maximum base.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "gross_annual": "<gross_annual>"
    },
    "name": "net_salary"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge; changes the result here (young-worker reliefs, senior slabs, surcharges). Default 35.
jointNoJoint return with spouse (no income of their own) Default false.
regionNoRegion. Basque Country and Navarre run their own tax systems and are not covered.: madrid = Madrid; catalonia = Catalonia (Barcelona); andalusia = Andalusia (Málaga, Seville); valencia = Valencia (Alicante). Default madrid.
under3NoChildren under 3. Counted within the number of children above. (children). Default 0.
beckhamNoBeckham regime (inbound worker). Flat 24% on Spanish employment income up to €600,000 for six years. Default false.
marriedNoMarried or registered partner. Default false.
childrenNoNumber of dependent children. Default 0.
contractNoContract: permanent = Permanent; temporary = Fixed-term (temporary). Default permanent.
tax_yearNoTax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.
parents65NoParents or grandparents over 65 living with you (people). Default 0.
parents75NoOf those, over 75 (people). Default 0.
disabilityNoYour recognised disability: none = None; some = 33% to 64%; high = 65% or more. Default none.
flex_mealsNoMeal vouchers or card (a year). Part of your gross pay received this way. Tax free up to €11 per working day. (€ / year). Default 0.
flex_healthNoHealth insurance paid from pay (a year). Tax free up to €500 for each person insured. (€ / year). Default 0.
pension_pctNoVoluntary employee pension contribution through payroll, % of salary. Default 0.
bonus_annualNoYearly bonus in EUR. Default 0.
gross_annualYesGross yearly salary in EUR, without bonus
spouse_incomeNoPartner's gross yearly income in EUR, for joint taxation and spouse allowances. Default 0.
flex_transportNoTransport card (a year). Tax free up to €1,500. (€ / year). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / contract
      Added value: +{
      +  "description": "Contract: permanent = Permanent; temporary = Fixed-term (temporary). Default permanent.",
      +  "enum": [
      +    "permanent",
      +    "temporary"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / disability
      Added value: +{
      +  "description": "Your recognised disability: none = None; some = 33% to 64%; high = 65% or more. Default none.",
      +  "enum": [
      +    "none",
      +    "some",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / flex_health
      Added value: +{
      +  "description": "Health insurance paid from pay (a year). Tax free up to €500 for each person insured. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / flex_meals
      Added value: +{
      +  "description": "Meal vouchers or card (a year). Part of your gross pay received this way. Tax free up to €11 per working day. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / flex_transport
      Added value: +{
      +  "description": "Transport card (a year). Tax free up to €1,500. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / parents65
      Added value: +{
      +  "description": "Parents or grandparents over 65 living with you (people). Default 0.",
      +  "maximum": 4,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / parents75
      Added value: +{
      +  "description": "Of those, over 75 (people). Default 0.",
      +  "maximum": 4,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / pension_pct
      Added value: +{
      +  "description": "Voluntary employee pension contribution through payroll, % of salary. Default 0.",
      +  "maximum": 50,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / under3
      Added value: +{
      +  "description": "Children under 3. Counted within the number of children above. (children). Default 0.",
      +  "maximum": 6,
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tax_year
      Added value: +{
      +  "description": "Tax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.",
      +  "enum": [
      +    2026,
      +    2025
      +  ],
      +  "type": "integer"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare a safe, read-only, idempotent calculation, so the description's job is to add modelling detail, which it does: itemised tax with local names, effective and marginal rate, employer cost, step-by-step workings, and the explicit exclusion of Basque Country and Navarre. It does not mention performance, precision/rounding, or validation behaviour, but for a pure calculator those gaps are minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core computation before the coverage list, and every clause carries information. The trailing enumeration is dense but purposeful, and no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 19 parameters and no output schema, the description compensates well by enumerating what the result contains (itemised items, effective/marginal rate, employer cost, workings) and by bounding regional coverage. What it omits — required-input guidance for gross_annual, handling of bonus vs flex pay interactions, or output shape/units — keeps it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3 and the description adds only scope-level context (regional IRPF minimums, joint return reduction, Beckham regime, solidarity contribution above the maximum base) rather than per-parameter meaning. It confirms which factors actually move the result but gives no new syntax or interpretation beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: computing take-home pay from a gross yearly EUR salary under 2026 Spanish rules, including which four regions are covered. That makes the gross-to-net direction clear enough to distinguish it from siblings like gross_for_target_net, but no sibling is named so the inversion is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: use this when you have a gross salary and want the net. There is no explicit 'use X instead when...' routing to gross_for_target_net, compare_with_netherlands, or employer_cost, though the projected outputs (employer cost, itemised breakdown) suggest overlap an agent must resolve on its own.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources