Cartera Serena
ES

How your investments are taxed in Spain in 2026: savings brackets and examples

How much the Spanish taxman takes from your investment gains, when each product pays, and how to use losses in your favour.

Cartera Serena editorial team. Updated 24 November 2026. 9 min read

In short: investment gains are taxed in the savings base of Spanish income tax (IRPF): 19% up to €6,000, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000 and 30% above that. You only pay when you sell at a gain or receive dividends or interest, and losses can be offset.

The 2026 savings brackets

Spanish income tax (IRPF) has two "boxes": the general base, where your salary goes, and the savings base, where investment gains, dividends and interest go. The savings base has its own rates, applied in brackets:

Savings baseRate
Up to €6,00019%
€6,000 to €50,00021%
€50,000 to €200,00023%
€200,000 to €300,00027%
Over €300,00030%

It works like a staircase: each rate only applies to the part that falls within its bracket. The top rate rose from 28% to 30% from 2025 and stays there in 2026. These figures apply to the common regime; the Basque Country and Navarre have their own rules.

When each product is taxed

  • Shares and ETFs: you're taxed on the gain when you sell (sale price minus purchase price, including costs). Dividends are taxed each year when received.
  • Investment funds: taxed only when you cash out. Switches between funds aren't taxed. If they're accumulating, there are no dividends to declare.
  • Deposits, interest-paying accounts and bills: interest is taxed in the savings base in the year you receive it.
  • Pension plans: the exception. When you withdraw, they're taxed as employment income, in the general base, not the savings base.
Foreign dividends: if you receive dividends from companies in other countries, tax is often withheld there and again in Spain. You can recover part of it through the international double taxation deduction in your return, within the limits of each country's tax treaty.

Worked example

You cash out a fund with a gain of €10,000 and have no other savings income that year:

  • The first €6,000 pays 19%: €1,140.
  • The remaining €4,000 pays 21%: €840.
  • Total: €1,980, an effective 19.8% on the gain.

The fund manager will have withheld 19% (€1,900) when you cashed out, so in your tax return you'd pay the €80 difference.

A legal tip: if you need to take money out gradually, spreading withdrawals over several years can keep your gains in the 19% bracket.

Offsetting losses

Losses have tax value. The basic rules:

  1. Losses from selling at a loss are deducted from gains on sales in the same year.
  2. If losses are left over, you can deduct them from that year's dividends and interest up to 25% of them (and vice versa).
  3. Whatever you can't offset carries forward for the next four years.

For it to count, the loss must appear in your tax return, even if you have nothing to pay that year.

Common traps

  • The two-month rule. If you sell shares or ETFs at a loss and buy back the same securities within two months before or after, you can't claim that loss yet. For unlisted securities the period is one year.
  • Confusing withholding with final tax. The 19% withheld is an advance, not the final tax.
  • Forgetting accounts with foreign brokers. Gains must be declared even if the provider doesn't report them to the Spanish Tax Agency. And if you hold more than €50,000 abroad you may have to file form 720 (accounts and securities) or 721 (crypto).
  • Selling one ETF to buy another without considering tax. Explained in index funds versus ETFs.

The CNMV's official guide to fund taxation and the Spanish Tax Agency's practical income tax manual are the references to check if you have a specific case.

Frequently asked questions

Do I have to declare anything if I haven't sold?

If you haven't sold or received dividends or interest, there's no gain to tax. Increases in the value of what you hold aren't taxed until you sell.

How is the gain calculated if I bought in several goes?

The FIFO rule applies: you're treated as selling the units or shares you bought first. Your provider usually gives you the calculation in its annual tax report.

What's the 19% withholding?

When you receive dividends or interest, or cash out a fund at a gain, the provider usually withholds 19% on account. Your tax return then works out the real tax and deducts what's already been withheld.

What happens if I make a loss one year?

You can offset it against gains in the same year and, if any is left over, against gains in the following four years. You must include it in your tax return even if you have nothing to pay.

Official sources

Figures checked against these sources as of the article's update date (most are in Spanish):

This article is educational and is not a personalised investment recommendation. Tax figures apply to the common regime in Spain (not the Basque Country or Navarre) and to the rules in force in November 2026; check them with the Spanish Tax Agency or the CNMV before deciding. Past performance does not guarantee future returns.