GONDAL AI / BLOG

How to Calculate a Mortgage Payment

Knowing how to calculate a mortgage payment comes down to one division: payment = loan × r ÷ (1 − (1 + r)−n), where r is the monthly rate and n is the number of monthly payments. On the example our free Mortgage Calculator loads with — a $500,000 home, $100,000 down, a $400,000 loan at 5% over 25 years — the answer is $2,338.36 a month, $701,508.05 in total payments and $301,508.05 of interest. This post works that example by hand, then holds the loan still while the term, the rate and the down payment move — because that is where the real cost hides.

How to calculate a mortgage payment — a $400,000 loan at 5% over 25 years costs $2,338.36 a month
One formula — the term, the rate and the down payment are where the money moves.

How to calculate a mortgage payment, step by step

  1. Open the free Mortgage Calculator and type the home price and the down payment. The loan is what is left: $500,000 − $100,000 = $400,000.
  2. Type the interest rate (% per year) — 5 in the loaded example.
  3. Choose the amortization in the dropdown: 15, 20, 25 or 30 years. The loaded example uses 25.
  4. Read the answers, which update as you type: the monthly payment, the loan amount, the down payment as a percentage (20% here), the total interest, the total of all payments and the total cost (down + payments).

The formula the calculator runs is payment = L × r ÷ (1 − (1 + r)−n), where L is the loan, r is the monthly rate (the yearly rate ÷ 100 ÷ 12, so 5 ÷ 100 ÷ 12 = 0.004167) and n is the number of payments (years × 12, so 300). Run it by hand: (1.004167)−300 = 0.287250, 1 − 0.287250 = 0.712750, and 400,000 × 0.004167 ÷ 0.712750 = $2,338.36 — the calculator's own figure, to the cent. Multiply back and the full picture appears: 300 payments total $701,508.05, so the interest is $701,508.05 − $400,000 = $301,508.05. Add the down payment and the calculator's fifth output prices the home in full: a total cost of $801,508.05 for a $500,000 house. The payment is only the middle of that story.

The same loan, four terms: what the term alone costs

Comparisons usually change the rate when they change the term, so you never see what the term itself does. Hold everything still — the same $400,000 loan at the same 5% — and change only the amortization dropdown:

  • 15 years: $3,163.17 a month, interest $169,371.41.
  • 20 years: $2,639.82 a month, interest $233,557.51.
  • 25 years: $2,338.36 a month, interest $301,508.05.
  • 30 years: $2,147.29 a month, interest $373,023.14.

Stretching from 25 to 30 years saves just $191.07 a month and adds $71,515.09 of interest. Shortening from 25 to 15 costs $824.81 more a month and saves $132,136.64. The choice that actually matters is rarely the payment you can afford — it is the interest column you are willing to sign for.

One point of rate: $2,111.35, $2,338.36, $2,577.21

Now hold the term at 25 years and move only the rate on the same $400,000 loan:

  • 4%: $2,111.35 a month, interest $233,404.21.
  • 5%: $2,338.36 a month, interest $301,508.05.
  • 6%: $2,577.21 a month, interest $373,161.68.

Each point of rate is worth roughly $227–$239 a month and $68,000–$72,000 of interest over the 25 years — which is why a quarter-point negotiated off the rate beats most prepayment plans, and why the rate deserves the same scrutiny as the price.

The down payment, $10,000 at a time — and the 0% baseline

Every dollar down is a dollar you never pay interest on, and the calculator's own FAQ prices the habit exactly: at 5% over 25 years, each extra $10,000 of down payment cuts the payment by $58.46 and avoids $7,537.70 of interest. Building that down payment month by month is what the savings calculator is for. And if you want to see what interest itself costs, set the rate to 0: the calculator's code simply divides the loan by the months — $400,000 ÷ 300 = $1,333.33 a month of pure principal. Against the 5% payment, $1,005.03 of every $2,338.36 is the price of interest alone.

Your first payment: $1,666.67 to interest, $671.69 to principal

Interest is charged on the balance still owed, and the balance starts at its biggest, so the first payment splits unevenly: $1,666.67 interest (71.3%) and just $671.69 principal. Each payment shrinks the balance a little, so the interest slice shrinks and the principal slice grows — the two first cross at payment 135, just past year 11, when principal finally takes more than half. After five years of payments ($140,301.60 handed over), the balance is still $354,320.76: only $45,679.24 of principal repaid, the rest interest. That is not a trick — it is the formula working as designed — but it is why early extra payments, which cut the balance the interest is charged on, punch above their size. For a loan without a house attached, the loan calculator runs the identical math.

What the $2,338.36 leaves out

The payment above is principal and interest only — the amount that repays the loan itself. Your real monthly housing cost sits on top of it: property tax (the calculator's FAQ puts it at often around 1% of the home's value per year in Canada), home insurance, heating and other utilities, and condo fees if they apply. One Canadian rule belongs in the down-payment maths too: put down less than 20% and CMHC mortgage insurance is added to the loan, so you pay interest on the insurance as well — one more reason the 20% mark is the common savings target. Budget the full stack, not just the payment, before you decide what you can carry; the growth side of that budget is worked through in how to calculate compound interest.