The core payment
A fixed-rate mortgage payment stays the same every month. It is set so that, after the final payment, the balance reaches exactly zero. The amount depends on three things: how much you borrow, the interest rate and the length of the loan. The standard amortization formula multiplies the loan amount by the monthly rate, then divides by one minus the monthly rate plus one, raised to the negative number of payments.
Why early payments are mostly interest
Interest is charged each month on the balance you still owe. At the start the balance is at its largest, so most of the payment covers interest and only a small part reduces the loan. As the balance falls, the interest part shrinks and the principal part grows. This is why paying extra early in the loan saves far more than paying extra near the end.
What else is in the monthly bill
Many lenders collect property tax and homeowners insurance with your payment and pay them for you from an escrow account. If your down payment is small, you may also pay mortgage insurance until you build enough equity. The principal and interest part stays fixed, while tax and insurance can change from year to year.
How to use this
Try the mortgage calculator with a few interest rates and loan terms. A shorter term raises the monthly payment but cuts the total interest a lot. Then try the extra payment calculator to see how a small monthly addition shortens the loan.