Selling Spanish shares as a non-resident does not automatically mean Spanish tax is due—but you should not assume the gain is exempt. Spain’s domestic law, any statutory exemption and the tax treaty with your country of residence all matter. The first step is to identify the shares, the seller’s tax residence, the size and history of the holding, and the company’s assets.

When can Spain tax a share disposal?
Spanish domestic law treats certain gains from securities issued by Spanish-resident individuals or entities as obtained in Spain. That is the starting point, not the final answer: an exemption or a tax treaty may restrict Spain’s taxing rights. The rules for shares are not the same as those for Spanish property or rental income. Read the AEAT guidance on other capital gains and Article 13 of the Non-Resident Income Tax Law.
Check exemptions and the company’s assets
Some gains from movable property may be exempt for qualifying residents of another EU or EEA state, subject to the statutory conditions and exclusions. In particular, do not assume the exemption applies where the shares derive from a company whose assets consist mainly of Spanish real estate, or where a qualifying substantial holding existed during the relevant look-back period. Listed shares, unlisted shares and interests in property-rich companies can therefore produce different results.
The relevant facts may include your tax residence for the disposal year, whether effective mutual assistance applies, the company’s asset composition, your direct and indirect ownership percentage, and the dates on which you held the shares. Verify the current law and the precise exception before relying on an exemption; nationality or the fact that you live abroad is not enough.
Read the treaty for your country of residence
A double-taxation treaty may allocate taxing rights over an ordinary share disposal to the seller’s state of residence, while preserving a right for Spain to tax certain gains linked to Spanish real estate or other defined cases. Treaty wording differs. Check the treaty in force for the disposal date and its definitions, ownership thresholds and property-rich-company rule. A general online summary cannot replace that treaty-specific check.
Work out the gain and keep evidence
If Spain retains a right to tax, determine the gain under the applicable non-resident rules. The calculation generally starts with the transfer value and acquisition value, using the relevant statutory rules and evidence. Keep purchase and sale confirmations, corporate actions, fees, exchange-rate records where relevant, and documents supporting the acquisition date and cost. Do not assume that losses from one disposal can be offset against another: AEAT describes taxation without a permanent establishment on a transaction-by-transaction basis.
Where ownership runs through another company, or the Spanish issuer holds substantial property, obtain reliable information about the ownership chain and the assets. The classification and treaty outcome can turn on those details, not just the name or stock-market listing of the issuer.
Form 210: check before filing
If Spanish tax remains due, check whether Form 210 is required for the particular gain and tax period, the relevant accrual date and the filing deadline. Our overview of Form 210 explains the return generally; it does not replace the gain-specific check. Do not file solely because the shares were issued in Spain, and do not skip a return solely because you live abroad. Review the current AEAT Form 210 guidance alongside the treaty and your facts.
Before reaching a conclusion, gather a certificate of tax residence, the relevant treaty, purchase and sale records, ownership history, information about the issuer’s assets and any Spanish tax withheld. A tax professional can then determine whether the gain is taxable in Spain, exempt, treaty-protected or reportable without tax due.
Official sources
AEAT: Other capital gains under the Non-Resident Income Tax rules.
BOE: consolidated Non-Resident Income Tax Law, including Articles 13–14 and 24–26.
AEAT: Form 210, filing deadlines and presentation.
This article is general information, not individual tax advice. The result depends on the tax year, residence, treaty, holding and issuer’s assets; verify the applicable rules before filing.