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
Mortgage
Mortgage Calculator
Estimate monthly mortgage payments based on loan amount, interest rate, and amortization period. Calculate total interest paid over loan term.
Debt
Personal Loan Calculator
Calculate the monthly repayment and cumulative interest on a personal loan using standard amortisation, given amount, rate, and term.
Debt
Loan True Cost Calculator
Calculate the true total cost of a loan including all fees. Returns cost of borrowing, total payments, fees, and cost as a percentage of principal.
Formula Used
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.
Layered cost of a $200,000 loan at 6% over 360 months including a foregone-investment component at 7%: approx 1,265,868.
Inputs
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?
What opportunity rate should be used?
How does this change the early-payoff decision?
Does this work for business loans?
Why is the foregone-investment layer often so much larger than the interest layer?
Related Calculators
More Debt Calculators
Debt
Amortisation Schedule Calculator
See how a standard amortising loan splits between principal and interest in year 1. Enter loan amount, annual rate, and term to see monthly payment too.
Debt
Annual Cost of Credit Calculator
Calculate total annual interest cost across all your debt balances and rates. Enter credit card balance and credit card apr to size total interest cost.
Debt
APR vs Flat Rate Comparison Calculator
Convert flat rate loan quote to APR equivalent. See the true effective interest rate vs the quoted flat rate. Enter loan amount to compare repayment strategies.
Debt
Auto Loan Comparison Calculator
Compare two auto loan offers side by side on monthly payment and lifetime interest paid — find the cheaper option at your loan size and term.
Debt
Auto Loan Lifetime Cost Calculator
Calculate total lifetime auto-loan cost across several cars and loan terms. Enter typical loan amount to see total principal + interest across the vehicles.
Debt
Auto Loan Payoff Calculator
Calculate auto loan payoff timeline with optional extra payments. See interest saved and total paid to map your payoff timeline.
Explore Other Financial Tools
Lifestyle
Daily Commute Time Value Calculator
Convert your daily commute time into the annual time-value at your hourly rate — what those minutes are quietly worth across a year.
Savings
Monthly Savings to Lump-Sum Equivalent Calculator
Convert a monthly savings stream into a present-value lump sum. Uses monthly compounding to compute the future value, then annual discounting back.
Budget
Budgeting Method Selector
Compare budgeting methods including 50/30/20 rule, zero-based budgeting, envelope system, and pay-yourself-first approach with calculation examples.