Contains AI-generated informationMore information

Investment income and capital gains

You will know how your portfolio is taxed in Spain and which choices change the result.

Moving to Spain changes how your savings and investments are taxed. This topic explains how Spain taxes interest, dividends, capital gains, funds, ETFs, insurance-based savings and foreign investment structures when you are a resident. It also covers the choices that change the result, such as…

12 articlesAbout 1 hour of readingEssentialIncome, assets, investments, and pensions

Start with the first articleSee all 12 articles

Pick the article that fits your situation

  1. How Spain taxes interest and dividends (savings income)

    Explains which income Spain puts in the savings base, the five-step scale that taxes it, and how much is withheld at source. For tax residents with bank interest, dividends or investment gains.

    3 min read

  2. Foreign dividends: Spanish tax plus tax already withheld abroad

    Foreign dividends are taxed in Spain if you are a tax resident, with a credit for tax already withheld abroad. This page shows how the credit is capped, what to do with any excess withholding, and where to find the treaty rate for your country.

    8 min read

  3. How capital gains on shares and funds are calculated in Spain

    How to work out your taxable gain or loss when you sell shares, funds or ETFs as a Spanish tax resident: which units count as sold first, which costs you can deduct, and how to convert foreign currencies into euros.

    3 min read

  4. Cost basis and exchange rates for investments bought before you moved

    Moving to Spain does not reset what your investments cost. This page explains why your original purchase price and date stay as your basis, how to prove them, and what to do if records are missing. It is for people who bought investments abroad before becoming Spanish tax resident.

    4 min read

  5. Funds versus ETFs: why Spanish tax treatment differs

    Explains why Spanish funds can be switched without tax while ETFs and foreign funds cannot, and why US ETFs are usually blocked for you. For tax residents in Spain choosing between funds and ETFs.

    5 min read

  6. Accumulating or distributing funds: when Spain taxes reinvested income

    Explains when Spain taxes income reinvested inside a fund, and how accumulating, distributing and offshore funds differ. It is for people who live in Spain for tax purposes and hold, or plan to buy, investment funds or ETFs.

    4 min read

  7. Using investment losses against gains in Spain

    How to use investment losses to cut your Spanish tax: what they can be netted against, how long you can carry them forward, and how to avoid the repurchase rule that blocks a loss. For tax residents who sell investments at a loss.

    5 min read

  8. Spanish broker or foreign broker: who reports and who withholds

    A Spanish broker withholds some tax and reports to the tax office. A foreign broker usually does neither, so you declare everything yourself. This page is for new residents choosing a broker and planning their tax duties.

    6 min read

  9. Insurance-based savings and unit-linked policies in Spain (seguros de ahorro)

    Explains how Spain taxes PIAS, SIALP, unit-linked policies and foreign insurance bonds, and which of them let you defer tax. It is for tax residents weighing long-term savings products or already holding a UK or Irish bond.

    5 min read

  10. US citizens in Spain: PFIC rules and dual investment reporting

    If you are a US citizen or green-card holder living in Spain, this page explains why Spanish funds and non-US ETFs cause extra US tax paperwork, how the two countries' taxes fit together, and which choices you have for each fund.

    4 min read

  11. Owning a foreign company: how its profits and dividends are taxed

    Explains how Spain taxes you if you live here and own a company abroad: when a low-taxed company's profits are attributed to you each year, and how dividends from it are taxed. For Spanish tax residents who control a foreign company.

    4 min read

  12. Do ISAs, Roth accounts, TFSAs and trusts keep their tax benefits?

    Spain generally does not recognise the tax-free status of foreign ISAs, TFSAs, Roth accounts or trusts once you are a Spanish tax resident. This page is for newcomers who hold these accounts and want to know what Spain will tax and what they must report.

    4 min read

About this topic

It is for people who are thinking about moving to Spain, planning the move, or already living there, and who hold investments. After reading, you will know how your portfolio is taxed and which decisions make a difference.

Crypto, rental income, pensions, the Beckham regime and corporate tax are covered elsewhere.

