Spain filing pack

Spain Investment Tax Report

Your Spanish savings base, built from the trades you already keep: gains and losses on traded shares in casilla 0326 of Modelo 100, the repurchase rule applied where it bites, and the tax worked out on the 19% to 30% scale.

Rules checked 15 September 2026
Modelo 100, casilla 0326 Modelo 720 tool 2025 and 2026 tax years

What investors in Spain must report

The four things the Agencia Tributaria wants from a portfolio, and how far the pack takes each one.

ItemThe ruleForm and boxWhat the pack produces
Gains on shares and funds Disposals of traded shares and units go in the savings base, taxed on a progressive scale from 19% to 30%. Modelo 100, casilla 0326 Prepared FIFO across homogeneous securities from every account you include, then the net balance for the year.
Losses on a share you bought back A loss is not computable while you hold the same security bought within two months either side of the sale on an EU or EEA regulated market, or within a year either side for anything else. Modelo 100, savings base Prepared The deferred amount is held and shown on its own line as still pending, rather than quietly dropped.
Dividends and interest Movable-capital income sits in the same savings base and cross-compensates with gains, capped at 25% of the positive side. Modelo 100, savings base Partly You enter the year's figure, the pack runs the compensation and applies the scale. The dividend report gives you gross, withheld and net per holding.
Foreign assets over 50,000 EUR Accounts, securities or property above 50,000 EUR in a category go on the informational Modelo 720 between 1 January and 31 March. Modelo 720 Prepared A separate Modelo 720 tool works out the categories and exports a BOE-format file.
Foreign withholding Tax withheld abroad on the same income can be credited, generally up to the lower of the foreign tax paid or the Spanish tax on it. Modelo 100, deductions Partly Withholding is recorded per payment. You claim the credit and reclaim anything above the treaty rate from the source country.
Submitting the return Residents file the IRPF return each spring, roughly early April to 30 June, for the previous calendar year. Modelo 100 You file Everything leaves as a file for you or your gestor.

Gains on shares and funds

Rule
Disposals of traded shares and units go in the savings base, taxed 19% to 30% on a progressive scale.
Box
Modelo 100, casilla 0326
Pack
Prepared. FIFO across homogeneous securities from every account you include, then the net balance for the year.

Losses on a share you bought back

Rule
Not computable while you hold the same security bought within two months either side of the sale on an EU or EEA regulated market, or a year either side elsewhere.
Box
Modelo 100, savings base
Pack
Prepared. The deferred amount gets its own line as still pending.

Dividends and interest

Rule
Movable-capital income shares the savings base and cross-compensates with gains, capped at 25% of the positive side.
Box
Modelo 100, savings base
Pack
Partly. You enter the year's figure and the pack runs the compensation and the scale.

Foreign assets over 50,000 EUR

Rule
Accounts, securities or property above 50,000 EUR in a category go on Modelo 720 between 1 January and 31 March.
Box
Modelo 720
Pack
Prepared. A separate Modelo 720 tool works out the categories and exports a BOE-format file.

Foreign withholding

Rule
Creditable up to the lower of the foreign tax paid or the Spanish tax on that income.
Box
Modelo 100, deductions
Pack
Partly. Withholding is recorded per payment; you claim the credit.

Submitting the return

Rule
Residents file the IRPF return each spring, roughly early April to 30 June.
Box
Modelo 100
Pack
You file. Exports as PDF, Excel and CSV for you or your gestor.
Numbers for your form

Every line lands where the Renta asks for it

The sheet opens on casilla 0326 and keeps the official Spanish wording beside the English one. Under it sit the net balance, pending repurchase losses, prior-year losses applied, the 25% cross-compensation and your other movable-capital income. The estimated savings base and the savings tax close the sheet, and every security expands into its own disposal and repurchase table.

Open the Spanish pack
AllInvestView Spanish filing pack showing casilla 0326, the savings base and the estimated savings tax, with a per-security disposal table Spanish filing pack showing casilla 0326, the savings base and the estimated savings tax, with a per-security disposal table
Casilla 0326 at 18,262.50 EUR, 480.00 EUR of other movable-capital income, an estimated savings base of 18,742.50 EUR and 3,815.93 EUR of estimated savings tax. Fixture filer, invented figures.View full-size View full-size
Accounts in your return

Choose the accounts that belong in this report

The pack asks which of your accounts belong in the Renta before it calculates anything. The Spanish cards let you include accounts for the ordinary share-gains calculation. A British reader sees ISA and pension chips on the same control, and a French one sees PEA.

See the accounts step
AllInvestView Account scope panel for Spain with two account cards, each showing the trade count and an on or off switch Account scope panel for Spain with two account cards, each showing the trade count and an on or off switch
Two cuentas de valores switched on for the Renta, with the trades each contributed to 2025. Fixture filer, invented figures.View full-size View full-size
Exports

Hand the working papers to your gestor

PDF, Excel and CSV come off the finished sheet, with the disposal detail behind every total. Nothing exports while a figure is still blocked. Closing a year freezes the calculation revision, which means the copy your adviser reviewed is the copy you keep.

See what exports
AllInvestView Export row of the Spanish filing pack with PDF, Excel and CSV buttons Export row of the Spanish filing pack with PDF, Excel and CSV buttons
PDF, Excel and CSV beside the finished Modelo 100 sheet. Fixture filer, invented figures.View full-size View full-size
Where the pack stops

The Renta is still yours to file

It does not submit anything to the Agencia Tributaria, and it does not apply your personal or family circumstances. The savings tax on the sheet is an estimate from the statutory scale, not your final IRPF liability.

The Spanish calculation covers traded shares and fund units. It follows the Modelo 100 revision for the 2025 tax year, and where a figure depends on a fact it does not have, such as an unrecognised market or a missing exchange rate, it blocks that figure rather than guessing at it.

The savings-income brackets, 19% to 30%

In Spain, capital gains, dividends and interest are pooled in the savings income tax base (base del ahorro) and taxed on a progressive scale rather than a single flat rate. For the 2025 tax year, filed in 2026, and continuing into 2026, the bands are:

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

The 30% top band arrived with the 2025 tax year, raised from 28%. Losses can be offset against savings-income gains within limits and carried forward for four years. Because the scale is progressive, your effective rate on a year of gains depends on the total, which is the running figure the pack keeps.

The repurchase rule catches more people than the brackets do

Sell a holding at a loss while you still hold the same security bought close to that sale, and Spanish law says the loss is not yet computable. The window runs two months either side of the sale for a security traded on an EU or EEA regulated market and a year either side for everything else, so a lot you bought before the sale counts just as much as one you bought after it. The loss is not lost: it comes back when you finally let the replacement go.

This is where a spreadsheet quietly goes wrong, because the repurchase often sits in a different account from the sale. The pack matches across every account you put in scope and keeps the deferred amount on its own line, so the figure you carry to the Renta is the one the rule actually allows.

Modelo 720, and what happened to Modelo D-6

If you are Spanish tax resident and hold foreign assets over €50,000 in any one category, whether bank accounts, securities and investments, or real estate, you must file the informational Modelo 720 between 1 January and 31 March. Holdings at a foreign broker count as securities. After the first filing you only re-file a category if its value grows by more than €20,000, or when you dispose of a declared asset.

The penalties changed in 2022. The original Modelo 720 flat-rate penalties were ruled disproportionate by the EU Court of Justice and repealed by Ley 5/2022. It now falls under the ordinary General Tax Law penalties, which are far lower. The obligation is real; the ruinous fines are gone.

You may have read about Modelo D-6, the old declaration for foreign securities. For most retail portfolio investors it generally no longer applies: it was narrowed to significant stakes and then folded into the foreign-investment registry. The Banco de España ETE return is a separate obligation with its own thresholds. If D-6 or ETE might touch you, ask a Spanish adviser, but ordinary broker holdings are captured by Modelo 720.

Relief on foreign withholding

Foreign dividends are taxable in Spain, and tax withheld at source can usually be credited so the same income is not taxed twice. The credit is generally the lower of the foreign tax actually paid or the Spanish tax on that income. Treaty rates matter: many treaties cap dividend withholding at 15%, and anything withheld above the treaty rate is reclaimed from the source country rather than deducted in Spain. AllInvestView records the withholding on each dividend so you have the figures to claim the credit correctly.

Spanish tax tools and guides

Not tax advice. This page summarises the main Spanish investment tax rules for the 2025 and 2026 tax years. Rates, thresholds and reporting rules change and your circumstances differ. Confirm your position with the Agencia Tributaria or a qualified Spanish tax adviser before acting.

Put your own brokers behind these figures

One import, and the savings base, the repurchase matching and the Modelo 720 categories look after themselves.

Start free

Questions about Spanish investment tax

How are capital gains and dividends taxed in Spain?

Investment gains and dividends fall in the savings income tax base (base del ahorro), taxed progressively for the 2025 tax year: 19% up to 6,000 euros, 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. The same brackets apply in 2026.

What is Modelo 100?

Modelo 100 is the annual personal income tax return (declaracion de la renta / IRPF) that Spanish tax residents file, typically between early April and 30 June for the previous calendar year. Investment gains, dividends and interest are reported in its savings-income section.

What happens if I buy the same share back after selling it at a loss?

The loss is not computable yet. Spanish law defers it while you hold the same security bought within two months either side of the sale for a share traded on an EU or EEA regulated market, or within a year either side for anything else. The Spanish pack holds those losses and lists them as still pending instead of dropping them.

Do I have to file Modelo 720 for foreign brokerage accounts?

If you are Spanish tax resident and hold foreign assets, whether accounts, securities or property, worth more than 50,000 euros in a category, you must file the informational Modelo 720 between 1 January and 31 March. You re-file if a declared category grows by more than 20,000 euros. Securities held abroad, including foreign broker holdings, count.

What are the Modelo 720 penalties now?

The old flat-rate penalty regime was struck down by the EU Court of Justice in 2022 and repealed by Ley 5/2022. Modelo 720 now falls under the standard General Tax Law penalties, which are far lower, for example a reduced fixed penalty for late unprompted filing rather than the previous disproportionate fines.

Can I offset foreign tax withheld on dividends?

Yes. Spain gives a double-taxation credit for foreign tax paid on the same income, generally limited to the lower of the foreign tax actually paid or the Spanish tax on that income. Treaty rates, commonly 15% on dividends, matter, and any excess foreign withholding above the treaty rate is reclaimed from the source country, not Spain.

Does AllInvestView help with Modelo 720?

Yes. AllInvestView has a dedicated Modelo 720 tool that computes your reportable foreign holdings by category and exports the data, including a BOE-format file. You review and file it. AllInvestView does not submit to the Agencia Tributaria for you.