Spain Capital Gains Tax Calculator

Enter your capital gain and any prior-year losses to calculate your Spanish CGT (ganancias patrimoniales) using the 2024 progressive savings tax brackets.

Your Details

Enter the gross gain before deducting prior losses.

Capital losses from the prior 4 years that offset this gain.

Enter your gain above and click Calculate Tax

Summary

Enter your capital gain and any prior-year losses to calculate your Spanish CGT (ganancias patrimoniales) using the 2024 progressive savings tax brackets.

How it works

  1. Enter your total capital gain — the profit from selling the asset (sale price minus acquisition cost and allowable expenses).
  2. Enter any prior-year capital losses carried forward from previous IRPF returns.
  3. The calculator subtracts carried-forward losses from the gross gain to get the net taxable gain.
  4. The net gain is taxed progressively: 19% on €0–€6,000; 21% on €6,001–€50,000; 23% on €50,001–€200,000; 27% on €200,001–€300,000; 28% above €300,000.
  5. Total tax owed, effective rate, and after-tax gain are displayed.

Use cases

  • Estimate CGT before selling Spanish real estate or land.
  • Calculate the tax impact of realizing profits on Spanish or foreign shares.
  • Model the benefit of offsetting carried-forward losses against a current gain.
  • Plan asset disposal timing to stay within a lower tax band.
  • Understand the effective rate on a large one-off gain from selling a business.
  • Compare after-tax returns across different investment exit scenarios.
  • Estimate the IRPF savings base tax for crypto asset sales in Spain.
  • Calculate CGT when inheriting and selling Spanish assets.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu