Not tax advice. Computation tools only. Have a professional check your work before filing.
openaccountants/skills/spain-payroll.md

Use this skill with your AI agent

View on GitHub

Paste this skill into your AI agent's context, or save the file to your project. Works with any AI agent that reads markdown.

spain-payroll.md351 lines15.5 KB
v10Spain
Not yet verified by an accountantContact accountant
1---
2name: spain-payroll
3description: >
4 Use this skill whenever asked about Spanish payroll processing for employees. Trigger on phrases like "Spanish payroll", "nómina España", "IRPF retención", "retenciones nómina", "Seguridad Social cotización", "contingencias comunes", "base de cotización", "Salario Mínimo Interprofesional", "SMI", "paga extra", "tredicesima España", "Agencia Tributaria retención", "modelo 111", "modelo 190", "Sistema RED", "Siltra", "TC1 TC2", "RLC RNT", "MEI cotización", "cuota solidaridad", "bruto neto España", "despido indemnización", "FOGASA", or any question about computing employee pay, income tax withholding, or social security contributions in Spain. This skill covers IRPF withholding, Seguridad Social contributions (employee and employer), mandatory benefits, nómina (payslip) requirements, filing obligations, and employer cost analysis. ALWAYS read this skill before processing any Spanish employee payroll.
5version: 1.0
6jurisdiction: ES
7tax_year: 2026
8category: payroll
9depends_on:
10 - payroll-workflow-base
11---
12 
13# Spain Payroll Skill v1.0
14 
15---
16 
17## Section 1 -- Quick Reference
18 
19| Field | Value |
20|---|---|
21| Country | Spain (Reino de España) |
22| Currency | EUR only |
23| Standard pay frequency | Monthly (mensual) -- paid in 12 + 2 pagas extraordinarias (14 payments typical) |
24| Tax year | Calendar year (1 January -- 31 December) |
25| Income tax withholding | IRPF retención (progressive, computed via AEAT algorithm) |
26| Social insurance authority | Tesorería General de la Seguridad Social (TGSS) |
27| Tax authority | Agencia Estatal de Administración Tributaria (AEAT) |
28| Key legislation | Ley 35/2006 (LIRPF); Real Decreto Legislativo 8/2015 (LGSS); Real Decreto 126/2026 (SMI 2026); Orden PJC/297/2026 (cotización 2026); Estatuto de los Trabajadores (RDL 2/2015) |
29| Maximum contribution base (2026) | EUR 5,101.20/month |
30| AEAT withholding algorithm | ALGORITMO_2026 (published by Sede AEAT) |
31| Validated by | Pending -- requires sign-off by a Spanish asesor fiscal / gestor |
32| Skill version | 1.0 |
33 
34---
35 
36## Section 2 -- Income Tax Withholding (IRPF Retención)
37 
38The employer computes the IRPF withholding rate using the official AEAT algorithm (ALGORITMO_2026). The rate is personalised based on the employee's annual gross remuneration, family situation, and deductions.
39 
40### IRPF Tax Brackets (2026 -- State + General Autonomous Community)
41 
42| Taxable Income (EUR, annual) | Combined Rate (State + Regional) |
43|---|---|
44| 0 -- 12,450 | 19% |
45| 12,451 -- 20,200 | 24% |
46| 20,201 -- 35,200 | 30% |
47| 35,201 -- 60,000 | 37% |
48| 60,001 -- 300,000 | 45% |
49| 300,001+ | 47% |
50 
51Rates shown are state + general regional tariff. Autonomous Communities (Comunidades Autónomas) may adjust their half of the rate, creating variations.
52 
53### Key IRPF Parameters
54 
55| Parameter | Detail |
56|---|---|
57| Minimum personal allowance (mínimo del contribuyente) | EUR 5,550 per taxpayer |
58| Per-child allowance | EUR 2,400 (1st), EUR 2,700 (2nd), EUR 4,000 (3rd), EUR 4,500 (4th+) |
59| Reduction for employment income (rendimientos del trabajo) | Progressive reduction for income below ~EUR 19,747 |
60| Minimum withholding rate | 2% (general); 0% for SMI-level earnings |
61| Special contracts minimum | 6% (relaciones laborales especiales de carácter dependiente) |
62 
63### SMI and IRPF Exemption
64 
65Employees earning the SMI (EUR 17,094/year gross in 14 payments) are generally exempt from IRPF withholding, as the algorithm produces a 0% rate after applying the reducción por rendimientos del trabajo and personal minimum.
66 
67---
68 
69## Section 3 -- Social Security -- Employee Deductions (2026)
70 
71### Contribution Rates (Régimen General -- Employee Share)
72 
73| Concept | Employee Rate | Base |
74|---|---|---|
75| Contingencias comunes | 4.70% | Base de cotización (min EUR 1,424.40 -- max EUR 5,101.20/month) |
76| Desempleo (unemployment) -- indefinido | 1.55% | Base de cotización |
77| Desempleo -- temporal (fixed-term) | 1.60% | Base de cotización |
78| Formación profesional | 0.10% | Base de cotización |
79| MEI (Mecanismo de Equidad Intergeneracional) | 0.15% | Base de cotización |
80| **Total employee (indefinido)** | **6.50%** | |
81| **Total employee (temporal)** | **6.55%** | |
82 
83### Cotización Adicional de Solidaridad (2026)
84 
85For employees earning above the maximum base (EUR 5,101.20/month), a solidarity surcharge applies to the excess:
86 
87| Tier | Excess Range | Total Rate | Employee Share | Employer Share |
88|---|---|---|---|---|
89| 1st | EUR 5,101.21 -- EUR 5,611.32 | 1.15% | 0.19% | 0.96% |
90| 2nd | EUR 5,611.33 -- EUR 7,651.80 | 1.25% | 0.21% | 1.04% |
91| 3rd | Above EUR 7,651.80 | 1.46% | 0.24% | 1.22% |
92 
93These rates increase annually until 2045.
94 
95### Bases de Cotización (2026)
96 
97| Group | Category | Minimum (EUR/month) | Maximum (EUR/month) |
98|---|---|---|---|
99| 1 | Ingenieros y Licenciados | 1,989.30 | 5,101.20 |
100| 2 | Ingenieros Técnicos, Peritos | 1,649.70 | 5,101.20 |
101| 3 | Jefes Administrativos y de Taller | 1,435.20 | 5,101.20 |
102| 4--7 | All other categories | 1,424.40 | 5,101.20 |
103 
104The minimum base for groups 4--7 equals the SMI + 1/6 (prorrata pagas extras).
105 
106---
107 
108## Section 4 -- Social Security -- Employer Contributions (2026)
109 
110### Contribution Rates (Régimen General -- Employer Share)
111 
112| Concept | Employer Rate | Base |
113|---|---|---|
114| Contingencias comunes | 23.60% | Base de cotización |
115| Desempleo -- indefinido | 5.50% | Base de cotización |
116| Desempleo -- temporal | 6.70% | Base de cotización |
117| FOGASA (Fondo de Garantía Salarial) | 0.20% | Base de cotización |
118| Formación profesional | 0.60% | Base de cotización |
119| MEI | 0.75% | Base de cotización |
120| Contingencias profesionales (AT/EP) | Variable (0.90% -- 7.15%+) | Base de cotización |
121| **Total employer (indefinido, excluding AT/EP)** | **~30.65%** | |
122 
123### Typical Total Employer Cost (including AT/EP)
124 
125| Scenario | Approximate Employer Rate |
126|---|---|
127| Office worker (AT/EP ~1.50%) | ~32.15% |
128| Construction worker (AT/EP ~6.70%) | ~37.35% |
129| Retail employee (AT/EP ~1.00%) | ~31.65% |
130 
131### Solidarity Surcharge -- Employer Share (2026)
132 
133See Section 3 above. The employer bears 83.39% of each solidarity tier.
134 
135---
136 
137## Section 5 -- Minimum Wage and Overtime
138 
139### Salario Mínimo Interprofesional (SMI 2026)
140 
141| Item | Value |
142|---|---|
143| Monthly (14 payments) | EUR 1,221 |
144| Monthly (12 payments, prorrateado) | EUR 1,424.50 |
145| Daily | EUR 40.70 |
146| Annual gross | EUR 17,094 |
147| Effective | 1 January -- 31 December 2026 |
148| Change vs 2025 | +3.1% (+EUR 37/month) |
149| Legal basis | Real Decreto 126/2026, 18 February |
150 
151The SMI refers to cash remuneration only -- in-kind benefits cannot reduce it.
152 
153### Working Hours and Overtime
154 
155| Rule | Detail |
156|---|---|
157| Maximum annual hours | 1,826.27 hours (40 hours/week equivalent, per Estatuto de los Trabajadores Art. 34) |
158| Maximum weekly hours | 40 hours average over annual period |
159| Maximum daily hours | 9 hours (unless collective agreement provides otherwise; minimum 12 hours between shifts) |
160| Overtime limit | 80 hours per year (Art. 35.2 ET); excludes overtime compensated with rest |
161| Overtime surcharge | Minimum: same hourly rate (no mandatory premium unless by collective agreement) |
162| Typical collective agreement surcharges | 25%--75% depending on day/time; night: 25%+ |
163| Compensatory rest | Employer may compensate overtime with equivalent rest within 4 months instead of payment |
164 
165---
166 
167## Section 6 -- Mandatory Benefits
168 
169### Pagas Extraordinarias (Extra Payments)
170 
171| Entitlement | Detail |
172|---|---|
173| Number | 2 per year (minimum per Art. 31 ET) |
174| Amount | Typically 1 month's base salary each (per CCNL) |
175| Timing | Usually June and December; may be prorated into 12 monthly payments by agreement |
176| Subject to SS and IRPF | Yes -- included in base de cotización when prorated; separate calculation when paid as lump sum |
177 
178### Vacaciones (Annual Leave)
179 
180| Entitlement | Detail |
181|---|---|
182| Statutory minimum | 30 calendar days per year (Art. 38 ET) = approximately 22 working days |
183| Non-substitutable | Cannot be replaced with monetary compensation except on termination |
184| Carry-over | Must be taken within the calendar year (limited flexibility) |
185| Public holidays | 14 days per year (national + regional + local) |
186 
187### Incapacidad Temporal (Sick Leave)
188 
189| Period | Who Pays | Rate |
190|---|---|---|
191| Days 1--3 | Employer (if collective agreement provides; otherwise unpaid) | Per agreement |
192| Days 4--15 | Employer | 60% of base reguladora |
193| Days 16--20 | INSS (via employer advance) | 60% of base reguladora |
194| Day 21 onward | INSS (via employer advance) | 75% of base reguladora |
195| Maximum | 365 days + 180-day extension | |
196 
197Many collective agreements improve these percentages (often 100% from day 1).
198 
199### Maternidad (Maternity Leave)
200 
201| Entitlement | Detail |
202|---|---|
203| Duration | 16 weeks (6 mandatory post-birth; remaining flexible) |
204| Pay | 100% of base reguladora from INSS |
205| Multiple births | +2 weeks per additional child |
206 
207### Paternidad (Paternity Leave)
208 
209| Entitlement | Detail |
210|---|---|
211| Duration | 16 weeks (equal to maternity since 2021) |
212| Pay | 100% of base reguladora from INSS |
213| Mandatory | First 6 weeks must be taken immediately and full-time |
214 
215### Severance (Indemnización por Despido)
216 
217| Type | Compensation |
218|---|---|
219| Despido improcedente (unfair dismissal) | 33 days per year worked, max 24 months' salary |
220| Despido objetivo (objective dismissal) | 20 days per year worked, max 12 months' salary |
221| FOGASA | Guarantees payment of unpaid wages and severance if employer is insolvent |
222 
223---
224 
225## Section 7 -- Payslip Requirements
226 
227The nómina must comply with the official model established by Orden ESS/2098/2014 (updated periodically).
228 
229### Mandatory Payslip Fields
230 
231| Section | Required Fields |
232|---|---|
233| Header | Employer: name, CIF, domicilio, código de cuenta de cotización (CCC), sector CNAE |
234| Employee | Name, NIF/NIE, número de afiliación SS, grupo de cotización, categoría profesional, fecha de antigüedad |
235| Period | Month and year, total days worked |
236| Devengos (earnings) | Percepciones salariales: salario base, complementos salariales, horas extraordinarias, gratificaciones extraordinarias, salario en especie |
237| | Percepciones no salariales: indemnizaciones, prestaciones SS, dietas/gastos de viaje |
238| Deducciones (deductions) | IRPF withholding (amount and rate) |
239| | Contingencias comunes (4.70%) |
240| | Desempleo (1.55% or 1.60%) |
241| | Formación profesional (0.10%) |
242| | MEI (0.15%) |
243| | Other deductions (anticipos, préstamos, etc.) |
244| Totals | Total devengado (gross), total a deducir, líquido total a percibir (net pay) |
245| Employer cost | Base de cotización contingencias comunes, base de cotización contingencias profesionales, employer contribution breakdown |
246| Footer | Date, employer signature (or electronic), employee signature |
247 
248### Delivery
249 
250- Paper or electronic format
251- Employee must receive before or on payment date
252- Employer must retain copies for 4 years minimum
253 
254---
255 
256## Section 8 -- Filing Obligations
257 
258### Monthly
259 
260| Obligation | Deadline | Method |
261|---|---|---|
262| Cotizaciones SS (RLC -- Recibo de Liquidación de Cotizaciones) | Last day of the following month | Sistema RED / Siltra (TGSS) |
263| SS payment | Last day of the following month | Direct debit or electronic payment |
264| IRPF withholding payment (Modelo 111) | 20th of following month (quarterly for < 6 employees in certain cases) | AEAT Sede Electrónica |
265 
266### Quarterly (Small Employers)
267 
268| Obligation | Deadline | Notes |
269|---|---|---|
270| Modelo 111 (quarterly) | 20th of month after quarter (20 Apr, 20 Jul, 20 Oct, 20 Jan) | For employers with < 6 employees or specific situations |
271 
272### Annual
273 
274| Obligation | Deadline | Notes |
275|---|---|---|
276| Modelo 190 (annual withholding summary) | 31 January of following year | Summary of all IRPF withholdings, by employee |
277| Certificado de retenciones | Before 31 January | Issued to each employee; feeds into their IRPF return |
278| CRA (Certificado de empresa para prestaciones) | Within 10 days of termination | For employee to claim unemployment benefits |
279 
280### Employee Obligations
281 
282| Item | Detail |
283|---|---|
284| Declaración de la Renta (IRPF annual return) | April -- June (Campaña de la Renta) |
285| Mandatory filing threshold | Generally > EUR 22,000 from single employer; > EUR 15,876 from 2+ employers |
286 
287---
288 
289## Section 9 -- Common Payroll Patterns
290 
291### Typical Bank Statement Descriptions (Salary Credits)
292 
293| Pattern | Classification |
294|---|---|
295| NOMINA, SALARIO, HABERES | Net salary payment |
296| PAGA EXTRA, PAGA EXTRAORDINARIA | Extra payment (June/December) |
297| LIQUIDACION, FINIQUITO | Final settlement on termination (includes prorated paga extra, vacation, etc.) |
298| INDEMNIZACION DESPIDO | Severance payment |
299| PRESTACION INSS, INCAPACIDAD TEMPORAL | Sickness/maternity benefit from INSS |
300| DESEMPLEO SEPE | Unemployment benefit |
301 
302### Typical Employer Debit Patterns
303 
304| Pattern | Classification |
305|---|---|
306| TGSS COTIZACIONES, SEG SOCIAL | Social security contribution payment |
307| AEAT 111, HACIENDA RETENCIONES | IRPF withholding remittance |
308| NOMINAS TRANSFERENCIA | Salary disbursement to employees |
309| FOGASA | Wage Guarantee Fund contribution |
310| MUTUA [NAME] | Occupational risk mutual (AT/EP) |
311 
312---
313 
314## Section 10 -- Interaction with Other Skills
315 
316| Scenario | Skill to Use |
317|---|---|
318| Employee payroll (IRPF + SS) | **This skill (spain-payroll.md)** |
319| Self-employed (autónomos) tax and SS | spain-autonomos.md |
320| IVA (Spanish VAT) | spain-vat-return.md |
321| Bookkeeping | spain-bookkeeping.md |
322| E-invoicing (TicketBAI, Verifactu, SII) | spain-einvoice.md |
323 
324### Key Handoff Points
325 
326- **Payroll → Bookkeeping:** Gross wages + employer SS are P&L expenses (cuentas 640 + 642). Employee IRPF is a liability (cuenta 4751) until Modelo 111 payment. Employee/employer SS contributions are liabilities (cuenta 476) until payment to TGSS. Pagas extras should be accrued monthly (1/12 per month).
327- **Payroll → Income Tax:** Certificado de retenciones feeds into the employee's Declaración de la Renta. The AEAT algorithm determines withholding rates -- employers do not manually compute brackets.
328- **Payroll → SS:** RLC/RNT (formerly TC1/TC2) must reconcile with nómina totals. Sistema RED is the electronic channel for all SS communications.
329 
330---
331 
332## PROHIBITIONS
333 
334- NEVER manually compute IRPF withholding rates -- use the official AEAT ALGORITMO_2026
335- NEVER forget the MEI (0.90% total) and solidarity surcharge for high earners -- they are mandatory from 2026
336- NEVER confuse 12-payment and 14-payment structures -- the base de cotización must correctly prorate pagas extras
337- NEVER omit pagas extraordinarias -- 2 per year are legally required (Art. 31 ET)
338- NEVER apply IRPF to SMI-level salaries without verifying the algorithm produces 0% -- most SMI earners are exempt
339- NEVER exceed 80 hours of annual overtime (unless compensated with rest)
340- NEVER issue a nómina missing any field required by the official model
341- NEVER miss the SS payment deadline (last day of following month) or Modelo 111 deadline (20th)
342- NEVER present payroll computations as definitive -- direct to an asesor fiscal or gestor for sign-off
343 
344---
345 
346## Disclaimer
347 
348This skill and its outputs are provided for informational and computational purposes only and do not constitute tax, legal, or financial advice. Open Accountants and its contributors accept no liability for any errors, omissions, or outcomes arising from the use of this skill. All outputs must be reviewed and signed off by a qualified professional (such as an asesor fiscal, gestor administrativo, or graduado social in Spain) before implementation.
349 
350The most up-to-date, verified version of this skill is maintained at [openaccountants.com](https://openaccountants.com). Log in to access the latest version, request a professional review from a licensed accountant, and track updates as tax law changes.
351 

Run this skill, then get an accountant to check it

After running the full skill pack in your AI agent, sign up and upload your worksheet. We'll connect you with a trusted accountant in our network who can review your numbers before you file.

Verification status

Research-verified

Drafted from authoritative sources (tax authority sites, Big-4 summaries). Awaiting credentialed sign-off.

Needs section-by-section practitioner review to reach accountant-verified.

Section review progress

0/34

About

Use this skill whenever asked about Spanish payroll processing for employees. Trigger on phrases like "Spanish payroll", "nómina España", "IRPF retención", "retenciones nómina", "Seguridad Social cotización", "contingencias comunes", "base de cotización", "Salario Mínimo Interprofesional", "SMI", "paga extra", "tredicesima España", "Agencia Tributaria retención", "modelo 111", "modelo 190", "Sistema RED", "Siltra", "TC1 TC2", "RLC RNT", "MEI cotización", "cuota solidaridad", "bruto neto España", "despido indemnización", "FOGASA", or any question about computing employee pay, income tax withholding, or social security contributions in Spain. This skill covers IRPF withholding, Seguridad Social contributions (employee and employer), mandatory benefits, nómina (payslip) requirements, filing obligations, and employer cost analysis. ALWAYS read this skill before processing any Spanish employee payroll.

ESty-2025

Use this skill

This skill is open source and free to use in any AI agent. Copy it, download it, or clone the repo. If you find an error, report an issue — a licensed accountant will review.

18 of 20 in the ES workflow: