Mortgages and home buying

How a Mortgage Payment Is Calculated (With Charts and Examples)

The formula behind your monthly payment, how each dollar is split between principal and interest, and what changes the total cost.

By Osama · Published October 13, 2026 · 9 min read

$ Monthly P&I$1,896

A mortgage payment looks like one number, but it is built from a short formula and a few extra costs. Once you see how the pieces fit, it is much easier to compare loans, understand why paying extra helps so much, and decide how much house you can really afford. This guide walks through the maths with one real example and shows the results in charts.

The short version

  • The monthly principal and interest payment depends on only three things: the loan amount, the interest rate and the loan term.
  • In the early years most of each payment is interest. On a 30-year loan it takes about 19.4 years before more than half of each payment goes to principal.
  • Taxes, insurance and sometimes mortgage insurance are added on top of the payment, so the real bill is higher than the loan payment alone.
  • A shorter term or extra payments can cut the total interest by tens of thousands of dollars.

The mortgage payment formula

For a standard fixed-rate loan, the monthly payment for principal and interest comes from this formula:

M = P × r(1 + r)n ÷ [(1 + r)n − 1] M = monthly payment · P = loan amount · r = monthly interest rate · n = number of monthly payments

The monthly rate r is the yearly rate divided by 12, and n is the number of years times 12. The formula spreads the loan over n equal payments so that the balance reaches exactly zero at the end, with each month's interest charged on whatever is still owed.

A worked example

Say you buy a $375,000 home with a 20% down payment of $75,000, so you borrow $300,000 on a 30-year fixed loan at 6.5%.

  1. Monthly rate: 6.5% ÷ 12 = 0.5417% a month, or r = 0.0054167.
  2. Number of payments: 30 × 12 = n = 360.
  3. Growth factor: (1 + r)360 = 6.9918.
  4. Payment: $300,000 × 0.0054167 × 6.9918 ÷ (6.9918 − 1) = $1,896.20 a month.

Over 360 payments you would pay back $682,633 in total. That is $382,633 of interest on top of the $300,000 you borrowed, which means the interest on this loan is larger than the loan itself.

Why early payments are mostly interest

Interest is charged each month on the balance that remains. At the start the balance is at its highest, so the interest is too. In the very first month the interest is $300,000 × 0.0054167 = $1,625.00, which leaves only $271.20 of your $1,896.20 payment to reduce the loan. As the balance falls, the interest part shrinks and the principal part grows, even though the payment never changes.

Where each year of mortgage payments goesStacked columns for 30 years. In year 1 about $3,353 goes to principal and $19,401 to interest. By year 30 about $21,973 goes to principal and $781 to interest.$0$5k$10k$15k$20k$25k151015202530Year of the loanPrincipalInterest
Each column is one year of payments. The blue part is principal and the amber part is interest. The total height is the same every year, but the blue share grows from about 15% in year 1 to almost all of the payment in year 30.
View the numbers behind the first chart
YearPrincipal paidInterest paidBalance at year end
1$3,353$19,401$296,647
5$4,346$18,409$280,833
10$6,009$16,745$254,328
15$8,310$14,445$217,677
20$11,491$11,263$166,996
25$15,890$6,864$96,912
30$21,973$781$0

The turning point comes in month 233, about year 19.4, when the principal part of a payment finally passes the interest part. This is why a loan feels slow to pay down at first.

Remaining loan balance over 30 yearsThe balance falls from $300,000 to zero. After 10 years it is still about $254,328, and after 20 years about $166,996.$0$60k$120k$180k$240k$300k051015202530Years since the loan startedYear 10: $254,328 leftYear 20: $166,996 left
The balance falls slowly at first and then faster. After 10 years, 15.2% of the loan has been paid off and $254,328 is still owed.

What else is in your monthly payment

