Spain Capital Gains Tax: Rates and Exemptions Explained

Spain Capital Gains Tax: Rates and Exemptions Explained

Marc Cantavella

Marc Cantavella

11 min read

Spain's capital gains tax system applies to profits from the sale of assets including real estate, stocks, cryptocurrencies, and other investments.

Whether you are a tax resident or non-resident, understanding how capital gains are calculated and taxed is essential for effective financial planning.

This guide covers tax rates for different types of capital gains, available exemptions, reporting requirements, and strategies to minimize your tax liability.

How capital gains are classified in Spain

Spain uses a dual tax system that separates income into two categories.

General income includes salaries, business profits, and rental income. Savings income includes interest, dividends, and capital gains from asset sales.

This distinction matters because savings income is taxed at lower progressive rates than general income.

Capital gains from selling property, stocks, or cryptocurrency all fall into the savings income category for tax residents.

Capital gains tax rates for residents

Spanish tax residents pay capital gains tax on worldwide income using progressive rates.

The 2026 rates for savings income are as follows.

  • 19 percent on gains up to EUR 6K
  • 21 percent on gains from EUR 6K to EUR 50K
  • 23 percent on gains from EUR 50K to EUR 200K
  • 27 percent on gains from EUR 200K to EUR 300K
  • 30 percent on gains above EUR 300K

These rates apply to all capital gains classified as savings income.

The progressive structure means only the portion of your gain in each bracket is taxed at that rate.

Capital losses and offsetting

Capital losses can offset capital gains realized in the same tax year.

If your losses exceed your gains, up to 25 percent of the excess losses can offset other savings income such as interest or dividends.

Any remaining unused losses can be carried forward for four years.

This provides flexibility for investors with volatile portfolios to smooth out their tax liability over time.

Capital gains tax for non-residents

Non-residents who sell Spanish assets face a simpler tax structure.

The flat capital gains tax rate is 19 percent for individuals from EU or EEA countries. Non-residents from other jurisdictions may face a 24 percent rate depending on bilateral tax treaties.

Non-residents only pay tax on Spanish-source capital gains.

Gains from assets located outside Spain are not taxable in Spain for non-residents.

The 3 percent withholding rule

When a non-resident sells Spanish property, the buyer is required to withhold 3 percent of the purchase price and pay it directly to the Spanish tax authorities.

This serves as an advance payment toward the capital gains tax liability.

Non-residents must file Form 210 within four months of the sale to declare the actual capital gain.

If the 3 percent withholding exceeds the final tax liability, the seller can claim a refund through the tax declaration.

Real estate capital gains

Calculating capital gains on property sales requires determining the taxable gain.

Start with the sale price and subtract the original purchase price, notary and land registry fees, estate agency costs, transfer taxes, and documented improvement expenses.

Only structural improvements that add lasting value are deductible.

Routine repairs and maintenance costs cannot be deducted. Keep detailed records and invoices for all eligible expenses to support your tax filing.

Municipal plusvalia tax

In addition to capital gains tax, property sellers must pay the municipal plusvalia tax.

This local tax applies to the increase in urban land value during the ownership period. Rural properties are exempt from plusvalia.

The seller is typically liable for plusvalia, though this can be negotiated in the sales contract.

Taxpayers can choose between two calculation methods and pay the lower amount. If you sell property at a loss or for the same price you paid, you are exempt from plusvalia but must file a declaration with supporting evidence.

Plusvalia must be filed with the local town hall within 30 business days of the sale. For inheritances, heirs have six months to file.

Capital gains on stocks and investments

Profits from selling stocks, bonds, mutual funds, and other securities are taxed as savings income at the progressive rates outlined above. Each sale generates a taxable event that must be reported on your annual tax return.

Gains are calculated by subtracting the purchase price and transaction costs from the sale proceeds. Brokerage fees and custody charges can be deducted when determining the net gain.

Spain uses the FIFO method for calculating cost basis when you sell part of a position acquired at different times. The shares purchased first are considered sold first for tax purposes.

