Pay Off Debt or Invest Calculator: Which Should You Do First?
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)
| Debt | Pay debt first | Invest 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.
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.
| Rule of thumb | What it says | For 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).
| Debt | Rate after tax | What to do | Order |
|---|
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 debt | Net 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.
| Market drop | Pay debt first | Invest first | Who 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 rate | Market 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.
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
- 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.
- 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.
- Pay off high-interest debt. Credit cards and personal loans at roughly 10% or more are usually the first target.
- Split between debt and investing for middle-rate debt. For rates around 6% to 8%, many people do both.
- 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 rate | What 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
- Student loans: federal loans offer repayment plans and protections that private loans do not. Interest may be tax-deductible up to a yearly limit if your income is under the IRS thresholds.
- Mortgage: the interest is only deductible if you itemize, and many people take the standard deduction instead, so do not count on the tax break.
- Car loans: rates vary widely. A high-rate car loan deserves attention before low-rate debt.
Run the numbers yourself
- Use the debt payoff calculator to see your debt-free date and total interest with extra payments.
- Use the compound interest calculator to see what the same monthly amount could grow to if invested.
- Use the 401(k) calculator to see what an employer match is worth over time.
Put the two results side by side. If the interest you save is higher than the growth you could expect, pay the debt first.
Try the calculators
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.