Mortgage Formula — Calculator and Worked Example

The Mortgage formula is shown below alongside our interactive calculator. Enter your own values and we apply the formula step by step so you can see exactly how the result is derived.

Loan Details

$
$
20%
0%100%
%

Additional Monthly Costs

$
$

Results

Total Monthly Payment
$1,566.04

Includes principal, interest, taxes, insurance, and PMI

Principal & Interest
$1,216.04
Property Tax (Monthly)
$250.00
Home Insurance (Monthly)
$100.00
Loan Amount
$240,000.00
Total Interest Paid
$197,776.11
Total Cost (30 years)
$623,776.11

Includes loan, interest, taxes, and insurance over loan term

Loan Amortization Schedule

Monthly Payment Breakdown

Amount

Understanding Mortgages: A Complete Guide to Home Loan Payments

A mortgage is one of the most significant financial commitments most people will ever make. It represents a long-term loan secured by real estate, typically used to purchase a home. The mortgage payment consists of several components: principal (the amount borrowed), interest (the cost of borrowing), property taxes, homeowners insurance, and sometimes private mortgage insurance (PMI). Understanding how these elements combine to form your monthly payment is crucial for budgeting, comparing loan offers, and making informed homeownership decisions. Whether you're a first-time homebuyer or considering refinancing, mastering mortgage calculations empowers you to evaluate different loan terms, understand the true cost of homeownership, and plan for your financial future.

Key properties

Principal: The Foundation of Your Loan

The principal is the original amount you borrow to purchase your home. It's calculated by subtracting your down payment from the home's purchase price. For example, if you buy a $300,000 home with a $60,000 down payment, your principal is $240,000. This is the amount that will be gradually paid down over the life of the loan through your monthly payments. Early in the loan term, most of your payment goes toward interest, but as time passes, more of each payment reduces the principal balance.

Interest Rate and APR: Understanding the Cost of Borrowing

The interest rate is the annual percentage charged on your loan principal. The Annual Percentage Rate (APR) includes the interest rate plus additional fees and costs, giving you a more complete picture of the loan's true cost. A lower interest rate means lower monthly payments and less total interest paid over the life of the loan. Even a small difference in rates—say, 0.25%—can save or cost you thousands of dollars over 30 years. The interest portion of your payment is calculated monthly based on your remaining principal balance.

Loan Term: The Timeline for Repayment

The loan term is the length of time you have to repay the mortgage. Common terms are 15, 20, or 30 years. A shorter term means higher monthly payments but significantly less total interest paid. A 30-year mortgage offers lower monthly payments, making homeownership more accessible, but you'll pay substantially more interest over time. Choosing the right term depends on your financial situation, income stability, and long-term goals. Many borrowers opt for 30-year loans for flexibility, then make extra payments when possible to reduce the term.

Escrow: Managing Taxes and Insurance

Escrow is an account managed by your lender that holds funds for property taxes and homeowners insurance. Instead of paying these large annual bills yourself, you make monthly escrow payments as part of your mortgage payment. The lender then pays these bills on your behalf when they come due. This ensures these critical expenses are always covered and prevents surprises. Your escrow payment can change annually based on actual tax and insurance costs, which may cause your total monthly payment to fluctuate slightly.

Private Mortgage Insurance (PMI): Protection for Low-Down-Payment Loans

PMI is insurance that protects the lender if you default on your loan. It's typically required when your down payment is less than 20% of the home's purchase price. PMI adds to your monthly payment but doesn't reduce your principal or interest. Once your loan-to-value ratio drops below 80% (usually through regular payments or home appreciation), you can request to have PMI removed. The cost of PMI varies but typically ranges from 0.5% to 1% of the loan amount annually, divided into monthly payments.

Amortization: How Your Loan Balance Decreases Over Time

Amortization is the process of paying off your loan through regular payments. In the early years, most of each payment goes toward interest, with only a small portion reducing principal. As the principal balance decreases, less interest accrues each month, so more of your payment goes toward principal. This creates an amortization schedule—a table showing how each payment is split between principal and interest over the life of the loan. Understanding amortization helps you see the long-term impact of your mortgage and plan for extra payments.

Formulas

Monthly Principal and Interest Payment

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

This is the standard mortgage payment formula, where M is the monthly payment, P is the principal loan amount, r is the monthly interest rate (annual rate ÷ 12), and n is the total number of payments (years × 12). This formula calculates a fixed monthly payment that pays off both principal and interest over the loan term. For example, a $240,000 loan at 4% annual interest for 30 years results in a monthly payment of approximately $1,145.80. The formula ensures that by the final payment, the entire principal and all accrued interest are fully paid.

Total Monthly Payment

