Not tax advice. Computation tools only. Have a professional check your work before filing.
openaccountants/skills/spain-tax-optimization.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-tax-optimization.md332 lines17.6 KB
v10Spain
Not yet verified by an accountantContact accountant
1---
2name: spain-tax-optimization
3description: >
4 Use this skill whenever asked about reducing tax in Spain, tax planning, saving tax,
5 optimizing tax, allowances, deductions the client might be missing, or any question about
6 legal strategies to minimize income tax liability for self-employed individuals (autónomos)
7 in Spain. Trigger on phrases like "reduce tax", "tax planning", "save tax", "optimize",
8 "allowances", "deductions I'm missing", "pagar menos impuestos", "optimización fiscal",
9 "ahorrar en impuestos", "deducciones IRPF", "autónomo fiscal". ALWAYS read this skill
10 before advising on any Spanish tax optimization strategy.
11version: 1.0
12jurisdiction: ES
13category: tax-optimization
14depends_on: []
15---
16 
17# Spain Tax Optimization -- Self-Employed (Autónomo) Skill v1.0
18 
19---
20 
21## Section 1 -- Quick Reference
22 
23| Field | Value |
24|---|---|
25| Country | Spain (Reino de España) |
26| Key optimization legislation | Ley 35/2006 del IRPF (Ley del IRPF); Real Decreto 439/2007 (RIRPF); Ley 37/1992 del IVA; Ley 58/2003, General Tributaria (LGT); Real Decreto Legislativo 8/2015 (LGSS -- social security); Ley de Presupuestos Generales del Estado 2026 |
27| Tax authority attitude to planning | The Agencia Estatal de Administración Tributaria (AEAT) accepts legitimate planning (economía de opción). Spain has a general anti-avoidance rule under Art. 15 LGT (conflicto en la aplicación de la norma tributaria): arrangements that are unusual or improper and whose principal purpose is to obtain a tax advantage can be disregarded. Additionally, Art. 16 LGT covers simulación (sham transactions). |
28| Currency | EUR |
29| Tax year | Calendar year (1 Jan -- 31 Dec) |
30| Filing deadline | 30 June of the following year (Renta campaign typically April-June) |
31 
32### IRPF Rates 2026 (State Scale)
33 
34| Taxable income (EUR) | State rate | Typical combined rate (state + autonomic) |
35|---|---|---|
36| 0 -- 12,450 | 9.5% | ~19% |
37| 12,451 -- 20,200 | 12% | ~24% |
38| 20,201 -- 35,200 | 15% | ~30% |
39| 35,201 -- 60,000 | 18.5% | ~37% |
40| 60,001 -- 300,000 | 22.5% | ~45% |
41| 300,001+ | 24.5% | ~47-54% (varies by CCAA) |
42 
43Autonomous community (CCAA) rates vary. Madrid has the lowest combined rates; Cataluña, Valencia, and Extremadura among the highest.
44 
45---
46 
47## Section 2 -- Income Splitting & Structuring
48 
49### Autónomo vs Sociedad Limitada (SL)
50 
51| Factor | Autónomo (Persona Física) | Sociedad Limitada (SL) |
52|---|---|---|
53| Top marginal rate | 47-54% (IRPF + CCAA) | 25% Impuesto sobre Sociedades (IS); 23% for first EUR 50,000 if turnover < EUR 1m |
54| Extraction | N/A | Salary (deductible, taxed as income) + dividends (19-28% withholding) |
55| When to incorporate | When net profits consistently exceed ~EUR 40,000-50,000 | Requires notarial deed, compliance costs, annual accounts |
56 
57**Legislation:** Ley 27/2014 del Impuesto sobre Sociedades; Ley del IRPF Art. 25-26
58 
59### Régimen de Estimación Directa
60 
61| Method | Detail |
62|---|---|
63| Estimación Directa Normal (EDN) | Full accounting, actual expenses, for turnover > EUR 600,000 |
64| Estimación Directa Simplificada (EDS) | Actual expenses + 5% provisión de gastos de difícil justificación (max EUR 2,000/year). For turnover ≤ EUR 600,000. |
65| Estimación Objetiva (módulos) | Fixed tax based on objective indicators (square meters, employees, vehicles). Limited activities. Being phased out for many sectors. |
66 
67**Strategy:** Most autónomos use EDS. The automatic 5% provisión (up to EUR 2,000) is often forgotten -- it applies even if you cannot justify specific expenses.
68 
69### Ley Beckham (Régimen de Impatriados)
70 
71| Feature | Detail | Legislation |
72|---|---|---|
73| Flat rate | 24% on Spanish-source employment income up to EUR 600,000; 47% above | IRPF Art. 93 |
74| Eligibility | Must not have been Spanish tax resident in prior 5 of 10 years | IRPF Art. 93 |
75| Duration | 6 years (year of arrival + 5) | |
76| Restrictions | Cannot mix with standard IRPF deductions; not available for autónomos (employment income only) | |
77 
78---
79 
80## Section 3 -- Deductions Most People Miss
81 
82### Gastos Deducibles para Autónomos (IRPF Art. 28-30)
83 
84| Deduction | Legislation | Notes |
85|---|---|---|
86| Cuota de autónomos (RETA) | IRPF Art. 28; LGSS | Fully deductible social security contributions. EUR 200-530/month depending on income bracket (2026 progressive system). |
87| Provisión gastos difícil justificación | IRPF Art. 30.2.4ª | 5% of rendimientos netos, max EUR 2,000/year. Automatic in EDS -- no receipts needed. |
88| Suministros del hogar (home utilities) | IRPF Art. 30.2.5ª.c) | 30% of the proportional share of home costs (electricity, water, gas, internet) attributable to the workspace. Calculation: (workspace m² ÷ total m²) × 30% × annual cost. |
89| Gastos de manutención (meals while traveling) | IRPF Art. 30.2.5ª.a) | EUR 26.67/day (Spain) / EUR 48.08/day (abroad) for meals. Must be on business travel, paid electronically, and at commercial establishment. |
90| Seguro de salud (private health insurance) | IRPF Art. 30.2.5ª.d) | Up to EUR 500/person/year (EUR 1,500 if disabled) for autónomo + spouse + children under 25. Not a deduction but an exempt benefit reducing taxable income. |
91| Vehículo (IVA deductible 50%) | Ley IVA Art. 95.3.2ª | 50% IVA on vehicle costs is deductible by default (100% if exclusively business use is proven). IRPF deduction more restrictive. |
92| Formación profesional | IRPF Art. 28 | Courses, certifications, conferences related to the activity. |
93| Cuotas colegiales | IRPF Art. 28 | Professional body membership fees (Colegio de Abogados, Colegio de Economistas, etc.). |
94| Amortización | IRPF Art. 29 | Depreciation of business assets per the simplified table. |
95| Gastos de difícil justificación | RIRPF Art. 30 | The 5% provision is effectively a "buffer" for small, hard-to-document expenses. |
96| Reparaciones y conservación | IRPF Art. 28 | Repairs and maintenance on business assets. |
97| Primas de seguro | IRPF Art. 28 | Professional liability, commercial premises insurance, vehicle insurance (business portion). |
98 
99---
100 
101## Section 4 -- Capital Allowances Optimization
102 
103**Legislation:** IRPF Art. 29; RIRPF Art. 4 + simplified depreciation table
104 
105### Simplified Depreciation Table (Estimación Directa Simplificada)
106 
107| Asset category | Maximum annual rate | Maximum years |
108|---|---|---|
109| Buildings (commercial) | 3% | 68 |
110| Plant, machinery, tools | 12% | 18 |
111| Furniture | 10% | 20 |
112| IT equipment (hardware/software) | 26% | 10 |
113| Vehicles | 16% | 14 |
114| Other assets | 10% | 20 |
115 
116### Libertad de Amortización (Free Depreciation)
117 
118Available for assets of reduced value: items under EUR 300 can be freely depreciated (immediately expensed) up to EUR 25,000/year total.
119 
120**Legislation:** IS Art. 12.3 (for companies); IRPF applies similar principles for small businesses.
121 
122### Timing Strategy
123 
124Purchase IT equipment (26% rate) in January to maximize the first-year deduction (full 26%). A December purchase gives only 1/12th of the annual rate.
125 
126---
127 
128## Section 5 -- Loss Utilization
129 
130**Legislation:** IRPF Art. 48-49
131 
132| Relief | Detail |
133|---|---|
134| Offset against general base | Losses from economic activities (rendimientos de actividades económicas) can offset other income in the general base (employment, rental) in the same year. |
135| Carry-forward | Unused losses carry forward for 4 years against future income of the same category. |
136| No carry-back | Spain does not allow loss carry-back for IRPF. |
137| Base del ahorro offset | Capital losses can only offset capital gains (base del ahorro). If capital losses exceed gains, up to 25% of the excess can offset positive general income. |
138| Compensación between bases | Negative rendimientos del capital mobiliario can offset up to 25% of positive ganancias patrimoniales, and vice versa. |
139 
140### Strategy
141 
142In the start-up phase, maximize deductible expenses to create losses. These offset any employment or rental income in the same year, then carry forward for 4 years. Plan to use them before they expire.
143 
144---
145 
146## Section 6 -- Timing Strategies
147 
148| Strategy | Detail |
149|---|---|
150| Defer invoicing | Under estimación directa, income is recognized on accrual basis. However, cash flow timing affects IVA obligations. For módulos, timing of invoices is irrelevant. |
151| Accelerate expenses | Prepay insurance premiums, professional subscriptions, training before 31 December. |
152| Plan de pensiones contributions | Maximize contributions before 31 December. Reduces base imponible general directly. |
153| Ganancias/pérdidas patrimoniales timing | Realize capital losses before year-end to offset capital gains. Defer gains to next year if possible. Beware the 2-month anti-wash rule (no repurchase of same/similar securities within 2 months). |
154| Retenciones management | Autónomos apply 15% IRPF withholding on invoices to professionals/companies (7% in first 3 years). Ensure correct rate to avoid overpaying during the year. |
155| Matrimonial tax choice | Married couples can file jointly (declaración conjunta) or separately. Compare both: joint filing benefits when one spouse has no/low income (EUR 3,400 additional mínimo personal). |
156| Módulos exit timing | If leaving módulos for estimación directa, time the switch at the start of the year. Mid-year switches can create complications. |
157 
158---
159 
160## Section 7 -- VAT Optimization (IVA)
161 
162**Legislation:** Ley 37/1992 del IVA
163 
164| Strategy | Detail |
165|---|---|
166| Régimen General vs Simplificado | General: quarterly returns (Modelo 303). Simplificado: available for módulos activities, fixed quota. |
167| Recargo de Equivalencia | For retail traders buying from wholesalers: no IVA returns needed, wholesaler charges RE surcharge. Simplifies compliance but eliminates input IVA recovery. |
168| Criterio de Caja (cash basis IVA) | Pay output IVA only when collected from clients (not when invoiced). Available if turnover ≤ EUR 2m. Must opt in. |
169| IVA deducible on vehicles | 50% of IVA on vehicle purchase/lease is deductible by default. 100% if exclusive business use is proven (difficult -- requires documentation). |
170| Pro rata for mixed activities | If performing both IVA-taxable and IVA-exempt activities, optimize the pro rata calculation to maximize input IVA recovery. |
171| Modelo 390 (annual summary) | Review the annual summary to ensure no input IVA has been missed. |
172 
173---
174 
175## Section 8 -- Social Security Optimization
176 
177**Legislation:** LGSS (Real Decreto Legislativo 8/2015); RD-Ley 13/2022 (progressive RETA system)
178 
179### Progressive Cuota de Autónomos (from 2023, phased through 2025)
180 
181From 2025/2026, autónomo contributions are based on real net income brackets:
182 
183| Net monthly income (EUR) | Approximate monthly cuota (2025) |
184|---|---|
185| ≤ 670 | ~EUR 200 |
186| 671 -- 900 | ~EUR 220 |
187| 901 -- 1,166.70 | ~EUR 260 |
188| 1,166.71 -- 1,300 | ~EUR 290 |
189| 1,300 -- 1,500 | ~EUR 350 |
190| 1,500 -- 1,700 | ~EUR 370 |
191| 1,700 -- 1,850 | ~EUR 390 |
192| 1,850 -- 2,030 | ~EUR 400 |
193| > 4,050 | ~EUR 530 |
194 
195### Optimization Strategies
196 
197| Strategy | Detail |
198|---|---|
199| Tarifa plana (flat rate) | New autónomos: EUR 80/month for first 12 months (extendable to 24 months if income remains below minimum wage). |
200| Income bracket management | The progressive system means lower reported income = lower cuota. But this reduces future pension. |
201| Regularización anual | RETA contributions are regularized annually based on actual income reported in IRPF. Overpayments are refunded, underpayments are billed. |
202| Cese de actividad (unemployment) | Autónomos contribute to the cese de actividad fund. This provides unemployment-like benefits for 2-12 months. Ensure it is correctly configured. |
203| Pluriactividad (dual activity) | If simultaneously employed (régimen general) and autónomo (RETA), you may be entitled to a refund of excess contributions if combined bases exceed the contribution ceiling. Apply via Modelo 190. |
204 
205---
206 
207## Section 9 -- Investment & Retirement
208 
209### Planes de Pensiones -- IRPF Art. 51-52
210 
211| Feature | Detail |
212|---|---|
213| Individual plan limit | EUR 1,500/year (reduces base imponible general) |
214| Employer plan (plan de empleo) | Additional EUR 8,500/year from employer contributions |
215| Autónomo simplified plan (PPES) | Additional EUR 4,250/year for autónomos who set up a simplified occupational plan |
216| Combined autónomo limit | EUR 1,500 (individual) + EUR 4,250 (PPES) = **EUR 5,750/year** |
217| Tax saving | At 37% marginal rate: EUR 5,750 × 37% = EUR 2,128/year |
218| Exit taxation | Taxed as rendimientos del trabajo (employment income) at progressive rates on withdrawal |
219| 2-year window rule | Contributions from > 2 years ago can be withdrawn as capital with 40% exemption (pre-2007 contributions only). |
220 
221### Inversión en Empresas de Nueva Creación -- IRPF Art. 68.1
222 
223| Feature | Detail |
224|---|---|
225| Deducción | 50% of investment in new companies (startups) up to EUR 100,000 |
226| Requirements | Company < 3 years old; participation ≤ 25%; held for 3-12 years |
227| Maximum deducción | EUR 50,000/year |
228 
229### Base del Ahorro (Savings Tax)
230 
231| Gains/income (EUR) | Rate |
232|---|---|
233| 0 -- 6,000 | 19% |
234| 6,001 -- 50,000 | 21% |
235| 50,001 -- 200,000 | 23% |
236| 200,001 -- 300,000 | 27% |
237| 300,001+ | 28% |
238 
239**Strategy:** Time realization of capital gains across tax years to stay in lower brackets. Use the EUR 6,000 @ 19% band each year.
240 
241---
242 
243## Section 10 -- Red Lines
244 
245| Risk | Detail |
246|---|---|
247| Conflicto en la aplicación de la norma (Art. 15 LGT) | Unusual or improper arrangements principally aimed at tax advantage can be recharacterized. No penalty, but unpaid tax + interest. |
248| Simulación (Art. 16 LGT) | Sham transactions: penalty of 50-100% of avoided tax + interest. |
249| Economía sumergida | Undeclared income is criminal if > EUR 120,000/year (Art. 305 Código Penal). Prison sentences of 1-5 years. |
250| Factura falsa | Issuing or using false invoices: criminal under Art. 310 CP (1-5 years) and Art. 305 CP. |
251| Anti-wash rule | Cannot deduct capital losses if the same or substantially similar securities are repurchased within 2 months (Ley IRPF Art. 33.5.f). |
252| Tarifa plana abuse | Re-registering as a new autónomo to re-claim the tarifa plana after a short cessation period. AEAT monitors gaps < 2-3 years. |
253| Vinculación (related party transactions) | Transactions between autónomo and own SL (or family SL) must be at arm's length. Art. 18 Ley IS. |
254| CCAA deduction eligibility | Autonomous community deductions require actual residence in that community. Moving solely for tax benefits (particularly to Madrid) is scrutinized if not genuine. |
255 
256---
257 
258## Section 11 -- Annual Tax Planning Calendar
259 
260| Month | Action |
261|---|---|
262| January | Review prior year's income and expenses. Apply for tarifa plana if new autónomo. File Modelo 303 (Q4 IVA) + Modelo 130 (Q4 IRPF pago fraccionado). |
263| February | Gather facturas, bank statements, cuotas autónomos records. |
264| March | File Modelo 347 (annual third-party transactions > EUR 3,005.06). Review plan de pensiones capacity. |
265| April | **Renta campaign opens** (~first week). File Modelo 303 + Modelo 130 for Q1. Compare declaración conjunta vs individual if married. |
266| May | Complete Renta filing. Verify AEAT borrador: add missing deductions (gastos actividad, plan pensiones, deducciones autonómicas). |
267| June | **30 June** -- Renta filing deadline. File annual IVA summary (Modelo 390) if not already filed in January. |
268| July | File Modelo 303 + Modelo 130 for Q2. Mid-year income review. |
269| August | Plan H2 purchases: equipment, training, professional development. |
270| September | Review IVA position: input IVA missed? Pro rata optimization? |
271| October | File Modelo 303 + Modelo 130 for Q3. Estimate full-year income. Consider reducing pago fraccionado if income dropping. |
272| November | Maximize plan de pensiones contributions (EUR 1,500 + EUR 4,250 PPES). Realize capital losses to offset gains. |
273| December | Defer invoicing if income timing is beneficial. Prepay deductible expenses. Make charitable donations. Purchase assets for amortización. File Modelo 390 (annual IVA). |
274 
275---
276 
277## Section 12 -- Cash Impact Examples
278 
279### Example 1 -- Plan de Pensiones (Autónomo, Net Income EUR 45,000)
280 
281| Contribution (individual + PPES) | EUR 5,750 |
282|---|---|
283| Tax saving at 37% marginal rate | **EUR 2,128/year** |
284 
285### Example 2 -- Provisión de Gastos de Difícil Justificación (EDS)
286 
287| Net rendimientos before provisión | EUR 40,000 |
288|---|---|
289| 5% provisión (max EUR 2,000) | EUR 2,000 |
290| Tax saving at 37% | **EUR 740/year** |
291 
292### Example 3 -- Suministros del Hogar (15m² office in 90m² home)
293 
294| Annual home costs (electricity + water + gas + internet) | EUR 3,600 |
295|---|---|
296| Workspace proportion (15/90) | 16.67% |
297| Deductible (30% of proportion) | EUR 3,600 × 16.67% × 30% = EUR 180 |
298| Tax saving at 37% | **EUR 67/year** |
299 
300### Example 4 -- Gastos de Manutención (100 Travel Days/Year)
301 
302| Deductible meals | 100 × EUR 26.67 = EUR 2,667 |
303|---|---|
304| Tax saving at 37% | **EUR 987/year** |
305 
306### Example 5 -- Seguro de Salud (Family of 4)
307 
308| Premium (4 × EUR 500) | EUR 2,000 |
309|---|---|
310| Tax saving at 37% | **EUR 740/year** |
311 
312### Example 6 -- Tarifa Plana (First 12 Months)
313 
314| Standard cuota (income ~EUR 1,300/month) | ~EUR 290/month |
315|---|---|
316| Tarifa plana | EUR 80/month |
317| **Annual saving** | **EUR 2,520** |
318 
319### Example 7 -- Startup Investment (EUR 20,000 in Nueva Creación)
320 
321| Deducción (50%) | **EUR 10,000** |
322|---|---|
323| Direct tax reduction (off cuota íntegra) | **EUR 10,000** |
324 
325---
326 
327## Disclaimer
328 
329This 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 a CPA, EA, tax attorney, or equivalent licensed practitioner in your jurisdiction) before filing or acting upon.
330 
331The most up-to-date, verified version of this skill is maintained at [openaccountants.com](https://openaccountants.com).
332 

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

About

Use this skill whenever asked about reducing tax in Spain, tax planning, saving tax, optimizing tax, allowances, deductions the client might be missing, or any question about legal strategies to minimize income tax liability for self-employed individuals (autónomos) in Spain. Trigger on phrases like "reduce tax", "tax planning", "save tax", "optimize", "allowances", "deductions I'm missing", "pagar menos impuestos", "optimización fiscal", "ahorrar en impuestos", "deducciones IRPF", "autónomo fiscal". ALWAYS read this skill before advising on any Spanish tax optimization strategy.

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.

19 of 20 in the ES workflow: