MortgageAmortizationCalc.com

Total Cost of Mortgage Calculator: Lifetime and If You Sell

Sukie Gao
Written by Sukie GaoLast reviewed November 15, 2026
Educational estimate, not financial advice. Every number on this page is generated by our calculator from the inputs you provide. Confirm final figures with a licensed lender before making a financial decision — see our Terms of Service.

A total cost of mortgage calculator adds every dollar a loan will take from you: principal, interest, closing costs, PMI, taxes, insurance and HOA dues. On an illustrative $400,000 loan at 7.24% for 30 years, principal and interest alone come to $981,357. With the placeholder costs below, the grand total is $1,255,957, or $3.14 for every dollar borrowed.

Most mortgage tools report a monthly payment or a lifetime interest figure and leave the rest for you to add. This one also gives the second answer that matters: what the same loan costs if you sell or pay it off after a few years, including the balance payoff. The rate is the 30-year average in Freddie Mac's Primary Mortgage Market Survey for the week of October 29, 2026 (read November 2026). The rest of the inputs are stand-ins for you to replace, and none of them is a typical or estimated cost.

↓ Add up your total cost

Run the Total Cost of Mortgage Calculator

The tool holds no built-in fee, PMI, tax or insurance figures. The defaults are placeholders, so replace them with the amounts on your Loan Estimate and your local bills. Tax, insurance and HOA stay flat here; real bills can change.

Grand Total Over the Full Term

$1,255,957

$3.14 for every $1 borrowed, on a $2,725.99monthly P&I payment

CostFull termSold after 7 yr
Principal$400,000$400,000
Interest$581,357$194,913
Closing costs and points$10,000$10,000
PMI$12,600$12,600
Taxes, insurance, HOA$252,000$58,800
Grand total$1,255,957$676,313

Cost per $1, loan costs only

$2.51

Cost beyond principal, per month

$2,378

Balance paid at sale

$365,930

Beyond principal, per month held

$3,289

Sale figures leave out the sale price, selling costs and any prepayment penalty.

The Total-Cost Formula, Line by Line

The total cost over a full term of n months is one sum:

Total = (M × n) + C + (PMI × p) + ((T + I) ÷ 12 + H) × n

M is the monthly principal-and-interest payment, C is closing costs and points paid in cash, p is the number of months you pay PMI, T and I are annual tax and insurance, and H is the monthly HOA dues. The payment M comes from the standard amortization equation, derived on the mortgage amortization formula page. If you roll closing costs into the loan, C leaves the formula and goes into the amount M is calculated on.

For the worked example, the loan is $400,000 at 7.24% for 360 months, so M is $2,725.99. The total cost of mortgage calculator on this page starts with those figures, and the other inputs are labelled stand-ins: $10,000 of closing costs paid in cash, $150 of PMI for 84 months, $6,000 of annual tax, $2,400 of annual insurance and no HOA.

LineHow it is worked outAmount
PrincipalThe amount borrowed$400,000
Interest$2,725.99 × 360, less principal$581,357
Closing costs and pointsStand-in, paid in cash$10,000
PMI$150 × 84$12,600
Taxes, insurance, HOA($6,000 + $2,400) × 30 years$252,000
Grand total$1,255,957

Inputs as stated; rate from Freddie Mac PMMS, week of October 29, 2026. Computed by this page's calculator on 2026-11-04. Tax and insurance are held flat for simplicity, though real bills can change.

Dividing the grand total by $400,000 gives the cost per dollar borrowed: $3.14. The tool also shows a loan-only version, leaving out tax and insurance because you would pay those on a home with no mortgage. That figure is $2.51. Whichever you use, be consistent when you compare two loans.

What the Same Loan Costs If You Sell Early

The lifetime figure assumes you keep the loan for all 360 months. If you sell or refinance sooner, the remaining payments are replaced by a single payoff of the balance. That changes the formula to:

