Guide
Should You Pay Off Your Mortgage Early or Invest?
Whether to pay off a mortgage early or invest comes down to one trade: a certain return equal to your mortgage rate versus an uncertain, historically higher return from the stock market. This calculator runs both paths with the same cash. Path A sends the extra money to the loan and, once the loan is gone, invests the whole former payment plus the extra every month. Path B makes the normal payment and invests the extra from day one. Neither household spends a dollar more than the other.
How the comparison works
Each month the mortgage charges interest at your rate ÷ 12 on the balance (the CFPB explains this split), and every extra dollar goes to principal. Investments grow at the monthly equivalent of the annual return you pick, (1 + return)1/12 − 1, minus the fund's expense ratio. At the end, the calculator compares net worth: investments, after capital gains tax if they were sold, minus any mortgage balance left. The home is worth the same in both paths, so it cancels out. The loan payoff calculator shows the mortgage side alone in more detail.
The break-even return is the average return at which both paths finish even. With no taxes it equals your mortgage rate compounded monthly: 6.5% becomes about 6.70% a year. That's no coincidence: a prepaid dollar earns exactly the loan's rate.
Example outcomes
Take this page's example: $300,000 left at 6.5% with 25 years to go (a $2,025.62 payment), $300 extra a month, a taxable account with a 0.09% fund fee and 15% capital gains tax at the end. Prepaying clears the loan in June 2045 instead of November 2051 and saves $91,174 of interest. Net worth in November 2051:
| Average return | A: Prepay | B: Invest | Ahead |
|---|---|---|---|
| 4% | $201,763 | $141,643 | Prepay by $60,120 |
| 7% | $219,441 | $210,538 | Prepay by $8,903 |
| 10% | $238,915 | $323,654 | Invest by $84,739 |
Here the break-even return is about 7.37%: above the 6.70% loan rate because the investing path pays tax on more gains. In a 401(k) or IRA, where the comparison skips that tax, it drops to about 6.79% (the loan rate plus the fund fee).
Why the average return isn't guaranteed
From 1928 through 2025 the S&P 500, with dividends reinvested, compounded at about 10.02% a year. The simple average of the yearly returns is higher, about 11.86%, because a 50% loss needs a 100% gain to recover. More important, the order of returns matters when you add money over time: a crash late in the period hits the biggest balance. That's sequence-of-returns risk. To show the range, the calculator replays every historical starting year that fits. For the example, investing won in 64 of 74 25-year periods; in the worst (starting 1956) it trailed prepaying by $31,270. Prepaying's return never varies.
The key question: would you keep investing the extra through a 30% or 40% drop? The math assumes you invest every month no matter what. A compound interest calculator shows how much steady contributions depend on staying invested.
Taxes
In a taxable account, long-term gains are taxed at 0%, 15% or 20% federally depending on income, per IRS Topic 409, and qualified dividends at those lower rates each year (Topic 404). The mortgage interest deduction only helps if you itemize on Schedule A, generally on up to $750,000 of home acquisition debt (Publication 936). If you do, it lowers the mortgage's real cost to rate × (1 − marginal rate), which makes prepaying less attractive.
Biweekly payments explained
Paying half the monthly payment every two weeks means 26 half-payments, or 13 full payments, a year. On the example loan alone, that saves about $60,470 of interest and ends the loan 4 years 2 months early. In the comparison, the Invest path puts that 13th payment into the market on the same schedule. The savings only happen if each half-payment is credited when made: the CFPB found in 2015 that one biweekly program collected money every two weeks but still paid the mortgage monthly, after a $295 enrollment fee.
If a lower rate is available, compare that too: the refinance calculator shows the break-even month, and the mortgage calculator adds taxes, insurance and PMI.
Frequently asked questions
Is it better to pay off my mortgage early or invest?
It depends on the return you expect, your mortgage rate, taxes and how much risk you can take, and this calculator doesn't give advice. Each extra dollar sent to the mortgage earns your loan's rate with certainty; invested, it earns whatever the market delivers. In this page's example ($300,000 at 6.5% with 25 years left, $300 extra a month, a taxable account), investing ends about $84,739 ahead at a 10% average return, but prepaying wins if returns average below about 7.37% a year. Investing came out ahead in 64 of 74 historical 25-year periods since 1928.
What return does the S&P 500 average?
From 1928 through 2025, the S&P 500 with dividends reinvested grew at a compound average of about 10.02% a year, based on the annual total returns published by Aswath Damodaran of NYU Stern. The simple average of the yearly returns is higher, about 11.86%, because losses hurt compounding more than equal gains help. These figures are before fund fees, taxes and inflation, and single years ranged from a 43.84% loss (1931) to a 52.56% gain (1954). Past returns don't guarantee future results.
Do biweekly mortgage payments save money?
Paying half your monthly payment every two weeks adds up to 26 half-payments, or 13 full payments, a year, and the extra payment goes to principal, so the loan ends sooner. On this page's example loan, biweekly payments save about $60,470 of interest and finish 4 years 2 months early. The savings only happen if each half-payment is credited when it's paid: the CFPB found that one biweekly program collected money every two weeks but still paid the mortgage monthly, and charged a $295 enrollment fee plus debit fees. Ask your servicer how it applies extra payments.
What is the break-even return?
It's the average yearly investment return at which both paths end with the same net worth. With no taxes or fees, it equals your mortgage rate compounded monthly, so 6.5% becomes about 6.70% a year. Fund fees and capital gains tax push it higher; deducting mortgage interest pulls it lower, because the deduction reduces what the mortgage really costs. The calculator finds it by bisection: it keeps halving a range of returns until the two paths match.
Does the mortgage interest deduction change the answer?
Only if you itemize. IRS Publication 936 says you deduct home mortgage interest on Schedule A, generally on up to $750,000 of home acquisition debt ($375,000 if married filing separately). Many filers take the standard deduction instead, so the toggle is off by default. When it's on, the calculator treats each month's interest times your marginal rate as a tax saving that is invested in that path, which lowers prepaying's effective return to rate × (1 − marginal rate).
Should I invest in my 401(k) instead of paying extra on my mortgage?
Switch the account type to 401(k) / IRA to see the comparison without yearly dividend tax or capital gains tax at the end. The calculator doesn't model contribution limits, employer matches, or the taxes and penalties on withdrawals, which matter in practice. If your employer matches contributions, the match is usually counted before either option; the 401(k) calculator shows what it adds.