Reviewed by CC Payoff Calc Editorial Team against primary government sources · Updated 2026-05-13

Should I Pay Off Debt Before Investing? (2026 Math Guide)

Pay off debt before investing when the debt's interest rate exceeds the expected after-tax return on investment.

Cards covered 113
States modeled 51
Avg APR sourced 22.30%
Last verified 2026-05-13

Try the calculator

Advanced settings
Monthly budget toward debt
$

Default = sum of minimum payments + $50. Total balance: $5,000. Minimum payments this month: $100.

Your debt-free date

March 1, 202826 months from now

Strategy comparison

Save up to $1,295 · 5 mo difference
Your strategy total$6,31026 months to debt-free
Total interest$1,310over the payoff timeline
Cheapest alternative$5,014Balance transfer · save $1,295
Comparison of all four payoff strategies for your card stack
StrategyMonthsInterestFeesTotal cost
AvalancheYours26$1,310-$6,310
Snowball26$1,310-$6,310
Balance transferCheapest21$14-$5,014
Hybrid26$1,310-$6,310
Show month-by-month timeline (first 24 months)
M1$4,843+$93 int
M2$4,683+$90 int
M3$4,520+$87 int
M4$4,354+$84 int
M5$4,185+$81 int
M6$4,013+$78 int
M7$3,837+$75 int
M8$3,658+$71 int
M9$3,476+$68 int
M10$3,291+$65 int
M11$3,102+$61 int
M12$2,910+$58 int
M13$2,714+$54 int
M14$2,514+$50 int
M15$2,311+$47 int
M16$2,104+$43 int
M17$1,893+$39 int
M18$1,678+$35 int
M19$1,460+$31 int
M20$1,237+$27 int
M21$1,010+$23 int
M22$778+$19 int
M23$543+$14 int
M24$303+$10 int

Behavior-aware Payoff Coach

Turn the math into 3-5 actions you can take this week.

Not financial advice. Calculations are estimates based on the inputs you provide. Consult a non-profit credit counselor (NFCC member) or licensed financial advisor before making major debt-management decisions.

Should I Pay Off Debt Before Investing?

Reviewed by CC Payoff Calc Editorial Team. Last verified May 13, 2026.

Pay off debt before investing when the debt’s after-tax interest rate exceeds the expected after-tax return on investment. For credit card debt at 22 to 29 percent APR, the answer is yes in essentially every scenario: the S&P 500’s long-term average return of roughly 10 percent (with significant year-to-year variance) cannot beat a guaranteed 24 percent return from paying down credit card balances. The single exception is capturing the full employer 401(k) match, which is an immediate 50 to 100 percent return on matched contributions and beats any credit card APR. After the match is captured, prioritize debt with after-tax interest rate above 8 percent before taxable investing. For lower-rate debt (5 to 7 percent mortgages, sub-5 percent student loans), the math gets closer and investing typically wins on expected value but not on certainty. Here is the math by debt type.

Plan

The decision rule: compare after-tax interest rate to expected after-tax return

Paying down debt is mathematically equivalent to earning the debt’s interest rate, guaranteed, risk-free. A 24% APR credit card paid down produces 24% per year. A 7% mortgage paid down produces 7% (or roughly 5.3% after-tax for itemizers in the 24% bracket).

Investing produces an EXPECTED return based on historical averages, but with variance. The S&P 500 over 30-year rolling windows has averaged roughly 10% annualized per Federal Reserve research and major-index historical data. Bonds have averaged 4 to 6%. Cash and Treasuries 2 to 4%. These are expected values, not guarantees.

The decision rule:

  • After-tax debt interest rate > expected after-tax investment return: pay debt first.
  • After-tax debt interest rate < expected after-tax investment return: invest, but consider risk tolerance.
  • After-tax debt interest rate ≈ expected return: preference for certainty (debt payoff) vs growth (investing) is the deciding factor.

The hierarchy by debt type

