Home / Personal finance

Personal finance · · 14 min · By Álvaro García

Spain Year-End Tax Planning 2026: 5 Ways to Pay Less Tax

Spain year-end tax planning 2026: cut your tax before 31 December with pension plan relief, loss offsetting, 2022 losses, donations and RDL 29/2026.

Spain Year-End Tax Planning 2026: 5 Ways to Pay Less Tax

Contents

  1. What can I do before 31 December to pay less income tax in Spain?
  2. How savings are taxed in Spain in 2026: the savings income tax bands
  3. How much tax do I save with a pension plan in Spain?
  4. Tax-loss harvesting in Spain: offsetting gains with losses before 31 December
  5. Spanish capital losses from 2022 expire on 31 December 2026
  6. Charitable donations in Spain: the biggest income tax deduction
  7. Deductions with a 2026 deadline
  8. What to do first, depending on your profile
  9. Worked case: how much an investor saves by combining measures
  10. Checklist for December 2026
  11. Frequently asked questions

In short: to pay less on your Spanish 2026 tax return (the one you file in spring 2027), only what you do before 31 December 2026 counts. For a saver or investor, the most useful levers are paying into a pension plan (up to €1,500 deductible), offsetting gains with losses in your portfolio without falling foul of the two-month rule, and using the 80% deduction on the first €250 you donate. Below you will find how much each one saves, with worked examples.

Updated on 30 November 2026.

Today, 30 November 2026, there is one month left before the tax year closes. What you do in December with your savings and investments decides part of what you will pay on the 2026 income tax return, which is filed in 2027: after 31 December, nothing can be changed. This Spain year-end tax planning guide brings together the five levers that are in your hands: 1) the pension plan, 2) offsetting gains with losses, 3) not letting old losses expire, 4) charitable donations and 5) the deductions with a 2026 deadline, including the October changes. For each one you get the figures from the rules currently in force and worked examples.

A note on names first. Spain's personal income tax is called IRPF (Impuesto sobre la Renta de las Personas Físicas), and the annual return is known simply as the "Renta". The tax agency, the Agencia Tributaria (often just "Hacienda"), calls the return for the 2026 tax year "Renta 2026": it is the return you file in the spring of 2027, and some media call it "Renta 2027". One warning: not every measure suits everyone, some only defer the tax, and the figures reflect the state rules that apply in the common-regime territories. If you live in the Basque Country or Navarre, your territory has its own foral rules.

What can I do before 31 December to pay less income tax in Spain?

Before 31 December you can reduce your 2026 tax bill by paying into a pension plan (up to €1,500 a year in individual plans), selling investments at a loss to offset the year's gains, making donations to charities (an 80% deduction on the first €250) and using the deductions that expire in 2026, such as those for energy-efficiency works or electric cars.

MeasureLimit or percentageSaving or effectWatch out for
Individual pension plan€1,500 a year (or 30% of your net income from work and business activities, if lower)Reduces the general tax base: you save your marginal rateTaxed when you withdraw
Employer pension plan (with a company contribution)Up to €8,500 more, €10,000 in totalSame as aboveDepends on what your employer pays in
Selling investments at a lossNo limit against capital gains; 25% cross-offset against interest and dividendsBetween 19% and 30% of the loss offsetThe two-month rule
Donations80% of the first €250; 40% of the rest (45% if you are a repeat donor)Direct deduction from the tax dueCap of 10% of the taxable base
Deductions under Royal Decree-Law 7/2026 (RDL 7/2026)Energy-efficiency works and electric vehicles, with deadlines ending on 31-12-2026Deduction from the tax dueRequirements and certificates

How savings are taxed in Spain in 2026: the savings income tax bands

Interest, dividends and gains from selling shares or funds go into the savings income tax base (the "base del ahorro"), which in 2026 is taxed in bands: 19% up to €6,000, 21% from 6,000 to €50,000, 23% from 50,000 to €200,000, 27% from 200,000 to €300,000 and 30% above €300,000, according to article 66 of the IRPF Act (Ley del IRPF). The 30% band (previously 28%) has applied since the 2025 tax year.

