How Does a Mortgage Calculator Work?

A mortgage calculator uses the amount borrowed, interest rate and repayment period to estimate your regular payment. For a standard repayment mortgage, it works out a payment that covers the interest due and gradually reduces the loan balance to zero by the end of the schedule.

The calculation is more than dividing the loan by the number of months. Interest is charged on the outstanding balance, which changes as you repay it. Understanding that process helps you compare results and spot costs that a basic estimate might leave out.

The three inputs behind the payment

  • Loan amount: the money you borrow, also called the principal or capital. For a purchase, this is usually the price minus your deposit or down payment, plus any costs financed into the loan.
  • Interest rate: the borrowing rate used to calculate interest. Use the rate requested by the calculator; an APR or APRC that incorporates certain costs is not generally interchangeable with the contractual interest rate.
  • Repayment period: the time over which the balance is scheduled to be cleared, sometimes called the amortisation period. For monthly payments, 25 years means 300 payments.

For example, a home costing 250,000 with a deposit of 50,000 leaves a loan of 200,000 before financed fees. Keep every money input in the same currency. The arithmetic below uses currency units so the example can be read internationally without implying a local mortgage offer.

Try these inputs in our mortgage calculator, choosing a country-specific version where available for local assumptions and terminology.

The formula for a level monthly repayment

For a loan with a constant monthly interest rate and equal end-of-month payments, the standard formula is:

M = P × r / (1 − (1 + r)−n)

  • M is the monthly principal-and-interest payment.
  • P is the opening loan balance.
  • r is the monthly interest rate expressed as a decimal.
  • n is the total number of monthly payments.

In a simple model using an annual nominal rate divided by 12, a 4.5% annual rate becomes 0.045 / 12 = 0.00375 per month. This conversion is an assumption, not a rule for every mortgage market or contract. A calculator using a different compounding convention must convert the quoted rate accordingly.

If the rate is zero, the formula above would divide by zero. The calculation instead becomes M = P / n: simply divide the balance by the payment count.

A worked example: borrowing 200,000 over 25 years

Suppose the opening balance is 200,000, the annual rate is 4.5% and the repayment period is 25 years. Using the monthly-rate assumption above gives a payment of approximately 1,111.66 per month.

Illustrative repayment calculation in currency units
ItemAmount
Opening loan balance200,000.00
Monthly payment1,111.66
First month's interest750.00
First month's principal repayment361.66
Balance after the first payment199,638.34

The first month's interest is 200,000 × 0.00375 = 750. Subtracting that from the payment leaves approximately 361.66 to reduce the debt. Next month, interest is calculated on the smaller balance.

This example assumes monthly payments, no fees or overpayments and a rate that stays unchanged. Amounts are rounded for display. Actual lender schedules may use daily interest and different rounding rules.

Why the interest and principal portions change

A repayment schedule, or amortisation schedule, repeats the same steps for each payment: calculate interest, subtract it from the payment, then reduce the balance by the principal portion.

With the rate and scheduled payment unchanged, a smaller balance attracts less interest. More of each later payment can therefore go towards clearing the debt. The payment can stay level even while its two components change.

This also explains why dividing the original loan by the number of months understates the payment. In the example, 200,000 / 300 is about 666.67, but that amount alone does not account for interest.

How total interest is estimated

Under a constant-rate, level-payment model, total repayments are the unrounded monthly payment multiplied by the payment count. Subtract the original principal to obtain total interest.

For the example, estimated total repayments are 333,499.49, including 133,499.49 in interest. Multiplying the displayed payment of 1,111.66 by 300 produces a slightly different figure because that monthly amount has already been rounded.

These are scenario totals, not a forecast. If a rate is fixed only for an introductory period, a calculator that applies it for all 25 years is showing what would happen if it never changed. Future rates, fees and extra payments can alter the actual cost.

What happens when you change an input?

  • Borrow less: with the same rate and period, the principal-and-interest payment falls in proportion to the balance.
  • Increase the rate: more interest is due, so the required repayment rises if the payoff date stays the same.
  • Extend the repayment period: the monthly payment falls, but total interest increases under the same positive-rate assumptions.

For example, extending the 200,000 loan at 4.5% from 25 to 30 years reduces the payment to approximately 1,013.37. Total interest rises to about 164,813.42. That is why a smaller monthly figure does not necessarily mean cheaper borrowing.