Debt typeTypical APRAfter-tax APR (24% bracket)Pay first vs S&P 500 expected 10%?
Payday loan200% to 400%200% to 400%Always pay first
Credit card19% to 29%19% to 29% (no deduction)Always pay first
Sub-prime personal loan18% to 36%18% to 36%Always pay first
Auto loan6% to 9%6% to 9%Marginal; usually pay
Prime personal loan8% to 13%8% to 13%Marginal; usually pay
HELOC (post-2017 not deductible if not for home)8% to 11%8% to 11%Marginal; usually pay
Federal grad student loan8.08%6.14% if deductibleMarginal; investing often wins
Mortgage (current rates)6.5% to 7.5%4.94% to 5.7%Investing usually wins
Federal undergrad student loan6.53%4.96% if deductibleInvesting usually wins
Federal student loan (older fixed)3.4% to 5.05%2.58% to 3.84%Investing wins on expected value

The crossover happens around 7 to 8 percent after-tax. Above that, debt payoff wins on expected value AND certainty. Below it, investing typically wins on expected value but loses on certainty.

The employer 401(k) match: the ONE exception to “debt first”

A typical employer match is 50% to 100% on the first 3% to 6% of salary, sometimes higher. The match represents an immediate, guaranteed return on the contributed dollars equal to the match percentage:

  • 50% match on $200/month contribution = $100/month free = 50% immediate return.
  • 100% match on $500/month contribution = $500/month free = 100% immediate return.

These returns dwarf every realistic debt’s interest rate. A 100% immediate return on $500 contributed is $500 of free money, which exceeds the 24% APR interest cost on roughly $26,000 of credit card debt for that month.

The mechanics: contribute the minimum percentage needed to get the full match (no more, no less). Direct all additional disposable income toward debt payoff. After all high-rate debt is gone, increase 401(k) and IRA contributions toward the IRS contribution limits (2025 limits per IRS Notice 2024-80: $23,500 to a 401(k), $7,000 to an IRA).

The Department of Labor’s plan disclosures document typical match structures.

Why the variance of stock returns matters

The 10% S&P 500 average is over rolling 30-year windows. The actual annual return is far more variable:

  • 2008: down 37%
  • 2018: down 4%
  • 2022: down 18%
  • 2019: up 31%
  • 2021: up 27%
  • 2023: up 24%

Per Federal Reserve and SEC data, the worst 10-year rolling S&P 500 return is roughly -3% annualized (2000-2009). The best is roughly 19% annualized. Carrying credit card debt at 24% through any of those scenarios is mathematically worse than paying the debt off.

Calculator

Worked example: $25,000 to allocate

Use the pillar credit card payoff calculator to model your specific situation. The reference scenario isolates the invest-vs-pay decision.

Borrower profile:

  • $12,000 credit card debt at 24.5% APR ($300/month minimums).
  • $18,000 federal student loan at 6.53% APR ($210/month, 8 years left).
  • Employer 401(k) with 100% match on first 6% of $80,000 salary = $4,800/year potential match.
  • $25,000 sitting in a money market account earning 4.5%.
  • Currently contributing 3% to 401(k) (capturing only half the match).

Option A: Invest the $25,000 in S&P 500 index fund. Expected 30-year value at 10% annualized: roughly $436,000. Foregone: $4,800/year of unclaimed 401(k) match for years until match is captured ($24,000 over 5 years) PLUS continued credit card interest of $2,940/year (~$15,000 over 5 years).

Option B: Pay off $12,000 credit card balance with $12,000. Bump 401(k) contribution from 3% to 6% (capturing full $4,800 match). Invest remaining $13,000. Saves $2,940/year in credit card interest ($15,000 over 5 years). Captures $4,800/year match ($24,000 over 5 years). $13,000 invested at 10% expected return: $339,000 over 30 years.

Comparison after 5 years:

  • Option A: $25,000 grew to ~$40,250 (10% annual). Credit card balance approximately $7,500 still outstanding (after 5 years of $300/month minimums on 24% APR card). Net worth from this $25,000 decision: $32,750.
  • Option B: $12,000 of debt eliminated. $4,800/year match captured ($24,000 of free money). $13,000 invested grew to ~$20,930. Net worth from this $25,000 decision: $44,930.

Option B beats Option A by $12,180 over just 5 years with full risk-free certainty on the debt-payoff portion. Over 30 years, the gap compounds further as the 401(k) match captured early grows tax-deferred.

Where the answer flips: low-rate debt

Scenario: $30,000 in 4.0% APR federal student loans, $30,000 to allocate.

Path A: Pay off the student loans. Saves $1,200/year in interest. Foregone: 30 years of stock market growth on $30,000. Expected foregone: $30,000 × (1.10^30 - 1) = $493,000.