Cryptocurrency capital gains

Cryptocurrency is treated as property for tax purposes in Spain. Any disposal event creates a taxable capital gain or loss. Disposal events include selling crypto for euros, swapping one cryptocurrency for another, and spending crypto to purchase goods or services.

Mining income, staking rewards, and DeFi yield are classified as general income and taxed at rates up to 47 percent. Only gains from selling or trading crypto qualify as savings income taxed at the lower capital gains rates.

Spanish tax residents must report all crypto transactions on their annual Modelo 100 tax return. Even small gains must be declared. There is no minimum exemption threshold for cryptocurrency in Spain.

Modelo 721 reporting requirement

If you hold cryptocurrency worth more than EUR 50K outside Spain as of December 31, you must file Modelo 721. This informative declaration is separate from your income tax return and must be filed between January 1 and March 31 each year.

Failure to file Modelo 721 or filing late can result in substantial penalties. The form discloses your foreign crypto holdings but does not calculate tax owed.

Exemptions for selling primary residence

Spanish tax residents who sell their primary residence may qualify for significant tax exemptions. The exemptions apply only if the property was your habitual residence for at least three years before the sale.

Reinvestment exemption

If you reinvest the full sale proceeds into a new primary residence within two years, the capital gain is fully exempt from tax. The exemption is proportional if you reinvest only part of the proceeds.

For example, if you sell for EUR 300K with a EUR 100K gain and reinvest EUR 225K , 75 percent of the gain is exempt. You would only pay tax on EUR 25K of the gain.

Over-65 exemption

Tax residents aged 65 or older who sell their primary residence are fully exempt from capital gains tax with no conditions. Unlike the reinvestment exemption, you do not need to purchase another property to benefit.

This exemption recognizes that older residents may be downsizing or relocating and should not face tax penalties on gains accumulated over decades of ownership.

Life annuity option

Sellers over 65 can avoid capital gains tax on up to EUR 240K of gains by investing the proceeds into a qualifying life annuity within six months. The annuity must meet specific regulatory requirements to qualify for the exemption.

These exemptions apply only to Spanish tax residents. Non-residents generally cannot claim the same benefits, though EU and EEA residents may qualify under certain conditions related to habitual residence definitions.

Beckham Law and capital gains

The Beckham Law allows qualifying foreign workers and entrepreneurs to elect special expatriate tax treatment for up to six years. Under this regime, individuals pay a flat 24 percent rate on Spanish-source income up to EUR 600K and 47 percent above that threshold.

Capital gains on Spanish assets remain subject to the standard progressive savings income rates ranging from 19 to 30 percent. However, capital gains from assets located outside Spain are completely exempt from Spanish taxation under the Beckham Law.

This creates a significant advantage for expatriates with foreign investment portfolios. They can realize gains on foreign stocks, real estate, or other assets without triggering Spanish tax liability during the six-year election period.

The regime also extends to the taxpayer's spouse and children under 25, making it an attractive option for families relocating to Spain.

Startup Law benefits for entrepreneurs

Spain's Startup Law introduced tax incentives for entrepreneurs and investors in qualifying startup companies. If you sell shares in a startup and reinvest the proceeds into another qualifying new or recently created company, the capital gain may be fully exempt.

The reinvestment must meet specific conditions outlined in the Personal Income Tax Act. The receiving company must qualify as a startup under the law's definition and timing requirements apply to the reinvestment period.

Employee stock options

Employees who receive stock options from qualifying startups benefit from increased exemptions. The annual exemption for gains from stock option grants rose from EUR 12K to EUR 50K under the Startup Law.

For gains exceeding EUR 50K , taxation is deferred until the company is listed on a public exchange, the employee sells the shares, or ten years pass from acquisition, whichever comes first.

Investor deductions

Individual investors in qualifying startups can claim a 50 percent deduction on their personal income tax liability for investments up to EUR 100K . The shares must be acquired at incorporation or through capital increases within seven years of the company's creation.