Change one input at a time when comparing options. Once you understand its effect, combine realistic assumptions to explore your overall budget.

Does the result include taxes, insurance and fees?

A basic payment formula covers principal and interest only. A more detailed calculator may add property taxes, insurance, mortgage insurance or recurring property charges. Some costs are collected with the mortgage payment; others are paid separately, depending on the country and arrangement.

The US Consumer Financial Protection Bureau explains the distinction between principal-and-interest payments and the total monthly payment. Its tax and insurance examples describe the US market rather than a universal collection system.

Check the labels beside the result. Adding annual insurance divided by 12 helps estimate a monthly budget, but does not mean the insurer bills monthly. Purchase taxes, legal costs, repairs and moving expenses may also sit outside the calculator entirely.

A fee paid upfront affects your cash costs. A fee added to the loan increases the borrowed balance and can attract interest. Avoid counting the same fee both as an upfront payment and as financed borrowing.

Interest-only and overpayment calculations work differently

For a simple interest-only estimate, the monthly payment is P × r. The example loan would cost 750 per month in interest at the assumed rate, but the 200,000 principal would remain outstanding without separate capital repayments. MoneyHelper's guide to repaying an interest-only mortgage explains why a plan to clear that balance matters.

An overpayment calculator updates the schedule when extra money reduces the principal. If the regular payment is maintained, this can reduce future interest and bring the payoff date forward. If the lender reduces the regular payment instead, the outcome differs. Limits, early repayment charges and payment timing also matter, and may not be modelled.

Why two calculators may give different answers

Before assuming one is wrong, check that both use the same balance, rate, repayment period, payment frequency and included expenses. Also compare the interest convention: daily accrual, monthly calculations and different quoted compounding periods can produce different results.

Terminology matters too. In some markets, the mortgage term describes the current contract period, while amortisation describes the longer repayment schedule. Entering a five-year deal length where a calculator expects 25 years to repay the balance would produce a very different payment.

First-payment dates, financed fees, introductory rates and final-payment rounding can create further differences. The lender's illustration and mortgage agreement explain the actual terms; an online estimate helps you explore the figures beforehand.

A repayment estimate is not an affordability decision

The formula answers what a specified loan would cost under specified assumptions. It does not establish whether that loan fits your income, other debts, household spending or the lender's criteria.

Use a repayment estimate alongside a realistic budget and, where useful, our mortgage affordability calculator. Leave room for costs outside the mortgage and test what would happen if payments rose or income fell. Calculator results do not constitute a loan offer.

This article explains a simplified mortgage calculation for educational purposes. Examples are not current offers or personalised financial advice. Mortgage conventions and product conditions vary by country and lender.

Questions about how mortgage calculators work

What information does a mortgage calculator need?

A basic repayment calculator needs the loan amount, interest rate and full repayment period. If you enter a property price and deposit instead, it can calculate the amount borrowed. More detailed tools may also ask about payment frequency, taxes, insurance, fees and overpayments. Use the inputs and interest convention specified by the calculator.

How does a mortgage calculator work out the monthly payment?

For a standard repayment mortgage, it calculates a payment that covers interest and gradually clears the principal over the selected period. The formula uses the loan balance, interest rate per payment period and number of payments. A simple monthly model divides the annual nominal rate by 12, but other mortgage conventions require a different rate conversion.

Why does the interest portion of my repayment decrease over time?

As scheduled repayments reduce the outstanding balance, less interest is due under an unchanged rate. With a level monthly payment, more money can then go towards repaying principal. This changing split between interest and principal is shown in an amortisation schedule.

Does a mortgage calculator include all the costs of owning a home?

Not necessarily. The basic repayment formula covers principal and interest only. Some calculators add taxes, insurance or recurring property charges, while purchase costs, maintenance and other expenses may be excluded. Check which costs are included before treating the result as your total housing budget.

Why might a mortgage calculator differ from a lender quote?

Differences can come from interest conventions, payment dates, rounding, financed fees or expenses included in the total. A calculator may also assume one rate throughout the repayment period even when the actual deal changes earlier. Use the lender illustration and mortgage agreement to confirm the terms; a calculator estimate is not a loan offer.