Imagen editorial sobre Gastos e impuestos al vender una vivienda en España

Costs and taxes when selling a property in España

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.

Jurisdiction: España + municipality Seller's tax profile: required Reviewed: 09/08/2026

Short answer

What costs can a property seller incur in España?

There is no single percentage for “selling costs” that applies to every transaction.

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.
Budget outline Sale price − outstanding debt − expenses − taxes = estimated net proceeds

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.

TAX

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.

MUN

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.

3%

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.

AG

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.

PRO

Lawyer, adviser or administrative agent

Fees depend on the service engaged: legal review, tax preparation, representation, document coordination or other services.

HIP

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.
Basic tax concept Gain or loss = transfer value − acquisition value

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.

Not every renovation automatically qualifies as a tax “improvement.” Whether work is classified as repair, maintenance or improvement may be relevant. Do not add every expense incurred during the years of ownership to the acquisition value without verifying its treatment and retaining supporting documentation.

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.

65+

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.

RE

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.
Tax residence does not mean nationality or administrative residence. Before preparing the tax estimate for an international sale, confirm the tax residence applicable at the time of transfer.

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.
Illustrative withholding example 300.000 € × 3% = 9.000 €

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.

WHO

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.

0

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.

MUNI

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.

There is no nationwide municipal capital gains tax figure. National law establishes the framework for IIVTNU, but calculating it for a specific property requires the current regulations of the relevant Town Hall.

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.
Do not confuse the outstanding mortgage balance with the cancellation cost. If 120.000 € remains on the loan, that amount may have to be repaid to the bank from the sale proceeds, but it does not mean that removing the charge from the Land Registry costs 120.000 €. These items must be shown separately in the net proceeds calculation.

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.

AG

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.

LEG

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.

DOC

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

01 · PURCHASE

Locate the title deed

Title deed or acquisition document, date, amount and ownership percentage.

02 · EXPENSES

Retrieve supporting documents

Keep acquisition taxes and expenses that may be tax-relevant.

03 · WORKS

Separate improvements

Gather invoices and evidence of the works that you intend to treat for tax purposes as investments or improvements.

04 · SALE

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%.
What you should NOT do “400.000 € for sale = 400.000 € available”

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

01

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.

02

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.

03

Using a capital gains tax from another municipality

The amount and procedure depend on the relevant Town Hall.

04

Forgetting the registered mortgage

Paying off the loan does not automatically remove the encumbrance which remains recorded in the Land Registry.

05

Not keeping invoices

Without documentation, certain expenses or improvements may be difficult to substantiate for tax purposes.

06

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.

07

Assuming an exemption applies

Main residence, reinvestment and age require checking the exact requirements before finalising the calculation.

08

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.

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.

Notice: This guide provides an overview of the main costs and taxes that may arise when selling a property in España and was revisada on 9 August 2026. It does not constitute personalised tax, legal, financial, banking or notarial advice. Taxation depends, among other factors, on the seller's tax residence, method of acquisition, use of the property, gains or losses, documentation of expenses and improvements, the existence of a mortgage and the municipality where the property is located. Municipal capital gains tax requires verification of the regulations and procedure of the relevant Town Hall. Sellers acting through companies, permanent establishments or other structures require specific tax analysis.

Actualidad inmobiliaria

Últimas publicaciones

Información práctica para agentes, agencias, compradores, vendedores e inversores del mercado inmobiliario español.