Skip to content

How is capital gains tax calculated when a non-resident sells a property in Spain, and which costs can be deducted?

Reviewed by Toni Faura · Last updated:

In short. The gain is the difference between the transfer value (sale price minus selling costs such as estate agent's commission or the municipal plusvalía) and the acquisition value (purchase price plus taxes, notary, Land Registry fees and improvements, minus depreciation). Tax is charged at 19 %, less the 3 % withheld by the buyer.

When a non-resident sells a property located in Spain, the capital gain is taxed under Impuesto sobre la Renta de no Residentes (IRNR, Spanish non-resident income tax). Under article 24.4 of the consolidated IRNR Act, the gain is calculated using the rules of Spanish personal income tax, IRPF (articles 34 onwards of Law 35/2006).

Basic calculation formula

The capital gain is the difference between the transfer value and the acquisition value.

  • Transfer value: the sale price stated in the title deed, minus the selling costs and taxes paid by the seller. For example, estate agent's commission, the municipal plusvalía tax (IIVTNU), the energy performance certificate or solicitor's fees.
  • Acquisition value: the purchase price, plus the costs and taxes of the purchase (transfer tax ITP or VAT and stamp duty AJD, notary, Land Registry, gestoría) and the cost of investments and improvements carried out, such as renovations or extensions. Maintenance and repair costs cannot be added.

Depreciation if the property has been let

If the property has been let, the acquisition value is reduced by the depreciation corresponding to the rental periods. This is often overlooked and can increase the gain. It should be reviewed carefully in each case.

Properties acquired before 1995

If the property was bought before 31 December 1994, the coeficientes de abatimiento (reduction coefficients) in the ninth transitional provision of the IRPF Act may apply. They reduce the part of the gain generated up to 19 January 2006, subject to a cumulative transfer value limit.

Tax rate and 3 % withholding

  • The gain is taxed at 19 %.
  • The buyer must withhold 3 % of the price and pay it to the Spanish Tax Agency using Modelo 211 (non-resident withholding return) within one month of the purchase.
  • The seller files Modelo 210 (Spanish non-resident income tax return) declaring the gain. If the withholding exceeds the tax due, a refund can be claimed. If it is lower, the difference must be paid.

Other points to bear in mind

  • Under IRNR each transaction is taxed separately. A loss on one sale cannot be offset against gains on other transactions.
  • If there are several owners, each declares their share of the gain on their own Modelo 210.
  • Keep the title deeds and all invoices for the purchase, renovations and sale, as they are the evidence for the costs deducted.

A correct calculation avoids overpaying and, where applicable, allows you to recover any surplus from the 3 % withholding.

Related service: Capital gains

Would you like us to look at your case?

I am interested

Related questions

← See all questions

Disclaimer. These questions and answers have been prepared based on specific cases which may not be of general application. If you would like personalised advice, please contact us, as the answers may not apply to your particular case and could lead to a detrimental result or one contrary to the law. The company accepts no liability for the content of these questions and answers, since any decision requires a tax study of each specific case.

The time has come to get to know each other

Contact us and we will get back to you within 24 hours