Enter a debt, its rate, and the extra cash you're deciding what to do with, plus an expected investment return.
Calculator
Your debt
$
%
$
$
The amount you're deciding where to send.
If you invested instead
%/yr
Not guaranteed — unlike the interest you'd avoid by paying down debt.
yrs
This debt’s rate is well above typical long-run investment returns — paying it off is close to a guaranteed return at that rate, which investing can’t promise.
After 10 years, paying off the debt first leaves you $4,529 wealthier.
Paying off a 22% debt is close to a guaranteed 22% return; your 7% investment return is an assumption, not a promise.
Formula verified 15 August 2026
Pay debt first
Invest the extra
Net worth
$41,335
$36,806
Investment portfolio
$41,335
$36,806
Remaining debt
$0
$0
Debt payoff time
2 yrs 6 mos
6 yrs 1 mo
What this tool shows
Then see which path leaves you wealthier: paying the debt off first, then investing everything once it's clear, or investing the extra from day one while paying just the minimum. Both paths commit the same money each month; only the destination changes.
Net worth from paying the debt off first, then investing everything once it clears
Net worth from investing the extra now and paying only the minimum
How long each path takes to actually clear the debt
A direct comparison of your debt’s rate against your investment-return assumption
The same total monthly cash flow in both paths — only the destination changes
Ending net worth, side by side Guaranteed vs. assumed return Payoff time for both paths Transparent assumptions
Educational estimate — investment returns are never guaranteed.
Updated 15 August 2026 · USD
Paying off debt is close to a guaranteed return equal to its interest rate; investing offers a potentially higher return that is never guaranteed. This calculator turns that trade-off into an actual dollar comparison using your own numbers, instead of a rule of thumb.
At a glance
Formula shown
Whichever path has a debt balance keeps paying it down first; once clear, the freed-up payment invests too — both paths compare on ending net worth.
Scenario support
Any debt rate, extra amount, investment return, and horizon from 1–40 years.
Two paths, the same $350 a month, and the $4,529 between them
An $8,000 credit card balance at 22% APR, with a $200 minimum payment and $150 of extra cash each month to decide between — compared over 10 years against a 7% expected investment return. Paying the debt off first clears it in 2 years 6 months, after which the full $350/month invests for the remaining 7½ years, ending with $41,335 net worth. Investing the $150 extra from day one, while paying just the $200 minimum, clears the same debt more slowly — 6 years 1 month — and ends with $36,806. Paying off the debt first wins by $4,529 here, which makes sense: a guaranteed 22% beats an assumed 7% by a wide margin. Lower the debt’s rate toward the investment return and the gap narrows — push the return above the rate and investing wins instead.
Neither column is allowed to spend more than the other. Both paths commit the same total money each month — the minimum payment plus the extra — so the only difference is where that money goes first, never how much. Once a path’s debt is fully paid off, everything that was going to that debt (minimum and extra) is redirected to investing for the rest of the horizon. That is the whole of the comparison: two uses for the same extra monthly cash, reported as the ending net worth of each path over the years you choose, plus how long each takes to actually clear the debt, so you can see the trade-off in dollars rather than guessing.
Read your own result the same way. The headline states which path leaves you wealthier at your chosen horizon, and by how much — but the line underneath matters just as much: it restates your debt’s rate as a near-guaranteed return next to your investment return, which is only an assumption. The comparison table shows net worth, the investment portfolio each path actually built, the debt still owed (if any), and how long each path took to clear the debt entirely. A path can “win” on net worth while still taking years longer to become debt-free — check both numbers, not just the top line.
Net worth = portfolio − remaining debt, in both columns
Each path's net worth
net worth = investment portfolio − remaining debt
Debt shrinks by (payment − interest) each month; once it's zero, that payment starts compounding in the portfolio instead.
Same formula for both paths — only when each dollar starts contributing differs.
Only one of the two terms in that subtraction is knowable in advance, and it is the debt. The balance is modeled as a standard fixed-rate debt: interest accrues monthly on the remaining balance, the same way a credit card or loan statement calculates it. That is why paying it down is treated as the safe side of the comparison — close to guaranteed, though not perfectly. “Guaranteed” assumes the debt’s rate does not change, which is true for a fixed-rate loan and not for a variable-rate one, and that you would not otherwise default or need the cash back. With those caveats, eliminating a debt’s balance reliably stops that exact rate of interest from accruing.
The return your investments have to beat, debt rate by debt rate
Holding the worked example fixed — $8,000 of debt, a $200 minimum, $150 of extra cash, 10 years — the crossover column is the assumed return at which the winner flips, found by running the model, not asserted.
The investment return at which investing overtakes paying down the debt, at six debt rates.
Debt APR
Investing takes over above
Pay debt first, at 7%
Invest the extra, at 7%
Verdict at 7%
6%
6.01%
$44,667
$44,793
Invest by $126
8%
8.01%
$44,333
$44,197
Pay debt by $136
12%
12.00%
$43,608
$42,793
Pay debt by $815
18%
18.00%
$42,339
$39,847
Pay debt by $2,492
22%
22.00%
$41,335
$36,806
Pay debt by $4,529
24%
24.00%
$40,773
$34,624
Pay debt by $6,149
The crossover sits at the debt's own rate, to within a hundredth of a point. Change the balance, the minimum, the extra or the horizon and that column does not move — those inputs set how much the decision is worth, not which way it goes. The one exception is a minimum too small to cover the month of interest, which the calculator warns about above.
Which is why “is it better to pay off debt or invest?” has no universal answer: it depends almost entirely on your debt’s interest rate versus your realistic investment-return assumption. Your rate matters this much because it sets the return you are guaranteed to earn by paying it off — every dollar of principal you eliminate stops accruing interest at that exact rate, with no risk. An investment return of the same size is never guaranteed the same way, so the higher your rate relative to your return assumption, the more strongly the math favors paying it off. Run your own two numbers in the calculator above rather than relying on a rule of thumb; the answer moves with them.
It is the rate that drives the decision, too, not the size of anyone’s net worth. There is no single rule wealthy individuals follow: low-rate debt, such as a mortgage under 5%, is commonly kept and invested around, since historical market returns have often exceeded it, while high-rate debt — credit cards and personal loans in the double digits — is typically paid off aggressively, because few reliable investments beat it. Both behaviors are the same table above, read at two different rows.
A good decade, an average one, and a bad one against the same 6% debt
The return you enter is one number; the decade you actually get is a range. Here the debt is held at 6% and only the realised return moves.
Ending net worth for both paths across five realised investment returns.
Realised annual return
Pay debt first
Invest the extra
Verdict
-2%
$30,974
$30,484
Pay debt by $490
3%
$37,774
$37,500
Pay debt by $274
6%
$42,803
$42,803
Tie, $0
7%
$44,667
$44,793
Invest by $126
13%
$58,263
$59,683
Invest by $1,420
The return outcome moves ending net worth by $27,289 top to bottom. The choice this page settles is worth at most $1,420 across that same range — which is what calling one rate guaranteed and the other assumed means in dollars. At the worked example's 22% the gap is $4,529.
The model does not generate that spread on its own: the return you enter is applied every month, compounding, with no volatility modeled — real returns vary year to year and can be negative. It treats that return as fixed and certain, while the debt’s interest rate is the one number in this comparison that is actually guaranteed. Nor does it model taxes on investment gains or tax-advantaged accounts such as a 401(k) or IRA, which can meaningfully change the after-tax version of every row above. Each figure is an estimate from the values you enter — not a forecast of real market returns.
What twenty extra months in debt actually buys
When investing wins, it wins by staying in debt longer. At a 7% assumed return, these are the rates where that trade is close enough to price.
Net-worth gap against extra months spent in debt, at five debt rates.
Debt APR
Verdict
Debt-free, pay first
Debt-free, invest
Extra months owing
Bought per extra month
4%
Invest by $349
24 months
44 months
20 months
$17.47 a month
5%
Invest by $242
25 months
44 months
19 months
$12.73 a month
6%
Invest by $126
25 months
45 months
20 months
$6.29 a month
7%
Tie, $0
25 months
46 months
21 months
Nothing
8%
Pay debt by $136
25 months
47 months
22 months
Not applicable
Investing wins the top three rows, and the last column is what winning costs: about a coffee a month at 6%, for carrying the balance 20 months longer. At 7% the paths tie and investing is simply in debt 21 months longer for nothing.
Clearing the balance early is not free either, which is what the losing rows cost. Paying off the debt first gives up the potential upside of investing that money instead; it ties the cash up in an illiquid form, because paid-off debt cannot easily be converted back into cash if you need it; and where the debt carries a low rate, it may pass up meaningfully higher expected returns elsewhere. It also delays building an investment habit and compounding, which matters most when started early. None of that shows up in the net-worth column — only in the months.
The employer match, the emergency cushion and the second debt outrank this page
Three inputs to this decision sit outside the model, and what it does not cover can overturn every verdict above.
This page does not model an employer 401(k) or similar match, and a full match settles the question before the comparison starts. If extra investing dollars would capture a match, the math changes well beyond what any assumed return shows here: an employer match on 401(k) contributions is typically an immediate, guaranteed return, often 50–100%, that beats paying off nearly any debt. Capture a full employer match first, then apply this comparison to whatever is left over.
It also does not check whether you have an emergency fund first. Most financial educators recommend a small emergency cushion before aggressively paying down debt, so that an unexpected expense does not force you straight back into the same debt. CFPB research on this exact trade-off found that people do not pick one extreme — most keep some savings cushion rather than putting everything toward debt, splitting the available money between paydown and savings instead of going all-in on either. This page assumes the extra money is already free to allocate, so build in your own savings buffer before you act on the verdict above.
And it handles one debt at a time. If you are juggling several at different rates, first use the Debt Payoff Calculator to find the payoff order — snowball, avalanche, or a custom order — for all of them, then bring that combined extra payment back here to compare it against investing instead. That multi-debt payoff order is the piece this page deliberately leaves out, and it is the cleanest division of labor between the two tools: this one decides whether extra cash should go toward debt at all, versus investing it, and the Debt Payoff Calculator decides the fastest or cheapest order to clear the debts once you have chosen to prioritize them, with a full month-by-month simulation.
Related calculators
Tools that build on the same debt and investing math:
Debt PayoffSimulate up to 20 debts with snowball, avalanche, custom, or hybrid payoff order and find your debt-free date.
Credit Card PayoffPlan up to 20 cards with issuer-style minimums, promo APRs, five payoff orders, and a balance-transfer scenario.
InvestmentProject lump-sum and regular-contribution growth, plan a goal, and solve future vs present value, with fees and inflation.
Compound InterestSee how savings grow as interest earns interest, with adjustable contributions and compounding frequency.
401(k)Project a 401(k) balance with employer match, 2026 IRS limits, fees, inflation, and a match maximiser.
Car Lease vs BuyCompare ending wealth from leasing a car against buying it — monthly payment, car equity, and invested savings.
Debt ConsolidationCompare your existing debts against one new consolidation loan — monthly payment, payoff time, and total interest.
BudgetBuild a monthly and annual budget in simple or 65-line advanced mode, with savings rate, ratios, and a health score.
Net WorthBuild a personal balance sheet — quick or 78-line detailed — with liquid and tangible net worth and debt analysis.
SavingsProject a savings balance or solve the deposit needed for a goal, with APR/APY, tax, and inflation.
Regular InvestmentProject how regular monthly contributions grow over time — SIP-style investing, dollar-cost averaging, inflation-adjusted value, and long-term goals.
This calculator is for educational and estimation purposes only. It is not financial, tax, or legal advice. It compares two modeled paths — paying extra toward one debt versus investing that amount — using the rate and return you enter; it does not model an employer 401(k) match, emergency-savings adequacy, multiple debts, taxes on investment gains, or the psychological value some people place on being debt-free sooner. Investment returns are not guaranteed and can be negative in any given year, unlike the interest a debt payment avoids. Confirm your specific numbers with a financial advisor before making a decision.
Built and maintained by Jay Sudha, who runs a rice mill and trading business in Kashipur, India, and works with pricing, margins, working capital and bank credit as part of it.