Skip to content
FinToolSuite
Updated May 8, 2026 · Debt · Educational use only ·

True Cost of Debt Calculator

Layered cost of a loan combining interest, fees, and a foregone-investment estimate.

Layered loan cost combining total interest, fees, and the foregone-investment gap from monthly payments. Returns each layer plus the combined figure.

What this tool does

This calculator estimates the full cost of borrowing by combining three distinct layers: interest accrued under standard amortisation, any upfront or ongoing fees, and the opportunity cost—the difference between what you'd accumulate by investing your monthly payment elsewhere versus what you actually pay the lender. The result displays these components together rather than interest alone, making the hidden cost of foregone investment visible. Principal amount, interest rate, loan term, fees, and your assumed investment return rate are the primary drivers of the output. The calculator is useful for comparing loans with different fee structures or for understanding how an alternative investment path affects the true cost of borrowing. Results are for educational illustration and do not account for tax treatment, variable rates, or early repayment scenarios.


Enter Values

People also use

Formula Used
Loan principal
Monthly loan rate (annual ÷ 12, decimal)
Monthly opportunity-cost rate (annual ÷ 12, decimal)
Term in months
Standard amortising monthly payment
Total interest paid to the lender (entered as a percentage value)
Fees as entered
Future value of the monthly payment invested at the opportunity rate (entered as a percentage value)
Layered figure stacking interest, fees, and the foregone-investment gap

Spotted something off?

Calculations or display — let us know.

Disclaimer

Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.

What this calculator does

Most loan calculators stop at total interest. This one stacks three components into one figure: interest paid to the lender under standard amortisation, fees entered as a lump sum, and the foregone-investment gap between investing each monthly payment at the opportunity-cost rate and what the lender actually receives. The third component depends on what the borrower would have done with the payment money in the absence of the loan, so it is a theoretical figure rather than a guaranteed loss — the calculator surfaces it to make the comparison visible, not to claim it as a real cash outflow.

How the math works

The monthly payment is computed via standard amortisation: M = P · r · (1+r)^n ÷ ((1+r)^n − 1), where r is the monthly loan rate and n is the term in months. Total paid to the lender is M × n; total interest is total paid minus principal. The investment side runs an annuity at the opportunity-cost rate — FV_invested = M · ((1+r_o)^n − 1) ÷ r_o, where r_o is the monthly opportunity rate. The foregone-investment component is FV_invested − total paid; the layered figure is interest + fees + that gap.

Worked example

Take a 200,000 loan at 6% annual rate over 360 months, with 3,000 in fees, and a 7% opportunity-cost rate. The standard amortising payment is approximately 1,199.10 per month, producing total interest of about 231,677 over the term. Investing 1,199.10 monthly for 360 months at 7% produces a future value of about 1,462,869. Total paid to the lender across the same 360 months is about 431,677. The foregone-investment gap is roughly 1,031,192. Stacked: 231,677 + 3,000 + 1,031,192 ≈ 1,265,868. The interest-only view would have shown 231,677 — the layered figure adds the fees and the gap to surface the full comparison.

What moves the result

Three levers shape the figure. The loan rate sets the size of the interest layer — higher rates make interest a larger share. The opportunity rate sets the size of the foregone-investment gap — when it sits above the loan rate, the gap can dwarf interest over long terms; when it sits below, the gap can be small or negative. The term amplifies both compounding sides simultaneously, but on a 30-year horizon the investment compounding typically outpaces interest accumulation when opportunity exceeds loan rate by more than 1 to 2 percentage points.

What this calculation does not capture

The opportunity-cost component assumes the monthly payment would otherwise have been invested at the entered rate every month for the full term. In practice, the alternative might be spending rather than investing, in which case the gap is theoretical. The investment return is treated as fixed; real returns are stochastic. The calculation excludes tax on investment returns (which would lower FV_invested), tax on loan interest where deductible (which would lower the interest cost), prepayment, missed payments, fees added to principal mid-term, balance transfers, and rate resets on variable-rate loans. The figure is best read as a planning baseline rather than a guaranteed comparison.

