Skip to content

Choose your country

  • European editionEN
  • SpainES

This page does not exist in the requested language

You can close this window, go back to the previous page or go to the home page of the requested version.

Tax on trading and investing in Spain: how to declare gains, losses and income in your 2027 tax return

Alexandre Borene By Alexandre Borene published and checked on 16 Nov 2026 10 min read
Out of a €1,000 gain made in 2026, €810 is left after €190 of tax.
First bracket of the savings scale: 19% on a €1,000 gain (chart labels in Spanish).

The offer, the entity that serves you and the fees depend on your country of residence.

Tax review: pending, no named reviewer yet. General information for Spanish tax residents, not personal tax advice.

A €1,000 gain made in 2026 leaves €810. Stock market gains, dividends and interest make up the savings base, which has its own scale: from 19% on the first €6,000 to 30% above €300,000, according to the Spanish tax agency's 2025 income tax manual (opens in a new window).

There is no flat rate, unlike Italy (26%) or Germany (25% plus the solidarity surcharge). In Spain the rate rises with the amount.

This guide covers the return you file in 2027 for 2026 income. It follows one question: what is added, what is deducted, and where it is written.

In short

  • Shares, ETFs, funds, dividends, interest, crypto, CFDs and forex all go into the savings base.
  • Scale: 19% up to €6,000, 21% up to €50,000, 23% up to €200,000, 27% up to €300,000, 30% above.
  • Gains have no exempt amount of their own: tax starts at the first euro.
  • Losses offset gains of the same year and of the four following years.
  • Broker or exchange abroad: nobody withholds. You declare in form 100 and, above €50,000, you report in form 720 or 721.
  • The 2027 calendar and several details were not checked at the source: the list is at the end.

Rates, thresholds and boxes by type of income

Income or gain (2026)TaxationWithholding in SpainLossesWhere to declare
Gains on the sale of sharesSavings scale, 19% to 30%NoneOffset for four yearsForm 100, capital gains and losses (section F2)
Investment funds and ETFs, gainsSavings scale19% on fund redemptionsOffset for four yearsForm 100, section F2
DividendsSavings scale19%Not applicableForm 100, income from movable capital
Interest and couponsSavings scale19%Negative income can be offsetForm 100, income from movable capital
CFDs, options, futures, leveraged forexSavings scaleNoneOffset for four yearsForm 100, section F2
Virtual currenciesSavings scaleNoneOffset for four yearsForm 100, box 1804
Securities and accounts abroadReporting duty, no taxNot applicableNot applicableForm 720, above €50,000
Virtual currencies held abroadReporting duty, no taxNot applicableNot applicableForm 721, above €50,000

The scale and boxes are those of the return for 2025 income. The form for 2026 income will be approved in early 2027.

The savings base and its scale

Spanish income tax (IRPF) has two bases. The general base takes salary, rent and business income. The savings base takes income from movable capital and gains on the disposal of assets. Each has its own scale.

Taxable savings baseRateCumulative tax at the top of the bracket
Up to €6,00019%€1,140
€6,000 to €50,00021%€10,380
€50,000 to €200,00023%€44,880
€200,000 to €300,00027%€71,880
Above €300,00030%

The scale is progressive by bracket: 21% applies only to the part above €6,000. A €10,000 gain pays €1,140 on the first €6,000 and €840 on the next €4,000: €1,980, or 19.8%.

The tax is split between the State and the autonomous community, half each on this scale. Article 66 of the income tax law (opens in a new window) sets the State share: 15% in the top bracket, half of 30%.

The 30% rate is recent. In the return for 2021 the scale stopped at 26% from €200,000. We found no change to the scale for 2026: not verified.

Withholding is not the tax

A Spanish bank withholds 19% on dividends, interest and fund redemptions. It is a payment on account. If your savings base exceeds €6,000, the return claims the difference up to 21% or more.

The sale of shares carries no withholding. The tax agency receives the information from Spanish institutions and shows it in your tax data, but the calculation and the payment happen in the return.

Shares, funds and ETFs

The gain is the difference between the sale value and the purchase value, commissions included. Tax arises on sale: an unrealised gain is not declared.

