
Costs and taxes when selling a flat in Madrid: complete guide
Find out which costs and taxes you need to take into account when selling your home in Madrid in order to calculate accurately how much money you will actually receive.
Selling a flat in Madrid involves more than setting a price and finding a buyer: there are a series of costs and taxes that reduce the net amount you ultimately receive. Knowing them in advance allows you to negotiate with confidence and avoid last-minute surprises.
Taxes the seller may have to pay
The main tax associated with selling a home is the **Tax on the Increase in Value of Urban Land**, known as municipal capital gains tax, which levies the increase in the land’s value from purchase to sale and is settled at the relevant Town Hall. In addition, if the sale generates a capital gain compared with the purchase price, you will have to declare it in the **IRPF** for the tax year in which the sale takes place. We recommend consulting a tax adviser to calculate the exact amount according to your personal situation, as there are special cases such as exemptions for reinvestment in a main residence or due to age that may apply to you.
Usual seller costs
In addition to taxes, the seller usually bears other costs: the **Land Registry cancellation of the mortgage** if the flat still had an outstanding charge, the **energy performance certificate** (mandatory in order to advertise and sign the sale), obtaining the **simple note** from the Land Registry, and in many cases the fees of the estate agency handling the transaction. It is also advisable to set aside an amount for the **Property Tax (IBI)** for the current year, which is usually apportioned between buyer and seller as agreed in the deposit contract.
How to calculate what you will actually receive
For a realistic estimate, subtract from the agreed sale price: the cancellation of any outstanding mortgage, the estate agency commission, the estimated municipal capital gains tax, conveyancing fees and any possible taxation under IRPF. This exercise helps you set an asking price in line with your real financial expectations.
How we help you at Ubicasa
At Ubicasa we support our clients throughout the entire sales process, helping them understand each cost and coordinate with trusted tax advisers and conveyancers so that the transaction is completed without setbacks. If you want to know how much your home could be worth and what costs would apply in your specific case, you can request a free valuation of your flat or visit our flats for sale in Madrid page to learn about our full support process.
Conclusion
Anticipating the costs and taxes of a sale allows you to negotiate more confidently and avoid surprises at the notary’s office. If you have any doubts about your particular case, at Ubicasa we can help you calculate the net amount you would receive and prepare the necessary documentation. Contact our team and we will answer all your questions before you take the step.
Frequently asked questions about selling costs
Many owners wonder whether they have to pay all these costs equally or whether some can be shared with the buyer. In practice, some costs such as the IBI for the current year are usually apportioned between the parties as agreed in the deposit contract, while others, such as the mortgage cancellation or the municipal capital gains tax, are usually the seller’s responsibility. That is why it is so important to read the deposit contract carefully before signing it and to clarify any doubts with your conveyancer or with the estate agency accompanying you through the transaction. Planning these costs in advance also helps you negotiate the sale price with more room to manoeuvre, knowing beforehand how much you need to receive for the transaction to be worthwhile.
