Home › Calculators › Pay Off Mortgage or Invest Calculator

Pay Off Mortgage or Invest Calculator

Should extra money go to your mortgage principal or into investments? Enter your loan and the extra amount you could spare each month. The calculator runs both plans with the same monthly budget and shows the interest and years you would save, the portfolio you would build and which plan ends with the higher net worth, year by year.

Last updated:

Your mortgage
$
%
years

Principal & interest payment is worked out from balance, rate and years left.

$

Either added to principal or invested.

Investing
% / yr

After fund fees. Not guaranteed.

%

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

years

Blank = when the mortgage would end on schedule.

%
Enter your values to see the result.
Advertisement
Advertisement

How to use the Pay Off Mortgage or Invest Calculator

  1. Enter your mortgage: current balance, interest rate and years left.
  2. Enter the extra amount you could pay toward principal or invest each month.
  3. Set the expected return and the tax rate on investment gains.
  4. Choose the comparison period (blank = until the original payoff date) and tick the deduction if you itemize.
  5. Press Compare plans to see the winner, the interest saved and the net worth chart.

How the comparison works

The regular principal and interest payment is found with the standard loan formula:

Payment = P × i ÷ (1 − (1 + i)−n)

where P is the balance, i the yearly rate ÷ 12 and n the months left. Both plans then spend payment + extra every month:

  • Prepay: the extra goes to principal, so the loan ends early; afterwards the full payment + extra is invested each month.
  • Invest: the loan runs on schedule and the extra is invested; after the last payment the full amount is invested.

At the end, net worth = portfolio − tax on gains − mortgage balance. Property taxes, insurance and the home's value are the same in both plans, so they are left out.

Interest saved by an extra $500 a month

$300,000 balance, 30 years left, standard monthly payments:

RatePayment (P&I)Interest, normal scheduleInterest with $500 extraPaid off
3.0%$1,264.81$155,332$91,106about 11½ years sooner
5.0%$1,610.46$279,767$155,384about 12 years sooner
6.5%$1,896.20$382,633$202,874about 12½ years sooner
7.5%$2,097.64$455,152$233,428about 13 years sooner

Rounded figures. Enter your own loan above for exact numbers.

Things the numbers don't capture

  • Risk: the mortgage return is certain; market returns are not. Check the table at lower returns.
  • Liquidity: invested money can be sold in an emergency; extra principal is locked in the house.
  • Peace of mind: a paid-off home lowers your monthly costs, which can matter most near retirement.
  • For a detailed payoff date and schedule with one-time or yearly extra payments, use the mortgage payoff calculator.

Frequently asked questions

Is it better to pay off your mortgage early or invest?

It depends mainly on your mortgage rate compared with the after-tax return you expect from investing, and on how much risk you are comfortable with. Prepaying earns a guaranteed return equal to the mortgage rate. Investing has historically earned more over long periods, but with ups and downs that can leave you behind over shorter periods.

How are the two plans compared?

Both spend the same each month: the regular principal and interest payment plus your extra amount. The prepay plan adds the extra to principal; once the loan is gone, it invests the whole amount. The invest plan pays the loan on schedule and invests the extra from day one. Net worth is the portfolio after tax on gains minus any mortgage left.

Why is the home value not included?

The house is worth the same in both plans, so it does not change which plan is ahead. Net worth here is only the part that differs: investments minus the mortgage balance.

Does the mortgage interest deduction change the answer?

It lowers the effective cost of the mortgage for people who itemize. With the box ticked, each year's interest times your tax rate is treated as a tax saving and invested. Many homeowners take the standard deduction instead, in which case the deduction gives no benefit and should be left off.

What is the break-even return?

The investment return at which both plans end with the same net worth. If you expect to earn more after fees and taxes, investing tends to win; if less, prepaying wins. It is usually near the mortgage rate.

What else should I consider before prepaying?

Money paid into the house is hard to get back without selling or borrowing, so keep an emergency fund first. Capture any employer retirement match, pay off higher-rate debt first, and check whether your loan has any prepayment penalty. Being mortgage-free before retirement also lowers the income you need.

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

Mortgage Payoff CalculatorNew payoff date, time saved and interest saved with extra or lump-sum mortgage payments.Pay Off Debt or Invest CalculatorExtra cash each month: pay down a loan or invest it? Compare net worth after taxes.Mortgage CalculatorMonthly mortgage payment with taxes, insurance, PMI and HOA, plus a yearly amortization schedule.Investment Return CalculatorProject investment growth with monthly contributions, nominal vs real after inflation.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.Debt Payoff CalculatorCompare debt snowball vs avalanche: payoff date and interest saved.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.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.Credit Card Payoff CalculatorSee when your card is paid off, the interest you pay, and how it compares with the minimum.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.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.Student Loan Refinance CalculatorCompare your student loans with a refinanced rate and term: payment, interest and savings.Bridge Loan CalculatorBridge loan size from home equity, fees, interest-only payments and cash for your next home.Buy Now Pay Later CalculatorTrue cost of pay-in-4 and financed BNPL plans with interest, fees, late fees and APR.True Cost of Homeownership CalculatorReal monthly cost of owning a home: mortgage, tax, insurance, HOA, upkeep and lost returns.Debt Settlement CalculatorNet savings from settling debt after fees, added interest and tax on forgiven debt.Equipment Loan CalculatorEquipment financing payment with down payment, balloon, total interest and Section 179 savings.Hard Money Loan CalculatorFix-and-flip loan size from LTC and ARV, points, interest-only payment and total finance cost.Land Loan CalculatorMonthly payment, balloon and schedule for raw, unimproved or improved land.Equipment Lease vs Buy CalculatorCompare leasing vs buying equipment after tax: payments, depreciation, resale and NPV.Merchant Cash Advance CalculatorTurn an MCA factor rate and holdback into total payback, term and true APR.ROIC CalculatorReturn on invested capital from NOPAT, debt, equity and cash, compared against WACC.SBA Loan CalculatorSBA 7(a) and 504 monthly payments from prime + spread, with guarantee fee and schedule.USDA Loan CalculatorUSDA mortgage payment with the 1% guarantee fee financed and the 0.35% annual fee.Commercial Mortgage CalculatorCommercial real estate loan payment, balloon at maturity, DSCR, LTV and max loan size.Points & Miles Value CalculatorFind the cents-per-point value of a points or miles redemption and compare it to cash back.HELOC vs Cash-Out Refinance CalculatorCompare a HELOC with a cash-out refinance: payments, closing costs and total cost over time.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.
See all 84 Loan & Mortgage Calculators →