Additional conditions include limits on the investor's ownership percentage and requirements for holding the shares for at least three years but less than twelve years.

Reporting capital gains on Modelo 100

All capital gains and losses must be reported on your annual personal income tax return using Modelo 100. The filing period runs from April 2 to June 30 each year for the previous tax year.

If you elect to pay via direct debit, your return must be submitted by June 25 to allow processing time before the final deadline. Extensions are not automatically granted.

Required documentation

When filing Modelo 100, you must provide supporting documentation for each capital gain transaction. This includes purchase and sale contracts, notary deeds for property transactions, brokerage statements for securities, and invoices for deductible expenses such as improvements or legal fees.

For cryptocurrency, you should maintain detailed records of all transactions including dates, amounts, exchange rates, and wallet addresses. Spain requires even small gains of one euro or more to be declared.

Failure to report capital gains accurately can result in penalties, interest charges, and potential audits. The tax authorities have four years to review returns and assess additional tax if unreported gains are discovered.

Planning strategies to minimize capital gains tax

Strategic timing of asset sales can reduce your capital gains tax burden. If you expect to have lower income in a future year, deferring gains until that year could keep you in a lower tax bracket.

Harvesting capital losses to offset gains is another effective strategy. If you hold losing positions, selling them in the same year as profitable sales can reduce your net taxable gain. Remember that unused losses can be carried forward for four years.

Spreading gains across tax years

For large asset sales, consider structuring the transaction to receive payments over multiple years. This can keep annual gains within lower tax brackets and reduce the overall effective tax rate.

Installment sales of property or businesses can be structured to defer gain recognition. Consult with a tax advisor to ensure the arrangement complies with Spanish tax rules.

Using exemptions effectively

If you qualify for the primary residence exemption, time your sale and reinvestment carefully. The two-year reinvestment window provides flexibility but strict documentation is required to claim the exemption.

For taxpayers approaching age 65, waiting to sell your primary residence until after your birthday can eliminate the tax entirely rather than requiring reinvestment.

Consider residence status carefully

Tax residence status fundamentally changes your capital gains tax obligations. Spanish tax residents pay tax on worldwide capital gains while non-residents only pay on Spanish-source gains.

If you are considering relocating to or from Spain, the timing of asset sales relative to your residence status change can significantly impact your tax liability. Professional advice is essential for cross-border situations.

Key takeaways

Spain's capital gains tax system uses progressive rates from 19 to 30 percent for residents and a flat 19 percent rate for most non-residents. Understanding how different assets are classified and what expenses are deductible is essential for accurate tax calculation.

Significant exemptions exist for primary residence sales, particularly for taxpayers over 65, and the Beckham Law offers major benefits for expatriates with foreign assets. Strategic planning around the timing of sales, loss harvesting, and proper use of available exemptions can substantially reduce your capital gains tax burden.

Always maintain detailed records of all transactions and consult with a qualified tax advisor familiar with Spanish tax law before making major asset sales or investment decisions.

Savings income tax rates (19% to 30%) for capital gains

PwC Worldwide Tax Summaries – Spain Individual·Last checked: 09/02/26

Capital gains determination and FIFO method

PwC Worldwide Tax Summaries – Spain Income Determination·Last checked: 09/02/26

Primary residence reinvestment exemption and over-65 exemption

PwC Worldwide Tax Summaries – Spain Other Taxes·Last checked: 09/02/26

Beckham Law and capital gains treatment for expatriates

Agencia Tributaria – Special Regime for Expatriates·Last checked: 09/02/26

Startup Law investor deductions and stock option exemptions

PwC Worldwide Tax Summaries – Spain Significant Developments·Last checked: 09/02/26

Modelo 721 cryptocurrency reporting requirement

Agencia Tributaria – Modelo 721·Last checked: 09/02/26

Marc Cantavella

Manager at The Global Wealth

International Tax Lawyer and HNWI Relocation Expert. Co-founder and Manager at The Global Wealth.