Skip to content

Draft: copy pending approval and native review.

Menu

Selling Spanish shares as a non-resident: tax in Spain

Tributame teamLast reviewed:

In short

The gain on selling shares in a Spanish company is treated as earned in Spain even if the seller lives abroad, but it can be exempt under domestic law or shifted to the country of residence by a tax treaty. If it is still taxed here, it is calculated transaction by transaction, taxed at 19 % and declared in the Modelo 210.

You live in Dublin, you hold shares in a Spanish company from your years in Madrid, and you have just sold them at a profit. Before you decide that Spain has nothing to do with it, or that it takes a slice, there are a few checks to make. This guide covers selling Spanish shares as a non-resident: when Spain can tax the gain, when it cannot, and where Form 210 fits.

Short answer: Spanish law starts by treating the gain on shares in a Spanish company as earned in Spain, even if you live abroad. A domestic exemption or the tax treaty with your country can then take it out of Spanish tax. If Spain keeps the right to tax, the gain is worked out sale by sale, taxed at 19% and declared on Form 210.

Illustration of a non-resident selling Spanish shares, with an investor reviewing a stock chart beside a Spanish city skyline.

What to pin down first

Four facts shape everything that follows:

  • which shares you sold;
  • where you were tax-resident when you sold them;
  • how large your holding was and how it changed over time;
  • what the company owns.

Neither outcome can be taken for granted: Spanish tax is not due by default, and the gain is not exempt by default.

When Spain can tax a sale of shares

Under Spanish domestic law, some gains on securities issued by people or companies resident in Spain count as income obtained in Spain. That is where the analysis begins. An exemption or a tax treaty can then narrow Spain’s right to tax.

Shares also follow different rules from Spanish property or rent, so do not borrow the property rules for them. For the detail, read the AEAT’s guidance on other capital gains for non-residents and article 13 of the Non-Resident Income Tax Law.

The exemption for EU and EEA residents, and its limits

Spanish domestic law exempts certain gains on movable assets (assets other than property, such as shares) for residents of another EU country (article 14.1 c) of the Non-Resident Income Tax Law). Since 2021 the exemption also covers residents of a European Economic Area (EEA) country with which there is an effective exchange of tax information.

It does not cover every gain. It does not apply in three cases:

  • the company’s assets are mainly real estate in Spain;
  • at some point in the twelve months before the sale you held at least 25 % of the company;
  • the income is obtained through a non-cooperative jurisdiction.

So listed shares, unlisted shares and stakes in companies rich in property can each end up in a different place.

The facts that may matter include:

Question Why it matters
Where were you tax-resident in the year of the sale? The exemption depends on residence, not nationality
If it is an EEA country, is there an effective exchange of tax information with it? It is one of the conditions to check
What does the company own? A company mainly made up of Spanish property is treated differently
What percentage did you hold, directly and indirectly? A stake of 25 % or more can rule the exemption out
On which dates did you hold the shares? They show whether that stake fell within the twelve months before the sale

Check the law in force and the exact exception before relying on the exemption. Being a foreign national, or simply living abroad, is not enough.

What your country’s tax treaty says

A double tax treaty may give the right to tax an ordinary sale of shares to the country where the seller lives, while letting Spain keep the right to tax some gains tied to Spanish property or other defined cases.

Each treaty is worded differently. Look at the one in force on the date of the sale, and in it:

  • the definitions;
  • any ownership thresholds;
  • the rule on companies rich in property.

A general summary online does not replace reading your own treaty.

Calculating the capital gain on the shares

If Spain still has the right to tax, work out the gain under the rules for non-residents. In general you start from the transfer value and the acquisition value, following the legal rules and backed by evidence.

Keep:

  • the purchase and sale confirmations;
  • records of corporate events affecting the shares;
  • fees paid;
  • exchange-rate records, where relevant;
  • documents that prove when you acquired the shares and what they cost.

One trap: losses on one sale are not automatically set against gains on another. The AEAT describes tax without a permanent establishment as charged transaction by transaction.

If you hold the shares through another company, or the Spanish company owns a lot of property, get reliable information on the ownership chain and on the assets. How the gain is classed, and what the treaty does with it, can turn on those details rather than on the company’s name or whether it is listed on a stock exchange.

Form 210 for a share sale: check before you file

If Spanish tax is still due, check whether this particular gain and tax period call for a Form 210, the date the gain is treated as arising, and the deadline. Our overview of Form 210 explains the return in general, but it does not replace the check for your specific gain.

Two opposite mistakes to avoid:

  • filing only because the shares were issued in Spain;
  • not filing only because you live abroad.

Read the AEAT’s current guidance on Form 210 and its deadlines together with the treaty and your facts.

Documents to have ready

  • a certificate of tax residence;
  • the treaty that applies;
  • records of the purchase and the sale;
  • the history of your holding;
  • information on what the issuing company owns;
  • any Spanish tax already withheld.

With this file, a tax professional can work out whether the gain is taxable in Spain, exempt, protected by the treaty, or has to be reported with no tax to pay.

This is general information, not advice on your case. The outcome depends on the tax year, your residence, the treaty, your holding and the company’s assets, so check the rules that apply before you file.

Sources

This guide is for information only. If an owner's case is out of the ordinary, get a professional review.