If you're an investor, expat, or digital nomad weighing your options between two of Europe's largest economies, understanding the Spain Germany capital gains tax comparison is essential. Whether you're selling shares, disposing of property, or cashing in cryptocurrency, the country where you're tax-resident can make a significant difference to your after-tax returns.

In this comprehensive guide for the 2025/2026 tax year, we'll break down how each country taxes capital gains, compare rates side by side, walk through practical examples, and help you answer the critical question: which country has lower capital gains tax — Spain or Germany?

How Capital Gains Tax Works in Spain (2025/2026)

In Spain, capital gains are classified as rentas del ahorro (savings income) and are taxed separately from general income (rentas generales). This applies to profits from the sale of shares, bonds, investment funds, real estate, and other assets.

Spanish Capital Gains Tax Rates for Residents

Spain uses a progressive rate structure for savings income, including capital gains:

Taxable Gain (EUR) Tax Rate
Up to €6,000 19%
€6,001 – €50,000 21%
€50,001 – €200,000 23%
€200,001 – €300,000 27%
Over €300,000 28%

These bands are cumulative, meaning that if you realise a gain of €60,000, the first €6,000 is taxed at 19%, the next €44,000 at 21%, and the remaining €10,000 at 23%.

Key Exemptions and Reliefs in Spain

  • Principal residence exemption: If you sell your main home and reinvest the full proceeds into a new principal residence within two years, the gain is fully exempt. Taxpayers aged 65 and over selling their principal residence are exempt regardless of reinvestment.
  • Losses offsetting: Capital losses can be offset against capital gains within the same tax year, and unused losses can be carried forward for four years.
  • €1,500 dividend exemption: This was eliminated years ago but remains a common misconception — there is currently no dividend exemption in Spain.

Non-Resident Capital Gains Tax in Spain

Non-residents pay a flat rate of 19% on capital gains arising from Spanish-source assets (for EU/EEA residents). Non-EU residents may face a rate of 24% unless a double taxation agreement (DTA) provides relief. When a non-resident sells Spanish real estate, the buyer is required to withhold 3% of the sale price and remit it to the Spanish tax authority (Agencia Tributaria) as an advance payment.

Use our Spain Capital Gains Tax Calculator to model your exact liability based on your personal circumstances.

How Capital Gains Tax Works in Germany (2025/2026)

Germany takes a fundamentally different approach. Investment income — including capital gains from shares, bonds, ETFs, and other financial instruments — falls under the flat-rate withholding tax (Abgeltungsteuer) system introduced in 2009.

German Capital Gains Tax Rates for Residents

The standard rate structure is:

Component Rate
Flat withholding tax (Abgeltungsteuer) 25%
Solidarity surcharge (5.5% of the tax) 1.375%
Church tax (if applicable, 8–9% of the tax) 2.0–2.25%
Total effective rate (without church tax) 26.375%
Total effective rate (with church tax) Up to ~28.625%

This flat rate applies regardless of the size of the gain, which is both a simplicity advantage and a disadvantage for smaller investors who might otherwise fall into lower brackets.

The Günstigerprüfung (Cheaper-Check) Option

Taxpayers whose overall marginal income tax rate is below 25% can apply for Günstigerprüfung — a check where the tax office applies their lower personal rate instead of the flat 25%. This primarily benefits low-income earners, students, or retirees with modest total income.

Key Exemptions and Reliefs in Germany

  • Saver's lump-sum allowance (Sparerpauschbetrag): Each individual receives a €1,000 annual exemption (€2,000 for married couples filing jointly) on all investment income, including capital gains and dividends.
  • Real estate holding period exemption: Gains from selling private real estate are completely tax-free if the property was held for more than 10 years. If the property was owner-occupied for at least the last three calendar years (including the year of sale), the gain is also exempt regardless of the holding period.
  • Old shares grandfathering: Shares purchased before 1 January 2009 are generally exempt from capital gains tax (though this is now rarely relevant for active portfolios).
  • Partial exemption for equity funds: Gains from equity-heavy investment funds benefit from a 30% partial exemption (Teilfreistellung), effectively reducing the taxable gain.
  • Loss offsetting limitations: Losses from the sale of shares can only be offset against gains from the sale of shares — not against other investment income like interest or dividends. Additionally, losses from certain derivative transactions (e.g., options, futures) are subject to a separate loss-offset cap of €20,000 per year.