If you bought the same shares on several dates, the oldest are treated as sold first. This is the FIFO rule, given here from memory for shares; the agency confirms it for virtual currencies.

Losses are offset in two steps

First, gains and losses of the year are netted against each other. Dividends and interest form a separate block, netted on its own.

Then, if one block ends negative, it is deducted from the other with a cap: 25% of the positive balance of that other block. The agency describes this in its chapter on offsetting (opens in a new window).

What is left goes to the four following years, in the same order. After the fourth year the loss is gone.

Example: in 2026 you lose €4,000 on shares and receive €2,000 of dividends. You can deduct €500 from the dividends, 25% of €2,000. €3,500 remains to be offset until 2030.

The two-month rule

A loss does not count if you buy the same securities again within two months before or after the sale. It is deferred until you sell the repurchased securities. For unlisted securities the period is one year. Rule given from memory, from article 33.5 of the income tax law: not re-read at the source.

Funds: a switch is not taxed, an ETF sale is

Fund redemptions were subject to 19% withholding in 2025, the tax manual (opens in a new window) states.

Moving from one fund to another through a transfer (traspaso) defers the tax: the gain is carried into the new fund. ETFs do not have that regime: each sale is taxed, like a share. Difference given from memory.

A new account since October 2026

Royal Decree-law 29/2026 (opens in a new window) of 6 October creates a savings and investment account. The text excludes from tax part of the gain attributable to contributions held for more than five years. The amounts, eligible products and start date were not verified, and a royal decree-law must be ratified by Congress.

Dividends and interest

Out of a €100 dividend from a Spanish company, €81 arrives. The €19 withheld is then credited in the return.

A foreign dividend arrives already reduced by the source country's withholding. In Spain you declare the gross amount, and the tax paid abroad is deducted up to the treaty limit, through the international double taxation deduction. The excess is reclaimed from the foreign tax authority. The rates of individual treaties were not checked here.

With a foreign broker there is no Spanish withholding: the whole dividend is taxed in the return.

Crypto

Holding or buying virtual currencies is not declared in the income tax return. Only what you obtain from sales or other transactions is, says the agency's income tax assistant (opens in a new window).

A sale for euros or another legal currency produces a capital gain or loss, which goes into the savings base. On a €1,000 bitcoin gain, the tax is €190 in the first bracket: the same as on a share.

FIFO and box 1804

In a partial sale of identical coins bought on different dates, the oldest go first. The transaction is entered in the virtual currencies section, box 1804.

The gain is declared in the year the coins are delivered, even if the price is collected later.

Swapping one cryptocurrency for another is also treated as a disposal, under the known position of the Directorate-General for Taxes. Point given from memory, like the treatment of staking.

Form 721: crypto held abroad

If your coins are on a foreign exchange, there is a second, reporting-only duty. It does not apply if the balances at 31 December do not exceed €50,000 in total, the agency states in its frequently asked questions (opens in a new window).

Form 721 is filed from 1 January to 31 March of the following year. In later years it is only required again if the total balance has risen by more than €20,000 since the last filing.

Euros or dollars left on the exchange are not virtual currencies. Crypto does not go in form 720 either: the agency says so on that form's page.

Forex, CFDs and derivatives

A €1,000 gain on a CFD is taxed like one on a share: savings base, €190 in the first bracket. The result arises when the position is closed. A position open on 31 December 2026 does not enter the 2027 return.

Losses offset gains on shares, funds and crypto of the same year, then for four years. CFD providers publish the share of retail clients who lose money, usually more than half: a declared loss stays usable for four years.

Many CFD and forex brokers are based in Cyprus, Ireland or Malta. They neither withhold nor report to the agency like a Spanish institution: you calculate the yearly result yourself, converted into euros.

This section relies on the general rule for capital gains. Exchange differences on foreign-currency accounts and the financial transaction tax were not verified.

Accounts and securities abroad: form 720

Form 720 reports assets located outside Spain in three blocks: accounts, securities and insurance, real estate. The threshold is €50,000 per block, and you file again if a block rises by more than €20,000. Thresholds given from memory: the form's page (opens in a new window) does not show them in the excerpt consulted.