Total Payment = Principal & Interest + (Property Tax ÷ 12) + (Insurance ÷ 12) + PMI + HOA

Your complete monthly mortgage payment includes the principal and interest payment plus all other housing-related costs. Property taxes and insurance are divided by 12 to get monthly amounts. If applicable, add PMI (Private Mortgage Insurance) and HOA (Homeowners Association) fees. This total represents your actual monthly housing cost and is what you need to budget for. For instance, if your principal and interest is $1,145, property tax is $3,600 annually ($300/month), insurance is $1,200 annually ($100/month), and PMI is $100/month, your total payment would be $1,645.

Total Interest Paid Over Loan Life

Total Interest = (Monthly Payment × Number of Payments) - Principal

To find how much interest you'll pay over the entire loan term, multiply your monthly payment by the total number of payments, then subtract the original principal amount. This reveals the true cost of borrowing. For a $240,000 loan with $1,145.80 monthly payments over 360 months, you'd pay $412,488 total, meaning $172,488 in interest. This calculation helps you understand the long-term financial impact and evaluate whether making extra payments or choosing a shorter term makes sense for your situation.

Mortgages in Real Life: From First-Time Buying to Refinancing

Mortgages are the cornerstone of homeownership, enabling millions of people to purchase homes they couldn't afford with cash. For first-time buyers, understanding mortgage payments helps determine affordability and guides the home search process. Real estate agents and mortgage brokers use these calculations to pre-qualify buyers and structure loan offers. Homeowners considering refinancing use mortgage calculators to compare current loans with new offers, evaluating whether lower rates or shorter terms justify closing costs. Investors use mortgage math to analyze rental property cash flow and determine if properties will be profitable. Financial planners incorporate mortgage payments into comprehensive retirement and wealth-building strategies. The mortgage industry relies on these calculations for underwriting, risk assessment, and regulatory compliance. Understanding mortgage fundamentals is essential for anyone navigating the real estate market, whether buying, selling, or investing in property.

Frequently asked questions

What does the mortgage calculator estimate?

It projects monthly principal and interest payments based on the loan amount, rate, and term. You can also incorporate taxes, insurance, and HOA dues to approximate the full housing payment.

Which inputs are required?

Enter the home price, down payment, loan term, interest rate or APR, and optional property tax and insurance amounts. The difference between price and down payment becomes the principal.

How does loan term length affect payments?

Shorter terms like 15 years have higher payments but much lower total interest, while 30-year loans trade lower payments for higher lifetime cost. Running both scenarios clarifies the trade-off.

What is private mortgage insurance (PMI)?

PMI protects the lender when the down payment is under 20% and adds a monthly cost until the loan-to-value ratio drops sufficiently. Including PMI in the calculation gives you the true payment for low-down loans.

How are property taxes and homeowners insurance handled?

Estimate the annual amounts, divide by 12, and add the result to your payment to simulate escrow. These costs do not change the principal balance but affect affordability.

Can I model extra principal payments?

Yes, rerun the calculation with an additional monthly amount applied to principal and compare payoff dates. Even modest extra payments can save tens of thousands over 30 years.

How do points and closing costs affect the loan?

Discount points reduce the interest rate in exchange for upfront cash, while other closing costs may be financed or paid at closing. Add financed fees to the principal so the payment reflects the higher balance.

What about adjustable-rate mortgages?

For ARMs, calculate the payment using the initial fixed rate, then model a second phase with the projected adjusted rate. This shows the potential payment jump after the fixed period ends.

Should I choose biweekly payments?

Biweekly payments result in one extra monthly payment per year, trimming years off a 30-year loan. Confirm with your servicer that they credit payments when received rather than holding them.

When does refinancing make sense?

Refinancing is worthwhile when the interest savings plus any term changes outweigh the closing costs before you plan to sell. Compare the total interest of the current loan to the proposed refinance.

How do I evaluate affordability?

Compare the total monthly housing cost to your gross income and target debt-to-income ratio. The calculator's payment estimate feeds directly into that ratio.

What is the difference between APR and interest rate on a mortgage?

APR includes lender fees and points, while the interest rate reflects only the cost of borrowing. Review both to understand the true cost of the mortgage.

How do taxes and assessments that change annually affect the plan?

Update the property tax input each year using local assessments so your budget stays accurate. Sudden increases can significantly change the monthly escrow portion.

Can USDA, FHA, or VA loans be modeled?

Yes, enter the appropriate mortgage insurance premiums or funding fees as part of your costs. The underlying payment math remains the same even if the loan program adds fees.

Where can I get a detailed amortization schedule?

After estimating the payment, switch to the Amortization Calculator to download the full schedule. Combining both tools provides the clearest view of mortgage costs.