Skip to content

Draft: copy pending approval and native review.

Menu

Selling a mortgaged home in Spain as a non-resident

Tributame teamLast reviewed:

In short

The outstanding mortgage does not reduce the gain: it is calculated with the sale price and the purchase price, and the mortgage interest is not added to the purchase value. The buyer withholds 3 % of the whole price, even if part goes to the bank. Only in reinvestment in a main home is the outstanding principal deducted.

When an owner who lives abroad sells a flat on which money is still owed to the bank, part of the price goes to cancel the mortgage. For the Modelo 210 for the sale, the question is whether that debt changes what is declared. Almost never.

Selling a mortgaged property in Spain: sale price, outstanding loan and taxable gain

Does the outstanding mortgage reduce the gain?

No. The gain is the difference between the sale value and the purchase value. The mortgage is a debt of the seller, and cancelling it with the price changes neither. If you sell for 250,000 € and owe 120,000 € to the bank, the sale value is still 250,000 €, not 130,000 €.

The sale value is the real amount of the sale, less the expenses and taxes of the sale that you pay. The purchase value is the price, plus the expenses and taxes of the purchase and the improvements, and with depreciation deducted if it was let, as in depreciation when selling a let home.

Can the mortgage interest be deducted?

No. The law says that the purchase value includes the expenses and taxes of the purchase, “excluding interest”. The interest you paid during the years of the mortgage is not deducted when you sell. It was only deducted, if you could, in the rental expenses (in Spanish) of the years it was let.

On what is the buyer’s 3 % calculated?

On the whole price. The law says that the buyer withholds 3 % of the agreed consideration, and Modelo 211 asks in its box 01 for “the amount of the agreed consideration”. It is not reduced by the part the seller uses to pay the bank.

With made-up data, a sale for 250,000 € with a 120,000 € mortgage:

  • Buyer’s 3 % withholding: 7,500 €, on the 250,000 €.
  • If the gain is 70,000 €, the tax is 13,300 € (19 %).
  • The seller deducts the 7,500 € already withheld and files the 210 with an amount to pay of 5,800 €.

The seller does not receive those 7,500 €: the buyer pays it in with the 211. The seller should bear this in mind when planning the cancellation of the mortgage, because the money that reaches them is less than the price minus the debt. The guide to recovering the 3 % withholding explains when there is a surplus.

What happens if the buyer takes over the mortgage?

The buyer may take over the mortgage and pay the seller only the difference. Neither the AEAT nor the law explains, for the 211 of a non-resident, whether the “agreed consideration” includes the assumed debt. The prudent course is to withhold on the total price of the purchase. [REVISIÓN FISCAL: consideration in a sale where the buyer takes over the mortgage]

And the costs of cancelling the mortgage?

The notary, the registry and the fee for cancelling a mortgage are paid by the seller, but the law only lets you deduct from the sale value the expenses and taxes of the sale, and we have not found an official criterion saying that those of the cancellation are. The prudent course is not to deduct them if there is no criterion that includes them, and to keep the invoices in case there is one. [REVISIÓN FISCAL: mortgage cancellation costs: an expense of the transfer?]

What if the mortgage is larger than the price?

The gain is calculated the same way: the price against the purchase value, and the debt does not come into it. If there is a loss, there is no tax on the gain, but you have to file the 210 to recover the 3 % withheld. This is covered in the guide to offsetting a loss (in Spanish).

In which case does the mortgage count?

In reinvestment in a main home. If the home sold was your main home, you live in the EU or the EEA, and you bought it with outside financing, the amount to be reinvested is the sale value less the principal still outstanding. It is the only place where the mortgage reduces the figure. We explain it in reinvestment in a main home.

Which documents are needed?

  • The sale deed and the mortgage cancellation deed.
  • A certificate from the bank with the principal outstanding on the sale date.
  • A copy of Modelo 211.
  • The invoices for the expenses of the sale and of the purchase.

The amount for each case will come from the Modelo 210 calculator.

Sources

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