How Your Monthly Mortgage Payment Is Calculated
By WorkCalc Team · August 10, 2026
If you’ve ever stared at a mortgage quote and wondered how the lender landed on that exact monthly number, the underlying math is fixed and repeatable. Four inputs, home price, down payment, interest rate, and loan term, feed a single formula that spits out the same level payment every month for the life of the loan. Change any one of those four inputs and the payment moves in a predictable direction, which is exactly why it’s worth understanding the formula rather than treating it as a black box.
Where the loan amount comes from
Before any interest math happens, you need the actual loan amount, which is simply the home price minus your down payment. A $400,000 home with $80,000 down means you’re borrowing $320,000. That number, not the home price, is what the amortization formula actually runs on, so a bigger down payment shrinks the loan amount directly and everything downstream shrinks with it.
The amortization formula
Mortgages use fixed-rate amortization: the payment is calculated so that a level dollar amount, paid every month for the full term, exactly pays off the loan (principal and interest) by the last payment. Early payments are mostly interest, later payments are mostly principal, but the total monthly payment itself never changes.
Loan Amount = Home Price - Down Payment
Monthly Rate = Annual Interest Rate / 100 / 12
Number of Payments (n) = Loan Term in Years x 12
Monthly Payment = Loan Amount x Monthly Rate / (1 - (1 + Monthly Rate)^-n)
The monthly rate is just the annual rate converted to a decimal and divided by 12. The exponent term, (1 + Monthly Rate) raised to the negative number of payments, is what accounts for compounding over the full term: stretch the term longer and that factor shrinks the payment, but it also means more months of interest accruing, which raises the total interest paid overall.
Worked example: 30-year loan
Take a $400,000 home with $80,000 down, a 6.5% annual rate, and a 30-year term:
- Loan amount: $400,000 - $80,000 = $320,000
- Monthly rate: 6.5% / 12 = 0.5417%
- Number of payments: 30 x 12 = 360
- Monthly payment (principal and interest): $2,022.62
- Total paid over 360 months: $2,022.62 x 360 = $728,142.36
- Total interest paid: $408,142.36
Notice that the total interest ($408,142.36) is actually higher than the loan amount itself ($320,000). That’s the cost of spreading a loan out over 30 years at 6.5%, and it’s the number that a shorter term or a lower rate would most directly attack.
Worked example: 15-year loan
Now take a smaller loan with a shorter term: a $250,000 home with $50,000 down, a 7% annual rate, and a 15-year term:
- Loan amount: $250,000 - $50,000 = $200,000
- Monthly rate: 7% / 12 = 0.5833%
- Number of payments: 15 x 12 = 180
- Monthly payment (principal and interest): $1,797.66
- Total paid over 180 months: $1,797.66 x 180 = $323,578.80
- Total interest paid: $123,578.18
Even at a higher rate (7% versus 6.5%) and a smaller loan, the 15-year term keeps total interest well under half of what the 30-year example above paid, purely because there are fewer months for interest to compound. The tradeoff is a monthly payment that, relative to the loan size, is noticeably higher: you’re paying down principal faster instead of stretching it out.
What this number doesn’t include
Everything above calculates principal and interest only, often written as “P&I.” Your actual monthly mortgage bill is usually higher than that, because lenders typically bundle in a few other costs:
- Property tax, collected monthly and held in escrow until the annual bill is due.
- Homeowners insurance, also usually escrowed.
- Private mortgage insurance (PMI), required on most loans when your down payment is under 20%, and cancelable once you build enough equity.
- HOA dues, if the property is part of a homeowners association; these are paid separately from the mortgage bill itself in most cases, but still belong in your monthly budget.
None of those four are part of the amortization formula, so when you compare a calculator’s output to a lender’s estimate, check whether the lender’s number is P&I only or the fully loaded payment. A good rule of thumb: treat the amortization result as the floor of your monthly housing cost, not the ceiling, and add your specific tax rate, insurance quote, and any HOA dues on top before deciding what you can actually afford.
FAQ
Does a bigger down payment always lower my payment? Yes. A larger down payment reduces the loan amount directly, which lowers both the monthly principal-and-interest payment and the total interest paid over the loan, and it can eliminate PMI entirely if it brings you to 20% down or more.
Why does a 15-year loan have a much lower total interest than a 30-year loan, even at a similar rate? Because total interest depends heavily on how long the loan compounds, not just the rate. Fewer months means less time for interest to accrue, so even a slightly higher rate on a 15-year term can still cost far less in total interest than a lower rate stretched over 30 years.
Is the interest rate I enter the same as the APR on my loan estimate? Not necessarily. The interest rate used in this formula is the note rate that determines your monthly payment. The APR (annual percentage rate) folds in certain lender fees and closing costs, which is why APR is usually slightly higher than the note rate on the same loan.
Use the Mortgage Payment Calculator to run your own numbers.