Property sale · Costs · Taxation
The sale price is not the net amount received by the seller
When selling a property in España, professional fees may arise, along with documentation costs, mortgage cancellation costs and various tax obligations. Tax treatment varies significantly depending on the seller's tax residency and the municipality where the property is located.
Short answer
What costs can a property seller incur in España?
A seller may incur brokerage and advisory fees, documentation costs, costs related to a mortgage, taxation on any potential capital gain and, where applicable, municipal capital gains tax. When the seller is a tax non-resident, the sale also triggers the specific 3% withholding mechanism.
Budgeting for a sale correctly means separating three concepts: transaction costs, debt that must be repaid and taxes. Not every amount deducted from the price at the notary's office has the same legal or tax nature.
Net proceeds from the sale
Start with the price and deduct each item separately
The balance ultimately available to the seller is not calculated by applying a generic percentage to the price. Each item must be identified and substantiated individually.
- Actual transfer price.
- Outstanding mortgage debt that deba be settled.
- Agreed commercial and professional fees.
- Land Registry cancellation costs or other administrative procedures.
- Taxes payable by the seller.
- Other settlements or debts that deban must be resolved as part of the transaction.
This outline helps organise the transaction. The actual tax calculation must be carried out separately, because a withholding tax or mortgage debt do not necessarily amount to a final tax expense.
Cost overview
The main items a seller should review
Some are mandatory only in certain cases; others depend on the contract the seller has signed with an agency, lawyer, gestor, bank or other professional.
Capital gain
The sale may result in a taxable gain or loss. For an individual resident, the calculation is based on the difference between the tax values at acquisition and transfer.
Municipal capital gains tax
IIVTNU is a local tax linked to the increase in value of urban land. The relevant Town Hall is essential for determining the amount payable and the specific procedure.
Non-resident withholding tax
When the transferring owner is a non-resident without a permanent establishment, the buyer must withhold and pay 3% of the consideration as an advance payment towards the seller's tax.
Real estate agency
If an agency is involved, the seller should review the fees, indirect taxes applicable to the service and the terms agreed in the instruction or contract. There is no single nationwide estate agency commission.
Lawyer, adviser or administrative agent
Fees depend on the service engaged: legal review, tax preparation, representation, document coordination or other services.
Mortgage and Land Registry
If there is a mortgage charge, it may be necessary to settle the debt and also arrange for the mortgage to be cancelled at the Land Registry.
Resident seller
Tax on the gain is not calculated simply on the sale price
For an individual who is tax resident in España, the Personal Income Tax Act determines the gain or loss by comparing the acquisition value with the transfer value.
- The acquisition value is based on the amount for which the property was acquired.
- Qualifying investments and improvements may be included under the applicable regulations.
- Certain expenses and taxes inherent to the acquisition paid by the buyer are also taken into account.
- The transfer value is based on the actual sale amount.
- Certain expenses and taxes inherent to the transfer paid by the seller may reduce that value.
- Depreciation may be relevant in cases provided for by law.
The formula appears straightforward, but both values have their own tax components. Keeping deeds, invoices and supporting documents may be essential to ensure the calculation is carried out correctly.
Possible exemptions
Making a gain does not always mean that all of it will be taxable
Personal Income Tax regulations provide for certain situations in which the gain arising from a main residence may be fully or partially exempt.
Main residence and people over 65 years of age
The AEAT provides for an exemption on gains arising from the transfer of a main residence for people over 65 years of age and in certain cases of dependency, provided the legal conditions are met.
Reinvestment in a main residence
Gains from a main residence may benefit from the reinvestment exemption when the proceeds received are reinvested in another main residence or in its renovation and the legal requirements are met.
An exemption should never be assumed solely because the property was the seller’s residence. The definition of main residence, the time limits and the conditions applicable to the specific case must be verified.
Tax residence
Resident sellers and non-resident sellers do not follow the same tax procedure
Nationality is not the correct criterion. For a sale, the transferor’s tax residence must be identified and the tax regime that actually applies to them.
| Situation | Tax on the gain | Withholding tax of 3% | Municipal capital gains tax |
|---|---|---|---|
| Individual tax resident in España | The property gain or loss is included, where applicable, in IRPF. | This is not the standard mechanism applicable to a resident seller. | It must be assessed separately for each property and municipality. |
| Non-resident individual | The gain arising from Spanish property is assessed under IRNR. | The buyer must apply the statutory withholding of 3% where applicable. | It must be assessed separately; there is also a specific substitution rule where the taxpayer is a non-resident individual. |
| Company or entity | The treatment should not be calculated automatically using the personal IRPF rules. | It depends on the entity's tax residence and tax structure. | It must be assessed according to the transferor's status and local regulations. |
Non-residents
The withholding of 3% reduces the money received at completion, but it is not the final tax
When acquiring a property located in España from a non-resident owner without a permanent establishment, the buyer must withhold and pay the statutory percentage on the consideration attributable to the non-resident.
- Percentage currently set at: 3%.
- It is calculated on the consideration attributable to the non-resident seller.
- The buyer makes the payment using Form 211.
- The current deadline for Form 211 is one month from the transfer.
- The amount withheld acts as an advance payment towards the seller's tax.
- If the withholding exceeds the final tax liability, a refund of the excess may be requested where applicable.
In a sale of 300.000 € entirely attributable to a non-resident owner, the buyer would withhold 9.000 € in this example. 9.000 € do not in themselves represent the final amount of capital gains tax.
Municipal tax
Municipal capital gains tax must be calculated in the municipality where the property is located
The Tax on the Increase in Value of Urban Land taxes, within its legal framework, the increase in value of urban land as evidenced by the transfer.
Sale for consideration
In an ordinary sale, national law identifies the transferor as the taxpayer, without prejudice to the special rule provided for certain non-resident sellers.
No increase in value
There is no tax liability where it is established, in accordance with the legal procedure, that there was no increase between the land values on the acquisition and transfer dates.
The amount is local
The Town Hall and its ordinance are essential to determine the rate, permitted parameters, possible reliefs and the specific administrative procedure.
Mortgaged property
Paying off the debt and cancelling the mortgage at the Land Registry are different things
If the property has a mortgage, part of the sale price may be used to repay the outstanding principal. Next, it must be determined whether the charge should be removed from the Land Registry.
- The outstanding loan balance is a debt, not a sales tax.
- The zero-debt certificate must be issued freetui of charge by the institution.
- Removal from the Land Registry may require a notarial deed.
- Submitting the AJD cancellation document is mandatory, but it is exempt from payment.
- Registering the cancellation incurs Land Registry fees.
- If the bank or an administrative agency handles the cancellation, properly disclosed administration fees may apply.
Variable costs
Estate agency, legal adviser and administrative agent fees depend on the service actually contracted
These expenses may be significant in the budget, but they should not be presented as nationwide statutory percentages.
Estate agency services
Review in writing the fees, taxes on the service, exclusivity, when fees become due and the terms of the agreement signed with the agency.
Legal and tax advice
The cost depends on the scope of services contracted: seller due diligence, contract preparation, representation, tax matters or assistance at signing.
Documentation
Certificates, copies, Land Registry information, technical documentation or specific procedures may incur costs depending on the property and location.
To calculate net proceeds, use actual contractual amounts and verifiable quotes. A customary market percentage in an area does not constitute a mandatory legal tarifa for every España.
Preparation
Tax documentation from the original purchase can be just as important as that of the sale
Locate the title deed
Title deed or acquisition document, date, amount and ownership percentage.
Retrieve supporting documents
Keep acquisition taxes and expenses that may be tax-relevant.
Separate improvements
Gather invoices and evidence of the works that you intend to treat for tax purposes as investments or improvements.
Document the costs
Fees and taxes related to the transfer must be properly documented.
Sample estimate
How to think about the funds available after the sale
The following example does not calculate taxes. It merely shows why it is advisable to separate debt, fees and taxes before committing to a net amount.
- Agreed price: 400.000 €.
- Outstanding mortgage: 110.000 €.
- Professional fees: according to the actual contracts.
- Capital gain: to be calculated using tax values.
- Plusvalía: subject to the property and municipality.
- If the seller is non-resident: also review the withholding of 3%.
Before accepting a transaction, prepare a net proceeds statement with each item identified, and avoid confusing a payment on account with a final tax.
Common mistakes
Eight mistakes that can distort the net proceeds from a sale
Calculating tax on the entire sale price
Capital gains are determined by comparing tax values, not simply by applying a rate to the sale price.
Confusing 3% with the final tax
In a non-resident sale, it is a payment on account which must subsequently be reconciled with the final tax liability.
Using a capital gains tax from another municipality
The amount and procedure depend on the relevant Town Hall.
Forgetting the registered mortgage
Paying off the loan does not automatically remove the encumbrance which remains recorded in the Land Registry.
Not keeping invoices
Without documentation, certain expenses or improvements may be difficult to substantiate for tax purposes.
Confusing nationality with tax residency
A foreign national may be a tax resident in España and a Spanish national may be a non-resident.
Assuming an exemption applies
Main residence, reinvestment and age require checking the exact requirements before finalising the calculation.
Using generic commercial costs
Agency fees and advisory services must be calculated according to the contract and services actually agreed.
Official sources
Legal and institutional basis of this guide
National sources revisadas on 9 August 2026. For municipal capital gains tax, the following must always be added: the bylaw and procedure of the relevant Town Hall.
Related guides
Focus only on the cost you need to calculate
This page serves as an overview. Specific tax calculations belong in their canonical guides.
Preparing a sale
Calculate your net proceeds before setting your sales strategy
The location, the seller's tax residence, mortgage status and available documentation determine what professional assistance may be relevant.
Frequently asked questions
Costs and taxes when selling a property in España
There may be taxes on the gain, municipal capital gains tax, agency or advisory fees, documentation and costs associated with a mortgage or its cancellation. Not all of these items arise in every transaction, and there is no single nationwide percentage for selling costs.
No. For an individual resident, the capital gain or loss is determined based on the difference between the tax values at transfer and acquisition, rather than simply applying a percentage to the entire price received.
Spanish Personal Income Tax Law allows certain costs and taxes inherent to the transfer paid by the seller to be taken into account when determining the transfer value. The nature of the expense must be verified and sufficient documentation retained; not every expense generically related to the property is automatically deductible.
The gain arising from Spanish real estate is assessed under IRNR and, where the legal mechanism applies, the buyer must withhold and pay 3% of the consideration payable to the non-resident seller.
No. This is an advance payment of the tax ultimately due by the non-resident transferor. If the amount withheld exceeds the resulting tax liability, a refund of the excess may be requested through the relevant procedure.
In a transfer for consideration, national legislation establishes as the taxpayer the person transferring the land. Where the taxpayer is a non-resident individual, the law provides for a specific rule under which the purchaser acts as the taxpayer's substitute.
The law provides that no tax liability arises where the absence of any increase in value is demonstrated in accordance with the legal rules. The transfer must be declared and the required documentation must be submitted to substantiate the circumstances.
There is no single national rate. The calculation depends on the national framework and the tax ordinance of the local council where the property is located. The current local parameters and rates must be checked.
Yes, but repayment of the debt must be coordinated and the handling of the mortgage charge. Paying off the loan financially and cancelling the mortgage in the Land Registry are different actions.
Banco de España states that the lender must provide free of charge tuithe zero-debt certificate. The subsequent Land Registry cancellation may generate notary, Land Registry or administrative fees, depending on how it is processed.
Not necessarily. A capital loss and municipal capital gains tax are separate considerations, and there may also be other costs or procedures. The absence of a gain for IRPF or IRNR purposes should not be used on its own to conclude that the transaction has no other obligations.
Actualidad inmobiliaria
Últimas publicaciones
Información práctica para agentes, agencias, compradores, vendedores e inversores del mercado inmobiliario español.
Capital gain on selling a property in España
Fiscalidad del vendedor · Ganancia patrimonial El impuesto no se calcula simplemente restando el precio de compra al precio de venta. Para determinar la gananci…
Leer más
How to calculate the return on a rental property
Inversión inmobiliaria · España Una buena inversión no empieza por la rentabilidad anunciada: empieza por entender todos los números y todos los riesgos. Compra…
Leer más
Scams and warning signs when buying a home in España
Seguridad inmobiliaria · España Una señal de alerta no demuestra una estafa, pero sí puede justificar detener el pago hasta verificar. Antes de entregar una res…
Leer más
Long-term or holiday rental: how to compare them
Inversión · Alquiler · Estrategia Larga temporada o alquiler turístico: compara primero la viabilidad y después la rentabilidad El alquiler turístico puede gene…
Leer más
Buying a property to invest in España
Inversión inmobiliaria · España Una buena inversión no empieza por la rentabilidad anunciada: empieza por entender todos los números y todos los riesgos. Compra…
Leer más
Buying a second home in España
Segunda residencia · España Una buena segunda vivienda debe funcionar también cuando no estás allí. Comprar una segunda residencia en España implica mucho más q…
Leer más
Tourist rental of residential properties in España
Inversión y alquiler · marco nacional Comprar para alquiler turístico no empieza con la rentabilidad. Empieza confirmando que el uso es viable. En España no exi…
Leer más
Where to buy a home in España: how to choose the right area
Elegir ubicación antes de elegir inmueble La zona adecuada no es la más famosa: es la que encaja con tu uso, presupuesto y forma de vida. España reúne mercados…
Leer más
Documents required to sell a property in España
Checklist documental del vendedor Preparar los documentos antes de encontrar comprador puede evitar retrasos cuando llega el momento de firmar. Para vender una…
Leer más
Withholding of 3% when selling a property as a non-resident
Vendedor no residente · IRNR El 3% que se retiene en la venta no es necesariamente tu impuesto final. Cuando un contribuyente no residente sin establecimiento p…
Leer más
