Pay Off Debt or Invest Calculator: Which Should You Do First?

By MoneyMeter · Updated November 15, 2026

The simplest rule: compare the interest rate on your debt with what you can reasonably expect to earn by investing. Paying off a debt is a guaranteed return equal to its interest rate. If a credit card charges 22%, paying it off beats almost any investment. If your loan costs 4%, investing may come out ahead. Here is a clear order of steps to follow.

Pay off debt or invest calculator

Enter one debt and the extra money you have each month. The calculator compares putting it all toward the debt first (then investing) with paying only the minimum and investing the extra.

Estimate only, before taxes. Returns are not guaranteed. Once the debt is gone, the full payment is invested.

Calculator examples ($300 extra a month, 7% return, 10 years)

DebtPay debt firstInvest first
$10,000 credit card at 22%$71,452$64,811
$20,000 car loan at 6%$80,789$81,100
$30,000 student loan at 4%$88,885$90,242

Net worth after 10 years. At 22% paying the debt first wins by a wide margin; at 4% investing comes out ahead, if the market delivers the expected return.

Go deeper: your break-even return, taxes, employer match and a priority list

The calculator above uses the numbers you type in the first box (balance, rate, payments, return, years). This second part adds what most pay-off-debt-or-invest calculators leave out: taxes, the employer match, a risk check and your personal order of priorities.

The match is taken first from your extra money, because it is free money. Taxes on gains are estimated at 15% of the return each year.

Break-even investment return

Net worth means investments minus the debt left. Pay debt first puts all extra money on the debt, then invests the freed-up payment. Invest first pays only the minimum.