The period is the same as for form 721: 1 January to 31 March. No tax is due on it. The penalties in force after the 2022 European ruling were not verified.

Filing step by step in 2027

The return for 2025 income was filed from 8 April to 30 June 2026. With payment by direct debit, the deadline was 25 June (Agencia Tributaria (opens in a new window)). The calendar for 2026 income was not published on 16 November 2026: not verified.

Reference calendar (2026 campaign)

StepDate in 2026In 2027
Forms 720 and 7211 January to 31 March1 January to 31 March, unless changed
Online filing of the return8 April to 30 Junenot published
Help by phonefrom 6 Maynot published
Help in tax officesfrom 1 Junenot published
Deadline with direct debit25 Junenot published
Second instalment of a split payment2 Novembernot published

Before you fill it in

  1. Download your tax data from the agency's website. It holds what Spanish institutions report.
  2. Ask each foreign broker for its annual statement: sales, gross dividends, source withholding, interest, balance at 31 December.
  3. Export the history of each exchange: date, quantity, euro value and fees of every transaction.
  4. Find your pending losses from 2022 to 2025 in your earlier returns.
  5. Convert every foreign-currency amount into euros.

In Renta Web

  1. Open the draft with Cl@ve, a certificate or a reference number. Trades with a foreign broker are not included.
  2. Check the income from movable capital: dividends and interest, with their withholding.
  3. Add each sale under capital gains and losses: shares, funds, derivatives.
  4. Enter virtual currencies in their section, box 1804.
  5. Check the offsetting of losses of the year and of earlier years.
  6. Apply the international double taxation deduction if you received foreign dividends.
  7. Submit. If tax is due, you can split it into two instalments: the second fell on 2 November in 2026.

The tax agency publishes help videos on Renta Web for each campaign. We found no official video dedicated to stock market gains: not verified.

Frequently asked questions

My bank already withheld 19%. Am I done?

No. Withholding is an advance. The return calculates the tax with the scale and credits what was withheld. Above €6,000 of savings base, a difference remains to be paid.

I have a foreign broker. What changes?

Nobody withholds or reports for you. You declare each sale, dividend and interest payment, and you file form 720 if you exceed the threshold.

Can I deduct a loss on shares from my dividends?

Yes, but only up to 25% of the year's dividends and interest. The rest of the loss waits for up to four years.

Can I deduct a crypto loss from a gain on shares?

Yes. Both are gains and losses on disposals and are netted in the same block. In Italy you cannot.

I sold at a loss and bought back a week later. Does the loss count?

Not straight away. Under the two-month rule, it is deferred until you sell the repurchased securities.

I made €500 on crypto. Do I have to declare?

The gain is taxed from the first euro: €95, at 19%. The limits that exempt people with little income from filing a return were not checked here.

I sold nothing. Do I have to file anything?

Not in the income tax return: holding securities or crypto is not taxed. Forms 720 and 721 do depend on the balance at 31 December, not on sales.

Does this guide apply in the Basque Country or Navarre?

No. The foral territories have their own tax and their own forms. This guide describes the common regime.

What if I am not resident in Spain?

It does not apply either. Tax follows tax residence, not the broker's country.

Not verified

  • The savings scale applicable to 2026 (the 2025 scale is shown) and the calendar for 2026 income.
  • Box numbers of the 2027 form.
  • The two-month rule, FIFO for shares and the fund transfer regime, given from memory.
  • The thresholds and penalties of form 720.
  • Crypto-to-crypto swaps, staking and other income from virtual currencies.
  • The savings and investment account of Royal Decree-law 29/2026: amounts, conditions and ratification.
  • Exchange differences, the financial transaction tax and treaty rates.
  • The limits of the duty to file and the foral regimes.

Review

NextFinTech.eu's editorial rule requires a named reviewer for every tax topic. None has been appointed for this guide yet. The figures were collected on 16 November 2026 from excerpts of the official pages listed in the sources and remain to be re-read page by page.

This guide gives general information. It replaces neither the official documentation nor the advice of a tax professional on your situation.

Sources