CAPITAL GAINS TAX FOR RESIDENTS

Capital Gains Tax in Spain for Residents

If you're a Spanish tax resident and you sell shares, funds, a second property or other assets at a profit, the gain is taxed in Spain — on your worldwide gains, not just Spanish ones. The rates sit on the "savings income" scale, which is more favourable than the rates on salary, and several valuable reliefs exist, including a full exemption for selling your main home and a generous relief for the over-65s. This guide explains how capital gains tax works for residents: what's taxable, the rates, the reliefs, and how to plan around them.

Book a Consultation The Rates
5.0★Rated on Google
100%English-speaking team
Quick answer

For Spanish tax residents, capital gains on shares, funds, property and other assets — worldwide — are taxed on the savings-income scale, which runs in progressive bands from 19% on the first slice up to around 28% on the largest gains (higher bands have been added over time). Key reliefs: your main home is exempt if you reinvest the proceeds in another main home (and there's a separate over-65 main-home exemption); the over-65s can also exempt gains on other assets if they reinvest into a qualifying annuity. Losses can be offset against gains within rules. Gains are declared on your annual Renta return. This is the resident position — non-residents selling Spanish property follow a separate regime (see our property CGT and non-resident selling guides).

What's Taxable

For a Spanish resident, a capital gain arises whenever you dispose of an asset for more than it cost you — and because Spain taxes residents on worldwide income and gains, it doesn't matter where the asset is. Selling a UK rental flat, cashing in a US brokerage holding, disposing of shares on any exchange, or selling a Spanish second home all generate gains that a Spanish resident must account for in Spain. The main categories:

  • Shares and funds. Gains on listed shares, ETFs and most investment funds. (Spanish investment funds enjoy a useful roll-over rule on switching between funds — see below.)
  • Real estate. Gains on selling property other than your exempt main home — second homes, rentals, overseas property.
  • Other assets. Crypto (covered in our crypto tax guide), valuables, business interests and similar.

This is fundamentally different from the non-resident position. A non-resident is taxed in Spain only on gains from Spanish assets (typically property), under a separate flat regime with its own mechanics — withholding at sale, the Modelo 210 process, and so on. Those are covered in our property capital gains and selling as a non-resident guides. This page is about the resident regime, where gains feed into your annual personal tax on the savings scale.

The Savings-Income Rates

Capital gains for residents are taxed not on the (higher) general income scale that applies to salary and pensions, but on the more favourable savings-income scale (base del ahorro), shared with interest and dividends. It's progressive, with the rate rising as the total of savings income and gains in the year increases:

Savings base (indicative)Rate
First slice (up to ~€6,000)19%
~€6,000–€50,00021%
~€50,000–€200,00023%
~€200,000–€300,00027%
Above ~€300,000~28%

The exact band boundaries and top rate have shifted over the years (higher bands were added for larger gains), so treat the figures as indicative and confirm the scale for the year of sale. The important takeaways are that even large gains top out at a rate in the high-20s percent — meaningfully lower than the top general-income rate — and that the progressivity means realising a very large gain in a single year pushes more of it into the upper bands. That last point is the seed of a planning idea: spreading disposals across tax years can keep gains in lower bands, which we return to below.

How a Gain Is Calculated

The gain is, broadly, the transfer value minus the acquisition value, each adjusted for allowable costs:

1

Acquisition value

What you paid, plus purchase costs (taxes, fees, notary, and for property, qualifying improvements).

2

Transfer value

What you sold for, less selling costs (agent fees, the plusvalía where it falls on the seller, etc.).

3

The gain

Transfer value minus acquisition value. This is the figure taxed on the savings scale.

4

Apply reliefs & losses

Remove any exempt portion (main home, over-65), offset eligible losses, then tax the net gain.

A few resident-specific points matter. For older assets there can be limited transitional "coefficient" relief reducing gains on assets acquired before the late 1990s, though it's capped. For property, keeping evidence of improvement costs (which add to the acquisition value and reduce the gain) is valuable — many people lose relief simply by not retaining invoices. And for Spanish-domiciled investment funds, there's a prized rule allowing you to switch between funds without crystallising a taxable gain (traspaso), deferring tax until you finally cash out — a genuine advantage of holding investments through Spanish-compliant fund structures.

Main-Home Exemption

The most valuable relief for residents is the main-home (vivienda habitual) reinvestment exemption. If you sell your main home and reinvest the proceeds into another main home within the permitted window, the gain can be fully exempt to the extent reinvested. This is what lets resident families move house without a capital gains hit — the gain rolls into the new home rather than being taxed.

The conditions matter: the property must genuinely have been your habitual residence (broadly, lived in as your main home for the required period), and the reinvestment has to be made within the time limit and into another main home. If you reinvest only part of the proceeds, only the corresponding part of the gain is exempt. This relief is specific to residents — and notably, there's a version that benefits some non-resident EU sellers too, but the core reinvestment relief is a resident feature. For anyone selling and rebuying a main home in Spain, structuring the timing to fit the reinvestment window is one of the highest-value pieces of planning we do.

Reinvest within the window

Selling your main home and buying another as your main home within the permitted period can make the gain fully exempt. Miss the window or reinvest only part, and part of the gain becomes taxable. The timing is entirely within your control with advance planning — which is exactly why it's worth planning.

Over-65 Reliefs

Spain offers two particularly generous reliefs for residents aged 65 and over, which make later-life disposals very tax-efficient:

  • Main home, no reinvestment needed. A resident over 65 selling their main home is generally fully exempt from capital gains tax on it — and unlike the under-65 relief, they don't even need to reinvest the proceeds. This is a major benefit for retirees downsizing or releasing equity from their home.
  • Other assets via annuity. A resident over 65 can also exempt gains on other assets (e.g. shares, a second property) up to a capped amount, provided the proceeds are reinvested into a qualifying life annuity within the time limit. This lets older residents realise investment gains tax-free by converting them into a guaranteed income stream.

These reliefs reward planning around age and timing. A retiree contemplating a significant disposal may find it dramatically more tax-efficient after turning 65, or by routing proceeds into a qualifying annuity. The annuity relief in particular has detailed conditions (the cap, the time limit, the type of annuity), so it's worth setting up correctly rather than assuming — done right, it can turn a substantial taxable gain into none.

Using Losses

Capital losses aren't wasted. Within the savings-income box, losses can be offset against gains, and there's limited scope to set surplus losses against a portion of your interest-and-dividend income, with any excess carried forward for a number of years to use against future gains. This makes loss harvesting — deliberately realising a loss to offset a gain in the same year — a legitimate planning tool for resident investors, subject to anti-abuse rules that prevent you from selling and immediately rebuying the same asset purely to manufacture a loss.

The practical upshot is that the timing of sales across your portfolio matters: bunching a gain and an offsetting loss into the same year, or spreading a large gain across years to stay in lower bands, can materially change the tax. Because the offset and carry-forward rules have specific limits and ordering, getting the most out of losses is an area where a quick calculation before you sell pays off.

Declaring & Planning

Resident capital gains are declared on your annual Declaración de la Renta (Modelo 100), where they slot into the savings-income calculation alongside interest and dividends. Foreign gains are converted to euros and reported the same way, with any foreign tax paid relieved under the relevant treaty to avoid double taxation. There's generally no separate "CGT return" for residents — it's part of the Renta — which is why good record-keeping through the year (acquisition costs, improvement invoices, broker statements) makes the annual filing accurate and defensible.

The recurring planning levers for residents are: timing (spreading large gains across years to stay in lower bands), the reliefs (main-home reinvestment, the over-65 exemptions), losses (harvesting and carry-forward), and structure (holding investments through Spanish-compliant funds to use the switch-without-tax rule). None of these are aggressive schemes — they're the ordinary, intended features of the system, used well. Common mistakes are the mirror image: realising a huge gain all in one year, missing the main-home reinvestment window, failing to keep improvement invoices, forgetting foreign gains, and not using available losses. We help residents plan disposals so the tax is as low as the rules legitimately allow.

How We Help

We help resident expats handle capital gains tax correctly and efficiently. Before a sale, we calculate the gain, identify which reliefs apply (main-home reinvestment, the over-65 exemptions), and advise on timing and loss use so the gain falls in the lowest legitimate bands. We make sure foreign gains are reported with treaty relief, keep the acquisition and improvement records that reduce the gain, and prepare your Renta return with everything in the right place. If you're selling property, we coordinate with the conveyancing and plusvalía side too. It's joined-up, in plain English on a clear quote. Book a consultation before you sell — that's when the planning has value.

Related Guides

Savings & Investment Income Tax

How interest, dividends and gains are taxed together.

Savings & investment tax →

Property Capital Gains Tax

The non-resident property CGT regime and mechanics.

Property CGT →

Spanish Income Tax Return

Where capital gains are declared each year.

Renta return →

Tax in Spain for Expats

The full expat tax picture in one place.

Tax pillar →

Frequently Asked Questions

What rate is capital gains tax in Spain for residents?+

Residents' capital gains are taxed on the savings-income scale, which runs in progressive bands from 19% on the first slice up to around 28% on the largest gains (higher bands have been added over time). This is more favourable than the general-income scale that applies to salary and pensions. The exact bands shift over time, so confirm the scale for the year of sale.

Are my gains on assets outside Spain taxable here?+

Yes. Spain taxes residents on worldwide gains, so selling a UK property, US shares or any overseas asset at a profit generates a gain you must declare in Spain. Foreign gains are converted to euros and reported on your Renta, with any foreign tax paid relieved under the relevant double-taxation treaty so you're not taxed twice.

Do I pay CGT when I sell my main home?+

Not if you qualify for the main-home reinvestment exemption — if you reinvest the proceeds into another main home within the permitted window, the gain can be fully exempt to the extent reinvested. If you're over 65 and selling your main home, the gain is generally fully exempt with no reinvestment required. Reinvesting only part of the proceeds means only part of the gain is exempt.

Are there special reliefs for the over-65s?+

Yes, two valuable ones. Residents over 65 selling their main home are generally fully exempt with no reinvestment needed. And over-65s can exempt gains on other assets (up to a cap) if they reinvest the proceeds into a qualifying life annuity within the time limit. These make later-life disposals very tax-efficient, so timing a significant sale around age 65 can be worthwhile.

Can I offset losses against my gains?+

Yes. Capital losses can be offset against capital gains in the savings box, with limited scope to set surplus losses against part of your interest and dividend income, and any excess carried forward for a number of years. Loss harvesting — realising a loss to offset a gain in the same year — is a legitimate tool, subject to anti-abuse rules that prevent selling and immediately rebuying the same asset to manufacture a loss.

How can I reduce a large capital gain?+

Legitimate levers include spreading disposals across tax years to keep gains in lower bands, using the main-home and over-65 reliefs where available, harvesting offsetting losses, keeping improvement-cost records that reduce a property gain, and holding investments through Spanish-compliant funds that allow switching without crystallising tax. These are ordinary features of the system used well — best planned before you sell, not after.

Is this different from non-resident property CGT?+

Yes. This page covers the resident regime, where gains feed into your annual Renta on the savings scale. Non-residents selling Spanish property follow a separate regime — a flat rate, a buyer withholding at sale (retención) and the Modelo 210 process. If you're a non-resident selling Spanish property, see our property capital gains and non-resident selling guides instead.

When should I get advice?+

Before you sell. Almost all the worthwhile planning — timing to stay in lower bands, qualifying for the main-home or over-65 reliefs, harvesting losses, and gathering cost evidence — has to happen before the disposal. Advice after the sale is largely limited to reporting it correctly. A short consultation before a significant sale frequently saves far more than it costs.

Plan Your Sale Before You Sell

We calculate the gain, apply every relief you qualify for, advise on timing and losses, and file it correctly on your Renta. Book a consultation with our English-speaking tax specialists.

Book a Consultation Tax in Spain Guide

This page provides general information about capital gains tax for Spanish tax residents and does not constitute tax or legal advice. Rates, bands, reliefs and conditions change over time and depend on your individual circumstances, the asset, and the tax year. Figures are indicative. Platinum Legal Spain works with a team of bar-registered solicitors, legal specialists and tax advisers; for advice on your situation, please book a consultation.