Do You Own Stocks Abroad? How to Report Them in Spain

Learn how to declare your foreign shares correctly in your Spanish tax return and avoid Hacienda penalties with this practical guide.

Updated on:
October 21, 2026
TL;DR
If you have shares abroad and have sold them, you must declare them in your IRPF (Spanish income tax) return as a capital gain or loss. Hacienda applies the FIFO method and only requires you to declare those you sold, not those you keep. We explain step by step how to do it in Renta Web.

Filing your income tax return if you own shares in a foreign stock market can be difficult, especially if you have made many investments.

We show you how to declare your investments and what you should take into account.

Table of contents:

📊 Declaring the Sale of Foreign Shares in Spain

If you’ve sold foreign shares, you must include the transaction in your Spanish income tax return—specifically under savings income as a capital gain or loss.

The key factor is not how many shares you hold, but whether you’ve sold any during the year. The Tax Agency only requires you to declare shares you’ve sold, not those you still hold.

How to Calculate Gains or Losses:

  • Subtract the purchase price (including commissions) from the sale price. As the Spanish Tax Agency sets out, the gain or loss is the difference between the acquisition value and the transmission value.
  • The result is your capital gain or loss, which must be reported

💡 Remember: brokerage fees and transaction costs can be deducted, so keep your records organized.

Spain’s Tax Agency has specific rules for how and when to report foreign shares. If you’re unsure how your broker reports data—or if the paperwork is in another language—filing can get tricky.

👉 Let TaxDown help you declare foreign shares accurately and stress-free. Start now at app.taxdown.es.

📌 How Spain’s Tax Agency Treats Foreign Shares

When declaring foreign shares, Hacienda applies the FIFO method (First In, First Out). This means the first shares you bought are considered the first ones sold, regardless of what your broker might show. The Spanish Tax Agency confirms that, where there are homogeneous securities and not all of them are sold, the ones transmitted are deemed to be those acquired first.

💼 Key Considerations:

  • Always track gains and losses per transaction, factoring in all relevant costs.
  • Be precise: every sale must reflect accurate incremental or decremental value changes.

⚠️ Loss Compensation Rule:

If you sell shares at a loss, you can’t buy the same securities again for 2 months—or the loss won’t count for tax purposes. The Spanish Tax Agency explains that, for listed securities, this applies when you repurchase homogeneous securities within the two months before or after the sale, and the loss is then deferred until the definitive transmission.

🧠 These rules are specific and technical—errors can be costly. If you’re unsure, it’s best to get expert help.

🧾 How to Declare Foreign Shares in Your Spanish Tax Return (IRPF)

If you own or trade foreign shares, it’s essential to understand how to declare them correctly in your Spanish income tax return to avoid penalties from the Tax Agency.

✅ Step-by-Step: How to Enter Share Data in Renta Web

  1. Go to Renta Web
    Navigate to Section F2, Page 15, where capital gains and losses from share transactions are reported.
  2. Open Field 0328
    This opens the share declaration module. Enter:
    • Transaction details
    • Issuer name (the company that issued the shares)
    • Purchase value and sale value (include associated commissions)
  3. Verify and confirm
    Once all data is filled in correctly, the platform will automatically integrate it into your tax return. 📌 If you’ve made multiple share transactions, you must enter them one by one.

💱 What If the Transaction Was in Foreign Currency?

If the shares were sold in a non-euro currency, you must:

  • Convert the amount using the official exchange rate on the day of the sale
  • Enter the euro-equivalent value in the return

⚠️ If you’ve made more than 48 transactions, group them by company and treat them as a single entry.


🗂️ Use the Tax Agency’s Securities Portfolio Tool

Hacienda offers a portfolio management tool based on the ISIN code of each share. The Spanish Tax Agency provides this Securities Portfolio (Cartera de Valores) service to help you compute gains and losses and transfer the data into Renta Web. This allows:

  • Easier import of transactions
  • Instant validation of data
  • Notifications if something’s incorrect

💡 Always justify each operation. Keep supporting documents and a detailed log (Excel works great) in case of inspection.

Frequently asked questions

Do I have to declare all my foreign shares in my IRPF return?
You don't need to list your whole portfolio in your IRPF return. For the shares themselves, you only declare the ones you sold or otherwise disposed of during the tax year, as a capital gain or loss. Shares you keep don't produce a gain or loss, but their dividends are taxable income. Foreign shares can also require modelo 720 if your securities and similar assets abroad exceed €50,000. They also count towards the Wealth Tax (Impuesto sobre el Patrimonio), which you must file if you have tax to pay or your assets are worth more than €2,000,000.
How are the gains or losses on my foreign shares calculated?
The calculation is straightforward: sale price minus purchase price, including the broker's fees in both. The result goes into the savings base as capital income. Keep proof of fees and transaction costs, as they're deductible when working out the taxable gain or loss.
What is the FIFO method and how does it affect me?
FIFO stands for First In, First Out: the first shares you bought are treated as the first ones sold for tax purposes, regardless of what your broker shows. This is essential to calculate your gains and losses correctly when you've bought the same security at different times and at different prices. The Agencia Tributaria applies this rule on a mandatory basis.
What happens if I sell shares at a loss?
Generally you can declare the loss. But if you bought homogeneous securities (shares of the same company and class) within the two months before or after the sale and you hold them after the sale, you can't include the loss that year: it's added as you sell the shares that remain in your portfolio. The two-month window applies to shares admitted to trading on official markets, which include markets outside the EU and EEA that the European Commission has declared equivalent, such as the NYSE or NASDAQ. For other shares, the window is one year before or after the sale.

Better file your income tax return with TaxDown and relax.

Handling foreign shares in your tax return can be overwhelming—but with TaxDown, you get:

  • Smart guidance for each step
  • Error-free filing
  • Peace of mind knowing everything complies with Spanish tax laws

👉 Start now at app.taxdown.es and declare your foreign shares the easy way.

Author
TaxDown Team
Your tax return, done right
Follow me here
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

TaxDown is the Spanish platform that helps you file your income tax return easily, quickly and with maximum savings. It's a social collaborator of the Agencia Tributaria (Spanish Tax Agency) and has more than 300 expert tax advisors who review every return.

Related articles

Download our app

File your tax return from wherever you are.

QR code to download the TaxDown app
Person using their mobile phone to file their tax return
Foreigners in Spain
Tax registration from 35€.
See my case