In Germany the Maklerprovision (comission for the Real State agent) is 7%.
Typically, the seller pays half of it, but there are cases where the buyer pays it all.
You also need to pay a notary, government taxes, making the cost of buying a property over 12%+.
Furthermore, you shouldn't sell that property for around 10 years, otherwise, you'll need to pay Capital gains taxes.
The good part is that you don't pay any taxes if you own it for over 10 years and sell it.
Also property taxes are quite low, so once you get through this, it's usually great. Given that health insurance is public, there's quality public transport and the supermarket bill is cheap enough, it makes worth it!