Pay Off Debt or Invest?
Enter your numbers — get a clear verdict with the math and the psychology behind it.
%
%
None
▼
▼
▼
The Question Nobody Answers Honestly
Every personal finance article tells you to “do the math” on debt vs investing. But the math alone misses half the picture. A 20% credit card rate is obviously a guaranteed 20% return if you pay it off. But a 6% student loan next to a stock market averaging 8%? That’s where people freeze — and where most advice falls short.
This calculator doesn’t just give you two numbers to compare. It factors in your stress level, because the psychological weight of debt is real. A 2022 study from the Financial Health Network found that 65% of Americans report their debt causes significant anxiety — anxiety that impairs decision-making, reduces work performance, and affects health in ways that don’t appear in compound interest formulas.
The Math Behind the Three Scenarios
Scenario A works on a simple principle: every extra dollar toward high-interest debt earns a guaranteed return equal to that interest rate. Pay off an 18% credit card and you just earned 18% risk-free — no market needed. Once debt is gone, you redirect that freed cash into investments with full momentum.
Scenario B is the classic “invest the difference” argument. If your debt rate is 5% but the market historically returns 7-10%, you theoretically come out ahead by investing and paying minimums. The catch: market returns aren’t guaranteed, and compounding interest on your debt runs the entire time. Because the math behind B depends on a market return playing out over time rather than a guaranteed rate, it doesn’t always lead the whole way through — the calculator’s crossover indicator marks the specific month where Plan B’s growing portfolio overtakes Plan A’s net worth, if it ever does within the timeframe shown, so the full timeline is visible before committing to either path.
Scenario C is the behavioral hedge. You make progress on both fronts simultaneously. Research from behavioral economics suggests people who split their extra cash this way stick with the plan longer — wins on both fronts keep motivation high.
When Stress Overrides the Math
When debt stress is rated 4 or 5 out of 5, this calculator shifts the recommendation toward paying off debt first — even if a pure mathematical analysis suggests otherwise. Sleeping well, making clearer decisions, and removing a constant source of financial dread have real economic value, even if they don’t show up in a spreadsheet.
The 7% Assumption Explained
The default investment return is 7% annually — the approximate inflation-adjusted long-term average of a broad US stock market index fund. If your debt rate is below 7%, investing while paying minimums starts to look mathematically attractive. Above 7%, paying down debt is increasingly the safer bet. Debt under roughly 5% often makes sense to carry while investing anyway, particularly inside tax-advantaged accounts. There’s one step that comes before any of this math, though: capturing a full employer 401(k) match first, regardless of debt rate. An employer match is effectively an instant 50-100% return with no market risk attached, which is a stronger case than almost any debt payoff — the one genuine exception to “pay off high-interest debt before investing.” Once that match is fully captured, the rest of the 5-7% threshold logic above applies as normal.
After calculating, a shareable link with your numbers pre-filled appears above — useful for talking the decision through with a partner or advisor. Nothing entered here is otherwise stored: every calculation runs locally in the browser, and the share link is the only thing that leaves the page.