---
title: "How is capital gains tax worked out when a non-resident sells in Spain?"
canonical_url: https://www.247spain.es/answers/capital-gains-tax-calculation-non-resident-sale-spain
language: en
last_checked: 2026-09-07
description: "The gain is the transfer value less the acquisition value, taxed at 19 percent for every non-resident. The transfer value is the sale price less the seller"
---

# How is capital gains tax worked out when a non-resident sells in Spain?

The gain is the transfer value less the acquisition value, taxed at 19 percent for every non-resident. The transfer value is the sale price less the seller's costs of selling, such as agent commission and the notary, registry and legal costs. The acquisition value is what you paid, plus improvements, plus the taxes and costs of buying. Any amortisation deducted against rental income comes off the acquisition value, which raises the gain.

Where this comes from: Manual de Tributacion de No Residentes, cap. 3, ganancias patrimoniales derivadas de la venta de inmuebles, AEAT sede electronica, read 2026-09-07; Tipos de gravamen IRNR sin establecimiento permanente, AEAT sede electronica, read 2026-09-07.

Checked against the official source on 2026-09-07.

- [Manual de Tributacion de No Residentes, cap. 3, ganancias patrimoniales derivadas de la venta de inmuebles, AEAT sede electronica, read 2026-09-07](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/manual-tributacion-no-residentes/capitulo-03-tributacion-rentas-comunes-nr/ganancias-patrimoniales/ganancias-patrimoniales-derivadas-venta-inmuebles.html)
- [Tipos de gravamen IRNR sin establecimiento permanente, AEAT sede electronica, read 2026-09-07](https://sede.agenciatributaria.gob.es/Sede/no-residentes/irnr-sin-establecimiento-permanente/tipos-gravamen-irnr-sin-establecimiento-permanente.html)

## Related

- [Work it out for your own property: Selling a Spanish property](https://www.247spain.es/sale-tax)
- [Questions and answers](https://www.247spain.es/answers)
- [Why does the buyer keep 3 percent when a non-resident sells in Spain?](https://www.247spain.es/answers/three-percent-withheld-when-selling-spanish-property)
- [How is the plusvalia calculated when I sell in Spain?](https://www.247spain.es/answers/plusvalia-when-selling-in-spain)
- [Who sets the plusvalia rate when I sell a property in Spain?](https://www.247spain.es/answers/who-sets-the-plusvalia-rate-in-spain)
- [Do I need an energy certificate to sell or let in Spain?](https://www.247spain.es/answers/energy-certificate-for-a-spanish-property)
- [Who pays the IBI when I sell my Spanish property during the year?](https://www.247spain.es/answers/who-pays-ibi-when-a-spanish-property-is-sold)
- [Do I need a certificate of paid community fees to sell in Spain?](https://www.247spain.es/answers/seller-must-prove-community-fees-are-paid-spain)
- [What it costs to buy a property in Spain, on top of the price](https://www.247spain.es/guides/costs-of-buying-property-in-spain)
- [Energy certificates for Spanish homes: when you need one and how long it lasts](https://www.247spain.es/guides/energy-certificates-in-spain)
- [How to pay for a property in Spain when your money is abroad](https://www.247spain.es/guides/paying-for-a-spanish-property)
- [About Spain 24/7](https://www.247spain.es/about)
