How to Calculate Mortgage Payment: The Complete Guide

Updated June 2026 · 7 min read

📑 Table of Contents

    Whether you are buying your first home or refinancing, understanding how mortgage payments work is essential. A mortgage payment is not random — it follows a precise mathematical formula. Once you know the formula, you can evaluate any loan offer instantly.

    The Mortgage Payment Formula

    M = P [ r(1 + r)^n ] / [ (1 + r)^n - 1 ]

    M = monthly payment · P = loan principal · r = monthly interest rate (annual rate / 12) · n = total number of payments (years × 12)

    A Real Example: $320,000 Loan at 6.5% for 30 Years

    Let us walk through the math:

    M = 320,000 × [0.0054167 × (1.0054167)^360] / [(1.0054167)^360 - 1] = $2,022.62

    Your monthly principal and interest payment is about $2,023. Over 30 years, you will pay approximately $408,000 in total interest — more than the original loan amount.

    What Makes Up a Mortgage Payment?

    Your actual monthly housing payment includes more than just principal and interest. Here is the full breakdown:

    How Loan Term Affects Your Payment

    The same $320,000 loan at 6.5% looks very different at different terms:

    TermMonthly PaymentTotal Interest
    30 years$2,023$408,000
    20 years$2,386$252,000
    15 years$2,788$181,000
    10 years$3,633$116,000

    A 15-year term saves $227,000 in interest compared to a 30-year, but costs $765 more each month. The trade-off is cash flow vs. total cost.

    How Much Mortgage Can You Afford?

    The 28/36 rule is a widely-used guideline:

    Example: earning $8,000/month gross. 28% = $2,240 max housing payment. 36% = $2,880 max total debt payments.

    📊 Try the Mortgage Calculator →

    Frequently Asked Questions

    How do I calculate my monthly mortgage payment?
    Use the formula M = P[r(1+r)^n]/[(1+r)^n-1] where M is monthly payment, P is loan amount, r is monthly interest rate, and n is total number of payments. Or use Numbrly's free mortgage calculator to get instant results.
    What factors affect my mortgage payment?
    Five key factors: loan amount, interest rate, loan term, property taxes, and homeowners insurance. Your down payment also matters — 20% or more avoids PMI.
    How much mortgage can I afford?
    The 28/36 rule is a good starting point: spend no more than 28% of gross monthly income on housing costs, and no more than 36% on total debt payments including the mortgage.