Payoff vs. Invest Calculator
Compares the after-tax value of an extra mortgage payment against the after-tax value of investing that same dollar — an expected historical return AND the full spread of historical outcomes, with an optional cash-out refinance comparison.
$55,113
difference in projected net worth after 25 years, surplus -> extra principal vs. surplus -> invested
After-Tax Mortgage Rate
5.07%
value of the next dollar of interest, today
Net Worth, Surplus -> Principal
$398,048
after 25 years
Net Worth, Surplus -> Invested
$453,161
after 25 years
Breakeven Return
7.60%
nominal annual return where the two sides tie
Worst Period
$310,685
invest side, lowest of all periods
Median Period
$517,291
invest side, middle of all periods
Best Period
$1,100,544
invest side, highest of all periods
Periods Where Investing Was Ahead
56 / 74
76% of 74 overlapping historical periods
- Nominal comparison throughout — a mortgage is a nominal contract, so no inflation adjustment is applied anywhere on this page.
- Home-price appreciation is not modeled — that question belongs to Buy vs. Stay and Rent vs. Buy, not here.
- The historical spread replays overlapping periods from 98 years of US large-cap/Treasury data (1928-2025) — those periods are not independent observations, and the dataset is one country's history.
- The mortgage-interest deduction credited each year is the marginal, mortgage-attributable amount only — not the household's whole itemized benefit, which can exist independent of any mortgage.
- A cash-out refinance's rate premium, if any, is not added automatically — enter the rate you'd actually be quoted.
- Not tax or investment advice.
How this works
Simulates two paths for the same monthly surplus dollar side by side: extra principal payments toward the mortgage, or investing the same amount. Both paths pay the same required mortgage payment every month; once a path's mortgage is fully retired (early, from extra principal, or on its own natural schedule), every dollar that stops being owed to the mortgage keeps compounding in that path's invested balance instead of vanishing — otherwise the two paths wouldn't be comparable at all.
Every dollar figure is NOMINAL, not inflation-adjusted — a mortgage is a nominal contract (the payment doesn't shrink with inflation), so this calculator never deflates, unlike the FI and retirement calculators on this site.
The mortgage-interest deduction uses the same itemization-aware model as Buy vs. Stay (SALT-capped state/local tax and property tax sharing one bucket, mortgage interest capped at $750,000 of acquisition debt, both compared against the standard deduction). Each simulated year, the credit applied is the DIFFERENCE between that path's tax benefit with its actual interest and with zero interest — the mortgage-attributable slice only, not the household's whole itemized benefit, which can exist from property tax and state/local income tax alone regardless of any mortgage.
Expected investment return comes from the same historical stock/bond dataset as /expected-returns (1928-2025): the full-period geometric-mean blended return, after your fee and gains-tax inputs, for your chosen equity/bond split. The historical-window figures replay every full, non-overlapping-past-the-end period of your comparison horizon in that same dataset for the invest path.
A headline after-tax mortgage rate is shown for reference — the value of the NEXT dollar of interest today, given your current itemization status — but the simulation itself does not use that single rate; it recomputes the deduction from each path's actual interest every year, since the paydown path's interest (and therefore its deduction) shrinks faster than the invest path's.
Key assumptions
- The optional cash-out refinance section simulates both scenarios' full monthly cash flow to the horizon: the refinance scenario invests net proceeds (cash out minus closing costs) as a lump sum and services the new, larger loan; the no-refinance scenario keeps the existing loan's own schedule. Whichever scenario's required payment is smaller invests the difference every month, so both scenarios commit the same total monthly outlay — the only differences left are the lump-sum proceeds/costs at closing and the two loans' differing amortization.
- The cash-out branch credits the same mortgage-attributable yearly tax benefit the main comparison does, computed separately against each scenario's own loan (the existing loan vs. the new, larger one) — using the same household tax inputs in both; this calculator does not model a property-tax change driven by the cash-out itself.
- The breakeven return figure is reported on the mortgage rate's own APR convention (a simple annual rate, monthly-compounded) so it's directly comparable to the mortgage rate you entered — not the geometric annual-to-monthly conversion used for the historical-return figures above, which is a different (and also correct) convention for converting annual return data specifically.
- The breakeven return can show as unavailable: this happens when there's no surplus to allocate (both paths are identical for any return) or when no return within a wide search range makes the two paths tie exactly — see the calculator's own explanation when this occurs.
- The cash-out card's implied loan-to-value is only computed when you enter a home value above $0; left blank or at $0, the LTV figure is not shown as a number, and the over-80% warning is shown anyway — an unknown home value cannot be treated as evidence the loan is under 80% LTV.
What this leaves out
- Home-price appreciation — that question belongs to Buy vs. Stay and Rent vs. Buy, not here; this calculator only tracks loan balances and invested balances.
- Any rate premium a cash-out refinance typically carries over a rate-and-term refinance — enter the rate you'd actually be quoted; this calculator does not add one automatically.
- PMI, discount points, and non-mortgage-attributable itemized deductions beyond the shared SALT/property-tax bucket already described above.
- The historical-window spread is 98 years of one country's stock/bond history (1928-2025); its overlapping periods are not independent observations, the same honest-limits caveat the /expected-returns and SWR pages carry.
Related calculators
A worked example: $350,000 at 6.5%, $500 a month, 25 years
A $350,000 mortgage at 6.5%, 300 months (25 years) remaining, filed jointly at a 22% federal marginal rate, with $7,000 in annual property tax and $5,000 in estimated state/local income tax. This household's itemized deductions already clear the standard deduction, so the next dollar of interest is deductible at the full 22% federal rate — which is what takes the 6.5% sticker rate down to a 5.07% after-tax mortgage rate.
Putting $500 a month toward extra principal instead of the required payment retires this loan years earlier than its 300-month schedule; investing the same $500 a month instead, at an 80% stock allocation, a 0.05% fee, and a 15% tax rate on gains, draws its expected return from this site's full 1928-2025 stock/bond dataset. Over the full 25-year horizon, the extra-principal path ends at a net worth of $398,048; the invested path ends at $453,161 — a difference of $55,113, at the dataset's average return.
That $453,161 is one number out of a spread, not the whole picture. Replaying every full 25-year period the 1928-2025 dataset contains — 74 overlapping periods — the invested path's ending value ranges from $310,685 in the worst of those periods to $1,100,544 in the best, with a median of $517,291. Investing ended ahead of the extra-principal path in 56 of the 74 periods (about 76%); in the other 18, it did not — the worst period on record ends at $310,685, $87,363 BELOW the extra-principal path's $398,048.
A nominal return of 7.60% a year, before fees and taxes, is where the two paths tie exactly on this loan and these tax inputs. Fees and gains tax on the invested path alone push that breakeven higher — to 7.70%, if the mortgage carried no deduction at all — because the return has to clear those costs before the two paths can compete. The deduction brings it back down to 7.60%: it's the invested path, not the extra-principal path, that keeps this loan's larger balance (and its interest, and the deduction tied to that interest) around longer, so the deduction's value works in the invested path's favor here, partially offsetting the fee and tax drag. Pulling $50,000 out in a cash-out refinance on top of this loan, at a 7% new rate over a fresh 30 years with $6,000 in closing costs, nets $44,000 after fees; invested, that $44,000 ends the same 25-year horizon at $224,296, against $273,933 for not refinancing at all and investing the smaller ongoing payment difference instead — a comparison that holds both scenarios' total monthly outlay equal throughout.
Frequently asked questions
Why does the after-tax mortgage rate differ from the rate I entered?
It's the value of the NEXT dollar of interest today, not an average of the whole loan. That value depends on the same itemization model Buy vs. Stay uses: mortgage interest (capped at $750,000 of acquisition debt) plus a SALT bucket of property tax and state/local income tax (capped at $40,400), compared against the standard deduction. A household well past the standard deduction gets the full federal rate's worth of value from its next interest dollar; a household near or under the standard deduction gets less, or none — the sticker rate on the loan doesn't change, but what that next dollar is worth on the tax bill does.
What happens to the freed-up payment once a loan is paid off partway through the horizon?
It keeps compounding in that path's invested balance for the rest of the horizon, exactly like the monthly surplus does. This applies to both paths: the extra-principal path can retire the loan years early, and once it does, the payment that's no longer owed joins the invested balance from that point forward; the invested path's own loan eventually reaches the end of its unaccelerated schedule and does the same. Without this, the two paths wouldn't be measuring the same thing — a dollar not spent on debt has to go somewhere for the comparison to mean anything.
Why does the extra-principal path earn a smaller tax benefit than the invested path?
Each year, the credited benefit is the difference between that path's itemized-deduction benefit WITH its actual interest paid and WITHOUT any interest — the mortgage-attributable slice only, not the household's whole itemized benefit (property tax and state/local income tax alone can already clear the standard deduction independent of any mortgage). The extra-principal path pays down the loan faster, so its interest — and the deduction tied to that interest — shrinks faster too. That smaller deduction is a real, if usually small, part of the comparison, not a rounding artifact.
What does the historical spread show that the single expected-return figure doesn't?
The expected-return figure is a single average across the entire 1928-2025 dataset; the spread is what actually happened depending on which years the comparison horizon landed on. The worst and best periods on record for the invested side can differ by a factor of several times, and the share of periods where investing ended ahead of the extra-principal path is rarely 100% or 0% — a mortgage payment is a contractually fixed obligation regardless of markets, while an investment return is not, and the spread is where that difference actually shows up.
Why might no breakeven return be shown?
Two situations produce this. A $0 monthly surplus means there's nothing to allocate to either path, so every return ties trivially and no single rate distinguishes them. Separately, this calculator searches a wide range (roughly -36% to +150% a year); when no return in that range makes the two paths tie exactly under a given set of inputs, it reports no breakeven rather than guessing at one outside the range it searched.
Does the cash-out comparison add a rate premium for pulling cash out?
No — the new-loan-rate field is used exactly as entered; cash-out refinances commonly carry a higher rate than a rate-and-term refinance, and the rate that reflects that has to come from the reader's own quote. Both cash-out scenarios (refinance vs. not) are simulated to the same horizon with the same total monthly outlay: whichever scenario's required payment is smaller has the difference invested every month, so the comparison isn't just the proceeds sitting still against nothing.
Sources
- Revenue Procedure 2025-32
Internal Revenue Service — checked 2026-08-18
Source of the 2026 standard deduction, SALT cap, and mortgage-interest debt cap figures used in the tax model. §.14 gives the 2026 standard deduction as $16,100 (single/MFS), $32,200 (MFJ), and $24,150 (HoH).
- Publication 936: Home Mortgage Interest Deduction
Internal Revenue Service — checked 2026-08-12
Pub. 936 prescribes the AVERAGE mortgage balance for the qualified-loan-limit calculation. This site uses the START-OF-YEAR balance instead (see docs/methodology.md, 'Known simplifications') — a documented, conservative deviation, cited here precisely because we diverge from it, not because we comply with it.
- One Big Beautiful Bill Act, Pub. L. 119-21
U.S. Congress — checked 2026-08-12
Statutory basis for the 2026 tax constants (standard deduction indexing, SALT cap, mortgage-interest debt cap).
*The calculations provided are for illustrative purposes only and should not be considered financial advice. Please consult with a qualified financial professional before making any decisions.