Path B: Invest $30,000 in S&P 500 index fund, pay student loans on schedule. Expected 30-year value: $523,000. Pays $14,400 in student loan interest over 30 years.

Net: Path B beats Path A by roughly $478,000 on expected value, but with stock-market variance risk.

Below roughly 5% after-tax interest rate, the math typically favors investing. The Bogleheads investment philosophy and most major fee-only advisors endorse “invest while paying low-rate debt on schedule, prioritize payoff for anything above 7%.”

The hybrid: split allocation

Many advisors recommend splitting allocations rather than binary all-or-nothing decisions. For the borrower with mixed debt:

  1. Contribute enough to 401(k) to capture full employer match.
  2. Apply all remaining disposable income to debt above 8% after-tax.
  3. Once debt above 8% is gone, split surplus between additional 401(k) contributions (toward annual limit), Roth IRA (toward limit), and accelerated payoff of remaining debt.
  4. After all debt above 5% is gone, prioritize tax-advantaged investing over remaining debt payoff.

Strategies

Decision tree

  1. Do you have an employer 401(k) match available? Yes → contribute at least up to the match. No → continue.
  2. Do you have credit card debt or any debt above 15% APR? Yes → pay this off before any taxable investing (after match is captured). No → continue.
  3. Do you have an emergency fund of at least 1 month of essential expenses? No → save $1,000 starter fund first (this is itself a kind of debt avoidance, see should I pay off debt before saving). Yes → continue.
  4. Do you have debt between 8% and 15% APR (personal loans, sub-prime auto)? Yes → pay this off before taxable investing. Capture tax-advantaged matched contributions only. No → continue.
  5. Do you have debt between 5% and 8% APR (some mortgages, some student loans, prime auto)? This is the gray zone. Consider risk tolerance. A balanced approach: increase 401(k)/IRA contributions while paying these on schedule. No → continue.
  6. Do you have debt under 5% APR (older mortgages, older federal student loans)? Pay these on schedule. Direct surplus to tax-advantaged investing first, then taxable.

The “but the stock market returns 10%” trap

A persistent argument: “If the market returns 10% on average and my credit card is 24%, I am only losing 14 points by investing instead of paying.”

The argument is wrong in two ways:

  1. The 24% is guaranteed; the 10% is not. In any given year, the market can be down 30%. Credit card interest accrues regardless. Comparing a guaranteed cost to an expected return is not apples-to-apples.

  2. The 10% does not account for tax drag. Taxable investing produces capital gains and dividends that are taxed annually (qualified dividends and long-term gains at 15% to 20%, short-term and non-qualified at marginal income rate). The after-tax expected return drops to 7.5% to 8.5% for most investors. After-tax credit card interest is 24% (no tax benefit on interest paid). The gap is 16+ percentage points.

The right framing: paying credit card debt is buying a 24%-yielding bond. There is no taxable investment that comes close to that risk-adjusted return.

When you have already invested and now want to pay debt

Some borrowers have taxable investment accounts AND high-rate debt. Should they sell investments to pay the debt?

The analysis:

  • Long-term capital gains tax (15% to 20%): Selling $10,000 of investments to pay credit card debt may trigger $1,500 to $2,000 in tax. The credit card saved $2,400/year in interest. Breaks even in 8 to 12 months.
  • Short-term capital gains tax (marginal rate, 22% to 35%): Selling $10,000 may trigger $2,200 to $3,500 in tax. Breaks even in 11 to 18 months.
  • Tax-loss harvesting: If the investments are at a loss, selling produces a deduction up to $3,000/year against ordinary income (per IRS rules). The tax benefit makes the trade more favorable.

In most cases, selling taxable investments to pay 22% to 29% APR credit card debt is the right move, even with the tax friction. NEVER sell tax-advantaged retirement accounts (10% penalty + ordinary income tax on Traditional accounts) to pay credit card debt; the penalty plus tax often exceeds the interest saved.

The behavioral angle

Mathematical optimization assumes the investor sticks to the plan. The reality: paying off debt provides a psychological boost and removes a recurring stressor; investing while in high-rate debt often produces anxiety and second-guessing during market downturns. The Northwestern Kellogg School research on debt motivation suggests debt-free borrowers also save more aggressively after the debt is gone, partially offsetting the foregone-investment-growth concern.

Resources

Authoritative sources

Sibling questions

FAQ

