The purchase of real estate involves a number of additional costs in addition to the purchase price. Normally these costs amount to 8-9 % of the purchase price if you buy without a mortgage. With a mortgage, additional costs of about 2-3% are incurred.
Below you can find detailed information about all the steps involved in buying or selling a property on the Spanish government website.