What are the penalties for early repayment of a mortgage in Germany?

Early repayment expenses are calculated using a government formula based called Aktiv-Passiv-Methode on the difference between the original loan rate and current market rates. Penalties can range from a few thousand euros to over €30,000, according to the remaining term and loan amount.