Your Financial Situation
(Debt payoff)
(To beat debt)
Investment Return
Purple = Debt First strategy | Teal = Invest Now strategy. Net worth = investment portfolio minus remaining debt balance.
How each strategy performs across conservative, moderate, and aggressive investment return assumptions. Your debt rate stays fixed at 7.5%.
| Investment Return | Strategy: Debt First | Strategy: Invest Now | Difference | Winner |
|---|---|---|---|---|
| Enter your details above to see the comparison. | ||||
The Question Everyone Gets Wrong
"Should I pay off debt or invest?" is typed into search engines millions of times a year, yet most of the answers people find are frustratingly binary: "Always pay off high-interest debt first" or "Always invest — compound interest is magic." Both camps are wrong — or more accurately, both are sometimes right, and the right answer for you depends on a precise set of variables that generic advice ignores completely.
The truth is that this is fundamentally a math problem with a human layer on top. The math is relatively simple once you understand what you're actually comparing. The human layer — psychology, risk tolerance, income stability, and your relationship with debt — is where most people make the real mistake. This calculator tackles the math rigorously so you can spend your energy on the human decision.
The Math: When Debt Wins, When Investing Wins
The mathematical answer hinges on one concept: the break-even return rate. Every dollar you put toward debt instead of investing saves you (debt interest rate)% in guaranteed interest. For that decision to be wrong mathematically, your investments would need to return more than the debt costs you — after taxes.
Here's where most people stumble: they compare their raw investment return to their debt rate. But investment gains — whether from dividends, interest, or capital gains — are taxable. If you're in the 22% tax bracket and your index fund earns 8%, your effective after-tax return is approximately 8% × (1 − 0.22) = 6.24%. Compare that to a 7.5% debt rate, and suddenly paying off debt looks much more attractive.
The "pre-tax return needed to beat debt" is calculated as: Debt Rate ÷ (1 − Tax Rate). For a 7.5% debt at a 22% tax bracket, you'd need your investments to return at least 7.5% ÷ 0.78 = 9.6% pre-tax, consistently, just to break even with paying off the debt. The S&P 500's historical average is around 10% nominal — close, but with enormous volatility and no guarantees.
Note that this simplified calculation treats all investment returns as ordinary income for consistency. In reality, long-term capital gains and qualified dividends are taxed at lower rates (0%, 15%, or 20%), which can improve the math for investing — particularly if you're using a taxable brokerage account with a buy-and-hold strategy. Tax-advantaged accounts like 401(k)s and Roth IRAs further shift the equation toward investing.
The Variables That Matter Most
1. Your Debt Interest Rate
This is the most important number. Credit card debt at 20–30% is almost never worth carrying when you could be paying it down — no investment reliably beats that guaranteed return. A 3% mortgage, on the other hand, is one of the cheapest money you'll ever access, and the math almost always favors investing instead of paying extra principal.
2. Tax Treatment of Your Investments
If you're investing in a Roth IRA or 401(k), the tax drag on your returns is eliminated (Roth) or deferred (traditional). This dramatically improves the case for investing. Max out tax-advantaged accounts before considering the choice between extra debt payments and taxable investing.
3. Investment Type and Expected Return
Broad index funds (like total market or S&P 500 ETFs) have a strong historical track record — but past performance doesn't guarantee future results. Active management historically underperforms after fees. The more volatile and speculative the investment, the stronger the case for debt payoff becomes.
4. Time Horizon
The longer your time horizon, the more investing tends to win — compound interest is exponential, not linear. Over a 30-year retirement horizon, an extra few percentage points of return compounds into dramatically different outcomes. Over a 3-year horizon, the volatility of markets makes guaranteed debt payoff much more attractive.
5. Income Stability
If your income is stable and you have strong job security, you can tolerate more investment risk. If your income is variable or your employment is uncertain, reducing fixed debt obligations first provides a real buffer — lower monthly required payments mean you need less income to survive a job loss.
The Emergency Fund Rule
This isn't optional financial advice — it's mathematical reality. Without an emergency fund, any unexpected expense (car repair, medical bill, job loss) will force you to either take on new debt at high rates, or liquidate investments at potentially the worst time. The emergency fund is financial infrastructure, not savings. It needs to exist first.
The only partial exception: if your employer offers a 401(k) match, contribute enough to capture the full match even before fully funding your emergency fund. An employer match is typically a 50–100% instant return on your money — that beats almost every other financial move mathematically.
Real Examples
Example 1: Credit Card Debt at 22%
Situation: Sarah has $8,000 in credit card debt at 22% APR and $500/month to work with. She's wondering if she should invest in index funds instead of paying down the card.
The math: Paying off the card earns her a guaranteed 22% return. To beat that after taxes (at her 24% bracket), she'd need a pre-tax investment return of 22% ÷ 0.76 = 28.9%. No diversified, prudent investment strategy reliably delivers that.
Decision: Pay off the card immediately. This is one of the rare cases where the math is unambiguous. After payoff, invest aggressively.
Example 2: Low-Rate Mortgage at 3%
Situation: Marcus locked in a 3% 30-year mortgage in 2021 and has $800/month extra. Should he make extra principal payments?
The math: Paying extra on the mortgage earns him a guaranteed 3%. At his 22% bracket, his index fund after-tax return is ~6.24%. The market comfortably beats the mortgage rate — especially in a Roth IRA where gains are tax-free.
Decision: Invest the difference. The math strongly favors investing. The mortgage interest may also be deductible (if he itemizes), making the effective rate even lower. This is one of the clear "invest" scenarios.
Example 3: Student Loan at 6.8%
Situation: Jordan has $45,000 in federal student loans at 6.8% and $600/month available. Expected market return: 8%. Tax bracket: 22%.
The math: After-tax investment return = 8% × 0.78 = 6.24%. That's below the 6.8% debt rate. Pre-tax return needed to break even = 6.8% ÷ 0.78 = 8.7%. The market might beat that historically, but it's genuinely close.
Decision: This is the gray zone — split strategy is rational. Contributing to a Roth IRA (where gains are tax-free) shifts the math toward investing. If Jordan's student loans qualify for Public Service Loan Forgiveness, the calculus changes entirely. Emotional factors matter here too.
The Psychological Factor
Behavioral finance research consistently shows that the "optimal" financial strategy is worthless if you can't stick to it. Debt has real psychological weight — the cognitive load of owing money affects decision-making, sleep quality, and risk-taking in other areas of life. Studies suggest that people with high debt loads make worse financial decisions across the board, not just about the debt itself.
If carrying debt causes you genuine stress, the psychological benefit of being debt-free has real dollar value. A mathematically inferior strategy that you'll actually execute for 10 years beats a mathematically superior strategy you'll abandon after 18 months. This isn't an excuse to make poor choices — it's recognition that personal finance is personal.
The "debt-free feeling" is not irrational. Lower required monthly payments create financial flexibility that reduces risk in ways that don't show up in a spreadsheet. Being debt-free means you can weather a job loss on a much lower income. You can take career risks. You can invest more aggressively when markets drop, because you don't have the stress of debt pushing you toward panic-selling.
Common Mistakes
- Forgetting taxes on investment returns. People compare 8% investment return to 7% debt rate and assume investing wins. After taxes at 22%, the real return is 6.24% — debt wins. This single error leads millions of people to the wrong conclusion.
- Using average market returns as if they're guaranteed. The S&P 500 has returned ~10% annually on average over 100 years — but it's dropped 50% twice in the last 25 years. If you invest instead of paying debt and the market drops 40%, you're in a much worse position than if you'd paid off the debt.
- Not having an emergency fund. Skipping the emergency fund to invest aggressively or pay off debt faster is optimizing the wrong thing. One emergency without that buffer and you've lost all the ground you gained — often with new high-interest debt.
- Treating this as all-or-nothing. You don't have to choose between paying off debt or investing completely. A split strategy — say, 60% to debt, 40% to index funds — is often psychologically sustainable and mathematically close to optimal.
- Ignoring the employer match. If your employer matches 401(k) contributions, ignoring that to pay off debt is leaving free money on the table. Even a 50% match on your contributions is a 50% guaranteed return — better than paying off almost any debt.
- Confusing "deductible" with "free." Some debt (mortgages, student loans in some cases) has deductible interest, which lowers the effective rate. But deductible doesn't mean free — you still pay most of the interest, you just reduce your taxable income slightly.
How to Use This Calculator
Monthly extra money: Enter the amount you have available beyond your minimum debt payments. This is the money you're actively deciding to direct somewhere.
Debt interest rate: If you have multiple debts, use the highest-rate debt, or a weighted average. The calculator models paying off one debt pool, then redirecting that money to investing.
Expected investment return: We default to 8% (a reasonable real-terms estimate for a diversified index fund portfolio). Be honest — speculative investments have higher expected returns but far higher risk.
Tax bracket: Use your marginal (top) tax rate on ordinary income. This is used to estimate tax drag on investment returns. If you're investing in a Roth IRA, your actual tax on gains is 0% — adjust the bracket down to account for this.
The Decision Banner tells you the mathematical winner given your inputs. The Break-Even Analysis shows you exactly what pre-tax return you'd need from investing to match paying off your debt. The 10-Year Projection compares the ending net worth of each strategy, and the Scenario Table stress-tests across conservative, moderate, and aggressive return assumptions.
Use the scenarios to understand your sensitivity to market returns. If "Invest Now" only wins under the aggressive 10% scenario, that's a much weaker case than if it wins even at 5% returns.