How to Calculate a Mortgage Payment (With Example)

Hand holding house keys on a green key ring
Photo: β€œHouse Keys” by rawpixel.com Β· CC0 1.0 Β· via Openverse (rawpixel)

A mortgage is usually the biggest loan most people take out, so it is worth understanding exactly how the monthly payment is built. The good news is that the math is a single formula, and once you know it, you can judge any offer.

The mortgage payment formula

For a fixed-rate loan, the monthly principal-and-interest payment is:

M = P Γ— r Γ· (1 βˆ’ (1 + r)βˆ’n)

A worked example

Suppose you buy a home for 400,000 with 20% down. You borrow 320,000 at 6% for 30 years. The monthly rate is 0.06 Γ· 12 = 0.005 and n is 360. Plugging in gives a payment of about 1,918.56 per month. Over 30 years you would repay roughly 690,700, which means about 370,700 is interest, more than the amount borrowed. You can check any figures like this with the mortgage calculator.

What else is in your monthly bill?

Lenders often add property tax and homeowners insurance to your payment through an escrow account. If your down payment is under 20%, you may also pay mortgage insurance. Condo or HOA fees are separate. Always compare offers using the full monthly cost, not only principal and interest.

How the main levers change the cost

Why early payments are mostly interest

Interest is charged on the outstanding balance. At the start the balance is highest, so most of each payment goes to interest. Over time the balance falls, the interest part shrinks, and more of each payment goes to principal. This process is called amortization, and the yearly table in our calculator shows it clearly.

Tips before you commit

For other loans such as cars and personal loans, the same formula applies; use the loan EMI calculator.