Start with "How Spain taxes interest and dividends (savings income)". It sets out the savings scale, which the other pages build on. From there, go to the pages that match what you own, such as foreign dividends, capital gains, funds and ETFs, losses, or a foreign company.

Key rules

  • Savings tax rates: Interest, dividends and gains are taxed on the savings scale: 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.
  • Loss carry-forward: Net investment losses can be carried forward for 4 years, and cross-offset between income and gains is limited to 25%.
  • Two-month rule: A loss is not counted if you bought the same security within two months before or after the sale for listed securities, or one year for unlisted ones.
  • Foreign assets report: You must report foreign assets if a category is worth more than €50,000 on 31 December, between 1 January and 31 March.
  • Withholding: Banks and companies withhold 19% on dividends and bank interest, and you get credit for it in your return.
  • Fund redemptions: Gains from redeeming funds have no withholding, so you declare and pay them in your return.

Investment income and capital gains: the whole process, step by step

  • Work out whether you are a Spanish tax resident for the year you arrive, and how income from before the move is treated (read: Cost basis and exchange rates for investments bought before you moved): In your year of arrival, before you file

  • Sort your interest, dividends and gains into the savings scale and see the rates (read: How Spain taxes interest and dividends (savings income)): Before you prepare your return

  • Calculate gains on shares and funds, selling the oldest units first across all your brokers (read: How capital gains on shares and funds are calculated in Spain): When you sell, and again when you prepare your return

  • Before selling at a loss, avoid buying the same security back: a loss is not counted if you bought it within two months before or after the sale for listed securities, or one year for unlisted ones (read: Using investment losses against gains in Spain): Two months before and after a sale of listed securities; one year for unlisted ones

  • Claim foreign tax withheld on dividends as a credit in Spain, and reclaim any excess above the treaty rate from the source country (read: Foreign dividends: Spanish tax plus tax already withheld abroad): Credit on your annual return; foreign reclaims commonly within two to four years of the payment, depending on the country

  • Report foreign accounts, securities and property if a category is worth more than €50,000 on 31 December (read: Spanish broker or foreign broker: who reports and who withholds): Between 1 January and 31 March

  • Carry unused net losses forward, with cross-offset between income and gains limited to 25% (read: Using investment losses against gains in Spain): For the next 4 years, oldest losses first

  • Consider long-term savings products such as PIAS and SIALP if you want to hold money for many years (read: Insurance-based savings and unit-linked policies in Spain (seguros de ahorro)): A PIAS needs at least 10 years; a SIALP needs 5 years

Documents you may need

Identity and residence

Other documents

Investment income and capital gains: questions that cross several articles

Which of my investment income is taxed on the savings scale?

Dividends, bank interest, fund and share gains, and most capital income from insurance are taxed on the savings scale, while work, business and rental income are not. The rates run from 19% up to 30% above €300,000. Read How Spain taxes interest and dividends (savings income) for the full scale.

Is tax withheld when I redeem a fund?

No, a Spanish fund redemption by a resident has no withholding, while Spanish dividends and bank interest are withheld at 19%. The withheld amount is credited against your final tax bill. Read How Spain taxes interest and dividends (savings income), then How capital gains on shares and funds are calculated in Spain.

Can I get back all the tax withheld on my foreign dividends?

Not through Spain: the Spanish credit is limited to the treaty rate, and any excess withheld abroad must be reclaimed from the source country's tax authority. Unused credit can be carried forward four years.

Which shares count as sold first if I hold the same fund at several brokers?

The oldest units are sold first across all brokers, because the same security with the same ISIN is pooled regardless of account. This matters for gains and for the loss rules. Read How capital gains on shares and funds are calculated in Spain and Using investment losses against gains in Spain.

Explore places

Where you live changes the details. See how Spanish regions and cities compare on rent, jobs, weather, safety and healthcare.

Need certainty before you act?

For important relocation decisions, speak with a qualified human specialist.

Consult with a human specialist

For decisions that depend on your own circumstances, a qualified human professional should look at your case. Tell us what you need help with and we will reply by email.

Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.

What matters to me

Tell us who you are and what you care about. Fit scores and rankings across the site follow your answers.