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 →