Skip to main content

Total Loan Cost Calculator

Calculates the total cost of a loan: interest over the full term, required insurance premiums and upfront fees, broken down by component.

On a 30-year loan at a 6.5% nominal annual rate, the interest paid over the full term comes to about 128% of the amount borrowed. Shortening the term to 15 years at the same rate cuts that figure to about 57%, although the monthly payment rises by roughly 38%. The figures are illustrative, but they show how strongly the length of the loan drives the total cost, not only the monthly payment.

This calculator puts a number on the total cost of a loan. That total is the sum of every charge the borrower pays over the life of the contract, excluding repayment of the principal itself. It has three components: the interest included in each monthly payment, the insurance premiums the lender requires as a condition of the loan, and the upfront fees charged when the loan is made. Showing them separately matters, because each one behaves differently when you change the term or the amount.

Many borrowers compare offers only on the monthly payment or on the advertised rate. Those figures hide the cost that accumulates over decades. A lower monthly payment usually comes from a longer term, and a longer term usually raises total interest. Upfront fees are paid once and do not change with the term, while insurance premiums repeat every year and grow with it. Seeing all three components side by side helps you judge whether a lower payment is worth the extra cost.

The result is an estimate. It assumes the index rate stays constant for the whole term, which is not the case with adjustable-rate loans, where the rate resets at scheduled intervals. Loan offers also differ in fee structure and in which insurance is required. Use the figures in your Loan Estimate, the standard disclosure lenders provide under federal mortgage rules, to check the inputs before you decide.

The explanation below uses US units; the calculator works in either system.

The result updates automatically.

Total amount you're borrowing

Length of the loan (between 1 and 50 years)

Current index rate (e.g., 3.5%); can be negative

Markup the lender charges on top of the index rate

Origination fee, appraisal, recording fees, etc.

Total annual cost of insurance required by the lender

Total cost of the loan

$132,911

Interest + insurance + fees over the entire life of the loan

Monthly payment
$751.14
Interest rate
4.40 %
Total interest paid
$120,411
Total insurance (full term)
$12,000
Total paid to the lender
$282,911
Share

How it works

1

Enter the loan amount, which is the total principal you are borrowing.

2

Enter the loan term in years, from the first payment to the last one.

3

Enter the current value of the index rate tied to your loan, such as SOFR or the Prime Rate.

Formula

NAR = Index + spread | P = C × [r × (1+r)^n] / [(1+r)^n − 1] | Total interest = P × n − C | Total insurance = Annual insurance × term | Total cost = Total interest + Total insurance + Fees
NAR — Nominal annual rate: the index rate, such as SOFR or the Prime Rate, plus the contractual spread
P — Monthly payment under level-payment amortization, the standard fixed-payment schedule
C — Total loan principal, the amount borrowed; must be a positive amount
r — Monthly interest rate, equal to the nominal annual rate entered as a percentage divided by 1200; at zero the level-payment formula is undefined, see the explanation
n — Total number of monthly payments (term in years multiplied by 12); must be at least 1
Total interest — Difference between total payments and the original principal; the cost of borrowing
Total insurance — Accumulated cost of the insurance the lender requires over the full term
Total cost — Sum of all charges on the loan, excluding repayment of principal

How the calculation works

Total Loan Cost: What It Is and How It Is Calculated

When you take out a mortgage or a long-term personal loan, the amount you repay to the lender over the term is much larger than the amount you borrowed. The difference is the total cost of the loan. It comes from three kinds of charges: the interest included in each monthly payment, the insurance premiums the lender requires as a condition of the loan, and the fees paid when the loan is closed. This calculator separates those components so you can see how much each one adds to the total charges on the contract.

The formula uses no physical units, so you enter the loan amount in dollars, the rates as percentages and the term in years, and the calculator converts the term into monthly periods automatically.

How Interest Is Calculated

The formula describes a fully amortizing loan, a structure in which the borrower repays the loan with level monthly payments. Every payment is the same amount, but the split between interest and principal changes over time. At the start, most of each payment goes to interest because the balance is high. As the balance falls, a larger share of each payment reduces the principal. The monthly payment is calculated with P = C × [r × (1+r)^n] / [(1+r)^n − 1], where C is the loan principal, r is the monthly rate equal to the nominal annual rate, entered as a percentage, divided by 1200, and n is the number of monthly payments.

Total interest equals the monthly payment multiplied by the number of payments, minus the original principal: Total interest = P × n − C. Take a 30-year loan at an illustrative 6.5% nominal annual rate. Its monthly payment is about 0.63% of the amount borrowed, so total payments come to roughly 2.28 times the principal, and total interest is about 128% of the principal. This figure is the cost of borrowing the money alone. It excludes fees and insurance, which the calculator adds separately.

The index behind a variable-rate loan is also worth understanding. The Secured Overnight Financing Rate (SOFR) is published daily by the Federal Reserve Bank of New York. The Prime Rate is a benchmark that banks set, and it generally moves with the federal funds target range that the Federal Reserve publishes. Lenders add a fixed spread to the index to set the rate on your loan. The calculator adds the two together into the nominal annual rate, so enter the current index and the contractual spread separately.

How Insurance Affects the Total

Lenders frequently require insurance as a condition of the loan. The most common example is private mortgage insurance, which lenders commonly require on conventional home loans with a small down payment. The Homeowners Protection Act of 1998 governs when that insurance can be cancelled. Some lenders also require life or disability coverage tied to the debt. Homeowners insurance protects the property and is required by most lenders, but it is generally treated as a cost of owning the home rather than a cost of the loan. Include it only if your lender makes it a loan condition, and enter only the premium for coverage the lender requires.

Premiums are paid every year, so the accumulated insurance cost grows in direct proportion to the term. A 30-year loan carries twice the insurance cost of a 15-year loan with the same annual premium. The premium itself depends on the borrower profile, the loan amount relative to the property value and the property, so use the figure in your lender's quote rather than a general estimate. Entering a monthly premium in the annual field is a common mistake, and it understates the total insurance cost by a factor of twelve.

Fees and Upfront Charges

Upfront charges typically include loan origination charges, the appraisal, the credit report, title-related charges and government recording fees. Discount points, an optional payment at closing that lowers the interest rate, are also part of the upfront cost. Your Loan Estimate lists most of these charges in a standard format, which makes it a useful source for the figures to enter.

Fees are paid once, at closing, and do not change with the term. For that reason they carry more weight in shorter or smaller loans. A fixed fee represents a larger share of the total cost of a 10-year loan than of a 30-year loan with the same principal. If you pay discount points, include their cost in the fees field and calculate the total with the lower rate you actually receive, not the advertised rate.

How the Term Changes the Total Cost

The term has a non-linear effect on total cost. A longer term lowers the monthly payment because the principal is spread across more installments. However, the balance stays outstanding for longer and accumulates interest over more periods. In the 6.5% example, a 15-year loan has a monthly payment about 38% higher than the 30-year loan, yet its total interest is about 57% of the principal, compared with about 128% over 30 years.

Insurance premiums grow with the term, while fees stay the same. Total cost is therefore usually lower for shorter terms, even though the monthly payment is higher. The tradeoff is cash flow: the higher payment must fit the household budget every month. The calculator lets you test this directly by changing the term field and comparing the components.

Total Cost and APR

The total loan cost is an absolute amount in dollars. The annual percentage rate, or APR, expresses the cost of credit as a yearly percentage, which allows different offers to be compared on a common basis. In the United States, APR is calculated under Regulation Z, which implements the Truth in Lending Act and defines which finance charges are included. Because those rules set the scope, APR can differ from a total cost built from your own inputs.

Use the total cost to understand the dollar burden of a specific loan. Use the APR, shown on the Loan Estimate and the Closing Disclosure, to compare offers under the same disclosure rules.

When the Estimate Is Less Accurate

The result rests on several simplifying assumptions. The calculator treats the index rate as constant for the whole term, which is not true for adjustable-rate loans, where the rate resets at scheduled intervals. It assumes the loan runs to maturity with no prepayments and no changes to insurance or fees. It also leaves out late payment charges, escrow shortages and servicing costs.

Prepayment reduces interest for the remaining term, but check your loan documents for a prepayment penalty, since terms vary by lender and loan type. If the loan has an adjustable rate, the true cost depends on future index values that no calculator can predict. The result is best read as a benchmark for comparing loan structures, not as a forecast.

Edge Cases: Zero Rate, Short Terms and Invalid Inputs