Reading the output

The headline figure stacks the three components. The supporting details show interest, fees, and the foregone-investment gap separately so the working is transparent and any single component can be compared against simpler tools. When the opportunity rate equals the loan rate, the gap shrinks toward zero; when it exceeds the loan rate, the gap becomes the dominant component on long-term loans. The figure is not a recommendation to invest rather than borrow — that decision depends on factors the calculator does not model, including risk tolerance and the borrower's actual alternative use of the payment money.

Example Scenario

Layered cost of a $200,000 loan at 6% over 360 months including a foregone-investment component at 7%: approx 1,265,868.

Inputs

Loan Principal:$200,000
Annual Interest Rate:6%
Term:360 months
Fees:$3,000
Opportunity Cost Rate:7%
Expected Resultapprox 1,265,868

This example uses typical values for illustration. Adjust the inputs above to match a specific situation and see how the result changes.

Sources & Methodology

Methodology

Monthly payment is the standard amortising payment: M = P · r · (1+r)^n / ((1+r)^n − 1). Total paid to the lender is M × n; total interest is total paid minus principal. Foregone-investment is computed as the future value of an annuity at the opportunity-cost rate over the same n months, minus total paid. The layered figure stacks interest, fees, and the foregone-investment gap. The opportunity-cost component is theoretical — it depends on the borrower actually investing the monthly payment at the entered rate in the absence of the loan. The calculation excludes taxes on investment returns or interest, prepayment, missed payments, fees capitalised into principal mid-term, balance transfers, and rate resets on variable-rate loans.

Frequently Asked Questions

Is the opportunity-cost component a real cash outflow?
No. It is the gap between investing the monthly payment at the entered rate over the full term and what the lender actually receives. It only translates into a real opportunity loss if the borrower would have invested the payment money in the absence of the loan. If the alternative is spending rather than investing, the gap is theoretical and the layered figure overstates the comparable economic cost. The calculator surfaces all three layers separately so the foregone-investment component can be reweighted or set aside as appropriate.
What opportunity rate should be used?
A long-run figure consistent with the alternative use of the payment money. For a broad-market equity portfolio, historical nominal returns sit around 7-8% before fees and taxes; for a balanced portfolio, around 5-6%; for fixed income, around 3-5%. Using a higher rate inflates the foregone-investment layer; using a lower rate compresses it. The figure should reflect a realistic long-run net return for the borrower's actual alternative, not an optimistic upper bound.
How does this change the early-payoff decision?
When the opportunity rate exceeds the loan rate, investing the extra cash produces a higher projected nominal value than paying the loan down early; when the loan rate exceeds the opportunity rate, the reverse holds. The calculator does not factor the certainty of debt removal versus the variability of investment returns — that trade-off is part of the decision and is not captured by the headline figure. The student-loan-vs-invest calculator runs the comparison directly for that specific scenario.
Does this work for business loans?
The same math applies to any fixed-rate loan with regular payments. For a business loan, the opportunity rate is typically the expected return on the next-best use of the cash inside the business — reinvestment, equipment, working capital — rather than a market index. Setting the opportunity rate to match that internal hurdle rate produces a foregone-investment layer aligned with the business's own opportunity cost rather than a passive market alternative.
Why is the foregone-investment layer often so much larger than the interest layer?
Compounding. Interest accumulates against a balance that is being paid down, so its growth tapers; the investment side compounds the monthly payment forward at the opportunity rate over the full term without paying down. On 30-year loans where the opportunity rate exceeds the loan rate by more than a percentage point or two, the gap can be several times the interest figure. Shorter terms and smaller rate spreads compress the layers closer together.

Related Calculators

More Debt Calculators

Explore Other Financial Tools