What a mortgage payment is made of, with a worked example
Take a home priced at 400,000 with a 20% down payment. The down payment is 80,000, so the loan is 320,000. At 6.5% a year for 30 years, the monthly rate is 0.065 / 12 and there are 360 payments. The annuity formula, P × i / (1 − (1 + i)^−n), gives a payment of 2,022.62. Over 30 years that is 728,142.36 in payments, so the interest comes to 408,142.36: more than the loan itself.
The first payment shows why. Interest that month is 320,000 × 0.065 / 12 = 1,733.33, so only 289.28 of the 2,022.62 reduces the balance. The share going to the balance grows a little every month. The year-by-year table makes this visible: in the first years most of each payment is interest, and in the last years almost all of it is principal.
The term changes the total far more than the payment. The same 320,000 over 15 years costs 2,787.54 a month, about 765 more, but the total interest falls to 181,757.84, less than half. The down payment matters too. Put down 10% instead of 20% and the loan is 360,000, the payment is 2,275.44 and the interest over 30 years is 459,160.16. On top of that, many lenders charge mortgage insurance when the down payment is under 20%.
The loan payment is not the whole monthly cost. Say the property tax is 4,800 a year and home insurance is 1,200 a year. A lender that collects them with the payment (an escrow account in the US) adds 400 and 100 a month, so the total is 2,522.62. Enter both to see the figure a budget has to cover. Lenders often call the four parts together PITI: principal, interest, taxes and insurance.
The calculator has limits. It assumes a fixed rate for the full term and ignores mortgage insurance, HOA or service charges, closing costs, points and rate changes. Tax and insurance bills rise over time, while the calculator holds them flat. Lenders round and date payments in their own way, so their schedule can differ by small amounts. Use it to compare homes, terms and down payments, and rely on the lender loan estimate for the real figures. It is arithmetic, not financial advice.