CATEGORIES
MORE
HomeFinance & CreditCapital Gains Tax Calculator Spain 2026
‹ All Finance calculators📈 Finance & Credit

Capital Gains Tax Calculator Spain 2026

Calculate your estimated Spanish IRPF tax liability on stock, fund, and cryptocurrency sales under the 2026 savings income tax scale.

Operation Details

Purchase price (acquisition)€10.000,00
€100€500.000
Sale price (transmission)€15.000,00
€100€500.000
Trading and platform fees€150,00
€0€10.000
Estimated Tax Due (IRPF)
€921,50
Net capital gain€4.850,00

📊 Tax Calculation Breakdown

Purchase price (acquisition)€10.000,00
Sale price (transmission)€15.000,00
Trading and platform fees€150,00
Net capital gain€4.850,00
Tax liability (Savings Base)– €921,50
Effective average tax rate19,00%

Calculating capital gains tax on stocks and cryptocurrency is essential for any investor resident in Spain. In the Spanish tax system, capital gains from selling financial assets do not integrate into the general progressive tax base. Instead, they are taxed under the savings income base (base imponible del ahorro). This means a specific progressive scale is applied only to the net profits of your transactions.

To calculate your taxes correctly, you must deduct all expenses directly related to the transaction. These include buying commissions, selling broker fees, or cryptocurrency exchange transaction fees. Additionally, if you bought the same asset at different times, Spanish law requires you to use the FIFO (First-In, First-Out) method, meaning the first units sold are assumed to be the first ones you purchased.

⚙️ Spain’s Savings Tax Brackets 2026

The progressive tax rate applied to net savings income in Spain is divided into five distinct brackets:

  • First bracket: A rate of 19.00% is applied on gains up to €6,000.00.
  • Second bracket: A rate of 21.00% applies to gains between €6,000.01 and €50,000.00.
  • Third bracket: A rate of 23.00% applies to gains between €50,000.01 and €200,000.00.
  • Fourth bracket: A rate of 27.00% applies to gains between €200,000.01 and €300,000.00.
  • Fifth bracket: A rate of 28.00% applies to any amount exceeding €300,000.00.

📊 Practical Examples of Capital Gains Calculation

Here are two examples demonstrating how progressive brackets apply:

Example 1: Standard stock sale
  • Purchase price: **€10,000.00**
  • Sale price: **€18,000.00**
  • Broker fees and commissions: **€150.00**
  • Net capital gain: €18,000.00 minus €10,000.00 minus €150.00 = **€7,850.00**
  • Tax calculation by brackets:
    • First €6,000.00 at 19.00% = **€1,140.00**
    • Remaining €1,850.00 at 21.00% = **€388.50**
Total tax due: **€1,528.50** (Effective rate of 19.47%)
Example 2: Large cryptocurrency sale
  • Purchase price: **€40,000.00**
  • Sale price: **€105,000.00**
  • Exchange transaction fees: **€500.00**
  • Net capital gain: €105,000.00 minus €40,000.00 minus €500.00 = **€64,500.00**
  • Tax calculation by brackets:
    • First €6,000.00 at 19.00% = **€1,140.00**
    • Next €44,000.00 (from €6,000.00 to €50,000.00) at 21.00% = **€9,240.00**
    • Remaining €14,500.00 at 23.00% = **€3,335.00**
Total tax due: **€13,715.00** (Effective rate of 21.26%)

⚠️ Common Investment Declaration Mistakes

1. Forgetting to deduct acquisition and sale fees

Many investors only report the gross difference between purchase and sale prices. Neglecting to deduct bank fees, exchange fees, or brokerage charges leads to paying more tax than necessary.

2. Confusing progressive tax brackets with a flat rate

Some believe that if their net gain exceeds €50,000.00, a flat 23.00% tax is applied to the entire profit. Because the system is progressive, the first €6,000.00 always pays 19.00%, lowering the average rate.

3. Misapplying FIFO rules for cryptocurrencies

Tax authorities require strict application of the FIFO method. If you sell a portion of your cryptocurrency, you must calculate the cost based on your earliest purchases, not the most recent.

❓ Frequently Asked Questions (FAQ)

You must declare and pay taxes on capital gains during the annual tax campaign of the year following the sale. You do not owe tax when the asset value fluctuates, only when the transaction is completed and the asset is sold.

Yes, capital losses from cryptocurrency sales can be offset against gains from stock or mutual fund sales. If the net result is negative, you can offset up to 25.00% of other savings income, and carry forward any remaining losses for the next four years.

You can deduct blockchain network gas fees, exchange trading fees, and bank transfer fees directly associated with the sale. Indirect costs such as tax advisor fees or subscriptions to market research tools are not deductible.

No, there is no minimum tax-exempt limit for capital gains in Spain. Every euro of net profit must be reported on your tax return, with taxation starting at the initial 19.00% rate.

Spanish residents can transfer capital between Spanish mutual funds without triggering a tax event. This deferral benefit is unique to regulated funds and does not apply when swapping stocks or cryptocurrencies.

Gains exceeding €300,000.00 are taxed at the highest bracket rate of 28.00%. The portions below that limit continue to be taxed at the respective lower progressive rates of 19.00%, 21.00%, 23.00%, and 27.00%.

⚖️ Professional Disclaimer

This calculator provides general estimates based on Spain’s 2026 savings tax regulations. The calculations do not constitute personal financial or tax advice. For complex cases, cross-border tax issues, or substantial assets, we recommend consulting a qualified Spanish tax professional.

System Assurances 2026

Savings Base Scale Calculated using progressive brackets defined for the Spanish base del ahorro.
Purchase commissions, broker fees, and exchange costs are fully deductible.
First-In, First-Out (FIFO) rules strictly applied for Spanish tax reporting.
Excludes regional deductions or compensations for capital losses from previous years.

Reference Organizations

🏛️
Agencia Tributaria (AEAT)
The Spanish tax authority responsible for collection of personal income tax (IRPF).
Tax Authority Sede →
📈
CNMV (Investor Portal)
Provides guidelines and official publications on financial assets and investment taxation.
CNMV Official Site →
🛡️
Actualizado para 2026: Incorpora los tipos estatales vigentes del ahorro y el régimen fiscal aplicable en España.