Invest vs. Prepay Calculator

You have $X/month extra. Should you throw it at the loan, or invest it? See both paths side by side, with the crossover month and the return rate you'd need to break even.

Your loan

$
%
mo

Your allocation

$

On top of the loan minimum. Goes to prepay or invest.

%

HYSA ≈ 4%, conservative bonds ≈ 5%, S&P 500 long-run ≈ 8%.

mo

Verdict at 10 years

prepay beats invest by $1,046

If your investment can beat 9.00%, investing wins at this horizon. You picked 7.00%.

Prepay path net worth

$97,556

Invest path net worth

$96,510

Prepay path payoff

3y 2mo

Invest path payoff

5y 1mo

Crossover month

Never (within horizon)

Loan minimum payment

$623 / mo

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:

What our calculator assumes (so you can sanity-check the numbers)

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


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.

Have a question about this calculator?

Ask the assistant — covers how the math works, what each lens means, and how to read the verdict. Free, no signup. Not financial advice.

Hi, I'm the PayoffMath assistant. I answer questions about loan-payoff math, how the calculators on this site work, and how to read the numbers — I'm not a financial advisor and I can't give you personal financial advice. For regulated decisions (taxes, securities, mortgage approval) talk to a licensed professional.