Home Blog Personal Finance Investing Stocks Crypto ETFs Make Money Tools Guides Glossary Advertise Contact
Subscribe Free →
Personal Finance

Beginner’s Guide: How Inheritance and Capital Gains Tax Work for Stock Investors in Spain (2026 Edition)

Sofia Martins · 11 Jun 2026 ·7 min read

Before You Start

  • Basic understanding of how stock investments and capital gains work
  • Resident or expat status in Spain (for tax purposes)
  • Access to your stock broker account (e.g. DEGIRO, Trade Republic, Interactive Brokers)
  • Knowledge of your portfolio’s purchase and sale dates/prices
  • Awareness of your country of tax residency if you’re an expat

Time needed: 60–90 minutes to review your portfolio, understand tax rules, and prepare documentation

What you'll need: Broker transaction history, Spanish tax ID (NIF), access to the Agencia Tributaria (Spanish Tax Agency) portal, inheritance documentation for deceased relatives (if applicable)

Understanding inheritance tax stock Spain rules is crucial for any investor or expat with assets in Spain. Both inheritance tax and capital gains tax can significantly affect the value of your stock portfolio—whether you’re planning your legacy or simply selling shares. This guide offers a step-by-step approach for 2026, including Spanish allowances, filing processes, double-taxation avoidance, and practical optimisation strategies, with clear EUR examples and actionable platform instructions.

Step 1: Understand Key Taxes on Stocks in Spain

What to do: Get familiar with the two main taxes affecting stock investors in Spain:

Why it matters: Each tax applies at different life events. Inheritance tax is due when you receive stocks after someone’s death. Capital gains tax is due when you sell stocks you inherited (or bought yourself), based on the profit between acquisition and sale.

What can go wrong: Confusing the two taxes can lead to underpayment, penalties, or paying tax twice on the same asset. Knowing the definitions ensures you file correctly and don’t overpay.

Pro Tip

Review The Ultimate 2026 Guide to Tax-Efficient Investing in Europe for broader strategies on minimising taxes on your investments.

Step 2: Check Your Tax Residency and Broker Location

What to do: Confirm your tax residency status and where your broker is based. For most, you’re a Spanish tax resident if you spend more than 183 days a year in Spain or have your main economic interests there.

Why it matters: Your residency status determines which country’s tax rules apply. If you’re an expat or have assets in multiple countries, this affects double-taxation and reporting obligations.

What can go wrong: If you declare the wrong residency, you risk audits, double-taxation, or fines. Some brokers may also deduct withholding tax if they believe you’re a non-resident.

Step 3: Calculate Spanish Inheritance Tax on Stocks

What to do: When inheriting stocks, calculate inheritance tax (ISD) based on the value of the shares at the date of inheritance. Spain’s inheritance tax is not national: each autonomous region sets its own allowances and rates, but there are national minimums.

Inheritance Tax: National Allowances (2026)
Relationship to Deceased Allowance (€) Typical Tax Rate
Spouse/Child (Group I & II) 16,000 7.65%–34%
Parent/Sibling (Group III) 7,993 7.65%–34%
Other (Group IV) 0 Up to 34%

For example, if you inherit €70,000 in stocks from your parent in Madrid (Group II):

Why it matters: Not all regions are equal—Andalucía, Madrid, and Valencia offer generous reductions for close relatives, while others like Asturias are stricter.

What can go wrong: Not applying for regional allowances or missing the 6-month reporting deadline (extendable by 6 more months) leads to fines and loss of reductions.

Pro Tip

Always check the Agencia Tributaria’s official inheritance tax page for the latest regional rules.

Step 4: Report and Pay Inheritance Tax

What to do: File Form 650 (“Impuesto sobre Sucesiones y Donaciones”) with the Agencia Tributaria for national cases, or your regional tax authority for local reductions.

Why it matters: This is required before you can legally transfer inherited stocks into your name.

What can go wrong: If you miss the reporting deadline or underreport asset values, penalties can reach 20% + late interest. Brokers may freeze assets until the tax is resolved.

Step 5: Understand Capital Gains Tax When Selling Inherited Stocks

What to do: When you sell inherited stocks, pay capital gains tax on the difference between their value at inheritance (the “step-up” basis) and the sale price.

For 2026, Spanish capital gains tax bands are:

Example: You inherit 100 shares of ASML, valued at €400 each (€40,000 total) on the date of inheritance. Two years later, you sell them for €500 each (€50,000). Your capital gain is €10,000.

Why it matters: The “step-up” means you don’t pay tax on gains made before you inherited the shares—only on gains made after. This avoids double-taxation on the same value increase.

What can go wrong: Using the deceased’s original purchase price (instead of value at inheritance) can lead to overpaying tax. Conversely, if you misreport, you risk audits and penalties.

Pro Tip

Always download the official broker valuation statement for the date of inheritance. In DEGIRO: Account → Portfolio → Export → Select date of inheritance.

Step 6: Avoid Double Taxation with Other EU Countries

What to do: If you are an expat, or if the deceased was from another EU country, check for double-taxation agreements (DTAs). Spain has treaties with most EU states to avoid taxing the same inheritance twice.

Why it matters: Without claiming tax credits, you could pay inheritance or capital gains tax twice on the same stocks.

What can go wrong: Failing to file for a credit or exemption within the required timeframes can result in lost refunds or excess tax paid.

Step 7: Optimise Your Inheritance and Capital Gains Tax Planning

What to do: Use legal strategies to reduce the tax burden on your heirs and yourself:

Expected outcome: Your heirs pay less tax, the process is smoother, and you avoid legal disputes or asset freezes.

Pro Tip

Some regions (notably Madrid and Andalucía) offer close to 99% reductions for children and spouses. If you qualify, formalise your residency in that region before succession.

Common Mistakes

Next Steps

Disclaimer: This article is for educational purposes only and does not constitute financial advice. Always do your own research and consider consulting a qualified financial advisor before making investment decisions.

Spain inheritance tax capital gains stocks tax guide

Related Articles