Prepay vs. invest calculator
Prepay the mortgage, or invest?
Spare cash each month: pay down the mortgage faster, or invest it? Prepaying earns a guaranteed return: your after-tax mortgage rate. Investing earns an expected one, which is not certain. This compares your wealth either way and shows the return where the answer flips.
By SterlingCat · Last updated · Method checked against the exact formula for the case with no interest deduction (how we calculate)
The key points
- Prepaying is a guaranteed, tax-free return equal to your after-tax mortgage rate. Investing is a risky, expected return.
- Prepaying wins when your expected after-tax return is below the break-even return; investing wins when it is above. The break-even return sits a little above your after-tax mortgage rate, and the calculator computes it.
- Deducting your mortgage interest lowers the after-tax rate and shifts the answer toward investing. The calculator counts all of the interest as deducted at your marginal rate, which is the most the deduction can do.
How we calculate this
Both choices spend the same money each month — your required payment plus the extra — so the comparison is fair. You keep the home either way, so its value cancels; what differs is how much you've invested and how much you still owe. We run it month by month:
- Prepay: the extra goes to principal until the loan is gone, then the whole freed-up payment is invested for the rest of the horizon.
- Invest: you pay the mortgage on its normal schedule and invest the extra; once the loan ends, the freed payment is invested too.
Wealth at your horizon is investments minus what you still owe. What decides the direction is your expected return against the break-even return, so the tool computes the break-even return and shows how far your expected return sits from it. A return equal to your mortgage rate is not a tie: with no deduction it leaves prepaying slightly ahead, because the mortgage charges its rate monthly and the return you enter already includes its compounding.
The after-tax rate
If you itemize and deduct mortgage interest, prepaying also shrinks that
deduction, so the guaranteed return from prepaying is
rate × (1 − your marginal rate), not the full rate. That formula,
and this calculator, count every dollar of interest as deducted at your marginal
rate. The full reduction applies only to interest above your standard deduction
after your other itemized deductions. If itemizing barely beats the standard
deduction, your after-tax rate is closer to the full rate, and the result here
overstates the case for investing. If you take the standard deduction (most
filers do), the interest isn't deducted and the guaranteed return is the full
rate. Your expected investment return is entered after tax, so both
sides are compared after tax.
What's included, and what isn't
Included: full amortization with extra principal; payments stop at payoff; the freed payment reinvested; the mortgage-interest deduction when you itemize.
Declared omissions (so the tool's claims stay honest): investment-gains tax beyond your after-tax return input; tax-advantaged or employer-matched investing (a 401(k) match usually beats both options, and is a separate question); return variance (a single expected return, not a distribution); PMI (we assume you're past 20% equity); prepayment penalties (assumed none); partial itemizing (no standard deduction is applied, so all of the interest counts at your marginal rate); the limit on the mortgage debt whose interest can be deducted ($750,000 in IRS Publication 936 for 2025 returns); the reduction of itemized deductions for income in the 37% bracket, which Public Law 119-21 applies from 2026; and liquidity (prepaying locks cash into the home, investing keeps it reachable). The full protocol is in the project's V&V record.
Terms, in plain words
- After-tax mortgage rate
- Your mortgage rate minus the tax you save by deducting the interest. If you don't itemize, it's just your rate. This is the guaranteed return prepaying earns.
- Break-even return
- The expected investment return at which prepaying and investing come out exactly even. Above it, investing wins; below it, prepaying wins.
- Guaranteed vs. expected
- Prepaying's return is certain. Investing's is an average you might beat or miss — so even at equal expected returns, some people prefer the sure thing.
A sensible next step
Before either, check you have an emergency fund and aren't leaving an employer 401(k) match on the table — a match usually beats both prepaying and taxable investing. This tool is for the money left after those.
Common questions
Isn't paying off debt always smart?
Not always the smartest use of a dollar. Prepaying earns your after-tax mortgage rate, guaranteed. If your mortgage is cheap and you can reasonably expect to earn more investing, investing has the higher expected wealth, at the cost of certainty. That trade between a certain return and a higher expected one is the whole decision.
Why does deducting interest favor investing?
The deduction makes your mortgage cheaper after tax, so the guaranteed return from prepaying is smaller — which lowers the bar your investments have to clear.
What about the peace of mind of no mortgage?
That's real and personal — the tool can't price it. It gives you the dollar difference; if it's small, the guaranteed, sleep-at-night option is easy to justify.
Sources
Grounded in authoritative primary sources:
- Understanding amortization(Freddie Mac)
- Introduction to Investing(U.S. Securities and Exchange Commission)
- Topic no. 501, Should I itemize?(Internal Revenue Service)
- Publication 936 (2025), Home Mortgage Interest Deduction(Internal Revenue Service)
- Public Law 119-21(United States Congress)
- Tax stats at a glance(Internal Revenue Service)
More SterlingCat calculators
- Buying a homeRent vs. buy
- Buying a homeMortgage amortization
- Buying a homeHow much house can I afford
- Paying off debtCredit card payoff
- Paying off debtDebt payoff planner
- Paying off debtLoan payment
- Saving & investingWhat to fund first
- Saving & investingCompound interest
- Saving & investingTargeted savings
- Saving & investingRetirement readiness
- Saving & investingReturn on investment
- Everyday money toolsCurrency converter
- Everyday money toolsInvoice generator