Non-Resident Capital Gains Tax in Germany

Non-residents are generally not taxed on gains from selling German shares or financial instruments. However, gains from selling German real estate held for fewer than 10 years are taxable, and gains from the sale of a substantial shareholding (1% or more in a German corporation) may also be taxable under domestic law, subject to DTA provisions.

Try our Germany Capital Gains Tax Calculator to estimate your German tax liability quickly.

Spain vs Germany: Side-by-Side Capital Gains Tax Comparison

Here is a direct comparison of the key features for the 2025/2026 tax year:

Feature Spain Germany
Tax system Progressive (savings income) Flat-rate withholding
Lowest rate 19% 25% (+ surcharges ≈ 26.375%)
Highest rate 28% (gains > €300k) ~28.625% (with church tax)
Annual exemption None for capital gains €1,000 per person
Real estate exemption Reinvestment in primary residence; age 65+ Holding period > 10 years
Loss carryforward 4 years Unlimited (but restricted by type)
Non-resident rate (shares) 19% (EU) / 24% (non-EU) Generally not taxed
Non-resident rate (real estate) 19% / 24% Taxable if held < 10 years
Withholding on real estate sales 3% buyer retention None
Church/solidarity surcharges No Yes

Which Country Has Lower Capital Gains Tax?

The answer depends on the size of your gain and the type of asset:

  • For small to moderate gains (under ~€50,000): Spain is generally cheaper. At 19–21%, the effective rate beats Germany's flat 26.375%.
  • For large gains (over €200,000): The rates converge. Spain's top rates of 27–28% approach Germany's 26.375–28.625%, making Germany potentially comparable or even slightly cheaper if no church tax applies.
  • For long-term real estate: Germany is the clear winner — gains are completely exempt after 10 years, while Spain only offers exemptions linked to the principal residence.
  • For non-residents selling shares: Germany wins decisively, as non-residents typically owe nothing on share disposals. Spain charges 19–24%.

Practical Examples: Spain vs Germany Capital Gains Tax

Let's put the numbers into context with three real-world scenarios for the 2025/2026 tax year.

Example 1: Selling Shares with a €20,000 Gain

Spain (resident):

  • First €6,000 × 19% = €1,140
  • Remaining €14,000 × 21% = €2,940
  • Total tax: €4,080 (effective rate: 20.4%)

Germany (resident, no church tax):

  • Exempt amount: €1,000
  • Taxable gain: €19,000
  • Tax: €19,000 × 26.375% = €5,011.25
  • Total tax: €5,011 (effective rate: ~25.1%)

Winner: Spain saves you approximately €931.

Example 2: Selling an Investment Property Held for 12 Years with a €150,000 Gain

Spain (resident, not a principal residence):

  • €6,000 × 19% = €1,140
  • €44,000 × 21% = €9,240
  • €100,000 × 23% = €23,000
  • Total tax: €33,380 (effective rate: 22.3%)

Germany (resident):

  • Property held for more than 10 years → gain is fully exempt
  • Total tax: €0

Winner: Germany — and it's not even close.

Example 3: A Non-Resident Selling German/Spanish Shares with a €40,000 Gain

Spain (non-resident, EU):

  • €40,000 × 19% = €7,600

Germany (non-resident):

  • Share disposals by non-residents → generally €0

Winner: Germany by a wide margin.

These examples illustrate why a blanket answer to "which country has lower capital gains tax" is impossible without knowing the specifics. Use our Spain Capital Gains Tax Calculator and Germany Capital Gains Tax Calculator to run your own numbers.

Double Taxation Treaty: Spain and Germany

Spain and Germany have a comprehensive double taxation agreement (DTA) in force, which is crucial if you have tax ties to both countries. Key provisions relevant to capital gains include:

  • Shares: Under the DTA, gains from selling shares are generally taxable only in the country of residence of the seller, unless the shares derive more than 50% of their value from immovable property in the other country.
  • Real estate: Gains from the disposal of immovable property may be taxed in the country where the property is located, with the country of residence providing a credit or exemption to avoid double taxation.
  • Substantial shareholdings: Special rules may apply to holdings of 25% or more in a company.

