Should I pay off debt or invest?
Should I pay off debt or invest?
TL;DR. Compare the after-tax interest rate on your debt against your expected after-tax investment return — if your debt rate exceeds roughly 7%, paying it off first almost always beats the market. Low-rate mortgages under 5% rarely justify accelerated payoff when tax-advantaged investment accounts are available, though the decision also depends on your emergency fund, employer match, and risk tolerance.
The decision framework — after-tax rates tell the truth
The debt-vs-invest question boils down to one comparison: the guaranteed "return" of eliminating your debt interest versus the expected (but uncertain) return of investing. The key is comparing apples to apples by converting both to after-tax rates.
Here is a worked example with 2026 numbers. Suppose you have $30,000 in student loans at 6.5% interest and $500/month of extra cash flow. If you throw that $500 at the loans, you save 6.5% on every dollar — guaranteed, risk-free. Now compare that to investing: the historical S&P 500 returns approximately 10% nominal, but after federal taxes on gains (15-20% long-term capital gains rate for most filers) and state taxes, your after-tax return is closer to 7-8%. That makes it a close call.
Now consider credit card debt at 22% APR. No investment reliably returns 22% after taxes — paying the card first is a no-brainer. On the other hand, a mortgage at 4.5% with itemized deductions might carry an effective after-tax rate of only 3.2% (4.5% x (1 - 0.28) for a filer in the 28% bracket who itemizes). Investing at a 7% expected return while carrying that mortgage puts the spread at nearly 4 percentage points in your favor.
The rule of thumb: debt above 7% after-tax — pay it first. Debt below 4% after-tax — invest first. Between 4-7% — it depends on your risk tolerance, emergency fund, and whether you have an employer 401(k) match on the table (always capture the match first — it is an instant 50-100% return).
Try it with your numbers
What a good debt vs. invest calculator should show
- Side-by-side net worth projection for pay-down-first vs. invest-first over a custom time horizon.
- After-tax interest rate adjustment for deductible debt (mortgage interest, student loan interest).
- Expected investment return with adjustable assumptions for pre-tax and after-tax returns.
- Breakeven interest rate — the debt rate at which paying off and investing produce equal outcomes.
- Employer match capture — showing the cost of skipping a 401(k) match to pay debt instead. AdvisorCal's Debt vs. Invest Calculator handles all of the above. Use it alongside the Savings Growth Calculator to project compounding on the invested amount, or the Retirement Readiness Calculator to check whether debt payoff delays your retirement timeline. For those maximizing contributions, the 401(k) Maximizer shows how to hit the 2026 limit efficiently.
Key facts
- Credit card average APR (2026): approximately 21.5%, per the Federal Reserve's G.19 Consumer Credit report.
- Federal student loan rates (2026): 5.50% for undergraduate Direct Loans, 7.05% for graduate Direct Loans.
- Mortgage interest deduction: available only to taxpayers who itemize; the 2026 standard deduction is $15,000 (single) / $30,000 (married filing jointly).
- Historical S&P 500 return: approximately 10% nominal, 7% real (inflation-adjusted) since 1926.
- Long-term capital gains rate: 0%, 15%, or 20% depending on taxable income — most filers pay 15%.
- Employer 401(k) match: the most common match is 50% of contributions up to 6% of salary — an instant 50% guaranteed return that should always be captured before extra debt payments.
Common follow-ups
Should I pay off my mortgage early or invest in my 401(k)? Almost always invest first — especially if your employer offers a match. A 4.5% mortgage with itemized deductions may carry an effective after-tax rate of 3.2%. Meanwhile, a 401(k) contribution earns an immediate tax deduction (worth 22-37% depending on bracket) and compounds tax-deferred. The math overwhelmingly favors maximizing tax-advantaged accounts before making extra mortgage payments.
What about the debt snowball method — does the math change? The debt snowball (smallest balance first) is a behavioral strategy, not a mathematical optimization. The debt avalanche (highest rate first) saves more in interest. However, if quick wins keep you motivated, the snowball method can work. Neither method changes the core debt-vs-invest comparison — that still depends on your highest debt rate vs. expected investment return.
Is paying off student loans worth it if I expect Public Service Loan Forgiveness? If you qualify for PSLF and are making income-driven payments, accelerating payoff can be counterproductive — you would pay more than necessary on loans that will ultimately be forgiven. In this case, invest the difference. Run the numbers carefully: PSLF requires 120 qualifying payments under an eligible repayment plan while working full-time for a qualifying employer.
Does this analysis change during a market downturn? The expected long-term return does not change based on short-term market conditions — if anything, investing during downturns has historically produced above-average forward returns. However, if a downturn creates income uncertainty, prioritizing debt reduction (especially high-rate debt) provides guaranteed cash-flow relief. The right answer depends on your job security and emergency fund, not on market timing.
When this doesn't apply
The debt-vs-invest framework assumes you have stable income, an adequate emergency fund (3-6 months of expenses), and the discipline to actually invest the money you do not put toward debt. If you lack an emergency fund, building one comes first — neither aggressive debt payoff nor investing helps if an unexpected expense forces you onto a credit card at 22%. The framework also does not apply to debts with non-financial consequences, such as tax liens or debts in collections that threaten wage garnishment. Resolve those first regardless of the interest rate math.
Sources
- Federal Reserve — Consumer Credit G.19 Report
- IRS — Publication 936: Home Mortgage Interest Deduction
- Federal Student Aid — Interest Rates and Fees
- S&P 500 Historical Returns — NYU Stern (Damodaran)
Try AdvisorCal
AdvisorCal's Debt vs. Invest Calculator is one of 42 financial tools available on a single subscription. Full white-label branding, lead capture, branded PDFs, one flat price. Start a 14-day free trial no credit card required.
AdvisorCal provides software tools, not investment, tax, or legal advice. Consult a qualified professional for decisions specific to your client or personal situation.
Try AdvisorCal
42 financial tools built for advisors. 14-day free trial. No credit card required.
Start Free Trial →Cancel anytime.