Services
Beckham Law Tax Residency Spain Exit Tax Spain Wealth Tax (IP) Yacht & Marine Tax Cryptocurrency Tax Modelo 720 Non-Resident Income Tax Inheritance & Gift Tax Trusts & Foreign Structures Transfer Pricing Double Tax Treaties Voluntary Disclosure Tax Inspections & Defence Blog Contact Book a Free Call
🧮 Free Tax Tool · Capital Gains CGT

Capital Gains Tax Spain Calculator 2026

Estimate your Spanish CGT liability on shares, property, funds, and cryptocurrency — for both residents and non-residents. Results are indicative; always verify with a qualified tax lawyer.

Book Free Review → 💬 WhatsApp Jacob

Capital Gains Tax in Spain: The Basics

Spain taxes capital gains as part of the base imponible del ahorro — the savings income tax base — which is separate from the general income tax base. This means that gains from selling shares, property, cryptocurrency, and other financial assets are all taxed at the same progressive savings rates, irrespective of how long you held the asset.

One of the most important things to understand is that Spain abolished the distinction between short-term and long-term gains in 2015. There is no reduced rate for assets held longer than one year — the savings scale applies from day one of ownership. This contrasts sharply with the UK, US, and many other jurisdictions that reward long-term holding with lower rates.

Who is subject to Spanish CGT?

  • Spanish tax residents pay CGT on worldwide gains — every disposal of any asset anywhere in the world must be declared in the annual IRPF return (Modelo 100).
  • Non-residents (IRNR taxpayers) pay CGT only on gains arising from Spanish-sited assets — principally Spanish real estate, shares in Spanish companies, and assets physically located in Spain.

Loss offsetting and carry-forward

Capital losses can offset capital gains within the same tax year across all asset classes within the savings base. If losses exceed gains, the net loss can be carried forward for up to four consecutive years and offset against future gains. Note that from 2015, there are also limited rules allowing cross-base offsetting (capital losses offsetting certain capital income), subject to a 25% cap.

Key legislative changes: 2024–2026

  • New 27% bracket (€200,000–€300,000 net gain) and 30% bracket (above €300,000) were introduced for fiscal year 2024 onward, replacing the previous 26% top rate.
  • Cryptocurrency is classified as a capital gain from the Finance Law 2023 — gains are taxed at savings rates. Staking and lending rewards are classified differently (capital income).
  • DAC8 / CARF cross-reporting: from 2026, the Spanish AEAT will automatically receive reports from crypto-asset service providers (CASPs) operating in the EU, substantially increasing audit risk for undeclared crypto gains.

Calculate Your Spanish CGT — 2026

Enter your figures below. Results are indicative estimates only — see disclaimer at the bottom of this page.

Commissions, legal fees, improvements, agency fees
Gross Gain
Net Taxable Gain
Tax Rate Applied
Total CGT
Net After-Tax Proceeds
Effective Rate on Gain

CGT Rates in Spain 2026

The Spanish savings income scale applies progressively. Non-residents pay a flat rate regardless of the size of the gain.

Net Taxable Gain Bracket Resident Rate Cumulative Tax (at bracket ceiling) EU/EEA Non-Resident Third-Country Non-Resident
First €6,00019%€1,14019% flat
(all gains)
24% flat
(all gains)
€6,001 – €50,00021%€10,380
€50,001 – €200,00023%€44,880
€200,001 – €300,00027%€71,880
Above €300,00030%Progressive

Note: There is no distinction between short-term and long-term gains in Spain. The same savings scale applies regardless of holding period. The 27% and 30% brackets were introduced for fiscal year 2024.

How the Progressive Scale Works — An Example

A Spanish resident sells shares with a net taxable gain of €80,000. The tax is calculated in slices: 19% on the first €6,000 (= €1,140) + 21% on the next €44,000 (= €9,240) + 23% on the final €30,000 (= €6,900). Total CGT = €17,280 — an effective rate of 21.6% on the total gain.

CGT on Spanish Property: Special Rules

Property sales are one of the most common CGT events for both residents and non-residents in Spain. Several special rules apply that can dramatically affect the final liability.

3% Buyer Withholding (Non-Residents Only)

When a non-resident sells Spanish property, the buyer is legally obliged to withhold 3% of the agreed sale price and pay it to the AEAT via Modelo 211 within one month of the transaction. This is an advance payment on the seller's IRNR capital gains tax — not the final liability. The non-resident seller must then file Modelo 210 within three months of the sale to calculate the actual CGT, and either receive a refund (if the 3% withholding exceeded the actual tax) or pay the balance (if the actual CGT is higher). The AEAT typically processes refunds within six months.

Main Residence Reinvestment Relief (Residents Only)

