How to Choose Between Paying Off Debt and Investing

The standard advice is clear: pay off high-rate debt first, then invest. That’s correct for credit cards. It gets murkier with student loans at 6%, car loans at 8%, and a mortgage at 7%. The rate is one variable.
The Rate Comparison: Where the Math Starts
Every dollar used to pay down debt earns a guaranteed return equal to the debt’s interest rate. Pay off a 21.47% credit card and that’s a guaranteed 21.47% return—no market, no volatility.
The S&P 500 has averaged 10.5% annually since 1957—Macrotrends data. That’s a historical average across decades that includes years of 30% losses. The 21.47% from debt payoff is certain. The 10.5% from investing is not.
Above 10 to 12%, debt payoff wins clearly. Below 4 to 5%, investing wins clearly. The 5 to 8% range is where the decision requires judgment.
The Employer Match: Always First, No Exceptions
Before any debt-vs-investing calculation, the employer 401(k) match comes out of the equation entirely. Vanguard’s How America Saves data puts the average employer match at 4.5% of salary. On a $60,000 salary, that’s $2,700 per year from the employer. Capture it and the contribution doubles on day one. Skip it while paying off a 10% personal loan—and the math doesn’t hold up. No debt rate competes with a 50 to 100% guaranteed return on the first dollar invested.
The sequence is non-negotiable for anyone with an employer match: contribute enough to the 401(k) to trigger the full match before sending extra money to any debt. This applies even to high-rate debt. The match produces a higher guaranteed return than the interest saved on most loans.
The Tax Angle: Investment Returns Aren’t Equivalent to Debt Rates
A 7% mortgage rate doesn’t compare directly to a 7% investment return—because the mortgage interest may be deductible, and the investment return is taxed.
Homeowners who itemize can deduct mortgage interest on loans up to $750,000. At a 22% federal bracket, a 7% mortgage effectively costs 5.46% after the deduction—IRS Publication 936. Most homeowners with standard deductions don’t itemize, so this factor doesn’t apply universally—but for those who do, it shifts the rate comparison meaningfully.
On the investment side, a Roth IRA generates returns that are completely tax-free at withdrawal. A traditional 401(k) defers taxes. A taxable brokerage account pays capital gains tax. Long-term capital gains rates for most filers run 0 to 15%. An 8% pre-tax return in a Roth IRA is worth more than an 8% return in a taxable account, which changes the effective comparison to debt payoff.
The cleaner comparison: debt rate after any tax deduction vs. investment return after any tax owed. For most people, this calculation confirms the simple rate comparison. But the Roth IRA exception is real—tax-free growth at 7 to 10% competes differently than taxable growth at the same rate.
The Psychological Value of Debt Freedom
The math doesn’t capture everything. Carrying debt has a documented stress cost. APA’s Stress in America survey consistently identifies debt as one of the top sources of financial anxiety. For some people, the relief of eliminating a debt balance produces a behavioral dividend—better sleep, reduced anxiety, improved financial decision-making—that the rate comparison doesn’t account for.
If carrying a 6% student loan while investing causes persistent stress and leads to worse decisions, paying it off first may be the smarter move in practice. The best financial plan is the one someone actually follows—not the one that wins on paper.
This isn’t a license to ignore math entirely. It’s an acknowledgment that the “right” answer is the one that results in better long-term behavior—not just the one that wins on a spreadsheet.
Debt by Type: The Practical Breakdown
| Debt type | Rate | Pay off first | Why |
| Credit card | 21.47% average | Yes—always | No investment reliably beats 21% guaranteed |
| Personal loan | 11–15% typical | Yes, before investing above match | Rate exceeds realistic long-term returns |
| Car loan | 7–9% typical | Situational | Close to market returns; match first, then reassess |
| Student loan (federal) | 5–7% current rates | No—invest alongside | Below expected market returns; IDR protects if income drops |
| Mortgage (3–4%) | 3–4% (older loans) | No | Market returns historically exceed low mortgage rates |
| Mortgage (7%+) | 7%+ (recent loans) | Situational | Guaranteed return competes with market at this rate |
Credit card rate from Federal Reserve G.19 consumer credit data. Investment return from Macrotrends S&P 500 historical returns.
The Order That Works for Most Households
Rank every debt by interest rate. Then work through this sequence:
- Employer match first. Regardless of any debt rate, contribute enough to trigger the full match. The guaranteed return is unbeatable.
- High-rate debt next. Any debt above 8 to 10% gets paid aggressively before money goes anywhere else except the employer match.
- Emergency fund to $1,000. A small buffer prevents the next surprise from landing on the credit card and erasing the progress.
- Roth IRA up to the limit. $7,000 in 2024. Tax-free growth from this account competes favorably with mid-range debt rates. Fund it before paying down debt below 8%.
- Mid-rate debt or additional 401(k). Debt in the 5 to 8% range is genuinely close. Either choice is defensible. Lean toward the higher-rate debt or the 401(k) based on the tax analysis above.
- Low-rate debt last. Mortgages below 5%, subsidized student loans, and other low-rate debt sit at the bottom of the priority stack. Invest alongside these rather than directing extra cash to them.
When the Answer Changes
Three situations shift the calculation from the default sequence:
- Job insecurity. Unstable income changes the math. Debt payments are fixed; investment returns aren’t—and Federal Reserve data shows households with lower debt carry income disruptions better. When a job loss is a real possibility, eliminating debt reduces the minimum monthly obligation that has to be covered.
- Near retirement. A 58-year-old and a 32-year-old with identical debt face different calculations. The 32-year-old has 30 years of compounding ahead; the 58-year-old has 7 to 9. The same rate comparison points to different answers at different points in a career.
- Student loan forgiveness eligibility. Borrowers pursuing PSLF or income-driven forgiveness shouldn’t pay off federal loans aggressively. Doing so eliminates the balance that forgiveness would have canceled. The correct approach is minimum payments on federal loans while directing everything else to investments.
Bottom Line
Employer match first—always. High-rate debt above 8 to 10% gets paid before investing beyond the match; below 4 to 5%, investing wins. The 5 to 8% range is close enough that tax treatment, job stability, and personal comfort all legitimately tip the decision either way.
Disclaimer
This article is for informational purposes only and does not constitute financial advice. Individual circumstances vary. Consult a licensed financial advisor before making debt payoff or investment decisions.