Compare the interest rate on the debt with what the money might earn if invested. Paying off a debt earns you its interest rate, guaranteed. An investment’s return is not guaranteed and can be negative. A common order: take any employer 401(k) match, build some emergency savings, then weigh the rest by rate, taxes and risk.

Run your numbers in the credit card payoff calculator for card debt, or the mortgage extra payment calculator if the question is your mortgage. Both show how much interest an extra payment saves.

The rate comparison

Every dollar you put toward a debt stops that dollar from being charged interest. So an extra payment on a 22.99% card works like a return of 22.99% a year, with no market risk.

A $6,000 card balance at 22.99% shows the scale. At $200 a month it takes 3 years, 10 months and costs $3,011.81 in interest. At $400 a month it takes 1 year, 6 months and costs $1,141.68. The difference is money you keep without taking any investment risk.

The SEC’s investor education site, Investor.gov, puts it directly: no investment strategy pays off as well as, or with less risk than, eliminating high-interest debt. It advises paying off credit card balances before investing.

Investing is a different kind of bet. Investor.gov’s stock FAQs say there’s no guarantee a company you own will do well and that you can lose money you invest in stocks. So when you compare a debt’s rate with an investment, you’re comparing a certain number with an uncertain one. This page doesn’t predict returns, and you should be wary of anyone who promises them.

For a debt with a low rate, the comparison is closer. That’s where the next three factors decide it.

Emergency savings first

If every spare dollar goes to debt, the next car repair goes on a card and the balance climbs again. Investor.gov suggests starting an emergency fund in a savings account and depositing into it automatically each pay period, so an unexpected expense doesn’t become new debt.

How much to keep is a personal choice. Ramsey’s plan uses a $1,000 starter fund before paying off debt. Others keep more. The trade is simple: cash in savings earns less than your card charges, but it keeps a surprise from undoing your progress.

Take the employer 401(k) match

Some employers match part of what you put into a 401(k). Investor.gov’s example: if your employer puts in 50 cents for every dollar you save, that’s an immediate 50% return, which no other investment is likely to guarantee.

A match that size is larger than a year of interest on almost any credit card balance, which is why taking the full match often comes before extra debt payments. Contributing beyond the match is where the rate comparison applies again.

Going the other way, pulling money out of a 401(k) to pay debt has a cost. The IRS charges a 10% additional tax on most early distributions from qualified plans before age 59½, on top of regular income tax on the amount. Exceptions exist, so check IRS Topic 558 before you withdraw.

Taxes change the real rate

Some interest is tax-deductible, which lowers its real cost. Some isn’t.

  • Credit card interest: not deductible. The IRS lists credit card and installment interest for personal expenses as nondeductible personal interest. The rate on your statement is the real rate.
  • Student loan interest: you can deduct the lesser of $2,500 or the interest you paid, without itemizing. The deduction phases out at higher incomes.
  • Mortgage interest: deductible only if you itemize, and only up to a debt limit ($750,000 for mortgages taken out after December 15, 2017, or $375,000 if married filing separately). If you take the standard deduction, your mortgage interest isn’t lowering your taxes.
  • Car loan interest: for tax years 2025 through 2028, up to $10,000 a year of interest on a qualifying loan for a new vehicle may be deductible, subject to income limits. The loan must be taken out after 2024 and secured by the vehicle, and final assembly must be in the United States.

A deduction only helps if you actually claim it, and it reduces the cost by your tax rate, not all of it. Check the IRS topic pages above or a tax professional for your situation.

Paying off your mortgage early vs investing

A mortgage is usually a large balance, and its rate may be far below what your cards charge. When the rate is low, the comparison with investing gets close.

On a $300,000, 30-year mortgage at 6.5%, paying $200 a month extra saves $103,450.19 in interest and ends the loan 6 years, 11 months early. That saving is certain. An investment of the same $200 a month might return more or less, with no guarantee.

Other points to weigh:

  • Access: money paid into a mortgage becomes home equity. You can only get it back by selling or borrowing against the home. An investment account or savings account is easier to reach in an emergency.
  • Taxes: if you itemize and deduct mortgage interest, your real rate is lower than the note rate.
  • Other debts: paying a low-rate mortgage early while carrying a high-rate card costs you money every month.

The how to pay off your mortgage in 5 years guide covers aggressive payoff plans in detail.

You don’t have to pick one

You can split the extra money: some to debt, some to savings or investing. For example, you could clear high-rate cards first, then split between a low-rate loan and retirement savings. Build the debt side in the debt payoff calculator to see what each dollar amount does to your payoff date.

FAQ

Should I pay off debt or invest?

Compare the debt’s interest rate, after any tax deduction, with a return that isn’t guaranteed. High-rate credit card debt is hard for any investment to beat, and Investor.gov advises paying it off before investing. For low-rate debt the answer is closer. Take any employer 401(k) match and keep some emergency savings first.

Should I pay off my mortgage or invest?

It depends on your rate, whether you itemize, your other debts and how much risk you accept. Extra mortgage payments save a guaranteed amount of interest but tie money up in home equity. Investments may earn more or less, with no guarantee. Clear high-rate debt before either one.

Should I stop 401(k) contributions to pay off debt?

Stopping contributions below the employer match gives up matching money, which Investor.gov describes as an immediate return no other investment is likely to guarantee. Contributions beyond the match are a closer call. Cashing out a 401(k) early usually means a 10% additional tax plus income tax.

Should I pay off debt or build an emergency fund first?

A common approach is a bit of both. Without some savings, a surprise bill goes back on a card and undoes your progress. Ramsey’s plan uses a $1,000 starter fund before tackling debt. Others save more. Decide on an amount, build it, then send extra money to your debts.

Is it ever smart to invest while carrying credit card debt?

Contributing enough to get an employer 401(k) match usually is, because the match is an immediate return. Beyond that, investing while carrying a card balance means betting that an uncertain return will beat a certain one charged at your card’s APR. Investor.gov advises paying off credit card debt before investing.