If you're a German resident selling Spanish property (or vice versa), the DTA ensures you won't be taxed twice on the same gain — but you may still need to file returns in both countries. Professional advice is strongly recommended in cross-border scenarios.

Common Mistakes and Misconceptions

Navigating the Spain Germany capital gains tax comparison is full of pitfalls. Here are the most frequent errors:

  1. Assuming Germany always taxes more: While Germany's flat rate of ~26.375% is higher than Spain's entry rate of 19%, the 10-year real estate exemption and non-resident treatment can make Germany far more favourable overall.

  2. Forgetting Germany's €1,000 allowance: Many taxpayers overlook the Sparerpauschbetrag. If your only investment income is a small capital gain, the first €1,000 is entirely tax-free.

  3. Ignoring Spain's 3% withholding on real estate: Non-residents selling Spanish property are often surprised when the buyer retains 3% of the sale price. This is an advance tax payment, not an additional charge, but it ties up cash until you file and reclaim any overpayment.

  4. Mixing up Spanish income categories: In Spain, some gains (e.g., from assets held for less than one year that don't arise from transfers) might be classified as general income rather than savings income, potentially taxed at rates up to 47%. Ensure your gains are correctly categorised.

  5. Assuming DTAs eliminate all tax: A double taxation agreement prevents double taxation but doesn't mean zero tax. You'll typically pay tax in at least one country, and sometimes in both (with a foreign tax credit applied).

  6. Overlooking regional taxes in Spain: Spain's autonomous communities can influence certain tax aspects. While savings income rates are set nationally, other tax interactions (like wealth tax or solidarity tax) can affect your overall position.

For a broader picture of your tax position, try our Spain Income Tax Calculator or Germany Income Tax Calculator.

FAQ: Spain vs Germany Capital Gains Tax

Is capital gains tax lower in Spain or Germany for stock market investors?

For most stock market gains, Spain offers lower rates — particularly for gains under €50,000, where rates range from 19–21% compared to Germany's flat ~26.375%. However, Germany's €1,000 annual exemption provides a small advantage for very modest gains.

Do I pay capital gains tax in both countries if I move from Germany to Spain?

Not on the same gain. The Spain-Germany DTA allocates taxing rights and provides mechanisms (credit or exemption) to prevent double taxation. However, Germany has an exit tax (Wegzugsbesteuerung) under Section 6 of the German Foreign Tax Act that can trigger deemed capital gains on substantial shareholdings (≥1%) when you leave the country.

Are cryptocurrency gains taxed differently?

In Germany, crypto gains are classified as private sales (private Veräußerungsgeschäfte) and are tax-free if held for more than one year. Below one year, gains under €1,000 are also exempt; above that, they're taxed at your personal income tax rate (up to ~45% + surcharges). In Spain, crypto gains are taxed as savings income at the standard progressive rates (19–28%), regardless of holding period.

Which country is better for property investors?

Germany is significantly more favourable for long-term property investors thanks to the 10-year holding period exemption. Spain offers no equivalent benefit unless the property is your principal residence and you reinvest in another primary home.

Can losses from Spanish investments offset gains in Germany (or vice versa)?

Generally, no — each country taxes its own residents on worldwide income, and losses are offset within each country's domestic rules. However, under the DTA, if a gain is exclusively taxable in one country, a loss from the same source would also typically fall under that country's rules.

Conclusion: Key Takeaways

The Spain Germany capital gains tax comparison reveals that neither country is universally "cheaper" — the optimal jurisdiction depends entirely on your investment profile:

  • Choose Spain if you primarily trade shares or financial instruments with small to moderate gains. The progressive system starting at 19% undercuts Germany's flat rate.
  • Choose Germany if you're a long-term real estate investor (the 10-year exemption is unbeatable), a crypto holder willing to wait 12 months, or a non-resident with German share investments.
  • Always consider the DTA if you have ties to both countries, and watch out for exit taxes when relocating.
  • Run the numbers for your specific situation using our Spain Capital Gains Tax Calculator and Germany Capital Gains Tax Calculator.

Capital gains tax is just one piece of the puzzle. Consider your overall tax burden — including income tax, wealth tax, social contributions, and inheritance tax — before making any relocation or investment decisions.


This article is for informational purposes only and does not constitute tax advice. Tax laws change frequently; consult a qualified tax professional for advice specific to your situation.