CalcHive › Finance › Pay Off Mortgage Early or Invest

Pay Off Mortgage Early or Invest?

By Jason Smith · Updated November 24, 2026

The same extra dollars, either on the loan or in an account, compared at the original term.

The payment formula matches the mortgage calculator. The monthly compounding matches start early vs start late. Amortization in prose is how mortgage amortization works. There is no separate extra-payment calculator on this site. Replacing the rate and the term is the refinance break-even calculator, and the essay is should I refinance in 2026.

The return is an assumption you choose. It is not a forecast.

Illustration only, not financial advice. Investment returns are not guaranteed, and this page uses a fixed return you choose. Taxes, PMI, fees and risk are not included.

Two paths, one horizon

Path A pays the scheduled payment plus the extra amount until the balance is gone, then invests the payment plus the extra every month until the original term ends. Path B pays only the scheduled payment and invests the extra every month. Both mortgages are gone by the original term. The comparison is the investment balance at that month. With no taxes, when the return equals the mortgage rate, the two balances tie to the cent.

On $300,000 at 6.5% for 360 months the payment is $1,896.20. With $500 extra and a 6.5% return, the loan is paid off in month 210, interest saved is $179,759.08, and both paths hold $553,089.04 at month 360. At an 8% assumption, prepay is $615,256.01 and invest is $745,179.72, so invest leads by $129,923.71. At 4%, prepay is $465,896.61 and invest is $347,024.70, so prepay leads by $118,871.90. Taxes (the mortgage-interest deduction and capital gains), PMI, risk, liquidity, and refinancing are not in those figures. A card balance is the credit card payoff calculator.

The question is a comparison at one date

Paying extra on a mortgage and investing the same extra dollars are usually described as a character question. The arithmetic is narrower. Pick a loan that already exists: a balance, an APR, and a number of months left. Pick an extra amount you could send either to the servicer or to an account. Pick a fixed annual return for the account and label it as an assumption, because that is what it is. Then stand at the month when the original term would have ended and compare the investment balances. By that month both versions of the mortgage are gone. The prepay path killed the loan early and then invested the old payment plus the extra. The invest path paid the loan on schedule and invested only the extra the whole time.

The payment is the standard annuity payment, principal times r times (1+r) to the n, divided by (1+r) to the n minus 1, with r equal to the APR divided by 12. That is the function in the mortgage calculator. The investment side compounds monthly at the annual return divided by 12, and the deposit lands at the end of the month, which is the convention in start early vs start late. The schedule inside the comparison uses the unrounded payment so the equal-rate case can tie to the cent. The number shown as the payment is that result rounded to the cent.

Why the paths tie when the rates match

On $300,000 at 6.5 percent for 360 months the payment rounds to $1,896.20. Add $500 a month and set the investment return at 6.5 percent as well. The loan balance reaches zero in month 210. Interest saved, measured as the interest on the original schedule minus the interest actually charged on the prepaid schedule, is $179,759.08. At month 360 the prepay path's investment account holds $553,089.04 and the invest path holds $553,089.04. They match to the cent.

The tie is not a coincidence of this particular loan. Before taxes, an extra dollar used to retire a balance that is charging r per month is worth the same as an extra dollar that then earns r per month, if both the loan and the investment compound monthly and you follow the rule above: after the loan is gone, the prepay path invests the payment it no longer sends to the servicer. You have not found a free lunch. You have found that two uses of the same cash, at the same rate, with no tax and no risk difference, land on the same pile. The unit test for this page is that tie. If a future edit breaks the unrounded payment or the end-of-month timing, the test fails.

Eight percent, then four

Keep the loan and the $500. Change only the assumed return. At 8 percent the prepay path finishes at $615,256.01 and the invest path finishes at $745,179.72. The invest path leads by $129,923.71. At 4 percent the prepay path finishes at $465,896.61 and the invest path finishes at $347,024.70. The prepay path leads by $118,871.91. The payoff month and the interest saved do not change between these three runs, because the loan does not know what the investment account is earning. Only the ending balances move.

The 8 percent and the 4 percent are assumptions in the same way the 6.5 percent return was an assumption. This post does not cite a historical stock return, a bond return, or a fund's performance. A guaranteed rate and an expected rate are not the same object. The mortgage rate is a contractual rate on the remaining balance. An investment return is a number you hope for and may not receive. The calculator will accept either number and will not mark one of them as safe. If you want the comparison to mean "what if the account earns exactly this," type the number and read the result as that illustration.

Taxes, PMI, and the ability to get the money back

The tie ignores taxes. Mortgage interest may be deductible, subject to the limits on that deduction, and the deduction is worth the marginal rate times the interest, not the whole interest. Investment gains may be taxed when realized, and the account type changes the timing. A tax-advantaged account and a taxable account do not share one after-tax return. This page does not compute either tax. If your after-tax return is below the after-tax cost of the mortgage, the prepay path is the one the arithmetic favors, and the calculator will show that only if you type the after-tax return yourself.

PMI is not in the interest-saved figure. A prepayment that removes PMI saves the premium as well as interest, and this page does not know the premium. Liquidity is not in the figure either. A dollar sent to the servicer is not a dollar you can withdraw next month without a new loan. A dollar in a brokerage account might be, and it might also fall. Refinancing replaces the rate and the term and makes this comparison stale. The month count for that replacement is the refinance break-even calculator. The essay that walks one refinance example is should I refinance in 2026, and the amortization mechanics, including when principal passes interest on a different example loan, are in how mortgage amortization works. A card balance at a card APR is the credit card payoff calculator, not this mortgage.

Use your note, not this example

One more pass through the tie, in the order the loop actually runs. Each month the investment balance grows by one month of the return, then a deposit is added. While the loan still has a balance, the interest due is the balance times the monthly mortgage rate, the payment is the scheduled payment plus $500, capped at what would pay the loan off, and anything in that payment-plus-extra that is not needed to cover interest and principal goes into the prepay account. After month 210 the whole payment plus $500 is invested, because the loan is gone. The invest path never sends the $500 to the loan, so its account receives $500 at the end of every one of the 360 months and nothing else. At a shared 6.5 percent those two accounts meet. At any other fixed return they do not, and the tables above are the meeting and the two misses.

The $300,000, the 6.5 percent, the 360 months, and the $500 are a worked case so the test has something to lock. Your balance, your rate, and the extra amount you can actually send are on the statement and in your budget. Type those. If you do not want to assume a return, type the mortgage rate and confirm the tie, then move the return up and down until you see which side you are on at returns you consider plausible. The page will not tell you which of those returns is plausible. That is the limit of a fixed-rate illustration, and it is printed in the red note on the calculator: returns are not guaranteed, and taxes, PMI, fees, and risk are not included.

FAQ

Is it better to pay off the mortgage or invest?

On the math alone, it depends on whether your return beats your mortgage rate. At equal rates, before taxes, they tie.

How much interest does $500 extra a month save?

On $300,000 at 6.5% over 30 years, $179,759.08, paid off in month 210.

What return do I need to beat my mortgage?

More than the mortgage rate, after taxes and with risk in mind.

Does this include taxes?

No.

Sources

← Back to Finance calculators