Capital Gains Tax in Spain: The Picture in One Page
In Spain, capital gains are not taxed at ordinary income rates. They sit in a separate bucket called the savings base (base del ahorro), which also holds dividends, interest, and most investment income. The savings base uses its own progressive scale that is flatter and generally kinder than the general IRPF scale applied to salary and pensions. That is the first piece of good news for expat retirees selling property or rebalancing portfolios after the move.
The second piece is that Spain, through its network of double-taxation treaties and through domestic reliefs, offers genuine planning levers — the over-65 principal residence exemption, rollover relief, treaty credits on foreign disposals, and a favourable inheritance step-up — that can reduce or eliminate tax on the biggest gains most people ever realise. Knowing which lever applies to which asset, and when, is the whole game.
The Savings Base: Rates for Residents in 2026
For a Spanish tax resident in 2026, the savings base is taxed on a bracketed scale. Rates have climbed steadily over the last few years as Spain added a top band for large gains. The approximate scale in 2026 is 19% on the first €6,000 of savings income, 21% from €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 exact brackets are fixed annually in the Ley de Presupuestos and occasionally tweaked mid-year.
Because the savings base is its own bucket, a single large disposal — selling a foreign home, liquidating a fund — can push you into the 27% or 28% band even if your salary or pension keeps the general base in a low bracket. Splitting a disposal across two calendar years is one of the most reliable ways to keep more of the gain inside the lower bands, when the underlying asset allows it.
What Goes Into the Gain: Cost Basis and Adjustments
The gain is the difference between what you paid to acquire the asset (plus qualifying expenses and improvements) and what you received when you sold it (net of transfer costs). The numbers must be in euros at the exchange rates of the respective dates, which creates a structural problem for expats: a dollar-cost or sterling-cost asset can show a euro gain even when the local-currency gain is zero, purely because the euro weakened between purchase and sale.
On the acquisition side, the cost base includes the purchase price, notary and registration fees, transfer tax or VAT paid on entry, and capital improvements (not routine maintenance). On the disposal side, you can deduct the estate agent's commission, the plusvalía municipal if it was paid by the seller, and the legal costs of the transaction. Keep every invoice: the Agencia Tributaria is strict about documentary proof, especially on renovations.
Principal Residence: Rollover and the Over-65 Exemption
Spain gives principal residences — the vivienda habitual — two standout reliefs. The first is rollover (reinversión en vivienda habitual): if you sell your main home and reinvest the proceeds into another main home within two years, the gain is exempt to the extent of the reinvestment. Partial reinvestment produces a partial exemption. The clock runs both backwards and forwards: a new home bought in the two years before the sale can qualify if the intent is documented.
The second is the over-65 exemption. Once you are 65 or older and have lived in the property as your main residence for at least three continuous years, the gain on selling it is fully exempt — no reinvestment required. There is also a separate over-65 relief that exempts gains of up to €240,000 on any asset when the proceeds are used to purchase a lifetime annuity within six months. These two together are the reason Spain remains attractive to retirees selling at the peak and right-sizing into a final home.
Selling Foreign Property as a Spanish Tax Resident
This is where the most painful surprises happen. Once you are a Spanish tax resident, Spain taxes your worldwide gains. If you sell your UK or US home after moving to Spain, the gain is taxable in Spain, regardless of what the source country charges or exempts. UK Principal Private Residence relief, the US $250k/$500k home-sale exclusion — these are UK and US reliefs. Spain does not care.
The Spain-UK treaty — and the Spain-US treaty — assign the taxing right on real property to the country where the property sits, but Spain retains its right to tax you as a resident. The mechanism is a treaty credit: Spain calculates its own CGT on the gain, then allows a credit for the foreign tax actually paid, up to the Spanish liability. If your UK home sold tax-free under PPR, the credit is zero and Spain collects the full Spanish bill. Timing the sale before becoming Spanish resident is often the single largest decision an incoming retiree faces.
Non-Resident CGT on Spanish Property: The 3% Retention
If you are a non-resident selling a Spanish property, the buyer is legally required to withhold 3% of the gross sale price and pay it directly to Hacienda using Modelo 211. This is a payment on account, not a final tax. You — the seller — then file Modelo 210 within four months of the sale to declare the actual gain and either claim a refund (if the 3% exceeded the real liability) or pay the balance (if the real gain was larger).
Non-resident CGT runs at 19% for EU and EEA sellers and 24% for others. The 3% retention is the main reason sellers must file: even if the sale produced a loss, you need to file Modelo 210 to reclaim the withholding, and the claim window is finite. We have seen sellers discover this two years later and find the refund time-barred.
Shares, Funds, and ETFs
Gains on listed shares are calculated on a FIFO basis and taxed at savings-base rates. Losses can offset gains within the savings base in the same year, and any excess loss can be carried forward four years. One feature Spain offers that few other countries match is fund-to-fund rollover (régimen de traspasos): if you switch between collective investment funds registered in Spain, the gain is not crystallised — the cost base rolls into the new fund. This makes Spanish-registered funds unusually tax-efficient for long-term compounding.
The same relief does not apply to ETFs, despite their being collective investments. ETFs are treated like shares for CGT purposes: every switch is a disposal. This is a trap for investors arriving with US-style ETF-heavy portfolios; a fund restructuring in the year before moving to Spain — or in the first resident year — can materially reduce the ongoing tax drag.
Cryptoassets and the FIFO Rule
Crypto disposals are taxed in the savings base like shares. Every sale, swap, stablecoin rotation, or conversion into goods is a taxable event, and the cost basis is determined on a strict FIFO basis across the wallet. Hacienda has been explicit that "no tax until fiat" is not the Spanish rule: swapping ETH for USDC is a disposal of ETH and a new acquisition of USDC, priced in euros at the timestamp of the trade.
Crypto holdings also intersect with Modelo 721 (informative declaration of crypto held abroad above €50,000) and with Wealth Tax if year-end balances cross regional thresholds. The informative obligation is separate from the CGT obligation; filing one does not substitute the other.
Inheritance Cost Basis and the "Step-Up"
Spain applies a step-up on inheritance for CGT purposes. If you inherit an asset, your cost base becomes the market value declared for Spanish Inheritance Tax (ISD), not what the deceased originally paid. For heirs in low-ISD regions, this can be an enormous planning advantage: modest inheritance tax now, followed by a fresh, high cost base that wipes out future CGT on eventual sale.
The step-up only applies to what was declared. Under-declaring the inheritance value to save ISD is usually a false economy: it sets a low CGT cost base for the next disposal, and the Agencia Tributaria increasingly cross-checks ISD valuations against later CGT filings. Coordinating the two is part of serious estate planning, not a detail left to the notary.
Exit Tax: When Leaving Spain Costs You
Spain has a limited exit tax (impuesto de salida) that targets residents who accumulate large unrealised gains in shares and then move abroad. It applies when you have been a Spanish tax resident in at least 10 of the last 15 years and your shareholdings meet certain thresholds (broadly, a portfolio above €4 million, or a 25%+ stake in a company valued above €1 million). On departure, unrealised gains on those holdings are deemed realised and taxed at savings-base rates.
Most expats never come near the thresholds. But entrepreneurs who came to Spain under Beckham, built or held meaningful equity, and then plan to leave do need to model this carefully — sometimes the cost of leaving is higher than the cost of staying one more year to reset the 10-of-15 count, or of crystallising and restructuring before residency clocks over.
Beckham Law and CGT
Under the Beckham Law regime, you are taxed on Spanish-source income only. Capital gains on non-Spanish assets sit outside the Spanish net during the regime. That is an extraordinary advantage for incoming professionals holding foreign shares, funds, or property they plan to sell during the six-regime years — as long as the asset itself is not Spanish.
Exiting Beckham mid-year, or holding assets that Hacienda could argue are Spanish-sourced (for example a Spanish holding company wrapping foreign investments), shifts the picture. The regime is powerful but literal: plan disposals while the regime is clearly active and the asset is clearly foreign.
How Noburo Helps
Most expats do not have a CGT problem — they have a timing problem. The same disposal, six months earlier or later, across a residency line or under the right regime, can produce a radically different bill. Noburo helps you map every asset before the move, stress-test the treaty and domestic reliefs that apply, and stage disposals so that the savings base, the principal-residence reliefs, the foreign-tax credits, and any Beckham status all work in your favour rather than against you.
If you are planning a move to Spain, or you are already here and facing a sale, we will flag the foreign-property trap, set up the Modelo 210 filings for legacy non-resident holdings, coordinate ISD and CGT cost bases on inheritances, and keep you out of the exit-tax cohort if that is even remotely a risk.
Skip the paperwork — let Noburo prepare it
Join the waitlist to lock in launch pricing for Spanish tax filings prepared in English, with step-by-step Cl@ve filing instructions.