Debt vs Investment: Where Should Your Extra Money Go?

By Xavier C.H. Β· Last reviewed: May 26, 2026

It's one of personal finance's most common dilemmas: you have an extra $200/month. Should you accelerate debt payoff or invest it instead? The answer is almost always math, not opinion. This calculator does the math for you with your real numbers.

Compare the math

Mathematical winner:

Pay extra on debt

Your debt APR (22%) is higher than your expected investment return (7%). Every dollar paid on debt earns you a guaranteed 22% "return" by eliminating that interest cost.

The basic math

When you pay down debt with APR X, every dollar paid effectively "earns" you X% β€” because it's a dollar of interest you no longer have to pay. That's a guaranteed risk-free return.

When you invest, your expected return is whatever the market does. Historical S&P 500 returns have averaged about 7-10% annually long-term, but with substantial year-to-year variation (and some years of losses).

Rule of thumb:

When math gets nuanced

401(k) employer match β€” almost always wins

If your employer matches 401(k) contributions (e.g., 100% match on the first 4% of your salary), that's an instant 100% return on the matched portion. Almost no debt has an APR that beats this. Always contribute enough to get the full match before applying extra to debt.

Tax-advantaged accounts

Contributions to traditional IRA or 401(k) reduce taxable income now. For someone in a 22% federal bracket, $1,000 contributed = $220 saved in current taxes. That effectively raises your investment "return" relative to debt payoff.

Variability vs guarantee

Debt payoff is guaranteed: you save the APR cost, period. Investment is expected: the market average is 7-10%, but some years are -20%. If you can't stomach years of losses, the psychological value of paid-off debt may exceed the mathematical optimum.

Liquidity

Paid-off debt isn't easily accessible if you need money. Investments (especially taxable brokerage accounts) can be sold. If you don't have an emergency fund, prioritize that before either aggressive debt payoff or investment.

The Federal Reserve perspective

The Federal Reserve Survey of Consumer Finances consistently shows that households with high-interest debt who divert to investing rather than paying down debt end up with worse net worth outcomes over time. The exception: when investments are in tax-advantaged accounts with employer match.

Per CFPB consumer guidance: pay down credit card debt (typically 18-25% APR) before pursuing taxable investment. Always capture employer 401(k) match. For lower-rate debt (mortgages at 6-7%, student loans at 4-6%), the math is closer and personal preference matters more.

Frequently asked questions

Should I pay off student loans or invest?

Federal student loans at 4-6% APR are close to expected investment returns. If you're behind on retirement savings, prioritize tax-advantaged investing (IRA/401(k) with match). If retirement is on track, paying down student loans aggressively is reasonable. Private student loans at 7%+ usually win for debt payoff.

What about mortgage payoff vs investing?

Mortgages at 6-7% APR are also close to expected investment returns, and mortgage interest may be tax-deductible if you itemize (further reducing effective APR). Most financial planners suggest investing for retirement first, paying mortgage on schedule, and considering extra mortgage payments only after maxing tax-advantaged accounts.

My credit card APR is 24% β€” should I invest at all?

If you have credit card debt at 20%+ APR, focus on eliminating it first β€” except: capture employer 401(k) match if available (instant 100% return), and maintain a small emergency fund ($500-$1,000) so emergencies don't force you back into debt. After credit card debt is gone, redirect that payment to investing.

What if I'm not sure what to expect from investments?

A conservative assumption for diversified index funds (e.g., total US stock market or S&P 500) is 6-8% real return long-term, based on historical data. This is not a guarantee β€” actual returns vary. For shorter time horizons (under 5 years), expected returns should be lower because you have less time to recover from down years.

Sources cited: CFPB consumer guidance, Federal Reserve Survey of Consumer Finances, historical S&P 500 returns.

This is a mathematical comparison, not personalized investment advice. We are not investment advisors. For your specific situation, consult a fee-only CFP. See our methodology.

Last reviewed: May 26, 2026