DebtMath

Should I Save or Pay Off Debt First? (Calculator)

You have spare cash each month. It can pay down a balance or go into the market — not both. Enter your debt APR, the return you expect, and your monthly surplus. Both plans spend the same dollars and both end debt-free, so the winner is whichever leaves you with more net worth.

Start from:
After 6 years, 5 months, the better move is
Pay off the debt first

Sending the surplus to a 22.99% debt beats a 7% expected return by $5,377 over 6 years, 5 months. Paying down the balance is a guaranteed, tax-free 22.99% return — no market required.

Debt first

Ahead

Surplus attacks the balance, then everything gets invested

Net worth at month 77
$44,195
Debt gone in
1 year, 4 months
Interest paid
$1,327
Invested
$36,873
Investment growth
$7,322

Invest first

Required payment only; surplus goes to the market from month one

Net worth at month 77
$38,818
Debt gone in
6 years, 5 months
Interest paid
$7,323
Invested
$30,877
Investment growth
$7,940
Both plans spend the same dollars every month and both end debt-free at month 77, so net worth is the only scoreboard. Paying the debt first clears it in 1 year, 4 months instead of 6 years, 5 months and avoids $5,995 of interest — but it also keeps $400 a month out of the market for that stretch. The 16.0-point gap between your APR and your expected return is what decides it.

The whole decision is two rates

Retiring a dollar of debt earns you that debt's APR, forever, guaranteed. Pay off a dollar on a 22.99% card and you have bought yourself a 22.99% return — tax-free, risk-free, no market required. Investing that same dollar earns you whatever the market does, which over a long enough horizon has historically been positive but over any particular five years can be anything.

So the comparison is APR versus expected return, with a thumb on the scale for the debt because its return is certain. When your APR is comfortably above what you expect from investing, the debt wins and it isn't close. When it's comfortably below — a 4.5% student loan against a 7% expectation — investing wins on the math, and the calculator will show you by how much. The interesting zone is the middle, where the dollar difference over the whole horizon turns out to be smaller than people assume.

One structural note the calculator handles for you: both plans keep paying the required minimum, and both are measured at the same month — the month the slowerplan finally clears the balance. That's the only way to compare fairly. Anything that stops the clock the day the debt-first plan finishes is quietly crediting it for cash the invest-first plan hasn't spent yet.

Where high-APR debt makes the answer obvious

Credit card APRs in the low-to-mid 20s are not competing with anything. No credible expected return on a liquid investment clears that bar, so the surplus belongs on the balance until it's gone. The calculator makes the gap concrete, but you can feel it without the tool: every month you carry a 23% balance to invest at 7%, you're financing your portfolio at 23%.

If that's your situation, the next question isn't whether to pay the debt but in what order. With more than one balance, the debt avalanche targets the highest APR first and costs the least interest, while the debt snowball clears the smallest balance first and buys momentum. The side-by-side comparison shows what the momentum costs — on typical balances, less than most people expect.

Where low-rate debt makes it a genuine question

A 4.5% student loan or a 3% mortgage is a different animal. Against a 7% expected return, the arithmetic favors investing, and over a long horizon the compounding difference is large. Switch the calculator to the student loan preset and watch the winner flip.

The math is not the only input, though. An investment return is an average across good decades and bad ones; a loan payment is due on the fifteenth regardless. Debt raises your fixed costs, which is exactly what hurts when income stops. And a paid-off loan frees cash flow permanently, which is worth something no spreadsheet captures. If a balance keeps you up at night, clearing it is a legitimate purchase of peace of mind at a known price — the calculator tells you what that price is.

Two prerequisites sit ahead of either choice. Capture any employer retirement match first: a dollar-for-dollar match is a 100% return on contribution, and nothing else on this page competes. And keep a starter emergency fund, or the next surprise expense lands back on the credit card and undoes months of progress.

What the surplus actually buys on the debt side

The result cards above show the interest each plan pays, but it's worth seeing the payoff side in isolation. Extra dollars go straight to principal, which means every one of them stops accruing interest for the entire remaining life of the balance — the reason a modest monthly extra compresses a payoff timeline so hard. Run your own numbers through the extra payment savings calculator to see the months and interest a given surplus buys.

And if the surplus is a one-time windfall rather than a monthly habit — a bonus, a tax refund — the tradeoff shifts. A lump sum applied early kills more interest than the same money dripped in over a year; the lump sum vs. extra payment comparison quantifies it.

Frequently asked questions

Is it better to save or pay off debt?

Compare two rates: your debt's APR and the return you expect on the money you'd invest instead. Paying down a balance is a guaranteed, tax-free return equal to the APR — a 22% credit card pays you 22% for every dollar you retire, with no market risk. An expected 7% stock return is a forecast that can be negative for years at a stretch. So the rule of thumb is: clear anything above roughly 6–8% APR first, invest ahead of anything below it, and use the calculator above for the middle ground where the two are close.

Should I invest while paying off student loans?

Usually yes, at least partly — federal student loan rates are typically well below long-run stock market expectations, so the math above tends to favor investing the surplus. But the math isn't the whole story. Student loans are hard to discharge in bankruptcy, they follow you through job loss, and the psychological weight of a five-figure balance is real. A common split is to invest enough to capture any employer 401(k) match, keep the loan on its scheduled payment, and put anything left over wherever you'll actually stick with it.

Should I pay off debt or invest if my APR is close to my expected return?

Take the debt payoff. The two returns are not the same kind of return: the debt payoff is certain, the investment return is an average of a wide distribution. When the expected values are within a point or two, you're being paid nothing to take on market risk, sequence risk, and the chance you need to sell at a bad time. The calculator above shows the dollar spread — if it's small relative to the balance, that's your signal that the risk-free side wins.

What about my employer 401(k) match?

Capture it before anything else, including high-APR debt. A dollar-for-dollar match is an immediate 100% return on the money you contribute — nothing on a credit card statement competes with that. Contribute up to the full match, then run the rest of your surplus through this calculator. This tool compares one debt against one investment; it assumes you've already taken any free money on the table.

Should I build an emergency fund before paying off debt?

Build a small one first — enough to cover a car repair or a medical copay, commonly cited as $1,000 to one month of expenses. Without it, the next surprise goes straight back on the credit card, and you've paid interest to run in place. Once that starter buffer exists, attack high-APR debt with the surplus, then rebuild the fund to three to six months once the expensive balances are gone.

How does this calculator compare the two plans?

Both plans spend exactly the same dollars every month: your required debt payment plus your surplus. In the debt-first plan the surplus goes to the balance until it's clear, then the whole budget is invested. In the invest-first plan only the required payment goes to the debt and the surplus is invested from month one. Both are measured at the same horizon — the month the slower plan clears the debt — so both end debt-free and the only difference left is portfolio value. Investment growth compounds monthly at your expected annual return divided by twelve.

Does the calculator account for taxes on investment gains?

No — it compares pre-tax investment growth against a debt payoff. That understates the case for paying debt down, because interest saved is never taxed while investment gains generally are, unless they sit in a Roth or other tax-advantaged account. If you're investing in a taxable brokerage, mentally shave your expected return before entering it, or enter an after-tax figure directly.

Related debt tools

Estimates are educational only and are not investment advice. The calculator assumes a fixed debt balance with no new borrowing, a level monthly budget, monthly compounding on both the debt and the portfolio, and a constant investment return with no taxes or fees. Real market returns vary year to year and can be negative — the debt payoff is the only side of this comparison with a guaranteed rate.