Store › Blog › Guides

How do you calculate a mortgage payment? Formula and example

By IA Business Lab · Updated 2026-11-21

The monthly payment on an equal-installment loan is M = P × r × (1 + r)^n / ((1 + r)^n − 1), where P is the principal, r the monthly rate and n the number of payments. With a principal of 100,000, a 6% annual rate and 30 years, the payment is about 599.55. Always check with the lender, who may add insurance and fees.

Where to start

Understanding the formula lets you compare offers and see how much total interest you pay.

Step by step

  1. Define the principal you will borrow (P).
  2. Convert the annual rate to monthly: divide by 12 (6% annual = 0.5% monthly, r = 0.005).
  3. Calculate n: years × 12 (30 years = 360 payments).
  4. Apply the formula or use a payment calculator.
  5. Multiply the payment by n for total paid and subtract principal for total interest.
  6. Compare offers with different rates and terms.
  7. Add extra costs: insurance, fees and taxes.

Hypothetical example

Example with round numbers: P = 100,000, r = 0.005, n = 360. The payment is about 599.55; total paid is around 215,838 and total interest about 115,838. These are illustrative numbers: your lender may apply different conditions.

Common mistakes

  • Looking only at the payment and not the total cost.
  • Ignoring insurance and fees.
  • Not considering rate changes if variable.
  • Borrowing more than your budget can bear.

Frequently asked questions

What if the rate is variable?

The payment can change with the rate; simulate scenarios.

Is a shorter term better?

It lowers total interest but raises the payment; it depends on your budget.

Is this financial advice?

No: it is educational content; consult a professional.

Sources and further reading

  • Official documentation of the tools you use.

Related books and apps

Go deeper with the book

Mortgage Calculator — English and Spanish interface (switch with one tap) · Digital download app · works offline · sold on Etsy · $9.99 USD. According to its official description: Find the year buying starts to beat renting, with a clear chart of both paths. The examples in this guide are illustrative and are not necessarily from the book.

Get the book on Etsy · $9.99 USDFull book page →

Educational content. Not professional advice. See the full store →