Mortgage prepayment vs investing
Pay Off Mortgage or Invest Calculator
This pay off mortgage or invest calculator compares paying extra on your mortgage with investing the same money each month, and shows which path ends with more and the return where both end even. It puts the pay off mortgage vs invest question in dollars for your own balance, rate and expected return. It is a planning calculator: results are estimates from the numbers you enter, which can contain errors, and are not a forecast or investment advice.
Free to use. No account or sign-up needed.
Your numbers
What you still owe on the loan.
The loan's interest rate, not the APR that adds fees.
Years until the loan is paid off on schedule, rounded to the nearest year.
The cash you could put toward the loan or invest each month.
Before tax. Returns vary from year to year.
Your tax rate on the gains when you sell. Use 0 for a tax-free account or to skip.
Results
Over 25 years, investing $500 a month at a 7% return ends $11,803.85 ahead of paying it toward the 6.5% mortgage, which would pay the loan off 9 years 1 month sooner and save $125,588.47 of interest. Both paths end even at a 6.70% return.
These are estimates from the numbers you enter, which can contain errors. They are not a forecast or investment advice, and real returns vary from year to year.
Net worth on each path
Year by year
Balances at the end of each year, before tax.
Two paths compared
Both paths spend the same cash each month, the mortgage payment plus the extra. Paying extra puts all of it toward the loan until the loan is gone, then invests the payment and the extra every month. Investing pays the loan on schedule and invests the extra from the first month.
The calculator compares the two on the date the loan would have ended on schedule. By then both loans are paid off, so the difference is the money invested, after any tax on the gains you enter. That makes it an invest or pay off debt calculator for one fixed-rate loan.
The monthly payment uses the standard fixed-rate formula, payment = balance x r / (1 - (1 + r)^-n), where r is the yearly rate / 12 and n is the months left. Investments on both paths grow at the expected return, compounded monthly, with each deposit made at the month end.
A worked example
Say you owe $300,000 on a mortgage at 6.5% with 25 years left, so the monthly payment is $2,025.62, and you have $500 more each month.
Paying the $500 toward the loan pays it off in 15 years 11 months, 9 years 1 month sooner, and saves $125,588.47 of interest. From then on the full $2,525.62 a month is invested and reaches $379,717.09 by year 25 at a 7% return.
Investing the $500 from the start while paying on schedule grows to $391,520.94 by year 25, so investing ends $11,803.85 ahead before tax. 7% is above the 6.70% a year the mortgage costs once its monthly compounding is counted.
At a 15% tax on the gains, paying extra ends $8,805.00 ahead, and investing needs a 7.25% return to break even.
The break-even return
The break-even return is the yearly return at which both paths end even. Below it, paying extra ends ahead, and above it, investing does.
With no tax on the gains, the break-even return is the mortgage rate compounded monthly: a 6.5% rate costs 6.70% a year. A tax on the gains raises it, to 7.25% at a 15% tax in the example.
To turn a rate compounded monthly into its APY, use the APY calculator.
To estimate the tax on a sale of investments, use the capital gains tax calculator.
Beyond the math
Returns vary and can be negative for years at a time, while the interest a prepayment saves is fixed once it is paid. The calculator uses one steady return, so it shows one possible outcome for the numbers entered.
Money paid into the loan comes back only when you sell the home or borrow against it, while investments can be sold when you need cash.
If you itemize deductions, mortgage interest can lower your tax and with it the after-tax cost of the loan. The calculator does not count that deduction.
What the calculator assumes
- A fixed-rate loan whose monthly rate is the yearly rate / 12.
- The payment is principal and interest only, with no property tax, homeowners insurance or mortgage insurance, and is not rounded to the cent.
- The extra and every investment deposit go in at the end of each month.
- One steady yearly return on both paths, compounded monthly.
- Gains are taxed once, at the end, at the rate you enter.
- No mortgage interest deduction, fees or early sale of the home. Results are estimates from the numbers you enter, not a forecast.
Pay off mortgage or invest calculator FAQ
Is it better to pay off the mortgage or invest?
In money terms, investing ends ahead when its return after tax beats the mortgage rate compounded monthly, 6.70% a year for a 6.5% rate. The interest a prepayment saves is fixed, while returns are not. The calculator shows which path ends ahead for your numbers.
How much interest do extra mortgage payments save?
It depends on the balance, rate and years left. $500 more each month on $300,000 at 6.5% with 25 years left saves $125,588.47 of interest, because each extra dollar cuts the balance that interest is charged on.
How much sooner will extra payments pay off my mortgage?
In the example, $500 more a month pays off $300,000 at 6.5% in 15 years 11 months instead of 25 years, 9 years 1 month sooner. Enter your own balance, rate and years left to see your payoff date.
What return do I need to beat my mortgage rate?
Before tax, a return above the mortgage rate compounded monthly: 6.70% a year for a 6.5% rate. With a 15% tax on the gains, the example needs 7.25%. Returns change from year to year, so a past average is not a forecast.
Do extra payments lower my monthly mortgage payment?
No. Extra payments cut the balance and the number of payments left, but the required payment stays the same until the loan is paid off.
Does the calculator count taxes?
It counts one tax, the rate you enter on the investment gains, taken once at the end. It leaves out the mortgage interest deduction, which can lower the after-tax cost of the loan if you itemize.
What happens after the mortgage is paid off?
On the paying-extra path, the full payment plus the extra is invested each month from the payoff until the loan's original end, $2,525.62 a month in the example. That way both paths spend the same cash and end on the same date.
Is this pay off mortgage or invest calculator free?
Yes. It runs in your browser with no account and no sign-up. It is a planning calculator: results come from the numbers you enter, which can contain errors, and are not investment advice.
Track your own holdings in the Portfolio Tracker and backtest a portfolio with a free GNG account.
Sign Up FreeThis calculator is for education and is not tax or investment advice. Results are estimates that depend on the numbers you enter. Read our disclosures.