I sold my house in 2017. Estate agent's commission - 5% of sale price, was deducted from the sale proceeds and paid to them by the buyer's lawyer. Plus valia payable to the Ayuntamiento - depends on how long you have owned the property and the catastral value, should be paid within 30 days of completion. My Ayuntamiento has an online calculator which I could consult to find out in advance how much that woud be. Capital gains tax if you sell at a profit - if you are selling as a Spanish tax resident, obtain a certificate of fiscal residence from the AEAT and submit it to the notary, to avoid having 3% of the sale price retained against potential CGT liability. Then the sale needs to be accounted for in your next Spanish income tax return and any CGT paid. You can offset against CGT the transfer tax paid when you bought the property, plus legal and notary fees (if you have the invoices), the plus valia and the estate agent fees, plus possibly costs of extending or altering the property (if you obtained all the necessary permissions) but not things like new kitchen or bathrooms or routine maintenance. If the property has been your principal residence for at least 3 years and you buy another property (either in Spain or another EU member country) and invest all the sale proceeds within two years there is no CGT to pay, nor if you are over 65 when you sell and the property has been your main residence for 3 years or more. The seller is liable to pay the IBI for the year of sale but in many cases (including mine) the seller and buyer agree to split the bill proportionately.