The level-payment formula has a zero denominator when the monthly rate is zero, because (1+r)^n − 1 becomes zero. The formula does not apply in that case. With no interest, the principal is repaid in equal installments of C divided by n, and total interest is zero. Enter a rate of zero only for a genuinely interest-free loan, not as a placeholder.

The term must be at least one monthly payment, so n must be 1 or more. With a single payment, the formula gives P = C × (1 + r), and total interest equals C × r, which is consistent with the general expression. A term of zero months has no payments, so no total cost can be derived from it.

A principal of zero produces a zero payment and zero interest. A negative principal or a negative term has no meaning for a loan, because the formula would reverse the direction of payments. Enter positive amounts for both the principal and the term.

Common Mistakes

  • Entering the index rate alone and forgetting the spread, which understates the rate.
  • Entering a monthly insurance premium where the calculator expects an annual one.
  • Leaving out upfront fees because they are not part of the monthly payment.
  • Comparing two loans with different terms by monthly payment alone.
  • Using the advertised rate without checking whether it already includes discount points.

When Not to Use This Calculator

This calculator assumes a fully amortizing loan with level monthly payments. It does not fit interest-only loans, loans with a balloon payment or loans with irregular payment schedules, because the level-payment formula does not describe them. Lines of credit, which charge interest on a variable balance without a fixed term, also fall outside its scope. For these structures, build the schedule from the contract terms or ask the lender for a full amortization table.

When to Consult a Professional

Use the result to frame questions for your lender, not as a replacement for a formal loan quote. A licensed mortgage loan officer can run the figures on actual offers, and a HUD-approved housing counselor can review the full picture, including your budget. The Consumer Financial Protection Bureau (CFPB) publishes free consumer guides on loan costs, disclosures and borrower rights.

Frequently asked questions

What is the total cost of a loan?

The total cost of a loan is the amount you pay above the principal you borrowed, across the whole contract. It includes the interest in each monthly payment, the insurance premiums the lender requires, and the upfront fees charged at closing. It does not include repayment of the principal itself. The calculator shows each component separately, so you can see which part of the cost is largest for your loan.

How is interest calculated on a fixed-rate loan?

Interest is calculated with the standard level-payment formula, which keeps the monthly payment constant. The payment equals P = C × [r × (1+r)^n] / [(1+r)^n − 1], where r is the monthly rate, equal to the nominal annual rate entered as a percentage divided by 1200, and n is the number of monthly payments. Total interest equals the monthly payment multiplied by the number of payments, minus the original principal. Early payments are mostly interest, and later payments are mostly principal.

Do insurance premiums count toward the total cost of a loan?

Yes, when the lender requires them as a condition of the loan. Private mortgage insurance is the most common example on home loans with a small down payment. Enter only the annual premium for coverage the lender requires. Standard homeowners insurance protects the property and is generally excluded unless your lender makes it a loan condition. Because premiums repeat every year, the accumulated cost grows in proportion to the term.

Does a longer loan term reduce the total cost?

No. A longer term lowers the monthly payment, but in most cases it increases the total cost. The balance stays outstanding for more months, so more interest accumulates, and insurance premiums are paid for more years. Upfront fees do not change with the term. In the 6.5% example, total interest is about 128% of the principal over 30 years and about 57% over 15 years. Compare total cost, not only the monthly payment, when choosing a term.

What is the difference between total loan cost and APR?

Total loan cost is a dollar amount for the whole contract. APR is an annualized percentage used to compare offers. Under Regulation Z, which implements the Truth in Lending Act, APR counts specific finance charges according to defined rules, so it can differ from a total cost calculated from your own inputs. Both measures show the cost of credit, but they answer different questions: how much in total, and how expensive per year relative to the amount borrowed.

Do early repayments lower the total cost?

Usually, yes. A partial prepayment reduces the principal, so future interest is calculated on a smaller balance. The saving depends on the amount repaid, when it is paid and the loan terms. This calculator does not model prepayments. Check your loan documents for any prepayment penalty, since terms vary by lender and loan type. Ask your lender how an extra payment is applied, because some lenders apply it to future installments rather than to principal, which changes the result.

Related calculators

By RivoCalc · Reviewed under our editorial methodology · Updated July 11, 2026

This calculator provides an estimate for general information only and is not financial advice. Actual figures depend on the terms of your loan, your lender's disclosures and your financial situation. Before you decide, review your Loan Estimate and consult a qualified professional, such as a licensed mortgage loan officer or a HUD-approved housing counselor.