When selling an apartment in Barcelona you will have to pay: Municipal capital gains – is a tax that is paid to the city council within 30 business days from the day of the sale before a notary. Can be settled online. If you are a Spanish resident, the personal income tax for the capital gain If you are a non-resident in Spain, a withholding of 3% of the value of the home