Total at month h = (M × h) + Bh + C + (PMI × months paid by h) + ((T + I) ÷ 12 + H) × h

Bh is the remaining balance after payment h. The table runs the same example at seven holding periods.

Sold afterInterest paidBalance paid offGrand totalPer $1 borrowedCost beyond principal, per month held
3 years$85,606$387,470$526,206$1.32$3,506
5 years$141,036$377,476$602,036$1.51$3,367
7 years$194,913$365,930$676,313$1.69$3,289
10 years$272,282$345,163$778,882$1.95$3,157
15 years$389,483$298,805$938,083$2.35$2,989
20 years$486,536$232,298$1,077,136$2.69$2,821
30 years$581,357$0$1,255,957$3.14$2,378

Inputs as in the worked example above. Grand total counts the full $400,000 as repaid, partly by the sale. It excludes the sale price, selling costs and any prepayment penalty. Computed by this page's calculator on 2026-11-04.

Two patterns stand out. Leaving early saves a lot in total: selling at year 7 costs $579,644 less than holding for the full 30 years. But the cost per month you hold the loan is higher in the early years, since closing costs are spread over fewer months and interest is at its peak. In the first 84 payments, $194,913 of the $228,983 paid goes to interest, about 85%, and principal falls by only $34,070. If your plan is to stay about seven years, the seven-year column is your real cost of borrowing, and the 30-year total is a number you will never pay. A plan to speed up the loan rather than sell belongs on the extra payments calculator.

Closing Costs and Points Come From Your Loan Estimate

This page publishes no typical closing-cost figure, and the tool has none built in, because your own number already exists on a federal form. The CFPB says a lender must provide you a Loan Estimate within three business days of receiving your application, and the form shows the total closing costs for the loan (read November 2026). Page 2 has the detail. The CFPB's Your Home Loan Toolkit points to Total Loan Costs in Section D as the place to compare what lenders charge, and suggests getting at least three Loan Estimates.

A total cost of mortgage calculator is only as good as the fee line you give it, and choosing that line takes a little care. Regulation Z defines Total Closing Costs as loan costs plus other costs, less lender credits. Other costs include Prepaids and the Initial Escrow Payment at Closing, and those lines hold some first-year tax and insurance. If you enter the full total and also run tax and insurance from month one, a small part is counted twice. To avoid that, subtract the tax and insurance lines in Section F and all of Section G. Money left in escrow is also returned after payoff, so it is a deposit more than a cost.

Points belong in the same field. One point equals one percent of the loan amount, so one point on the example loan is $4,000. Payment method changes the total, too. The CFPB notes a “no closing cost” loan works by charging a higher interest rate or adding the closing costs to your loan amount. Using the toggle on the $10,000 stand-in:

Paid in cashRolled into the loanDifference
Amount financed$400,000$410,000$10,000
Monthly P&I$2,725.99$2,794.14$68.15
Lifetime interest$581,357$595,891$14,534
Grand total, full term$1,255,957$1,270,491$14,534
Balance after 7 years$365,930$375,078$9,148
Grand total, sold after 7 years$676,313$681,186$4,873

Inputs as in the worked example. Computed by this page's calculator on 2026-11-04.

Over 30 years, each rolled-in dollar costs about $2.45 in total. If you sell after seven years, it costs about $1.49.

30-Year Versus 15-Year Totals With the Same Fees

Term changes the result more than any fee. This table keeps every stand-in the same and uses both PMMS averages for the week of October 29, 2026: 7.24% for 30 years and 6.60% for 15.

Line30 years at 7.24%15 years at 6.60%
Monthly P&I$2,725.99$3,506.46
Interest$581,357$231,162
Closing costs and PMI$22,600$22,600
Loan-only total$1,003,957$653,762
Loan-only cost per $1$2.51$1.63
Grand total over the term$1,255,957$779,762
Grand total if sold after 7 years$676,313$636,927

Inputs as in the worked example except rate and term. Computed by this page's calculator on 2026-11-04.

