How capital gains tax works in Spain
For Spanish-resident individuals, gains and losses arising from transfers of shares, funds, property, cryptoassets and other assets generally enter the savings taxable base. The 2026 scale is 19% on the first EUR 6,000, 21% from EUR 6,000 to EUR 50,000, 23% from EUR 50,000 to EUR 200,000, 27% from EUR 200,000 to EUR 300,000 and 30% above EUR 300,000.
Crypto-to-fiat disposals, crypto-to-crypto exchanges and other taxable disposals can create a reportable gain when the transaction is a transfer of assets. Frequent or organised trading can require a different analysis if the activity is business-like.
Real-estate gains follow the savings scale for residents, but a sale can also involve the municipal tax on the increase in value of urban land, transfer costs and regional transaction taxes. A qualifying reinvestment into a new habitual residence can shelter all or part of the gain, and special exemptions can apply to some sellers over 65.
A non-resident without a permanent establishment is generally taxed at 19% on Spanish-source gains from asset transfers. When Spanish real estate is sold, the buyer must withhold 3% of the agreed price and pay it to the tax authority as an advance against the seller's final Non-Resident Income Tax.
Spain's exit-tax rules can bring unrealised gains on shares or collective-investment interests into the final Spanish return when a long-term resident leaves and the value or ownership thresholds are met.
Tax rates at a glance
- Individual capital gains
- 19% - 30%Savings base
- Crypto gains
- 19% - 30%
- Property gains
- 19% - 30%
- Non-resident asset-transfer gains
- 19%
- Non-resident property-sale withholding
- 3%
- Exit-tax ownership threshold
- >25% and EUR 1m
Who benefits most
These profiles tend to benefit most when the rules match their real residence, payroll and business setup.
Watch out for
- Spain does not use one flat capital-gains rate. The 19% to 30% scale is progressive, and gains from different assets must be integrated with losses under the applicable savings-base rules.
- Selling Spanish property is not only an income-tax calculation. Municipal land-value tax, transfer costs, regional rules and the buyer's 3% non-resident withholding can all affect cash flow.
- The habitual-residence reinvestment exemption is conditional. The transferred home, the new home and the timing of the reinvestment must meet the statutory requirements; partial reinvestment generally gives only partial relief.
- A Spanish resident who leaves after at least ten of the previous fifteen tax periods can face exit tax on qualifying unrealised share gains. The EUR 4 million aggregate-value and EUR 1 million plus 25% ownership tests should be checked before a move.
- A company normally brings capital gains into its corporate-tax base rather than the individual savings scale, although participation-exemption and other corporate rules may apply.
Frequently asked questions
What is the capital gains tax rate in Spain?
For Spanish-resident individuals, most gains from transferring assets are taxed in the savings base at 19%, 21%, 23%, 27% or 30%, depending on the total savings base. Non-resident Spanish-source transfer gains are generally taxed at 19%.
Are crypto gains taxed in Spain?
Usually yes. A private individual's gains from selling or exchanging cryptoassets generally enter the savings base, and crypto holdings may also matter for wealth and foreign-asset reporting. The facts and trading activity determine the final treatment.
Is the sale of a Spanish home exempt from capital gains tax?
Not automatically. A qualifying reinvestment into another habitual residence can exempt all or part of the gain, and a separate exemption may apply to some sellers over 65. Municipal land-value tax and the exact residence facts still need separate review.