Spain Capital Gains Tax Calculator

Calculate your Spain CGT on shares and property disposals.

Free Spain capital gains tax calculator. Applies the savings-base (base del ahorro) progressive scale of 19–28% to gains on shares and real property, with the main-home reinvestment exemption. Runs entirely in your browser.

How is capital gains tax charged in Spain?

Capital gains are savings income (ganancia patrimonial) taxed in the base del ahorro on a progressive scale: 19% up to EUR 6,000, 21% from EUR 6,000 to 50,000, 23% from 50,000 to 200,000, 27% from 200,000 to 300,000, and 28% above 300,000. The same scale applies to gains on shares and on property.

This Spain capital gains tax calculator works out the ganancia patrimonial due when you sell listed shares or real property. Both are taxed in Spain’s savings base (base del ahorro) on the same progressive 19–28% scale, and the tool also handles the valuable main-home reinvestment exemption for property.

How it works

The taxable gain is sale price − purchase price − allowable costs, where allowable costs include purchase taxes like the ITP, notary and registry fees, agency commission and capital improvements. That gain is then taxed in bands:

  • up to EUR 6,000 → 19%
  • EUR 6,000 – 50,000 → 21%
  • EUR 50,000 – 200,000 → 23%
  • EUR 200,000 – 300,000 → 27%
  • above EUR 300,000 → 28%

For property, if you reinvest proceeds from selling your habitual residence into a new main home within two years, the gain is exempt in proportion to the amount reinvested. Enter that percentage and the tool removes the exempt slice before applying the scale.

Example

Sell shares bought for EUR 100,000 at EUR 160,000: the EUR 60,000 gain is taxed at 19% on the first EUR 6,000 and 21% on the next EUR 44,000, then 23% on the remainder — well under a flat 21% overall. Sell a second home for the same gain with 50% reinvested in a new main home and only EUR 30,000 stays taxable.

Notes

Estimate only. Spain taxes capital gains on the national savings scale; the full main-home reinvestment exemption requires reinvesting the entire sale proceeds within two years. Over-65 reliefs, autonomous-community rules and non-resident treatment are not modelled. Confirm with a Spanish accountant before filing.