Read the grand-total row with care. The 15-year figure stops at year 15 and so holds half the tax and insurance, but the bills do not stop when the loan does. The loan-only rows are the fair comparison: the shorter term saves $350,195 over the life of the loan, in exchange for $780.47 more each month. PMI on a real 15-year loan would also not match the stand-in here, because the balance falls faster and the 78% automatic termination point (CFPB, read November 2026) arrives sooner. The 15 year vs 30 year calculator goes further into that trade, while the PMI, taxes and insurance calculator finds the month PMI stops, which is the figure to enter in the months field here.

Federal Disclosures That Report Part of This Total

Your loan papers already contain partial totals, and each one uses a different boundary. In 5 Years and Total of Payments cover principal, interest, mortgage insurance and loan costs, so taxes, homeowners insurance and HOA dues sit outside them. That is why they run lower than the grand total above.

MeasureWhere you find itWhat it coversWorked example
In 5 YearsLoan Estimate, ComparisonsPrincipal, interest, mortgage insurance and loan costs through month 60$182,560, with the $10,000 stand-in treated as loan costs
Total Interest Percentage (TIP)Loan Estimate, Comparisons; Closing DisclosureLifetime interest as a percentage of the loan amount145.34%, before any prepaid interest
Total of PaymentsClosing Disclosure, Loan CalculationsAll scheduled principal, interest, mortgage insurance and loan costs$1,003,957, on the same treatment
Finance ChargeClosing Disclosure, Loan Calculations“The dollar amount the loan will cost you”Not computed here: it depends on which charges your lender includes
APRLoan Estimate, ComparisonsInterest rate plus points, broker fees and other charges, as a rateNot a dollar figure

Definitions from 12 CFR 1026.37(l) and 1026.38(o), and the CFPB's rate versus APR explainer, read November 2026. Example figures computed on 2026-11-04 from the inputs above; lender disclosures can differ because of prepaid interest and exact fee treatment.

The In 5 Years line is the closest match to the sell-early column, and it has a companion figure, “Principal you will have paid off”: $22,524 in the example. A check worth doing is to run the tool at five years, then add principal paid (the loan less the balance paid at sale), interest, PMI and your Section D figure. If that sum is close to the form's number, you have read the inputs correctly. Then add taxes, insurance and HOA for the amount the Loan Estimate leaves out.

What This Grand Total Leaves Out on Purpose

The total measures money paid for the loan and the bills tied to it. It is not a full cost of owning a home, and it is not an investment return.

  • Maintenance and repairs. The CFPB's toolkit reminds buyers that your home needs maintenance and repairs. No input covers them, since they depend on the house. Add your own figure if you want a true ownership cost.
  • Sale proceeds and price changes. The sell-early column shows what you paid, not what you walk away with.
  • Tax deductions. Mortgage interest reduces federal tax only if you meet the rules in IRS Publication 936, which include itemizing on Schedule A. The tool shows pre-tax dollars.
  • Rate changes. The maths assumes a fixed rate. For a loan that resets, use the adjustable rate calculator and treat any total as a scenario.
  • The value of money over time. A dollar in year 30 counts the same as a dollar today.

Used this way, a total cost of mortgage calculator is best at comparing loans side by side on the same assumptions. The mortgage amortization calculator on the homepage shows the month-by-month schedule behind the interest line.

Sukie Gao

Sukie Gao

Sukie Gao builds independent mortgage calculators that show homeowners what a loan actually costs over time, from standard amortization schedules to HUD-based reverse mortgage estimates. MortgageAmortizationCalc.com is written and maintained by Sukie, with every formula checked by hand and every lending rule linked to the agency that sets it.

More from Sukie →

Frequently Asked Questions

It is your 360 payments plus closing costs, PMI, taxes, insurance and any HOA dues. For an illustrative $400,000 at 7.24%, the payments alone total $981,357. Your own total depends on the fees and bills you enter, so the stand-in figures on this page are not a forecast.

Share: