Home › Calculators › Pay Off Debt or Invest Calculator

Pay Off Debt or Invest Calculator

Have some extra money each month? Compare putting it toward a loan with investing it instead. Both plans spend exactly the same amount each month, and the calculator tracks the debt, the investments and taxes to show which leaves you with the higher net worth, plus the investment return you would need to beat paying off the debt.

Last updated:

Your debt
$
%
$
$

The amount you could either pay toward the debt or invest.

Investing
% / yr

After fund fees. Not guaranteed.

%

Use 0 for a Roth IRA or other tax-free account.

years
%
$

US student loan interest deduction cap is $2,500 (income limits apply). Leave blank for no limit.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Pay Off Debt or Invest Calculator

  1. Enter the debt: balance, interest rate and the required monthly payment.
  2. Enter the extra money you have each month to either pay down the debt or invest.
  3. Set the expected return, the tax on gains and how many years to compare.
  4. Tick deductible interest if it applies, such as US student loan interest.
  5. Press Compare plans and check the break-even return and the table at other returns.

How the comparison works

Both plans spend the same monthly budget: required payment + extra money. Each month, interest is added to the debt at APR ÷ 12 and investments grow at (1 + return)1/12 − 1.

  • Plan A, pay off first: the whole budget goes to the debt. After the payoff month, the whole budget is invested.
  • Plan B, invest the extra: the required payment goes to the debt and the extra is invested. After the debt is paid off on schedule, the whole budget is invested.

Net worth = investments − tax on gains − remaining debt

Prepaying a loan earns a guaranteed return equal to its interest rate (or the rate × (1 − tax rate) when the interest is deductible). Investing must beat that rate after taxes and fees to come out ahead, and it carries market risk.

Rules of thumb by interest rate

Debt rateTypical examplesCommon approach
Above about 8%Credit cards, personal loans, some private student loansPay off first; few investments reliably beat it
About 4–8%Car loans, many student loansClose call: split the extra, or prioritize by risk comfort
Below about 4%Older low-rate loansInvesting often wins over long periods, with market risk
Any rateEmployer 401(k) match availableUsually capture the full match first

These ranges are general guidelines, not rules. Your results depend on the return you actually earn.

Tips

  • Use a cautious return. Check the "other investment returns" table to see how the answer changes in weaker markets.
  • Use 0% tax on gains if you would invest in a Roth IRA or another tax-free account.
  • With several debts, put the extra toward the highest rate first; see the debt avalanche calculator.

Frequently asked questions

Should I pay off debt or invest?

Compare the debt's interest rate with the after-tax return you realistically expect. Paying off debt gives a guaranteed return equal to its rate; investing gives an uncertain one. High-interest debt such as credit cards almost always should be paid first. For low-rate debt, investing may come out ahead over long periods, with more risk.

How does this calculator compare the two plans fairly?

Both plans spend the same total each month: the required payment plus your extra money. In plan A the extra goes to the debt, and once it is paid off the full amount is invested. In plan B the extra is invested from day one while the debt is paid on schedule. Net worth at the end is investments after tax minus any debt left.

What is the break-even investment return?

It is the yearly return at which both plans end with the same net worth. If you expect to earn more than this after fees, investing comes out ahead on average; if less, paying off the debt wins. It is usually close to the debt's interest rate, adjusted for taxes.

Should I still get my employer 401(k) match?

Usually yes. An employer match is an immediate, guaranteed return that is hard for any debt payoff to beat, so many people contribute enough to get the full match even while paying down debt. Very high-interest debt is the main exception worth weighing.

Why does risk matter if the numbers say invest?

Investment returns vary a lot from year to year, while debt interest is certain. Paying off debt also frees up monthly cash flow and lowers financial stress. A plan that invests can end up behind if markets do poorly over your period, so check the results at lower returns in the table.

Should I have an emergency fund first?

Most guidance suggests keeping some cash for emergencies before making extra debt payments or investing, so a surprise expense does not land on a credit card. Money sent to a loan is hard to get back, while investments can be sold, though possibly at a loss.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Debt Payoff CalculatorCompare debt snowball vs avalanche: payoff date and interest saved.Pay Off Mortgage or Invest CalculatorExtra principal or invest it? Interest saved vs portfolio growth after tax, year by year.Credit Card Payoff CalculatorSee when your card is paid off, the interest you pay, and how it compares with the minimum.Investment Return CalculatorProject investment growth with monthly contributions, nominal vs real after inflation.Mortgage CalculatorMonthly mortgage payment with taxes, insurance, PMI and HOA, plus a yearly amortization schedule.PMI CalculatorMonthly PMI, loan-to-value and the month PMI drops off at 80% or 78% LTV.Loan CalculatorMonthly payments and amortization for loans and mortgages.Mortgage Refinance CalculatorCompare your current and new mortgage, break-even month and savings.Extra Mortgage Payment CalculatorSee how extra payments cut your mortgage term and interest.Rent vs Buy CalculatorCompare the long-run cost of renting versus buying a home.Car Loan CalculatorMonthly car payment with down payment, trade-in, APR and amortization.Mortgage Affordability CalculatorHow much house you can afford from income, debts and DTI limits.APR CalculatorFind a loan's true APR including fees, the monthly payment and APR to APY conversions.Personal Loan CalculatorMonthly payment, total cost and true APR of a personal loan, including the origination fee.Amortization CalculatorMonth-by-month loan amortization schedule with yearly totals and an extra payment option.Student Loan CalculatorFind your student loan payment, total interest and how extra payments shorten payoff.Car Lease CalculatorCalculate a monthly car lease payment with depreciation, finance fee, residual and tax.Down Payment CalculatorSee your home down payment, loan, monthly payment, PMI and how long it takes to save.Debt-to-Income Ratio CalculatorCalculate front-end and back-end debt-to-income ratio and compare with lender limits.HELOC CalculatorAvailable home equity credit line plus interest-only and repayment-period HELOC payments.Mortgage Payoff CalculatorNew payoff date, time saved and interest saved with extra or lump-sum mortgage payments.Biweekly Mortgage CalculatorCompare monthly and biweekly mortgage payments: interest saved, years saved and payoff date.Mortgage Points CalculatorIs buying discount points worth it? Cost, monthly savings, break-even month and net savings.Closing Cost CalculatorEstimate itemized closing costs, prepaids and total cash to close for a home purchase.Rent Affordability CalculatorHow much rent you can afford with the 30% rule, the 40x income rule and your debts.Loan Comparison CalculatorCompare up to three loans: monthly payment, total interest, fees, total cost and APR.Balloon Payment CalculatorMonthly payment and lump-sum balloon due on an amortizing or interest-only loan.Business Loan CalculatorBusiness loan payments (monthly, weekly or daily), total cost and effective APR with fees.Loan-to-Value CalculatorLTV, CLTV and HCLTV ratios, home equity, and the pay-down needed to drop PMI.Debt Snowball CalculatorPlan payoff of several debts: snowball vs. avalanche order, debt-free date and interest saved.Car Affordability CalculatorSee how much car you can afford with the 20/4/10 rule or your monthly budget.Sleep Debt CalculatorFind your weekly sleep debt from hours slept per night and get a simple recovery plan.15 vs 30 Year Mortgage CalculatorCompare 15- and 30-year mortgages: payment, total interest and equity built side by side.Adjustable Rate Mortgage CalculatorARM payments after each rate reset, worst case under the caps, and interest vs a fixed loan.Balance Transfer CalculatorInterest saved by a 0% balance transfer, balance left at promo end and payoff time.Boat Loan CalculatorMonthly boat payment with down payment, trade-in, tax and fees, plus a yearly amortization table.Cash Out Refinance CalculatorMax cash out at your lender's LTV limit, the new loan and payment, and the break-even point.Construction Loan CalculatorDraw schedule, interest-only payments during the build and the permanent loan payment.Mortgage Escrow CalculatorMonthly escrow for taxes and insurance, RESPA cushion, and shortage or surplus over 12 months.Mortgage Interest Deduction CalculatorDeductible mortgage interest under the loan limit, itemize vs standard and tax savings.Net Effective Rent CalculatorTrue monthly rent after free months, move-in credits and concessions over the lease term.Piggyback Loan Calculator (80/10/10)Compare an 80/10/10 first + second mortgage with one loan plus PMI: payment and total cost.Public Service Loan Forgiveness CalculatorEstimate your PSLF forgiveness date and amount from payments made, IDR payment, balance and rate.Seller Financing CalculatorOwner-financed payment, balloon amount, seller interest income and a yearly note schedule.Student Loan Capitalized Interest CalculatorInterest accrued in school, grace and deferment, your capitalized balance and new payment.0% APR Payoff CalculatorMonthly payment to clear a 0% purchase before the promo ends, and the deferred interest at risk.Credit Card Minimum Payment CalculatorHow long minimum payments take to clear a card, total interest and the full schedule.Credit Card Processing Fee CalculatorCard processing fees, your net, and the surcharged price that keeps the full sale.Debt Avalanche CalculatorPay off debts highest APR first: payoff dates, total interest and savings vs snowball.Debt Consolidation CalculatorCompare your debts with a consolidation loan: payment, interest, fees and net savings.FHA Loan CalculatorFHA monthly payment with upfront and annual MIP, taxes and insurance, plus amortization.Home Equity Loan CalculatorHow much equity you can borrow at a combined LTV limit, your fixed payment and total interest.How Much Can I Borrow CalculatorMaximum loan amount from an affordable payment, or from income and a DTI limit.Interest Only Loan CalculatorInterest-only payment, the payment after the IO period and total interest vs amortizing.Loan Term CalculatorHow many months to pay off a loan at your payment, the payoff date and total interest.Mortgage Recast CalculatorNew payment after a lump-sum recast, monthly savings and interest vs prepaying instead.Motorcycle Loan CalculatorMonthly motorcycle payment with trade-in, tax and dealer fees, plus a month-by-month schedule.Remaining Loan Balance CalculatorPrincipal left on a loan after any number of payments, plus interest paid so far.RV Loan CalculatorMonthly RV and camper loan payment, total interest and how much extra payments save.VA Loan CalculatorVA mortgage payment with the funding fee for first or subsequent use, plus amortization.Auto Loan Refinance CalculatorCompare your current car loan with a refinance: monthly savings, interest saved, break-even.BRRRR CalculatorBuy, rehab, rent, refinance, repeat: cash left in the deal, cash flow and cash-on-cash return.Credit Card Rewards CalculatorCompare cash back or points value by spending category after annual fees for two cards.401(k) Loan Calculator401(k) loan payment, maximum you can borrow, interest paid to yourself and lost growth.Home Equity CalculatorHow much equity you have, your LTV and CLTV, and what you could borrow at 80/85/90% CLTV.Income-Driven Repayment CalculatorEstimate your federal student loan IDR payment (IBR, PAYE, ICR, RAP) and forgiveness date.Mortgage Rate Buydown Calculator2-1, 3-2-1 and permanent buydowns: payment by year, buydown cost and break-even month.Reverse Mortgage CalculatorEstimate HECM reverse mortgage proceeds from home value, age and rate, after payoff and costs.
See all 84 Loan & Mortgage Calculators →