Frequently asked questions

Should I pay off debt or invest in stocks?

Pay off debt with an after-tax interest rate above 8 percent before investing in stocks. The S&P 500 historical average return is roughly 10 percent annualized over 30-year periods, but with significant year-to-year variance. Credit card debt at 22 to 29 percent APR has a guaranteed return equal to its APR; paying it off beats average stock market returns by 12 to 19 percentage points with zero risk.

Should I invest in my 401(k) or pay off debt first?

Always contribute enough to capture the full employer 401(k) match before paying down debt. A typical 100% match on the first 3% to 6% of salary is an immediate 100% return on those dollars, which beats any debt’s interest rate. After the match is captured, prioritize debt with after-tax interest rate above 8 percent. Resume taxable investing only after high-rate debt is gone.

What is the guaranteed return on paying off debt?

Equal to the debt’s after-tax interest rate. Paying down a 24% APR credit card produces a guaranteed 24% return, risk-free. Paying down a 7% mortgage when itemizing produces an after-tax return of roughly 5.3% (7% × (1 - 24% marginal tax rate)). Paying down student loan debt produces an after-tax return roughly equal to the interest rate minus any tax deduction. The guaranteed nature is the key advantage versus market investments.

What about the opportunity cost of not investing while paying off debt?

Opportunity cost exists but is asymmetric. Missing 5 years of stock market growth on $20,000 (at 10% annualized average) costs roughly $12,200 in foregone gains, BUT this assumes the market actually delivers the average. Paying $20,000 of 24% APR credit card debt saves a guaranteed $4,800/year in interest, $24,000+ over the same period. The debt payoff wins in nearly every realistic market scenario.

Is it ever worth investing while still in credit card debt?

Only one exception: capturing the full employer 401(k) match. A 50% to 100% instant return on matched contributions beats any credit card APR. Beyond the match, taxable investing while carrying credit card debt is mathematically a losing strategy in nearly every market scenario. The historical S&P 500 best 10-year window returned 19% annualized; credit cards at 22 to 29 percent still beat that. Pay the cards first, then invest aggressively.

How this fits with the four strategies

The card-stack calculator above models avalanche, snowball, balance transfer, and hybrid strategies in parallel. Switch the strategy pill to see how the numbers move for your specific input.

Related calculators

Quick answers

Should I pay off debt or invest in stocks?

Pay off debt with an after-tax interest rate above 8 percent before investing in stocks. The S&P 500 historical average return is roughly 10 percent annualized over 30-year periods, but with significant year-to-year variance. Credit card debt at 22 to 29 percent APR has a guaranteed return equal to its APR; paying it off beats average stock market returns by 12 to 19 percentage points with zero risk.

Should I invest in my 401(k) or pay off debt first?

Always contribute enough to capture the full employer 401(k) match before paying down debt. A typical 100% match on the first 3% to 6% of salary is an immediate 100% return on those dollars, which beats any debt's interest rate. After the match is captured, prioritize debt with after-tax interest rate above 8 percent. Resume taxable investing only after high-rate debt is gone.

What is the guaranteed return on paying off debt?

Equal to the debt's after-tax interest rate. Paying down a 24% APR credit card produces a guaranteed 24% return, risk-free. Paying down a 7% mortgage when itemizing produces an after-tax return of roughly 5.3% (7% × (1 - 24% marginal tax rate)). Paying down student loan debt produces an after-tax return roughly equal to the interest rate minus any tax deduction. The guaranteed nature is the key advantage versus market investments.

What about the opportunity cost of not investing while paying off debt?

Opportunity cost exists but is asymmetric. Missing 5 years of stock market growth on $20,000 (at 10% annualized average) costs roughly $12,200 in foregone gains, BUT this assumes the market actually delivers the average. Paying $20,000 of 24% APR credit card debt saves a guaranteed $4,800/year in interest, $24,000+ over the same period. The debt payoff wins in nearly every realistic market scenario.

Is it ever worth investing while still in credit card debt?

Only one exception: capturing the full employer 401(k) match. A 50% to 100% instant return on matched contributions beats any credit card APR. Beyond the match, taxable investing while carrying credit card debt is mathematically a losing strategy in nearly every market scenario. The historical S&P 500 best 10-year window returned 19% annualized; credit cards at 22 to 29 percent still beat that. Pay the cards first, then invest aggressively.