Net savings gain in the yearTaxAverage rate
€1,000€19019.0%
€6,000€1,14019.0%
€10,000€1,98019.8%
€20,000€4,08020.4%
€60,000€12,68021.1%

Our own calculation using the combined state and regional savings scale, which is the same across Spain.

The practical consequence: every euro of gain that you offset or defer saves you at least 19 cents, and more if you go above €6,000. If you want to see how savings grow over the long term with and without tax drag, you can try it in the compound interest calculator.

How much tax do I save with a pension plan in Spain?

A contribution to a pension plan reduces your general taxable base, so the saving equals the contribution multiplied by your marginal IRPF rate. With €1,500 paid in before 31 December, the saving on the 2026 return runs from about €285 at a 19% marginal rate up to €675 at 45%.

Your marginal rate (approx.)ContributionSaving on the 2026 return
19%€1,500€285
24%€1,500€360
30%€1,500€450
37%€1,500€555
45%€1,500€675

The rates in the table are indicative (the state general scale plus a reference regional scale). Your real marginal rate depends on your autonomous community and on your taxable base.

What nobody tells you about the pension plan

  • It is a deferral, not a gift. As the tax advisers of the REAF (the Spanish register of tax-adviser economists) point out in their year-end guide, reported by the Diari de Tarragona, the reduction is applied to the general base of the year in which you contribute. When you cash in the plan, the money is taxed as employment income. It pays off mainly if your marginal rate today is higher than the one you expect to have in retirement.
  • The money is locked in. You can only get it back in the cases set out by law (retirement, disability, long-term unemployment, serious illness, or contributions more than ten years old).
  • Fees matter. Compare the management and custody fees before you contribute; with small contributions they can eat part of the advantage.
  • If you retired in 2024 and want to take as a lump sum what you contributed before 2007, with the 40% reduction, the deadline ends on 31 December 2026: the law only allows it in the year of retirement and the two following years (twelfth transitional provision of the IRPF Act).

Tax-loss harvesting in Spain: offsetting gains with losses before 31 December

If this year you have sold shares or funds at a profit and you hold other securities that are showing a loss, selling them before 31 December turns that unrealised loss into a tax loss that is subtracted from the gain. It is one of the decisions with the biggest effect, and it can only be taken up to the last business day of the year.

Worked example

You have sold shares with a gain of €6,000 and you hold other shares that have lost €2,000. If you do nothing, you pay €1,140 (19% of €6,000). If you sell the losing shares before the end of the year, the net gain drops to €4,000 and you pay €760: €380 less. With a gain of €10,000 and a loss of €3,000, the saving is €630, because part of the gain was in the 21% band.

The rules you need to know, according to the IRPF Act (articles 33.5 and 49):

  • Gains and losses offset each other with no limit.
  • Cross-offsetting is capped at 25%. If the balance of capital losses is negative, you can offset it against the positive balance of interest and dividends, but only up to 25% of that balance (and the other way round).
  • Four-year carry-forward. What you do not offset this year can be used in the following four tax years (we cover this in the section on 2022 losses).
  • The two-month rule (or one-year rule). If you sell at a loss securities admitted to trading (listed shares, ETFs) and you buy back identical or substantially similar securities (homogeneous securities) in the two months before or after, the tax authority does not let you count the loss until you sell those new securities (article 33.5.f). For securities not admitted to trading the period is one year (article 33.5.g). For investment funds there is no single criterion: a binding ruling (consulta vinculante) of the Directorate-General for Taxes (V2067-06) applied the two-month period to fund units, but the Agencia Tributaria's help page for Form 100 (the income tax return) places unlisted units in the one-year period, as reported by Guía Fiscal. The prudent option is not to buy back the same fund, or a homogeneous one, for a year.

One important warning: selling to create a tax loss carries market risk. If the security rises while you are out of it, you can lose more than you save in tax. This is not a recommendation to sell or buy any asset, only a calculation of its tax effect.

