Property sale tax in Spain is not a single payment. A sale may involve capital gains tax, municipal IIVTNU (plusvalía municipal) and, where the seller is a non-resident, a 3% withholding from the sale price by the buyer. For 2026, check the exact rates, online instructions and deadlines for your transaction date with AEAT and the relevant ayuntamiento. The official AEAT page explains the non-resident system but does not provide a complete rate and procedure table here.
The practical order is: establish the seller’s tax residence, calculate the gain separately, check plusvalía with the municipality and gather evidence for every expense. Do not treat 3% as the final tax: for a non-resident it is an advance withholding reconciled through Modelo 210.
What taxes and mandatory costs arise when selling property in Spain?
Capital gains tax: IRPF or IRNR
A profitable sale may create a capital gain. For a Spanish tax resident, it normally falls under IRPF; the final amount depends on the current savings-income tax bands. For a non-resident, IRNR applies and the final calculation is filed using Modelo 210.
Do not calculate this as tax on the entire sale price. The basic logic is to compare the transfer value with the acquisition value, allowing only eligible, documented costs. A commercial source quotes 19% for non-residents, but that statement does not replace the current legal rule. Do not apply rates mentioned for other types of non-resident income. Confirm the rate applying on the sale date in the AEAT IRNR procedure and according to your status.
Municipal plusvalía
IIVTNU, commonly called plusvalía municipal, is a local tax linked to the increase in the value of urban land. It is separate from IRPF, IRNR and the 3% withholding. The amount and rules are set by the relevant municipality, so the same apartment can produce different results in different towns.
Notary, agency, documents and other seller costs
Taxes must be kept separate from contractual and technical costs. Estate-agent fees, legal work, an energy certificate (certificado energético), notarial work, mortgage cancellation and land-registry costs are not “sales tax”. The party responsible depends on the contract and circumstances. With a mortgage, the debt normally has to be repaid, followed by cancellation of the mortgage entry at the Registro de la Propiedad; the cost depends on the bank, notary and registry.
| What arises | What it means | What to check |
|---|---|---|
| Capital gain | The difference between transfer and acquisition values after permitted adjustments | IRPF or IRNR, supporting documents and the current AEAT procedure |
| 3% withholding | An advance payment from the sale price when the seller is a non-resident | Seller status, Modelo 211 and subsequent Modelo 210 |
| Plusvalía municipal | Local IIVTNU on urban land | The relevant ayuntamiento’s rules and calculator |
| Transaction costs | Contractual, notarial, banking and technical costs | Agency contract, mortgage, invoices and sale terms |
How do you calculate capital gains tax on Spanish property?
What counts as the purchase and sale value
Prepare a working spreadsheet before signing the notarial escritura. Record the transfer value in one column and the acquisition value in another, attaching evidence to every line. Without documents, even genuine costs may not reduce the taxable base.
- Take the price from the purchase escritura and the price from the future sale escritura.
- Collect evidence of acquisition taxes and costs.
- List documented sale costs separately.
- Distinguish improvements from ordinary repairs and maintenance.
- Check with AEAT or a tax professional whether each item is allowed under your regime and for the relevant year.
Documented costs that may reduce the taxable gain
Keep the purchase escritura, evidence of acquisition taxes and costs, invoices for eligible improvements and sale expenses. This does not mean every receipt is automatically accepted: the nature of the expense, its connection with the property, your tax regime and the supporting documents all matter.
Improvements are not the same as ordinary repairs. Do not automatically include maintenance, minor repairs or running costs simply because they relate to the apartment. If the property was rented out, the issue is more sensitive: past rental activity and possible tax adjustments require separate checking. Do not rely on a generic online template without advice on your return.
Example calculation for an apartment
Without unverified rates, it is safer to use a formula rather than inventing a euro example: estimated gain = transfer value − adjusted acquisition value. The adjusted acquisition value includes only eligible, documented purchase costs and improvements; the transfer value includes only eligible, documented sale expenses. The applicable IRPF or IRNR rules on the transaction date are then applied.
Practical template: “sale price”, minus “documented sale expenses”, minus “purchase price”, minus or plus only legally permitted, documented adjustments. The result is not automatically the tax due and does not replace the plusvalía calculation.
How do resident and non-resident property sale rules differ?
Who is a Spanish tax resident?
For this transaction, Spanish tax residence matters—not nationality, residence permit, contract language or bank address. Do not determine your status by guesswork. If in doubt, obtain confirmation and check the AEAT criteria and applicable tax treaty.
Resident rates and reporting
A resident normally reports the gain through IRPF, with the final rate depending on the current savings-income bands. The source material does not contain a confirmed official 2026 scale, so no figures are inserted here. Before filing, check the current IRPF campaign, any exemptions and the conditions for your main home.
Non-residents and their country of tax residence
AEAT deals separately with non-resident income, capital gains and deemed income from property. For a sale, the key regime is IRNR and Modelo 210. Your country of tax residence also matters for reporting the property there and for any double-tax treaty, but it does not remove your Spanish obligations.
What does the 3% non-resident withholding mean, and how can you reclaim an overpayment?
Who withholds 3%, when and from what amount?
According to the supplied sources, when a non-resident sells the property, the buyer withholds 3% of the sale price and pays it to AEAT as an advance. The buyer does this using Modelo 211. It must not be confused with final IRNR on the gain or with municipal plusvalía.
Buyer’s Modelo 211 and seller’s Modelo 210
The source gives 30 days from the notarial completion for Modelo 211. The non-resident seller then files Modelo 210 for the final calculation. The same source describes the deadline as three months after the one-month Modelo 211 period—usually up to four months from the transaction date. Because this is a commercial source, verify deadlines, filing method, payment details and attachments in the current AEAT instructions.
Filing, credit and refund deadlines
If the final tax is lower than the 3% withheld, or a loss is documented, Modelo 210 can be used to request a full or partial refund. Do not wait until the deadline: after completion, ask the buyer for proof that Modelo 211 was filed and prepare your calculation.
- Confirm that your non-resident status is correct for the transaction.
- Obtain the notarial sale details and proof of the buyer’s Modelo 211 withholding.
- Prepare the purchase and sale escrituras and receipts for acquisition costs, eligible improvements and sale expenses.
- Calculate the final IRNR result and file Modelo 210 under the current AEAT procedure.
- If there is an overpayment or loss, request the refund in Modelo 210 and provide the bank account required by the form.
- Keep the return, attachments and filing confirmation. If late, do not assume an automatic refund; check the consequences with AEAT or a gestor.
Do not promise yourself a refund date based on an agency article: the supplied information contains no officially confirmed payment deadline.
When can you legally reduce or avoid tax?
Selling your main home after 65
This exemption is often mentioned in practical guides, but the supplied facts do not confirm its official 2026 conditions. Do not rely on age alone: check that the property qualifies as your main home, your tax status, the period of use and the current legal requirements.
Reinvesting in a new main home
Reinvestment is not an automatic answer to “how can I sell without tax?”. The materials warn that this relief must be checked against AEAT guidance and the law. Before completion, confirm eligibility, deadlines, the replacement property, the seller’s status and how it must be reported.
A loss and evidence of costs
A documented loss is particularly important for a non-resident: the sources expressly indicate that Modelo 210 may be used to request a refund of the 3% withheld. The loss must result from a documented calculation, not simply from the feeling that the property sold cheaply.
How is plusvalía municipal calculated, and why does it vary by town?
Cadastral land value, ownership period and two calculation methods
IIVTNU relates to urban land. For a current calculation, check the cadastral land value, ownership period and your ayuntamiento’s rules. Confirm which calculation method and conditions the municipality applies; do not choose based on a friend’s advice. Request the municipal instructions and document list for the transaction date.
Checking the municipal rate and reliefs
- Identify the ayuntamiento where the property is located.
- Open its current IIVTNU page or municipal calculator.
- Check which method is available and what data it requires.
- Verify the land cadastral details and purchase and sale dates.
- Confirm who files, the deadline, reliefs and documents required by that municipality.
Alicante and other cities
A search for “property sale tax in Alicante, Spain” does not mean there is a separate nationwide Alicante rate. As in every other city, check the local IIVTNU rules on the transaction date. Do not transfer a calculation or relief from a neighbouring town, autonomous community or old article.
The source says that, when a non-resident sells, the buyer may act as the substitute taxpayer for IIVTNU. However, recovery from the seller and the exact procedure depend on the circumstances and municipal practice. Agree this in advance and verify it under the municipality’s current rules.
What documents and forms does the seller need?
Documents for the notary
- the property escritura;
- identity documents and foreigner number (NIE), if available;
- the latest IBI receipt;
- the energy certificate (certificado energético);
- proof that no community charges are outstanding (comunidad);
- with a mortgage, bank documents for repayment and subsequent cancellation of the entry.
Invoices and receipts supporting deductions
- purchase and sale escrituras;
- evidence of acquisition taxes and costs;
- invoices for eligible improvements;
- proof of sale expenses;
- proof of the 3% withholding and Modelo 211 for a non-resident.
Returns and deadlines
| Document | Who files or is involved | Purpose | Deadline in the supplied information |
|---|---|---|---|
| Modelo 211 | Buyer when the seller is a non-resident | Payment of the 3% withheld | Stated as 30 days from notarisation; confirm with AEAT |
| Modelo 210 | Non-resident seller | Final IRNR, credit or refund | Usually up to four months according to the commercial source; confirm with AEAT |
| IRPF | Resident | Reporting the gain | Check the AEAT campaign calendar for the relevant year |
| IIVTNU | As determined by local rules | Municipal plusvalía | Check with the ayuntamiento |
How should Russian, Ukrainian and other nationals deal with tax after the sale?
Spanish tax status matters more than nationality
Property sale tax in Spain for Russian, Ukrainian, US, EU/EEA and other third-country nationals is not a separate category created by a passport. A Russian or Ukrainian citizen does not automatically receive the non-resident rate or an exemption, and an EU citizen does not automatically become a resident. First establish Spanish tax status, then apply the relevant regime and check the rules in the country where you are tax-resident.
Double taxation and proof of Spanish tax paid
Check the rules of your country of tax residence and the applicable double-tax treaty; prepare proof of Spanish tax paid where necessary. Do not assume the treaty works in the same way for Russia, Ukraine, the US and every other country.
When to use a gestor or tax adviser
Speak to a gestor or tax adviser before paying a deposit (contrato de arras), not after completion, if the property was rented, there is a mortgage, you plan to claim main-home or reinvestment relief, your residence changed, expense records are incomplete or several countries are involved. This is especially important when coordinating IRPF/IRNR, Modelo 210/211 and municipal plusvalía.
What should you check before signing the escritura?
- Do not confuse the 3% withholding with final capital gains tax.
- Do not use a rate from an old article: the source material conflicts between 21% and 19%, and the supplied official extract does not confirm the applicable rate.
- Do not call plusvalía a tax on the apartment’s profit: it is separate municipal IIVTNU linked to land.
- Do not classify ordinary maintenance as an improvement without checking eligibility.
- Keep invoices, escrituras and proof of Modelo 211: deductions and refunds are harder to support without documents.
- Do not agree verbally on the allocation of IIVTNU, agency fees or mortgage costs—record it in the transaction documents.
- Do not rely on a “more than three years’ ownership” rule: the supplied facts contain no general exemption on that basis.
For a 2026 calculation, prepare a document folder and check three sources: AEAT for IRNR procedures and forms, and current AEAT guidance for IRPF; your ayuntamiento for IIVTNU; and the transaction contracts for non-tax costs. This is safer than trying to derive the entire tax from one figure in a sales listing.