Mortgage Payoff vs Invest Calculator
Compare putting a lump sum against your mortgage with investing it: the mortgage side compounded monthly at the note rate, the investment at your return.
Mortgage Payoff vs Invest Calculator
Background.
Every dollar you put against a 6% mortgage earns exactly 6% for as long as the loan would otherwise have run. It is not a figure of speech: the dollar stops interest from being charged on itself, month after month, and that saving compounds at the loan's rate. No market move can take it away. The dollar you invest instead might earn 7%, 10% or minus 20% this year, and you will not know which until the year is over.
That is the trade the calculator lays out. It takes one lump sum — an inheritance, a bonus, the proceeds of selling a car — and grows it two ways over the same number of years: at the mortgage rate compounded monthly, as a stand-in for the interest you avoid by prepaying, and at the annual return you expect from investing. The first result is what the prepayment is worth at the end of the horizon; the second is what the investment would be worth if your expectation came true; the third is the difference.
The arithmetic is the easy part of the decision. The investment figure is a hope, not a promise, while the payoff figure is close to certain. Taxes treat the two differently: mortgage interest helps only if you itemize, and investment returns are taxed unless they sit in a tax-advantaged account. And money paid into a house cannot easily be taken back out. A prepaid mortgage still demands the full monthly payment, so a household that sends its savings to the lender and then loses an income can end up short of cash while owning more of its home.
Use the gap between the two results as a measure of how much extra return you are being paid to take on risk and give up flexibility. Whether that is enough is a judgement only you can make.
What is mortgage payoff vs invest calculator?
The comparison sets a prepayment's guaranteed return against an investment's expected one. When you prepay principal on a fixed-rate amortizing loan and keep making the same monthly payment, the balance at any later date is lower by the prepayment grown at the loan's interest rate, so the mortgage rate is the return on the money. Investing the same sum earns whatever the market delivers, which you can only estimate. Both results here are before tax. Prepayment saves interest that you might otherwise deduct — IRS Publication 936 for 2025 allows the deduction only if you itemize on Schedule A, and only on the first $750,000 of home acquisition debt taken out after December 15, 2017, or $375,000 if married filing separately. Investment gains are usually taxed when you receive dividends or sell, except inside retirement and other tax-advantaged accounts. Check your note for a prepayment penalty before counting on the full mortgage rate: Regulation Z permits one only on certain fixed-rate qualified mortgages, at no more than 2% of the amount prepaid in the first two years and 1% in the third, and none after that.
How to use this calculator.
- Enter the lump sum you are weighing. Keep an emergency reserve out of it: once money is in the house, getting it back means borrowing against the home or selling it.
- Enter your mortgage's note rate from your statement or Closing Disclosure; it is compounded monthly, as the loan accrues interest. If you itemize and deduct mortgage interest, multiply the rate by one minus your marginal tax rate to get your after-tax cost, and use that instead. On an adjustable-rate loan, the return on prepaying changes at every reset, so enter the average rate you expect over the horizon rather than today's.
- Enter the annual return you realistically expect after fund fees, and after taxes if the money would go into a taxable account. Run a low case and a high case as well as your central guess.
- Set the horizon no longer than the years left on your mortgage, and shorter still if the lump sum would pay the loan off early. The comparison only holds while the loan is still outstanding.
- Read the difference last. A positive figure means investing comes out ahead if your expected return arrives; a negative one means prepaying wins even on your own assumptions. Splitting the money is a legitimate answer too: because both sides grow in proportion to the sum, putting half towards each lands exactly halfway between the two results — $189,327.40 in the default case.
The formula.
Payoff-equivalent value = L × (1 + m ÷ 12)^(12n) and investment value = L × (1 + r)^n, where L is the lump sum, m the mortgage note rate and r the expected annual return, both as decimals, and n the horizon in years. The third output is the second minus the first. The mortgage side compounds monthly because a mortgage charges interest monthly; the investment side compounds annually because the return you enter is an annual figure. Both results ignore taxes, fees, inflation and risk.
The payoff side rests on a property of amortizing loans worth checking for yourself. Take a $400,000, 30-year loan at 6% with a monthly payment of $2,398.20. After ten years the balance is $334,742.90. Pay $100,000 off at the start, keep the same payment, and the balance after ten years is $152,803.23 instead. The difference, $181,939.67, is exactly $100,000 grown at 0.5% a month for 120 months, which is the payoff figure this calculator reports. Because of the monthly compounding, 6% a year is an effective 6.17% a year, so the investment must earn more than 6.17%, not 6%, to break even.
A prepayment behaves like a bond that pays the mortgage rate and cannot default, so the like-for-like comparison is with a safe investment of similar length, such as a Treasury security. Comparing a certain 6% with an expected 7% from stocks sets two different kinds of asset side by side; the extra return is a reward for risk, not free money.
The investment side is the uncertain one, and the formula’s smooth compounding hides that. A constant 7% a year is not how markets pay; the same average can arrive through very different paths, and the path matters when the money is invested all at once. The horizon matters too: the gap between the two results grows with n, so a one-point difference in returns is worth far more over 30 years than over 10, and so is any shortfall.
A worked example.
Take a $100,000 lump sum, a 6% mortgage, an expected investment return of 7% and a ten-year horizon. Payoff side: 6% a year is 0.5% a month, and 1.005 raised to the 120th power is 1.819397, so the prepayment is worth 100,000 × 1.819397 = $181,939.67 at the end of ten years. Investment side: 1.07 to the tenth power is 1.967151, giving $196,715.14. Difference: 196,715.14 − 181,939.67 = $14,775.46 in favour of investing. So the edge of a 7% return over the loan’s effective 6.17% is worth about $14,800 over a decade on this sum, before tax. That is the reward on offer for accepting market risk and tying up the money in something you can sell, rather than in home equity you cannot easily reach. The break-even return is the loan’s effective annual rate, 6.17%: at that return both sides come to about $181,940 and the difference is close to zero. If fees and taxes on a taxable account took the realised return from 7% to 5.5%, the investment would grow to $170,814.45 and finish $11,125.23 behind the prepayment. Stretching the horizon magnifies whichever way the assumptions point. Over 20 years the same rates give $331,020.45 against $386,968.45, a gap of $55,948.00; over 30 years the gap is $158,967.98. Those longer horizons only apply while there is still a mortgage to prepay, though, and they also give an unlucky run of markets more time to matter.
Frequently asked questions.
Is paying down a mortgage really a guaranteed return?
Should I use my mortgage rate before or after the interest deduction?
What return should I enter for investing?
Why is the mortgage side compounded monthly but the investment annually?
What if the market falls right after I invest the lump sum?
Will a prepayment lower my monthly mortgage payment?
Does private mortgage insurance change the answer?
Does investing make sense when my mortgage rate is very low?
What if the lump sum would pay off the mortgage before my horizon?
Should retirement contributions come before either option?
References& sources.
- [1]Consumer Financial Protection Bureau, Loan Estimate explainer; rate, payment and closing-cost fields. Retrieved 2026-08-07.
- [2]U.S. SEC Investor.gov, Stocks; shares, market value and corporate actions. Retrieved 2026-08-07.
- [3]U.S. Consumer Financial Protection Bureau. What is an amortization schedule?. Retrieved 2026-08-07.
- [4]U.S. Internal Revenue Service. Publication 936, Home Mortgage Interest Deduction. Retrieved 2026-08-07.
- [5]U.S. Securities and Exchange Commission. Investor.gov: Assessing your risk tolerance. Retrieved 2026-08-07.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 5 cited below
- Method
- payoff value = L x (1 + m/12)^(12n); investment value = L x (1 + r)^n; both over the same horizon n
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled