Back to blog

Year-End Tax Planning Spain: 5 Moves to Make by Dec 31

Desk with tax documents, a calculator, and a calendar pointing to December 31 in Spain

Year-end tax planning in Spain requires completing key financial actions before December 31, because Spanish tax law offers no retroactive window once the calendar year closes. Unlike tax jurisdictions such as the United States or the United Kingdom, where taxpayers can fund pensions or make deductible contributions months into the following spring, Spain's tax agency (Agencia Tributaria) calculates your personal income tax (IRPF) and wealth taxes based on your financial position precisely at midnight on New Year's Eve.

Failing to act by this cutoff leaves deductions on the table, locks in taxable capital gains, and exposes unshielded assets to wealth taxation. By understanding how individual pension deductions, portfolio loss harvesting under Spanish FIFO rules, cross-bucket savings income offsets, and wealth tax balance sheets interact, you can lower your final tax bill.

TL;DR:

  • Spain operates on a strict January 1 to December 31 fiscal year with zero grace period for retroactive contributions or portfolio rebalancing.
  • Individual pension contributions reduce your general tax base by up to €1,500 (or up to €5,750 for self-employed individuals and €10,000 with qualifying employer plans).
  • Capital loss harvesting must respect Spanish FIFO rules across all accounts and avoid the 2-month wash-sale (norma antiaplicación) trap.
  • You can offset net capital losses against up to 25% of positive movable capital income (dividends and interest) within the savings base.
  • Wealth Tax (Impuesto sobre el Patrimonio) and the Solidarity Tax evaluate your global net worth strictly as of December 31, using specific valuation rules for bank accounts and real estate.
  • Private net worth modeling helps you run "what-if" calculations ahead of time without handing your banking credentials to third-party aggregators.

Netclariq
Audit Your Spanish Net Worth Privately
Track FIFO capital gains, test loss offsets, and monitor wealth tax limits without linking your bank accounts. Start free on Netclariq.
Explore Netclariq

Table of Contents

Why Spain's December 31 Fiscal Cutoff Leaves No Grace Period

Spain’s Personal Income Tax Act (Ley 35/2006 del IRPF) establishes that the tax period coincides with the calendar year, accruing on December 31. Once midnight strikes, your taxable income, deductions, and tax bases are locked.

When you submit your annual tax return (Declaración de la Renta) between April and June of the following year, you are merely reporting events that closed on December 31. You cannot make retroactively deductible retirement contributions in March. You cannot rebalance a losing stock position in February to lower gains realized in November.

Furthermore, Spain divides your total taxable income into two separate categories:

  1. General Taxable Base (Base Imponible General): Includes employment salary, freelancer profits, rental property income, and state pensions. It is taxed at progressive marginal rates combining state and regional scales, which run from 19% up to 47% or higher depending on where you reside (e.g., up to 54% in the highest regional brackets; see our guide on Spain's income tax brackets).
  2. Savings Taxable Base (Base Imponible del Ahorro): Includes investment income such as dividends, interest, bond coupons, and capital gains from selling stocks, funds, crypto, or real estate. This base is taxed under a separate progressive schedule:
Savings Taxable Base (Base Liquidable del Ahorro) Statutory Tax Rate
Up to €6,000 19%
€6,000 to €50,000 21%
€50,000 to €200,000 23%
€200,000 to €300,000 27%
Over €300,000 30%

Because these two bases operate under distinct rules, year-end strategies must target each bucket individually.


Maximize the €1,500 Individual Pension Plan Deduction Limit

Contributions to registered individual pension plans (planes de pensiones individuales) directly reduce your General Taxable Base. This reduces taxable income from the top down, saving money at your highest marginal rate.

Statutory Contribution Caps

According to Article 52 of the Ley del IRPF, your maximum annual deduction for an individual pension plan is the lesser of two numbers:

Maximum individual deduction = min(€1,500, 30% × Net earned and business income)

Net earned and business income = Gross salary − Deductible expenses (social security + standard allowance)

If you are an employee whose employer contributes to an occupational pension plan (plan de pensiones de empleo), that combined ceiling can rise to €10,000 annually, provided the company contributes up to €8,500 and the employee contributes the remainder within legal ratios. If you are a registered self-employed worker (autónomo), you can contribute an additional €4,250 to simplified employment pension plans (planes de pensiones de empleo simplificados), bringing your total tax-deductible ceiling to €5,750.

Additionally, if your spouse earns net income below €8,000 per year, you can contribute up to €1,000 into a pension plan registered in their name and deduct it from your own general base.

Step-by-Step Pension Deduction Math

Consider an expat software engineer living in Valencia who has a gross salary of €90,000 and falls into a marginal general income tax bracket of 45% (state plus regional rate combined):

  1. Calculate base reduction: You make the maximum individual contribution of €1,500 before December 31.
  2. Apply the marginal rate: Tax savings = Contribution amount × Marginal tax rate Tax savings = €1,500 × 0.45 = €675
  3. Net out-of-pocket cost: Net investment cost = €1,500 − €675 = €825

You gain €1,500 in invested assets for a net cash outlay of €825. If you are self-employed with qualifying business income contributing the full €5,750 to a simplified plan, the same 45% marginal bracket yields €2,587.50 in direct tax savings (€5,750 × 0.45).

Note: Pension distributions in Spain are treated entirely as general income (salary) upon withdrawal in retirement. Ensure long-term liquidity fits your needs before contributing, as individual pension plans cannot be redeemed prior to retirement except under severe circumstances (such as long-term unemployment, serious illness, or once 10 years have elapsed from contribution date).


Harvest Portfolio Capital Losses Under Spanish FIFO Rules

Tax-loss harvesting involves selling loss-making investments before December 31 to offset capital gains realized earlier in the year. While simple in theory, Spain's tax framework imposes two critical rules: mandatory FIFO accounting and the two-month wash-sale rule (norma antiaplicación).

The FIFO Rule for Spanish Taxpayers

Spain mandates the First In, First Out (FIFO) method for capital asset sales. If you have purchased shares of the same company, units of an ETF, or tokens of a cryptocurrency at different dates and prices, the law dictates that the first units you purchased are always the first units deemed sold.

For detailed calculations, review our guide on calculating Spanish capital gains tax. You cannot choose specific lots to sell. If your earliest purchases are deep in profit, selling a portion of your position may trigger unexpected capital gains rather than losses.

The Two-Month Wash-Sale Rule (Norma Antiaplicación)

Under Article 33.5 of the Ley del IRPF, if you sell listed securities at a loss, you cannot claim that capital loss if you repurchase "homogeneous securities" within two months before or after the sale date (extended to one year for unlisted securities).

If you violate the rule:

  • The loss is not cancelled permanently, but it is deferred.
  • You cannot integrate that loss into your current tax return.
  • The deferred loss remains frozen until you subsequently sell the repurchased shares without a replacement purchase.
Stage Action Spanish Tax Treatment
Initial Position Purchase Asset A Initial cost basis established
Sale Sell Asset A at a loss Loss generated, pending compliance check
Repurchase Repurchase Asset A within two months before or after sale Wash-sale triggered: loss cannot be deducted in current tax year (deferred to future sale)

How to Harvest Losses Without Violating the Wash-Sale Rule

To preserve market exposure while claiming the loss on your current tax year:

  1. Switch to a non-homogeneous instrument: If you sell an S&P 500 index ETF (e.g., tracking the S&P 500 index) at a loss, do not buy the exact same fund or another ETF tracking the identical index with identical composition. Instead, deploy the proceeds into an MSCI World ETF or a Russell 1000 fund. Because the underlying indices and weightings differ, they are not homogeneous securities under Spanish tax criteria.
  2. Sit in cash for more than two calendar months: If you want the exact same asset, wait until the same day number two months later has passed (a sale on December 15 means repurchasing no earlier than February 16). Counting "61 days" is not enough, because two calendar months can span 62 days.
  3. Sell across all your brokers: Spanish tax law requires FIFO and wash-sale tracking across all global accounts. Selling shares at a loss on Broker X and buying the same shares two weeks later on Broker Y triggers the anti-avoidance rule regardless of where the accounts are held.

Apply the 25% Net Movable Capital Income Compensation Rule

Within the Savings Taxable Base, Spanish tax law establishes two distinct components:

  1. Capital Gains and Losses (Ganancias y Pérdidas Patrimoniales): Derived from transmissions of assets (equities, funds, crypto, real estate).
  2. Movable Capital Income (Rendimientos del Capital Mobiliario): Derived from dividends, high-yield bank interest, bonds, and coupon payouts.
Feature Bucket 1: Capital Gains & Losses Bucket 2: Movable Capital Income
Asset Types Stocks, mutual funds, real estate, crypto Dividends, bank interest, bond coupons
Step 1: Internal Netting Net all gains and losses realized within Bucket 1 Net all income and deductible expenses within Bucket 2
Step 2: Cross-Bucket Offset Net losses can offset up to 25% of positive Bucket 2 balance Net losses can offset up to 25% of positive Bucket 1 balance

The 25% Cross-Bucket Rule

First, losses within each bucket offset gains in the same bucket.

If Bucket 1 still shows a net negative balance after offsetting all capital gains, you can apply that remaining loss against up to 25% of the net positive balance of Bucket 2 for the same calendar year:

Maximum capital loss offset against movable income = 25% × Positive net movable capital income

Any residual loss that cannot be offset under this 25% ceiling does not expire. It carries forward for the next 4 consecutive tax years, offsetting future capital gains and up to 25% of future movable capital income.

For an end-to-end breakdown of how multi-year carryforwards work in practice, read our guide on tax loss harvesting capital gains.

Worked Calculation: Offsetting Realized Losses Against Dividends

Let's assume you received healthy cash payouts from your portfolio this year, but certain speculative stock holdings crashed:

  • Total dividends and interest earned (Bucket 2): €12,000
  • Realized capital gains on stock sales (Bucket 1): €2,000
  • Realized capital losses on stock sales (Bucket 1): €6,000

Step 1: Offset within the Capital Gains Bucket

Net capital gain/loss = €2,000 − €6,000 = −€4,000 You have a net capital loss of €4,000.

Step 2: Apply the 25% Cross-Bucket Limit

You have €12,000 in positive movable capital income. Calculate the 25% limit: Cross-bucket compensation cap = €12,000 × 0.25 = €3,000

You can immediately absorb €3,000 of your €4,000 capital loss against your dividend income.

Step 3: Determine the Final Savings Taxable Base

Taxable movable income = €12,000 − €3,000 = €9,000 Remaining uncompensated loss to carry forward (next 4 years) = €4,000 − €3,000 = €1,000

Step 4: Calculate the Immediate Tax Benefit

Without this loss-harvesting move, the €2,000 gain would stay untaxed by any loss and add to the €12,000 of dividends, for a €14,000 savings base. At standard savings tax rates:

  • First €6,000 @ 19% = €1,140
  • Next €8,000 @ 21% = €1,680
  • Total tax without harvesting = €2,820

With the €3,000 offset, your taxable savings base drops to €9,000:

  • First €6,000 @ 19% = €1,140
  • Next €3,000 @ 21% = €630
  • Total tax with harvesting = €1,770

Immediate cash tax savings = €2,820 − €1,770 = €1,050

You reduce your current year tax liability by €1,050 (€420 from netting the €2,000 gain plus €630 from the 25% cross-bucket offset) while retaining a €1,000 loss deduction ready to shield dividends or gains earned in the following tax year.


Audit Year-End Net Worth Against Wealth and Solidarity Tax Limits

While IRPF focuses on your income flow across the entire 365-day year, Spain’s wealth levies—the regional Wealth Tax (Impuesto sobre el Patrimonio) and the state-level Temporary Solidarity Tax on Large Fortunes (Impuesto Temporal de Solidaridad de las Grandes Fortunas - ITSGF)—operate as a static balance sheet snapshot at 23:59 on December 31.

If you own assets in Spain or are a Spanish tax resident, understanding your exact December 31 net worth is vital to avoid unexpected surprises.

Tax Category Assessment Window Basis of Evaluation
Income Tax (IRPF) January 1 to December 31 Full-year flow of earnings, capital gains, and allowable deductions
Wealth Tax & Solidarity Tax (ITSGF) December 31 (at 23:59) Static balance sheet snapshot of global assets and liabilities

Statutory Exemption Thresholds

Under state law (Ley 19/1991 del Impuesto sobre el Patrimonio):

  • General Exemption (Mínimo Exento): €700,000 per person (residents and non-residents).
  • Primary Residence Exemption (Vivienda Habitual): Up to €300,000 of equity per owner for your permanent home.
  • Reporting Threshold: Anyone whose gross assets exceed €2,000,000 must file Form 714 (Modelo 714), even if personal exemptions reduce the net payable tax to zero.

However, Spain’s autonomous regions hold devolved power to adjust the mínimo exento:

  • Catalonia: Minimum exempt threshold is set at €500,000.
  • Valencian Community & Balearic Islands: Baseline exemptions have been increased to €1,000,000 in the Valencian Community and €3,000,000 in the Balearic Islands.
  • Madrid and Andalusia: Historically provided a 100% regional wealth tax rebate. However, the state Solidarity Tax (ITSGF) applies to net personal wealth above €3,000,000 (with a statutory €700,000 base exemption, effectively protecting up to €3,700,000 per individual, or €4,000,000 including a primary residence). To prevent capital flight from regional treasuries to the central government, both Madrid and Andalusia adjust their regional tax credits so the wealth tax is paid locally up to the exact amount the state ITSGF would have claimed.

Unique Valuation Rules for Spanish Wealth Taxes

You cannot simply use arbitrary market estimates on December 31. The State Tax Administration Agency mandates specific valuation rules:

  1. Bank Accounts and Cash Deposits: Valued at whichever is higher:
    • The account balance as of December 31.
    • The average account balance over the fourth quarter (October 1 to December 31). (Moving cash out of your account on December 29 does not bypass the wealth tax due to this Q4 average rule).
  2. Real Estate: Valued at the highest of three official values:
    • The cadastral value (valor catastral).
    • The administrative reference value (valor de referencia determined by the Catastro).
    • The purchase price declared on the public deed (escritura).
  3. Listed Shares and Investment Funds: The official average trading value for the fourth quarter published by the Ministry of Finance (Boletín Oficial del Estado), or the official net asset value (NAV) as of December 31 for mutual funds.
  4. Deductible Debts: Outstanding mortgage and loan balances existing on December 31 reduce your taxable net worth, provided the borrowing was not used to acquire exempt assets.
Asset Type Official Valuation Criteria
Bank Accounts Higher of December 31 balance or fourth quarter (Q4) average balance
Real Estate Highest of cadastral value, reference value (valor de referencia), or purchase deed price
Listed Equities Official Q4 average trading value published by the Ministry of Finance in the BOE
Unlisted Mutual Funds Official Net Asset Value (NAV) as of December 31
Liabilities / Mortgages Outstanding principal balance at December 31 (fully deductible if used for taxable assets)

Tracking these balance sheet metrics requires structuring your assets cleanly. You can map out your assets and liabilities using our step-by-step guide on how to calculate your net worth.


Time Property Expenses and Charitable Donations Before Midnight

Two straightforward year-end moves can generate further deductions against your General Taxable Base: timing deductible rental property expenses and making donations to certified non-profits.

Deductible Rental Property Maintenance

If you lease property in Spain, your net rental profits are integrated into your General Taxable Base. Under Article 23 of the Ley del IRPF, landlords can deduct conservation and repair expenses:

  • Eligible repairs: Repainting walls, fixing plumbing, repairing heating systems, and replacing broken fixtures.
  • Rule of timing: Rental expenses are allocated to the tax year in which they accrue (criterio de devengo, Article 14 of the Ley del IRPF), not the year you pay them. A repair carried out and invoiced by December 31 counts for this year even if you pay it in January; prepaying in December for work done in January does not pull the deduction forward.
  • Cap on repairs: Repair and maintenance expenses cannot exceed the gross rental income earned on that specific property in a single year. Any excess carries forward for deduction over the following 4 years.
  • Capital improvements vs. repairs: Replacing an existing boiler is maintenance (fully deductible in the current year up to the income limit). Adding an elevator or expanding living area is an improvement, which must be depreciated gradually at 3% annually rather than expensed immediately.

Maximize the Boosted Charitable Donation Deduction

Donations to recognized Spanish non-governmental organizations, foundations, and public institutions operating under Law 49/2002 provide some of the most generous personal tax credits available in Europe:

Donation Bracket Standard IRPF Tax Credit Recurrent Donor Credit (3+ years with same NGO)
First €250 80% 80%
Amounts above €250 40% 45%

The amount eligible for the credit is capped at 10% of your taxable base (base liquidable).

Step-by-Step Donation Example

If you donate €500 to a registered charity before December 31 as a first-time donor:

  1. Credit on first €250: €250 × 0.80 = €200
  2. Credit on remaining €250: €250 × 0.40 = €100
  3. Total direct tax credit: €200 + €100 = €300

Your net out-of-pocket cost for a €500 charitable contribution is only €200 (€500 − €300), with the Spanish tax authority effectively reimbursing 60% of your total donation directly from your final tax bill. Ensure you receive the official tax certificate (certificado de donaciones) reflecting your Spanish tax ID (NIE or DNI) before tax season.


Year-End Tax Planning Spain: Action Checklist

Use this comparison table to verify which moves make financial sense for your specific situation before the December 31 deadline:

Move Primary Tax Base Annual Limit / Rule Key Condition / Trap
Individual Pension General Base Min(€1,500, 30% earned income) Illiquid asset; taxed as salary upon withdrawal.
Employment Pension (Self-Employed) General Base Up to €4,250 additional (€5,750 total) Requires qualifying simplified sectoral employment plan.
FIFO Loss Harvesting Savings Base No loss limit; FIFO across all accounts Watch 2-month wash-sale (norma antiaplicación) rule.
Movable Income Offset Savings Base Max 25% of positive dividends/interest Excess net capital loss carries forward for 4 years.
Rental Property Repair Timing General Base Capped at property's gross rental income Work must be carried out and invoiced by Dec 31; excess carries forward.
Charitable Donations Tax Liability (Cuota) 80% on first €250; 40%–45% on remainder Charity must qualify under Ley 49/2002; max 10% of taxable base.
Wealth Tax Balance Audit Wealth / ITSGF €700,000 state minimum exempt Bank accounts evaluate highest of Dec 31 or Q4 average.

Model Your Year-End Tax Adjustments in Netclariq

Executing year-end tax strategies without visibility into your total financial position can lead to errors. Harvesting losses on one broker could violate the wash-sale rule because of automated purchases on another. Making a hasty pension contribution could leave you cash-poor if you have not separated your emergency reserves from your investment capital.

Netclariq is a personal and family net worth platform designed to give you a clear, consolidated view of your entire wealth structure. Unlike traditional apps that demand your banking credentials, Netclariq is built from the ground up without open banking. You record or import your transactions privately, ensuring sensitive financial records remain under your control.

To plan your Spanish year-end tax moves with confidence:

  • Track Portfolios with FIFO Cost Basis: The Investments module monitors your cost basis and capital gains using strict FIFO accounting. You can see which purchase lots hold unrealized losses, helping you identify tax-loss harvesting candidates before December 31.
  • Audit Total Net Worth Against Wealth Tax Limits: The Net Worth module aggregates your accounts, real estate valuations, and investment portfolios in one place. You can test your balance sheet against regional wealth tax and Solidarity Tax thresholds.
  • Differentiate Between General and Savings Outflows: Plan pension contributions, charitable donations, and property maintenance alongside your regular expenses using the Budget module.
  • Run "What-If" Scenarios: The built-in Simulator lets you test how an extra €1,500 pension contribution or a €5,000 loss harvest affects your liquid net worth and future compounding before you execute the trades.

When your family's assets span multiple brokers, jurisdictions, and property deeds, private consolidation ensures your December 31 decisions are based on accurate data.


FAQ

What happens if I contribute more than €1,500 to my individual pension plan in Spain?

Any contribution exceeding the legal €1,500 annual limit cannot be deducted from your taxable income for that year. While some financial institutions will automatically reject or refund contributions above the legal ceiling, excess amounts that slip through can trigger tax penalties unless officially withdrawn under specific correction protocols. Furthermore, tying up excess money in an illiquid pension product without receiving a corresponding tax deduction is financially counterproductive.

Does the two-month wash-sale rule apply if I sell crypto at a loss in Spain?

Technically, Article 33.5 of the Ley del IRPF specifically identifies "homogeneous securities" (valores o participaciones homogéneas), which refers to transferable securities governed by capital markets law. However, the Directorate General of Taxes (Dirección General de Tributos) applies broad anti-abuse principles. If you sell Bitcoin at a loss and immediately repurchase Bitcoin the next day, the tax agency may challenge the economic substance of the loss under general anti-avoidance statutes (simulación or conflicto en la aplicación de la norma). Waiting more than two calendar months or switching to an uncorrelated asset avoids unnecessary audit friction.

Can I offset stock market losses against my employment salary in Spain?

No. Employment salary, freelancer profits, and rental income belong to the General Taxable Base (Base Imponible General). Capital losses from the sale of shares, mutual funds, or real estate belong exclusively to the Savings Taxable Base (Base Imponible del Ahorro). Losses in the savings base can only offset capital gains and up to 25% of movable capital income (dividends and interest). They cannot reduce your salary tax base.

What is the exact deadline for my pension contribution to qualify for this year's tax deduction?

The contribution must be cleared and registered by the pension fund manager before 23:59 on December 31. Because bank transfers between financial institutions often take one to three business days, initiating a transfer on December 30 or 31 can result in the funds clearing in January, pushing the tax deduction into the following year. Complete all retirement contributions several business days before the final week of December.

How does the Spanish wealth tax evaluate cash transferred to a family member in late December?

Moving cash out of your personal account late in December will not lower your wealth tax liability. First, bank balances are valued at the higher of the December 31 balance or the average balance throughout the fourth quarter (October to December). Second, gratuitous transfers of cash to family members constitute formal gifts, which are subject to Spanish Gift and Inheritance Tax (Impuesto sobre Sucesiones y Donaciones), requiring official tax filing within 30 business days.


Sources