The mortgage payment formula is the arithmetic that turns a loan amount, an interest rate, and a term into a fixed monthly principal-and-interest payment. The core piece is P × r ÷ (1 − (1 + r)^−n), where P is the loan amount, r is the monthly rate, and n is the number of monthly payments.
That number covers only the loan. The full payment also includes property tax, homeowners insurance, PMI, and HOA dues.
What is the mortgage payment formula?
The formula for principal and interest is P × r ÷ (1 − (1 + r)^−n). P is the amount borrowed after the down payment, r is the annual rate divided by 12, and n is the number of months in the term. The result is the fixed monthly amount that repays the loan with interest by the end of the term.
The full mortgage payment formula is P&I + tax/12 + insurance/12 + PMI + HOA. Lenders call the tax and insurance part escrow, and the total PITI. The P&I piece is set by the loan contract; the other pieces can change from year to year.
What does each variable in the formula mean?
P is the loan amount, which is the home price minus the down payment. r is the monthly interest rate, not the annual rate. n is the total number of monthly payments, so a 30-year loan has n = 360.
| Variable | Meaning | Example from the $320,000 loan |
|---|---|---|
| P | Loan amount after down payment | $320,000 |
| r | Monthly interest rate (annual ÷ 12) | 6.5% ÷ 12 = 0.005417 |
| n | Number of monthly payments | 30 × 12 = 360 |
Use the decimal form of the monthly rate in the formula. A 6.5% annual rate is 0.5417% a month, which is 0.005417. Rounding that to 0.0054 changes the payment by a small amount, but the error grows over hundreds of payments.
How do you calculate principal and interest step by step?
Start with the loan amount, convert the rate to a monthly decimal, count the payments, and plug the three numbers into the formula. The order matters because the exponent uses n and the denominator uses r.
Step 1: Find the loan amount
Subtract the down payment from the purchase price. On a $400,000 home with 20% down, the down payment is $80,000 and the loan is $320,000. The loan amount is P in the formula.
Step 2: Convert the annual rate to a monthly rate
Divide the annual rate by 12. A 6.5% rate becomes 6.5 ÷ 12 = 0.5417% a month, or 0.005417 as a decimal. That decimal is r.
Step 3: Find the number of payments
Multiply the term in years by 12. A 30-year term has 30 × 12 = 360 monthly payments, so n = 360.
Step 4: Plug the numbers into the formula
The formula is P × r ÷ (1 − (1 + r)^−n). With P = $320,000, r = 0.005417, and n = 360, the arithmetic gives $2,022.62 a month. The exponent (1 + r)^−n is the part that accounts for compounding over the full term.
Step 5: Add tax, insurance, PMI, and HOA
Annual property tax of $4,800 is $400 a month, and annual homeowners insurance of $1,800 is $150 a month. With no PMI and no HOA, the full payment is $2,022.62 + $400 + $150 = $2,572.62. That total is what leaves your bank account; the payment breakdown shows each part.
How do taxes and insurance change the formula?
Taxes and insurance sit outside the P&I formula. They are annual bills divided by 12 and usually collected monthly in an escrow account, which is explained in what escrow is. The servicer pays the tax bill and insurance premium when they come due, and most lenders require escrow on loans with less than 20% down.
In the $400,000 example, the escrow amount is $550 a month: $4,800 ÷ 12 = $400 for tax, and $1,800 ÷ 12 = $150 for insurance. The servicer may also hold a cushion of up to two months of escrow payments, which is $1,100 here. That cushion is not an extra fee; it is a reserve for timing gaps between collection and payment.
What changes when the down payment is below 20%?
PMI is added to the monthly total when the down payment is under 20% on a conventional loan. It is charged as a percentage of the loan each year, then divided by 12. The P&I formula itself does not change, and PMI is usually removed once the loan-to-value falls to 80% or below.
With 10% down on the same $400,000 home, the loan rises to $360,000 and P&I rises to $2,275.44. PMI at 0.5% a year on $360,000 is $1,800 a year, or $150 a month. The total becomes $2,275.44 + $400 + $150 + $150 = $2,975.44, which is $402.82 a month more than the 20%-down case.
The larger down payment lowers the payment twice: it shrinks the loan, and at 20% it removes PMI. That is why the jump from 10% to 20% down is larger than the loan-amount change alone.
Why is most of the early payment interest?
Interest is charged on the remaining balance, so the first payments on a large balance are mostly interest. On the $320,000 loan at 6.5%, first-month interest is $1,733.33. The P&I payment is $2,022.62, so only $289.28 goes to principal.
That split changes slowly. As the balance falls, the interest charge falls with it, and more of each payment goes to principal, which is how amortization works. Over the full 30 years, the P&I payments total $728,142.36, which means $408,142.36 of interest on a $320,000 loan.
How do extra payments fit into the formula?
Extra payments do not change the required P&I formula payment. They reduce the principal balance faster, which lowers the interest charged in later months. The required payment stays the same unless the lender recasts the loan, and the extra payment guide shows the month-by-month effect.
On the $320,000 loan, an extra $200 a month pays the loan off in 281 months instead of 360. The interest saved is $105,430.39, and the term is cut by 79 months. The extra payments total $56,200 over that time, so each $1 added to the monthly payment saves about $527 of interest over the life of the loan.
Check that the lender applies extra money to principal, not to future payments. A prepayment penalty can also wipe out the benefit, though most mortgages do not have one.
What are common mistakes when using the mortgage payment formula?
The biggest mistake is budgeting on principal and interest alone. Tax, insurance, PMI, and HOA can add hundreds of dollars a month. In the example, escrow alone adds $550 to a $2,022.62 P&I payment.
- Using the annual rate instead of the monthly rate. A 6.5% annual rate is 0.005417 a month, not 6.5 in the formula.
- Assuming the full payment never changes. The P&I part is fixed on a fixed-rate loan, but escrow moves. If tax rises to $5,400 and insurance to $2,040, escrow becomes $620. A $70 monthly shortage can push the escrow portion to $690 for a year.
- Rounding the monthly rate too early. Use at least six decimal places to keep the payment accurate.
- Forgetting to confirm that extra payments go to principal. Some lenders apply extra money to future scheduled payments instead.
Does the formula work for different loan terms?
Yes: change n to the number of months in the new term. A 15-year loan uses n = 180, and a 30-year loan uses n = 360, but the same P, r, and arithmetic apply.
A shorter term raises the monthly P&I payment because the same loan is repaid in fewer months. It lowers total interest because the balance is outstanding for less time. The trade-off is a higher required payment each month, which can strain a budget that was built around a 30-year figure.