The formula gives only principal and interest, often written P&I. Most lenders also collect other costs each month and pay them for you from an escrow account. Together with principal and interest they are often called PITI:

  • Property taxes, set by your local government. They are charged on the value of the home, not on the loan.
  • Homeowners insurance, which the lender requires to protect the building.
  • Private mortgage insurance (PMI), which is usually required on a conventional loan when the down payment is under 20%. In this example the down payment is 20%, so there is none.
  • HOA dues, if the home is in a community with a homeowners association. These are usually paid separately.
What a typical monthly mortgage bill containsPrincipal and interest $1,896.20, property tax $343.75 and homeowners insurance $125.00, for a total of $2,364.95 a month.Total: $2,364.95 per month80%15%Principal and interest$1,896.20Property tax (1.1% of the price a year)$343.75Homeowners insurance ($1,500 a year)$125.00
An illustrative monthly bill for the $375,000 home, using a 1.1% yearly property tax rate and $1,500 a year for insurance. Your own tax and insurance costs will differ, sometimes by a lot.

In this example the tax and insurance add about $469 a month, so the real bill is $2,365 and not $1,896. When you work out what you can afford, use the full figure.

How the loan term changes the cost

A shorter loan usually has a lower interest rate and, more importantly, far fewer months in which interest can build up. Compare our 30-year loan with a 15-year loan on the same $300,000. The rates here are examples, not current market rates.

30-year loan against a 15-year loanThe 15-year loan has a higher payment of $2,491.23 against $1,896.20, but total interest of $148,421 against $382,633.Monthly payment (principal and interest)30 years at 6.5%$1,896.2015 years at 5.75%$2,491.23Total interest paid over the life of the loan30 years at 6.5%$382,63315 years at 5.75%$148,421
The 15-year loan costs $595 more each month but saves about $234,212 in interest over its life.

The better choice depends on your budget. A higher payment is only a good idea if you can afford it comfortably, since a missed payment costs far more than the interest you save.

The power of extra payments

Any extra money you send goes straight to principal, which lowers the balance on which future interest is charged. Adding just $200 a month to the 30-year loan above would pay it off in about 23.1 years instead of 30, and cut the total interest from $382,633 to about $279,185. That saves roughly $103,449 and removes 6.9 years of payments. Check with your lender that extra payments are applied to principal and that there is no prepayment penalty.

Common mistakes to avoid

  • Judging by the monthly payment alone. A longer term gives a lower payment but a much higher total cost.
  • Forgetting taxes, insurance and PMI. They can add several hundred dollars to the monthly bill.
  • Ignoring closing costs. Fees at closing are paid in addition to the down payment, commonly a few percent of the loan.
  • Comparing the rate instead of the APR. The APR includes some fees and gives a fairer comparison between lenders.
  • Assuming an adjustable rate will stay low. The payment on an adjustable-rate loan can rise when the rate resets.

Common questions

Why is my first mortgage payment mostly interest?

Interest is charged on the full balance, which is at its highest at the start. As you pay principal down, the balance and the monthly interest fall, so more of each payment goes to principal.

Does the monthly payment change on a fixed-rate loan?

The principal and interest part stays the same for the whole term. Your total bill can still change if property taxes, insurance or other escrow items change.

What is PMI and when does it end?

Private mortgage insurance protects the lender and is usually required on a conventional loan when you put down less than 20%. On many loans you can ask to remove it once your equity reaches 20%, and it ends automatically at a set point, so check your loan terms.

Is a 15-year or a 30-year mortgage better?

A 15-year loan costs much less in interest but has a higher monthly payment. A 30-year loan has a lower payment and more flexibility. Choose the shorter term only if the payment fits your budget with room to spare.

How much does an extra payment save?

It depends on the loan, but early extra payments save the most, because they cut the balance for the longest time. In our example, an extra $200 a month saves roughly $103,000 in interest and about 7 years.

Sources and further reading

This guide is for general education and is not financial advice. The rates, taxes and insurance costs in the examples are illustrations, not quotes. Talk to a licensed lender or adviser about your own situation.

Keep reading

Try the calculators