Founder & Lead Author · WealthCalc
With high-yield savings accounts paying 4.5–5.0% APY and the average credit card rate at 24.6% (Federal Reserve, Q1 2026), the math behind "pay debt or invest" has rarely been clearer. But interest rates alone do not tell the whole story — tax deductibility, employer matches, and psychological factors all shift the answer.
The mathematical framework is simple: if your debt interest rate exceeds your expected after-tax investment return, pay off the debt first. If the investment return exceeds the debt rate, invest. The complexity lies in calculating both sides correctly.
A 7% credit card rate sounds manageable until you realize S&P 500 historical average real returns are approximately 7% annually — but with significant volatility. A guaranteed 7% "return" from debt elimination beats a probable but uncertain 7% from markets.
List every debt with its current interest rate. As of 2026, typical rates look like this:
Before paying off ANY debt except perhaps 0% promotional balances, capture your full employer 401(k) match. A 50% match on 6% of salary is an immediate 50% return on that money — nothing in the debt-or-invest calculation beats a guaranteed 50% return.
Example: If you earn $65,000 and your employer matches 50% up to 6% of salary, contributing 6% costs you $3,900/year but your employer adds $1,950. That is $1,950 in free money with zero risk. Pay only the minimum on all debts until you have claimed every dollar of this match.
After capturing the full employer match, most personal finance researchers recommend this threshold: pay off debt aggressively if the rate exceeds 6–7%, invest if it is below 4–5%, and split the difference for rates in between.
The 6% threshold corresponds roughly to the after-inflation, after-tax expected return of a diversified stock portfolio over long horizons. Debt at above 6% offers a guaranteed "return" (interest saved) that is hard to beat on a risk-adjusted basis.
With HYSAs paying 4.5–5.0% APY in 2026 (up from near zero in 2021–2022), the calculus for low-rate debt has changed. Carrying a 3.5% student loan while parking emergency cash in a 4.8% HYSA actually earns you a positive spread — something that was impossible for most of the past decade.
This means your emergency fund does not compete with debt payoff the way it once did. Build a 3-month emergency fund in a HYSA simultaneously with debt repayment rather than choosing between them.
Mortgage interest is potentially deductible if you itemize deductions. For a taxpayer in the 22% federal bracket paying $18,000/year in mortgage interest on a $320,000 balance at 6.75%, the after-tax cost of the mortgage is approximately 6.75% × (1 − 0.22) = 5.27%.
At 5.27% after-tax mortgage cost, the invest-vs-payoff math becomes closer. Most financial planners recommend investing (especially in tax-advantaged retirement accounts) rather than accelerating mortgage paydown for borrowers below the 32% bracket who still have room in their 401(k)/IRA.
Use our free calculators to apply what you just learned to your own numbers:
Personal-finance researcher & software engineer · WealthCalc
Tahir built WealthCalc to provide free, transparent financial tools grounded in primary government data. Every figure on this site is sourced directly from the IRS, SSA, FHFA, or Federal Reserve. Editorial standards →