ITP runs from 6% to 13%, depending on the comunidad
Impuesto de transmisiones patrimoniales on a resale home is set by each comunidad autónoma, and the spread is the widest of any country here: 6% in Madrid, 6.5% in the Canary Islands, 7% in Andalucía and La Rioja, 9% in Cantabria and Castilla-La Mancha, and banded scales in several others that reach 13% on the top band in the Balearic Islands and Cataluña. Navarra and the País Vasco levy it under their own foral rules and are not offered.
Pick the comunidad above before you read the cash-to-complete figure. Left unset, the calculator charges Andalucía's 7%, the rate of the most populous comunidad.
Most comunidades have reduced rates for young buyers, large families, protected housing and rural municipalities. They depend on age, income or family and are not modelled, so treat the figure as the general rate for someone with no entitlement.
With the usual 20% down the loan is 240,000. At 3% over 30 years the payment is 1,011.85 a month. ITP at Madrid's 6% is 18,000 and notary, registry, gestoría and valuation about 6,000, so the buyer needs 84,000 in cash. The same flat in Cataluña would pay 30,000 of ITP and need 96,000.
A new-build is a different tax altogether
Second-hand homes pay ITP. A new home bought from the developer pays 10% VAT plus actos jurídicos documentados on the deed instead, at the comunidad's general rate for notarial documents. This page models the resale regime.
No mortgage insurance, and the valuation sets the loan
Spain has no mortgage insurance. Lenders normally finance 80% of the lower of the price and the bank's own valuation. A buyer who has agreed a price above the tasación has to find the shortfall from the deposit. Home insurance assigned to the mortgage is a standard condition, and banks generally want total loan payments below about a third of net income. Ley 5/2019 requires a solvency assessment but sets no figure and no test rate.
The same law caps what a bank may charge when you repay early. On a fixed rate it is at most 2% of the capital repaid in the first ten years and 1.5% after. On a variable rate it is at most 0.15% in the first five years, or 0.25% in the first three if the contract chose that, and nothing afterwards. Either way the charge may not exceed the bank's actual loss.
IBI is a municipal rate on the cadastral value, which sits well below market price. The 0.5% of price used here is an equivalent, and your recibo will show a different rate.