The two paths, in plain English
You have a loan. You have some extra cash flow each month. The question is what to do with the extra. This calculator is the honest version of the comparison — both paths consume the same amount of money each month, so the only difference is allocation.
Prepay path — kill the loan first, invest the freed cash flow
Each month, the loan minimum plus the extra goes to principal. Loan disappears years before its scheduled term. After that, the same monthly cash flow (now freed) flows into investing at your expected return. The path's gain is the guaranteed APR you avoided plus the post-payoff portfolio growth.
Invest path — minimum payment only, invest the rest from day one
Each month, only the loan minimum goes to the loan. The extra goes into the market at your expected return. Loan rides out its full original term. Once the loan ends, the freed minimum payment also joins the investment stream. The path's gain is the compounding head-start the early money got.
The breakeven framing — what return do you need?
The standard textbook answer is “invest if expected return exceeds loan APR.” That's the right intuition but the wrong answer at finite horizons, because cash-flow timing matters. The calculator computes the precise breakeven — the return rate that ties the two paths at your chosen horizon — usually a fraction of a percent above the loan APR.
Practical reading: the breakeven is a hurdle rate. If your investment plan can clear it with margin, lean invest. If the margin is razor-thin (under one percentage point), the certainty premium of prepay is worth something — you're trading expected upside for a guaranteed outcome. If the margin is negative, just prepay.
When this calculator is the wrong tool
Three situations where the question itself is the wrong question:
- You haven't captured your employer 401(k) match. That's typically a 50-100% return on the matched portion — beats both paths here trivially. Capture the match first, then run this calculator on whatever extra cash remains.
- Your loan APR is above 10%.Pay off the loan. The calculator will tell you the same thing every time, but at 15-22% credit-card rates the “invest” case requires expected returns that aren't real. Use the debt-payoff strategy comparator for high-rate debt instead.
- You don't have an emergency fund yet. Three to six months of expenses in a high-yield savings account is the prerequisite for thinking about this question at all. Without it, either path is sketchy because a job loss forces you to liquidate investments at a bad time or miss loan payments and tank your credit.
What our calculator assumes (so you can sanity-check the numbers)
- Both paths consume the same monthly cash flow:
(loan minimum + extra). The only difference is allocation. This is what an honest comparison requires. - Loan interest accrues monthly at
APR/12. Investment growth compounds monthly atexpectedReturn/12. - Each month, in this fixed order: loan interest accrues → loan payment applies → portfolio compounds → this month's contribution is added to the portfolio (end-of-month / ordinary-annuity convention).
- The minimum payment is the standard amortizing payment computed from (balance, APR, remaining term). Fixed for the life of the loan.
- No taxes, no employer match, no sequence-of-returns risk, no psychological-debt-burden weighting. Each of these can shift the verdict by enough to matter — the calculator is a starting frame, not a final answer.
FAQ
What return rate do I need to beat my loan?
Roughly the loan APR, but slightly higher because cash-flow timing favors prepay early in the simulation. The calculator computes a precise breakeven for your inputs — for a 6% loan over 20 years with $300/month extra, breakeven typically lands near 6.5-7%. If your investment account is a high-yield savings (~4%) or short-term Treasuries (~5%), the loan beats them. If it's a diversified equity portfolio expecting 8-10% long-run, the math leans toward investing. The trick is the word 'expected.' A guaranteed 6% return on prepayment is more certain than an expected 8% return on stocks, even though the expected value is higher.
Why does prepay always start ahead in the chart?
Because in early months, the prepay path is destroying loan principal at the loan APR (a guaranteed return), while the invest path is putting smaller dollar amounts into a portfolio that hasn't compounded yet. The crossover happens later: once the prepay path has eliminated the loan, it starts investing the freed cash flow, but the invest path's portfolio has been compounding for years and has a head start. Whether the crossover happens within your horizon — and how big the gap ends up — depends on the spread between your loan APR and expected return. Wide spread + long horizon = invest wins big. Narrow spread + short horizon = prepay wins by a small margin.
What about an employer 401(k) match? Should I prepay or capture that first?
Capture the match. Always. A typical 50% match on the first 6% of salary is an instant 50% return on the matched portion — better than any loan APR you're realistically carrying. The decision tree is: (1) capture full employer match in 401(k), (2) pay off any debt above ~7-8% APR, (3) decide invest vs prepay on what's left. This calculator is for step 3 — the comparison only makes sense after you've already taken the free money.
Does this account for taxes?
No, and that's a meaningful caveat. After-tax math can shift the breakeven by 1-2 percentage points either direction. Capital gains on investment growth cost 0-23.8% depending on your bracket and account type. Mortgage interest may be deductible if you itemize (most people don't post-2017 SALT cap). Student-loan interest deduction is capped at $2,500 and phases out at moderate income. The simplest correction: if your investments are in a Roth IRA or 401(k) and the loan isn't tax-advantaged, the calculator's answer is roughly right. If your investments are in a taxable brokerage and the loan is mortgage interest you deduct, the prepay side is overstated by a couple of percentage points.
What's sequence-of-returns risk and why isn't it modeled?
Real markets don't return a constant 8% per year — they return +20%, then -10%, then +30%, then -25%, in a sequence. If you're contributing during a down market, you buy more shares at low prices (good). If you're drawing down during a down market, you sell more shares at low prices (bad). For someone choosing invest-vs-prepay over a long horizon, the sequence risk is asymmetric: prepay is path-independent (the loan APR doesn't care what year it is), while invest depends on which years are good and which are bad. The calculator assumes constant returns because modeling sequence risk requires Monte Carlo simulation and adds variance bands instead of a single answer — which most users would find harder to act on, not easier. The honest interpretation: the breakeven return rate is what you'd need on average, and 'on average' has a lot of dispersion.
I'm carrying a 22% credit-card balance and asking this question. What should I actually do?
Pay off the credit card. Don't run the calculator. At 22% APR, the loan APR is higher than any reasonable expected investment return after taxes and fees — the calculator will tell you to prepay every time, and the 'tie' point is somewhere out near 25-28% expected return, which isn't a real strategy. This calculator is most useful for the 4-9% APR debt range where the question is genuinely close: mortgages, student loans, auto loans, prime-rate personal loans. Above 10%, prepay wins decisively; below 4%, invest usually wins.
Related
- Refinance vs. prepay (guide) →
- Debt-payoff strategy comparator →
- Lump sum vs. extra monthly (guide) →
- How to evaluate a personal-loan offer (guide) →
Written by James L. Wu. The math is parallel-timeline simulation (one month per step, monthly compounding both sides). The differentiator vs. incumbents is the explicit verdict + crossover + breakeven-rate output — most invest-vs-debt calculators answer one question at a time and leave you guessing about the cliff.