To work out the result of each trade, brokerage fees included, you can use the stock profit calculator. If you invest in the US stock market from Spain, in our guide to buying US stocks from Spain we also go through how those sales are declared and the double taxation of dividends.

Spanish capital losses from 2022 expire on 31 December 2026

The capital losses that you could not offset in 2022 can only be used up to the 2026 return. If this year you have not sold anything at a profit, those losses will be lost on 31 December. The move, which few people explain, is the opposite of the usual one: realise gains so that the old losses absorb them.

An example (illustrative figures): Javier has €4,000 of unused losses from 2022 and an ETF with €4,000 of unrealised gain. If he sells it before 31 December, the gain is offset by the old loss and he pays €0. Because the two-month rule only affects losses, he can buy the ETF back straight away: his new purchase price, €4,000 higher, will reduce the future gain. At 19%, that is €760 less tax when he sells, in exchange for the brokerage fees on the two trades. If he does nothing, the 2022 losses disappear and save him nothing.

Transferring between investment funds in Spain: no tax until you redeem

If you want to change fund without going through Hacienda, a transfer between investment funds (a "traspaso") generates no gain or loss until you redeem the money (article 94 of the IRPF Act). As a general rule, that deferral does not apply to listed ETFs. The consequence: if you want to realise a loss in order to offset it, you need a redemption, not a transfer.

Charitable donations in Spain: the biggest income tax deduction

Donations to NGOs and bodies covered by Act 49/2002 earn a deduction of 80% of the first €250 and 40% of the rest, rising to 45% if you have donated to the same body, for the same or a larger amount, in the previous two years. The total deductible amount is capped at 10% of the taxable base (Act 49/2002, article 19).

Donation in 2026Deduction (no recurrence)Deduction (with recurrence)Real cost to you
€100€80€80€20
€250€200€200€50
€500€300€312.50€200 / €187.50

That is why the first €250 are the most efficient: donating €250 costs you, in practice, €50. Keep the certificate from the charity; normally it reports the donation to the Spanish tax agency itself.

Deductions with a 2026 deadline

Royal Decree-Law 7/2026 of 20 March, approved in response to the Middle East crisis, extended several IRPF deductions with deadlines tied to 31 December 2026, according to the Agencia Tributaria:

  • Energy-efficiency improvement works in homes: works carried out up to 31 December 2026, with the energy-efficiency certificate issued before 1 January 2027. In buildings that are predominantly residential, the deadline runs to 31 December 2027.
  • Plug-in electric vehicles and charging points: deduction extended for vehicles bought up to 31 December 2026 and charging points whose installation is finished in 2026. According to the Agencia Tributaria's table, it is 15%, with a maximum base of €20,000 for the vehicle (up to €3,000 of deduction) and €4,000 for the charging point (up to €600).
  • Self-consumption with renewables: a new state deduction of 10% (installation in your own property) or 20% (home in a residential building) of what is paid in 2026, with a maximum of €5,000 a year. It is incompatible with the energy-efficiency deduction for the same installation in the same property.

These deductions come with technical requirements (certificates, type of installation, maximum base), so it is worth checking them on the Agencia Tributaria's information page before you decide.

The October changes: RDL 29/2026

Royal Decree-Law 29/2026 of 6 October, in force since 8 October, added measures worth knowing about before the year ends:

  • State deduction for tenants: 10% of what you pay in rent for your main home if your taxable base is below €33,007.20, with a maximum deduction of €1,163 (a maximum base of €11,630, which is reduced from a taxable base of €23,007.20). For example, with a taxable base of €28,007.20, the maximum base falls to €5,815 (11,630 − 1.163 × 5,000) and the maximum deduction to €581.50. It requires that you do not own another home within 50 km for at least half of the year. Keep the proof of your rent payments and check with the Agencia Tributaria how it applies in your return before counting on it.
  • Financia Europa Savings and Investment Account (CAIFE) and the SIALPFE insurance: two new savings products with tax advantages (in the CAIFE, a 100% exemption of the gain up to €10,000 and 20% of the rest if the contributions are held for more than five years). Note: they cannot be taken out until their ministerial order is approved, so they are not an option for December 2026.