Spanish tax residents who sell their main residence (vivienda habitual) and reinvest all of the proceeds into another main residence within two years (either before or after the sale) are fully exempt from CGT on the gain. Partial reinvestment yields partial exemption — the portion of the proceeds reinvested is exempt, while the balance is taxed at the savings scale rates. This relief requires the property to have been the taxpayer's actual main residence for at least three continuous years prior to the sale (with certain exceptions for forced moves).

Over-65 Exemption (Residents Only)

Spanish tax residents aged 65 or older who sell their main residence are fully exempt from CGT on the entire gain, regardless of whether they reinvest the proceeds. This is a categorical exemption — no conditions on reinvestment apply. Additionally, individuals over 65 who sell any asset (not just their main residence) and use the proceeds to purchase a qualifying life annuity (renta vitalicia) can also exempt up to €240,000 of the gain.

Inflation Correction: Abolished in 2015

Prior to 2015, Spain applied coeficientes de actualización (inflation adjustment coefficients) to the purchase price of real estate, reducing the taxable gain. These were abolished entirely from 2015 — there is no indexation adjustment available for properties sold today, regardless of how long they have been held.

Usufruct and Bare Ownership

Where property is held in split ownership (usufruct / bare ownership — usufructo / nuda propiedad), the gain on each component is calculated separately according to actuarial tables. The usufructuary and the bare owner each have their own CGT calculation, often resulting in a significantly lower combined liability than if one person had held full ownership.

Plusvalía municipal (IIVTNU): In addition to Spanish CGT, sellers of urban land pay a separate local tax — the Impuesto sobre el Incremento del Valor de los Terrenos de Naturaleza Urbana — to the local council. This is calculated on the increase in cadastral land value and is not deductible from your CGT base for IRPF or IRNR purposes. Since the Constitutional Court ruling of October 2021, taxpayers may choose between the objective method and the real-gain method, and may challenge assessments where no real gain occurred.

CGT on Shares and Investment Funds

Gains on the disposal of shares, investment funds, and ETFs are among the most frequent CGT events for internationally mobile individuals in Spain. The rules contain several important nuances that can affect both the amount and timing of the taxable event.

FIFO Rule for Shares

When you dispose of shares in a company that you acquired in batches at different dates and prices, Spain applies the FIFO (first-in, first-out) method within the same class of securities. The earliest-acquired shares are deemed sold first. This means that if your earliest shares have the largest gain, FIFO increases your CGT compared to an average-cost or LIFO method. Accurate records of all acquisition dates and prices are essential.

Fund-to-Fund Switching: Spanish UCITS Only

One of the most valuable CGT deferral mechanisms available in Spain is the Article 94 LIRPF fund-switching regime. Spanish tax residents who hold investment funds registered with the CNMV (Comisión Nacional del Mercado de Valores) in Spain can switch from one fund to another without triggering a CGT event, provided the switch is executed directly between funds without the money passing through the investor's account. This allows unlimited internal rebalancing and fund selection changes without realising a taxable gain — a powerful tool for long-term portfolio management. Critically, this relief only applies to Spanish-registered funds. Funds registered in Luxembourg, Ireland, or other jurisdictions do not qualify.

ETFs: Every Sale is Taxable

Exchange-traded funds (ETFs) do not benefit from the Article 94 switching privilege — even if the ETF is a UCITS fund. Every sale of an ETF position is a taxable disposal, and gains are subject to CGT at the savings rate applicable to the net gain amount. This is an important distinction for investors comparing funds and ETFs with identical underlying exposure.

Wash Sale Equivalent: The Two-Month Rule

Spain applies an anti-avoidance rule targeting "loss harvesting" strategies. If you sell shares at a loss and then repurchase the same or similar securities within two months (for listed securities) or one year (for unlisted), the capital loss is disallowed at the time of sale and deferred — it only becomes deductible when you eventually dispose of the repurchased position. This is broadly equivalent to the US "wash sale" rule. Careful timing of year-end loss realisations is essential to ensure the deduction is available when needed.

Crypto Capital Gains in Spain

Spain's tax treatment of cryptocurrency has evolved rapidly, and the current position is now relatively clear — though significant compliance risks remain for those who have not kept precise records of all transactions.

Classification as Capital Gain

Following the Finance Law 2023 (Ley 13/2023), crypto-asset gains are explicitly classified as ganancias y pérdidas patrimoniales — capital gains and losses within the savings base. This means gains are taxed at the same 19–30% progressive savings scale as shares and property. The classification applies to all crypto-to-crypto swaps, crypto-to-fiat conversions, and use of crypto to purchase goods or services (since each is treated as a disposal at market value).

FIFO Applies to Crypto

The FIFO rule applies to crypto-assets in the same way as shares. When you dispose of Bitcoin, Ethereum, or any other crypto-asset, the earliest-acquired units are deemed sold first. With the price volatility of crypto markets, this can produce very different tax results depending on market conditions at the time of disposal. Detailed transaction records — covering every acquisition, its date, and its euro value at acquisition — are mandatory.