Your order of priorities

    An estimate for planning, not advice. Investment returns are not guaranteed and tax rules vary. A tax professional can look at your whole situation.

    More tools: your debts, a market crash, a windfall and more

    These tools use the numbers you entered above (balance, rate, extra money, return, years, taxes and match). Jump to: verdict · several debts · split · crash test · winner map · one-time money.

    Your verdict, side by side with the rules of thumb

    This compares your after-tax debt rate with your after-tax investment return, then shows what three well-known rules of thumb would say about the same debt.

    Verdict
    After-tax rate on your debt
    After-tax return you expect
    Gap (debt rate minus return)

    Rule of thumbWhat it saysFor your debt

    Several debts: which to pay off, which to keep

    Enter up to four debts. Each one is compared with the return you expect after tax. Debts that cost more than that return are paid off first, highest rate first, using your extra money. Leave a balance at 0 to skip a row.

    #Balance ($)Rate (%)Min. ($/mo)Deductible?
    1
    2
    3
    4

    Deductible interest is lowered by your tax bracket from the box above (for example some student loan or mortgage interest).

    Debts to pay off first
    Time to clear them
    Interest you will pay on them
    Then free up per month to invest

    DebtRate after taxWhat to doOrder

    What if you split your extra money?

    Many people split the extra between debt and investing to avoid regret. This shows what each split would be worth after your comparison period, and what happens if the market earns only half of what you expect.

    Share of extra money to debtNet worth (your return)Net worth (market earns half)Debt-free in

    What if the market crashes?

    Investing first only wins if the market cooperates. Pick a year and a drop to see how a crash changes the result. After the drop your investments keep earning your expected return.

    Debt first versus invest first

    Market dropPay debt firstInvest firstWho wins

    Winner map: your debt rate against the market return

    Each cell shows which choice finishes ahead and by how much, using your balance, extra money and years from above. Read across for different market returns and down for different debt rates.

    Debt rateMarket 0%4%6%8%10%12%

    Green: paying the debt first wins. Blue: investing first wins. If your minimum payment does not cover the interest, it is raised so the debt can be paid off.

    One-time money: tax refund, bonus or gift

    If you get a lump sum once, should it go on the debt or into investments? This assumes you pay only your minimum from now on, so the lump sum is the only decision.

    Better use of the lump sum
    Net worth if used on the debt
    Net worth if invested
    Interest saved by paying the debt
    Return needed for investing to win

    Sources: Fidelity, "Pay down debt vs. invest"; Experian, "Should I pay off debt before I invest?"; Wealthfront, "Should you pay off debt or invest?". These tools are simple estimates with fixed returns. Real markets are not smooth and returns are not guaranteed.

    Why paying off debt is like earning a return

    Every dollar you put toward a debt saves you the interest you would have paid on it. Pay off $10,000 at 22% and you save about $2,200 in interest over a year. Invest the same $10,000 at a 7% return and you would expect about $700 in a year, and that return is not guaranteed. Over ten years the gap is large: a $10,000 investment at 7% grows to about $19,700, while a $10,000 balance left unpaid at 22% could grow to more than $70,000 in ten years.

    The key difference is certainty. Debt interest is guaranteed. Investment returns can be higher or lower, and in some years negative.

    A simple order of priorities

    1. Build a small emergency buffer. Even $1,000 to $2,000 keeps a surprise bill from going on a credit card. Build it up to 3 to 6 months of expenses over time.
    2. Get the full employer 401(k) match. A match, such as 50 cents for every dollar up to a limit, is an instant return that beats paying down most debt. Check your plan details.
    3. Pay off high-interest debt. Credit cards and personal loans at roughly 10% or more are usually the first target.
    4. Split between debt and investing for middle-rate debt. For rates around 6% to 8%, many people do both.
    5. Invest for the long term when debt is cheap. If your debt is at about 4% or lower (some mortgages and student loans), paying the minimum and investing more can make sense.

    Using rates to decide

    Your debt rateWhat many people do
    Above 10% (credit cards, some personal loans)Pay it off first, after the 401(k) match
    6% to 10%Split extra money between debt and investing
    Below about 5%Pay the minimum and invest, if you are comfortable with market ups and downs

    These are rules of thumb, not advice for your situation. Long-run stock market returns have averaged roughly 7% to 10% a year before inflation, but that is an average over many years, not a promise, and some years are much worse.

    Do not forget how you feel about debt

    The math is only part of the story. Some people sleep better with no debt, and that peace of mind has real value. Others are happy to hold a low-rate loan while they invest. If paying off a small balance quickly will keep you motivated, that is a valid reason to pick the smaller debt first, even if it is not the cheapest order. Our guide on paying off credit card debt fast compares the two main methods.

    A worked example: $500 a month

    Suppose you owe $10,000 on a card at 22% and have $500 a month to spare. Paying $500 a month clears the debt in about 25 months and costs about $2,571 in interest. If you instead invested that $500 a month at 7% for the same 25 months, you would have about $13,500, but you would still owe the $10,000 card balance, which keeps growing at 22%. Paying the card first leaves you far better off. Once the card is paid off, put the same $500 a month toward investing. You can test your own balances with the credit card payoff calculator.

    The employer match in numbers

    Say you earn $60,000 and your employer matches 50% of your contributions up to 6% of pay. If you contribute 6% ($3,600), the employer adds $1,800 a year. That is an instant 50% return before any investment growth, which beats paying extra on almost any debt. Not contributing enough to get the full match means giving up part of your pay.

    Special cases

    Run the numbers yourself

    Put the two results side by side. If the interest you save is higher than the growth you could expect, pay the debt first.

    Frequently asked questions

    What return do I need for investing to beat paying off debt?

    It depends on your rates, taxes and how long you compare. The break-even tool above finds the investment return where investing first and paying the debt first finish with the same net worth. For example, with $10,000 of debt at 22% and $300 extra a month over 10 years, investing first would need a return far above what the stock market has delivered on average.

    Should I get my 401(k) match before paying off debt?

    Usually yes. A match is an immediate return on your contribution, often 50% to 100%, which no debt payoff can beat. Put in enough to get the full match, then send extra money to high-interest debt. Enter your match in the tool above to see how it changes the result.

    Does it matter if the interest on my debt is tax-deductible?

    Yes. If you can deduct the interest, the real cost of the debt is lower. At a 22% tax bracket, a 6% deductible loan costs about 4.7% after tax. Student loan interest is deductible up to a limit if your income is below the phase-out, and mortgage interest only helps if you itemize. Use the tax setting in the tool above.

    How much emergency fund should I have before paying extra on debt?

    A common rule is at least one month of living costs first, then build to 3 to 6 months. Without cash on hand, one surprise bill can push you back onto a credit card. The priority list above checks your numbers.

    Should I pay off my mortgage early or invest?

    If your mortgage rate is low, many people invest instead, but paying it off gives a guaranteed return equal to the rate and removes a big monthly payment. It depends on your rate, your risk comfort and your other goals.

    Is it ever okay to invest while I have credit card debt?

    Usually only to capture an employer 401(k) match. After that, high-interest card debt is normally the better use of money.

    What about student loans?

    Check the rate. Federal loans can have protections and special repayment options, so consider those before paying them off aggressively.

    This guide is for general information. Figures use 2026 US federal rules and the assumptions stated above, and are estimates, not financial, tax or legal advice. Check IRS.gov or a qualified professional for your situation.

    Which debt should I pay off first if I have several?

    Compare each debt's rate, after tax, with the return you expect from investing. Debts that cost more than that return are paid off first, starting with the highest rate. Debts that cost less can be paid at the minimum while you invest. The several-debts tool above does this for up to four debts.

    What if the market crashes after I invest instead of paying debt?

    A crash shrinks the investments you chose over paying debt, but the debt and its interest stay the same. The crash test above shows how a drop of 20% to 50% in a year you choose changes the result. The more of your extra money you put on the debt, the less a crash matters.

    Is it better to split extra money between debt and investing?

    A split gives up some money compared with the best choice at your expected return, but it reduces regret if the market does badly. The split table above shows how much each split is worth, including when the market earns only half of what you expect.

    Should a tax refund or bonus go on debt or into investments?

    Use the one-time money tool above. Enter the amount and it compares using it on the debt with investing it, and gives the market return at which investing would win. High-rate debt almost always wins for a lump sum.

    What is the rule of 6% for debt and investing?

    Fidelity's rule of thumb says that if your debt costs 6% or more, pay it down before investing extra money. It assumes at least 10 years of investing, a balanced portfolio, a tax-advantaged account and interest that is not tax-deductible. Other sources use different cutoffs, so the verdict tool above shows several side by side.

    Does it matter if I pay the minimum on my other debts?

    Yes. Always make the minimum payment on every debt, because missed payments cost fees and hurt your credit. Extra money is what you choose to send to the debt or to investments.

    More guides

    Home & Loans

    How to Pay Off Credit Card Debt Fast: Snowball vs Avalanche

    Compare the debt snowball and debt avalanche methods with a real example of four cards, months to payoff and interest...

    Savings & Investing

    How Compound Interest Works (With Real Examples)

    Compound interest means earning interest on your interest. See the formula, the Rule of 72 and examples showing why...

    Retirement

    401(k) vs Roth IRA: Which Should You Choose?

    Compare a 401(k) and a Roth IRA: tax treatment, contribution limits, employer match and a simple order for where to...