The Texation Calculator

Selling an asset in Spain? Estimating capital gains tax

Published · 2 min read

How to estimate capital gains tax on shares, property or other assets sold in Spain: gain, costs, rate and net proceeds.

Key facts

PlaceSpain
TaxVAT
Standard rate on file21%
Multiply net price by1.21
Tax share of a gross price17.36%
CurrencyEUR

Working out the gain

The taxable gain is usually the sale price minus the purchase price and allowable costs, such as broker fees, legal fees or improvement costs. If the result is negative, you have a loss, which may be offset against other gains depending on the rules in Spain.

Worked example

Here is the calculation with sample figures. Change any number in the Spain Capital Gains Tax Calculator to run your own.

Worked example: Spain Capital Gains Tax Calculator
Purchase price€10,000.00
Sale price€15,000.00
Costs and fees€200.00
Tax rate (%)20%
Taxable gain€4,800.00
Tax€960.00
Net amount€13,840.00

Rates, allowances and holding periods

Many countries tax gains at a different rate from salary, offer an annual tax-free allowance, or reduce the rate for assets held longer. Some exempt a main home. Because these rules differ so widely, the calculator uses an editable rate that you can set from current guidance in Spain.

Keep the paperwork

Keep purchase contracts, statements and receipts for costs. Without them, proving your cost basis can be difficult years later.

Quick reference at 21%

Common amounts in Spain, worked both ways: adding tax to a net price, and extracting it from a price that already includes tax.

AmountTax on net amountGross (net + tax)Net if amount includes tax
€10.00€2.10€12.10€8.26
€50.00€10.50€60.50€41.32
€100.00€21.00€121.00€82.64
€250.00€52.50€302.50€206.61
€500.00€105.00€605.00€413.22
€1,000.00€210.00€1,210.00€826.45
€5,000.00€1,050.00€6,050.00€4,132.23

How Spain compares

Standard rates on file for other countries. A difference of a few points matters most on high-value purchases and on cross-border sales.

PlaceRate on fileCompared with 21%
Slovenia22%higher
South Africa15%lower
South Korea10%lower
Sri Lanka18%lower
Sweden25%higher
Switzerland8.1%lower

Using the calculator step by step

  1. Open the Spain Capital Gains Tax Calculator.
  2. Type your figures into the numbered lines. Results update as you type.
  3. Check the rate field. It starts at 21%; change it if a reduced rate, local surcharge or exemption applies to you.
  4. Read the result on the receipt panel, and use the formula shown under it if you need to explain the figure to a client or colleague.

Key terms

Effective rate
Total tax divided by total income, the average rate you actually pay.
Net amount
The amount before tax is added. On an invoice it is the figure the tax is calculated on.
Exempt supply
A sale that falls outside the tax entirely. No tax is charged and input tax usually cannot be reclaimed.
Withholding
Tax deducted at source, by an employer or payer, before the money reaches you.
Reduced rate
A lower rate that applies to specific categories, often essentials such as food, medicine or books.

Common mistakes to avoid

Run your own numbers. The Spain Capital Gains Tax Calculator updates as you type and shows the formula it uses.

Frequently asked questions

How is a capital gain calculated?

Sale price minus purchase price minus allowable costs.

What rate applies to capital gains in Spain?

It depends on the asset, your income and how long you held it. Set the rate in the calculator from current guidance in Spain.

This article is general information for planning, not tax advice. Rates and rules change; confirm with your tax authority or a qualified adviser.

Calculators for this topic

Related reading