Staking Rewards: Not a Capital Gain

Staking rewards, lending income, and liquidity mining rewards are classified by the AEAT as rendimientos del capital mobiliario — capital income — rather than capital gains. This means they are also taxed within the savings base, but they are treated as income in the period received (at the fair market value at the date of receipt), and they establish a new cost basis for the tokens received. A subsequent sale of those staked tokens will then give rise to a capital gain or loss calculated from that cost basis.

DeFi Complexity

Decentralised finance (DeFi) transactions — including liquidity pool contributions, yield farming, and protocol swaps — present significant classification challenges. The AEAT's position on many DeFi operations is still evolving, and conflicting interpretations exist. Losses arising from rug pulls, hacks, or protocol failures are also treated inconsistently in the administrative and judicial guidance available to date. Early voluntary disclosure and professional advice are strongly recommended for any taxpayer with material DeFi exposure.

DAC8 / CARF: Automatic Reporting from 2026

From 2026, crypto-asset service providers (CASPs) — including exchanges such as Coinbase, Kraken, and Binance — operating within the European Union will be required to automatically report client account balances and transactions to national tax authorities under the EU's DAC8 directive and the OECD's CARF standard. The Spanish AEAT will receive these reports automatically, meaning the era of practical anonymity for crypto holdings is definitively over. Any undeclared crypto gains from prior years should be regularised through voluntary disclosure before these reports start flowing, as post-disclosure penalties are substantially lower than post-investigation penalties.

Frequently Asked Questions — CGT Spain

Can I offset a capital loss on crypto against a gain on shares in Spain?
Yes. Under Spanish tax law, all capital gains and losses arising from the disposal of assets — including shares, funds, property, and cryptocurrency — fall within the same base imponible del ahorro (savings income tax base). They can be freely netted against each other within the same tax year, regardless of asset type. If your crypto loss exceeds your share gain in a given year, the net loss can be carried forward for up to four years to offset future gains.
Do I have to declare a capital gain if I reinvest the proceeds immediately?
Yes — with one important exception. The taxable event in Spain is the moment of realisation (disposal), not what happens to the proceeds afterwards. If you sell shares at a gain and immediately reinvest into other shares, the gain is still taxable in the year of disposal. The only exception is the main residence reinvestment relief for Spanish tax residents: if you sell your primary home and reinvest all proceeds into another primary home within two years (before or after the sale), the gain is fully exempt. No other "rollover" or reinvestment exemption exists for individuals.
How does Spain tax the sale of a UK or US property by a Spanish resident?
Spanish tax residents are subject to IRPF on worldwide gains, which includes gains on foreign property. The applicable double tax treaty (DTT) between Spain and the UK, or Spain and the US, typically grants primary taxing rights over real property gains to the country where the property is situated — so the UK or US will tax the gain first. Spain then also taxes the gain at the savings scale rates, but grants a credit for foreign tax paid (up to the amount of Spanish CGT on the same gain). The result is that you pay the higher of the two countries' rates — but not both in full. Professional coordination between both countries' tax positions is essential to avoid overpayment.
Is there a participation exemption for large shareholdings in Spain for individuals?
At the corporate level, yes — Article 21 of the Ley del Impuesto sobre Sociedades (LIS) provides a participation exemption that exempts 95% of the gain on the disposal of a shareholding of at least 5% held for more than one year, subject to anti-avoidance conditions. However, there is no equivalent participation exemption for individuals in the IRPF. An individual selling a majority stake in a company they founded will pay CGT at the full savings scale rates (up to 30%) on the net gain. This makes the use of holding structures an important planning consideration for entrepreneurs expecting a significant exit in Spain.
When must I declare a capital gain from a share sale?
For Spanish tax residents, the gain is declared in the annual IRPF return (Modelo 100) for the tax year in which the disposal occurred (i.e., the calendar year of sale). IRPF returns are filed between April and June of the following year — so a gain realised in 2025 is declared in the return filed in April–June 2026. For non-residents, gains on Spanish-sited assets are declared via Modelo 210, which must be filed within three months of the date of disposal. There is no annual return for non-residents — each taxable event requires its own Modelo 210 filing within the relevant time limit.

Get a Professional CGT Review

The calculator gives you an estimate — but your situation may involve treaty relief, exemptions, or planning opportunities that change the picture significantly. Jacob responds within one business day.

Handled under GDPR. Used solely to respond to your enquiry.

📅 Or book on Calendly →
⚠️ AI-generated calculator — for orientation only: This calculator was developed with the assistance of artificial intelligence based on Spanish tax law as of 2026. The results are indicative estimates intended to help you visualise your potential tax position. They do not constitute legal or tax advice, do not account for individual deductions, treaty relief, regional nuances, social security contributions, or recent legislative changes. A thorough professional review is essential before making any decision. Always consult a qualified tax lawyer. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.
Ask a question