What to do first, depending on your profile

Your situationFirst measure to reviewWhy
You have sold at a profit and hold securities at a lossOffset lossesA definitive saving of 19% to 30% without locking money away
You have unused 2022 losses and no sales in 2026Realise gainsThe losses expire on 31 December
High salary (marginal rate of 37% or more)Pension planEvery €1,500 saves €555 or more this year
Tenant with a taxable base below €33,007.20Rent deductionUp to €1,163 from the new state deduction
You are going to donate anywayDo it before 31-12The first €250 cost you €50

Worked case: how much an investor saves by combining measures

To see the combined effect, we take a typical case with round figures (an example, not a real case): Laura has sold shares this year with a gain of €8,000, holds other shares with an unrealised loss of €2,500, has a marginal rate of 30% on the general base and usually donates to an NGO.

Measure before 31-12What it doesLess tax on the 2026 returnWhat it costs her
Sells the shares at a lossThe net gain falls from €8,000 to €5,500 (tax from €1,560 to €1,045)€515Risk of being out of the market if the stock rises; she cannot buy back within two months
Pays €1,500 into a pension planReduces her general base€450The money is locked in and will be taxed on withdrawal
Donates €250 to an NGO80% deduction€200The €250 donated
Total€1,165

Our reading: offsetting losses is the only measure that saves tax permanently without locking money away, but it forces you to unwind a position; the pension plan saves tax today in exchange for paying tax tomorrow; and the donation only makes sense if you were going to give anyway, because you always pay out more than you deduct.

Checklist for December 2026

  1. Keep the date in mind: the last day of the tax year is Thursday 31 December 2026.
  2. Check with your broker or bank the gains and losses realised this year.
  3. Check on your 2025 return whether you have losses carried forward from earlier years, especially from 2022.
  4. If you are going to sell at a loss, do not buy back the same security until two months have passed if it is listed (one year if it is not).
  5. Work out your marginal rate before paying into a pension plan, and check that the contribution arrives before 31 December (many providers set an earlier cut-off date).
  6. Group together the donations you were planning to make and keep the certificates.
  7. If you have works or purchases tied to RDL 7/2026, check the payment dates and certificates.

None of these decisions should be taken for tax reasons alone: selling an investment or locking money into a plan has consequences beyond the tax return. This guide is for information only and does not replace a tax adviser who knows your case. Inflation, which fell from 4.9% in October to 4.1% in November according to the flash estimate from the INE (Spain's national statistics institute) of 27 November, also counts in the equation; we analyse it in November's inflation figures and their effect on savings.

Frequently asked questions

Until when can I pay into a pension plan to get the 2026 tax relief?

The contribution has to be made before 31 December 2026 to reduce the base of the 2026 return, which is filed in 2027. Many providers set an internal cut-off one or two business days earlier, so do not leave it to the last minute.

How much can I deduct for a pension plan in 2026?

Up to €1,500 a year in individual plans, with a limit of 30% of net income from work and from business activities. With employer plans where the company contributes, the combined limit rises to €10,000.

What is the two-month rule in Spanish tax law?

If you sell listed shares or ETFs at a loss and buy homogeneous securities in the two months before or after, you cannot count that loss until you sell the securities you bought back (article 33.5 of the IRPF Act). For unlisted securities the period is one year.

Can I offset share losses against the interest on a deposit?

Yes, but with a limit: the negative balance of capital gains and losses can only offset up to 25% of the positive balance of interest and dividends of the same year. Whatever is left over is carried forward for the following four years.

What happens to my 2022 losses that I have not offset?

They can only be used up to the 2026 tax return. If you have no gains this year to absorb them, they will disappear. One option is to sell investments with an unrealised gain before 31 December to offset them; since the two-month rule only affects losses, you can buy back afterwards.

How much tax relief do I get if I donate €250?

80%: a €200 deduction from the tax due, so the donation costs you €50. Above €250 the deduction falls to 40%, or 45% if you have given to the same body for three years in a row, the same amount or more.