How is a mortgage payment calculated?
Most mortgages are annuity loans: you pay the same amount every month. At the start most of it is interest; over time more and more goes to paying off the loan.
M = P × r ÷ (1 − (1 + r)^−n)Here P is the loan amount, r the monthly interest rate (yearly rate ÷ 12 ÷ 100) and n the number of monthly payments.
Example
A loan of 300,000 at 4% for 30 years: r = 0.04 ÷ 12 = 0.00333, n = 360. The monthly payment is about 1,432, and the total interest over 30 years is about 215,600.
This calculator shows the loan itself. Property taxes, insurance and fees are not included, and rules differ per country.