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:
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 interestedRelated questions
- How much capital gains tax does a non-resident pay when selling a property in Spain, and how does the 3% withholding work?
- Tax on the sale of shares in a Spanish company carrying on a business activity, with no non-business property, by a Swiss tax resident
- Taxation of dividends from a Spanish trading company (with no non-business property) received by a Swiss tax resident

