Mortgage vs Investment Calculator

Compare paying off your mortgage early against investing the spare cash. See the winner in today's money, including the crossover year and total interest saved.

All values are shown in today's money

We subtract inflation from your expected market return automatically, so every dollar you see below has the same purchasing power as a dollar today. No mental math required.

Loan Details

Expected Return

Real (inflation-adjusted) return: ≈ 8.3%. Every dollar shown in results is in today's money.

Extra Cash

Pay off early, then invest

Peace of mind & early payoff
Debt-free in
Year 2044 (18.0 yrs from now)
End portfolio (real)
517,895 $
Total mortgage interest paid
133,195 $
End net worth (real)
517,895 $

Knock out the mortgage as fast as possible, then redirect every dollar into investments until the original payoff date. A guaranteed return equal to your mortgage rate, then equities.

Where your money goes each month (year 1)

Average monthly split of your first-year cash flow between mortgage interest, principal paid down, and new investments.

2,110 $/ month
  • Mortgage interest1,230 $58%
  • Mortgage principal880 $42%
Recommended for your numbers

Invest only, keep the mortgage

Maximum long-term wealth
Debt-free in
Year 2056 (30.0 yrs from now)
End portfolio (real)
790,983 $
Total mortgage interest paid
215,775 $
End net worth (real)
790,983 $

Make scheduled payments only and invest every extra dollar from day one. Wins when the market return comfortably beats your mortgage rate over a long horizon.

Where your money goes each month (year 1)

Average monthly split of your first-year cash flow between mortgage interest, principal paid down, and new investments.

2,110 $/ month
  • Mortgage interest1,242 $59%
  • Mortgage principal369 $17%
  • Investments500 $24%

One extra payment per year + invest the rest

Balanced middle ground
Debt-free in
Year 2051 (25.4 yrs from now)
End portfolio (real)
695,913 $
Total mortgage interest paid
185,350 $
End net worth (real)
695,913 $

The classic 13-payments-per-year trick: shave years off the mortgage with one annual lump while still feeding investments every month. A hedge against being wrong about returns.

Where your money goes each month (year 1)

Average monthly split of your first-year cash flow between mortgage interest, principal paid down, and new investments.

2,110 $/ month
  • Mortgage interest1,242 $59%
  • Mortgage principal503 $24%
  • Investments366 $17%
Portfolio growth over time
Mortgage balance over time

Side-by-side scoreboard

StrategyDebt-free in (years)Total interest paidEnd portfolio (net of tax)
Pay off early, then invest18.0133,195 $517,895 $
Invest only, keep the mortgage30.0215,775 $790,983 $
One extra payment per year + invest the rest25.4185,350 $695,913 $

Where will the extra payment come from?

The math is easy — finding the money is hard. See exactly where your money goes each month and free up the cash to pay your mortgage off years early.

500 $/mo

When each strategy wins

Most personal-finance debates die on the line between math and emotion. Pay off the mortgage and you buy a guaranteed return equal to your interest rate, plus the psychological relief of owning your home outright. Invest instead and you bet on a higher expected return that you may or may not capture over your specific horizon. There are exactly three sensible approaches to deploying spare cash when you have a mortgage, and the right answer depends on your interest rate, your time horizon, your tax situation, and how much volatility your gut can absorb. The sections below explain when each of the three strategies above is the mathematically and behaviorally correct choice.

When paying off early wins

Paying off early wins whenever your mortgage rate is higher than your expected real (after-inflation) return on investments. With a 7% mortgage and a 5% real stock return, every extra dollar paid against the principal earns a guaranteed 7% versus a risky 5%, and the math is decisive. Early payoff also wins for anyone within ten years of retirement, because a guaranteed return matters more than expected value when sequence-of-returns risk can wipe out a decade of compounding right when you need to start drawing from the portfolio. Behaviorally, a paid-off mortgage is the highest-impact stress reduction a household can buy — it removes the single largest fixed bill in most budgets and dramatically improves resilience against job loss, illness, or a deep recession. If your rate is above 6% in 2026, or you simply want to sleep better at night, the math and the psychology point the same direction: pay it off first, then redirect the freed-up cash flow into investments and finish the same horizon ahead.

When investing wins

Investing wins when your mortgage rate is comfortably below your expected real return and you have at least fifteen years to let compound interest do its work. A 3.5% fixed mortgage against a 7% real return is a 3.5-point spread, and over twenty-five years that gap compounds into six-figure differences in end net worth. The case strengthens further if you have a long horizon, a high-savings-rate budget that absorbs volatility, and access to tax-advantaged accounts that shield gains from capital gains tax until withdrawal. Even with taxes turned on, the verdict rarely flips when the spread is wide — at 15% long-term, the effective real return drops by roughly a point, which is usually not enough to close the gap. The opportunity cost of locking spare cash into home equity instead of equities is real and often underestimated: equity in your house is illiquid, earns the mortgage rate rather than the market, and cannot be redeployed without a sale or a cash-out refinance that resets the clock on your mortgage.

When the middle way wins

The middle way — one extra mortgage payment per year, invest the rest — wins for people whose honest answer is somewhere between certainty and optimism. It is a behavioral commitment device: the annual lump shaves five to seven years off a thirty-year mortgage without demanding monthly discipline, while the leftover cash still feeds the portfolio every month and captures market upside. It also diversifies your outcomes across the two possible futures. If returns under-perform, the lump payments mean you still finish with materially less interest paid; if returns over-perform, your monthly investing still captures most of the upside. The trade-off is that it almost never wins outright on either dimension — it does not pay off the fastest, nor does it build the biggest portfolio. Choose this strategy if your mortgage rate sits in the 4-to-6 percent zone, you want a partial inflation hedge against your fixed debt, you cannot predict with confidence which side will win, and you value being approximately right over being decisively wrong in either direction.

Plug your real numbers into the calculator at the top of the page to see which strategy your specific situation favors.

How to use the calculator

Four short steps, no signup required. Defaults already represent a realistic 2026 household so you get a useful answer the moment the page loads.

  1. 1

    Enter your loan details

    Fill in your remaining mortgage balance, current interest rate, and years left on the term. All three strategies are compared over this same horizon.

  2. 2

    Set your expected return and inflation

    Use a long-term nominal stock market return (10% is the historical S&P 500 average) and a realistic inflation assumption (3% is the long-run norm). The calculator converts these into a real return automatically.

  3. 3

    Enter your extra monthly cash

    How much spare cash do you have each month after your regular mortgage payment? This is the money the three strategies are competing for.

  4. 4

    Read the three strategy cards

    The winner by end net worth is marked Recommended for your numbers. Scroll down for the portfolio growth chart, the scoreboard table, and the 600-word deep dive on when each strategy is right.

Five quick decision heuristics

Rules of thumb that hold up across most reasonable inputs. Use them as a sanity check on what the calculator tells you.

  • If your mortgage rate is above 6% in 2026, paying off early almost always wins on a real-return basis. The risk-free return on principal reduction beats the risk-adjusted return on equities at that rate, especially once you account for capital gains tax on investment gains.

  • If your rate is below 4% and you have 20+ years left, investing the cash usually wins. The historical real return on global equities is around 5-7%, which leaves a comfortable spread over a low fixed rate. The longer the horizon, the more compound interest dominates.

  • Within ten years of retirement, weight payoff more heavily even if the math favors investing. A paid-off home eliminates your largest fixed expense and dramatically reduces sequence-of-returns risk during the most fragile decade of your financial life.

  • Build an emergency fund of three to six months of expenses before deploying spare cash against either side. Otherwise a single unexpected bill can force you to sell investments at a loss or take on high-interest credit card debt, undoing months of progress.

  • If you genuinely cannot decide, choose the middle way: one extra mortgage payment per year, invest the rest. It never wins outright, but it never loses badly either, and the behavioral simplicity of one annual lump beats a perfect plan you never execute.

What wins at each mortgage rate

Pre-computed winners for a $300,000 balance with $500 extra cash per month over 28 years. Use this as a quick sanity check before tweaking the calculator above.

Mortgage rateWinner at 7% real returnWinner at 10% real returnBreak-even real return
3.0%Invest onlyInvest only≈ 3.0%
4.0%Invest onlyInvest only≈ 4.0%
5.0%Invest onlyInvest only≈ 5.0%
6.0%Invest only (narrow)Invest only≈ 6.0%
7.0%Pay off earlyInvest only≈ 7.0%
8.0%Pay off earlyPay off early (narrow)≈ 8.0%

Glossary

TermWhat it means
Opportunity costThe return you give up on the next-best use of a dollar. Paying down a mortgage early means the dollar is no longer available to invest in equities, and vice versa.
Compound interestInterest earned on previously earned interest. The driver of long-run wealth in investment portfolios and the reason long horizons favor investing over debt repayment.
AmortizationThe monthly schedule of mortgage payments split into interest and principal. Early payments are mostly interest; later payments are mostly principal.
Capital gains taxTax owed on investment gains when shares are sold. US long-term rate is typically 15%; Czechia is 15% but exempt after three years of holding.
Real returnInvestment return after subtracting inflation, expressed in today's purchasing power. The honest yardstick for comparing strategies over long horizons.
Nominal returnInvestment return before subtracting inflation. The headline number you see in market reports, but not the right number for long-horizon comparisons.
EquityIn a mortgage context, the portion of your home's value that you own outright (home value minus outstanding mortgage balance).
Risk premiumThe extra expected return investors demand for taking equity risk over a risk-free asset. The mortgage payoff decision is essentially a bet on capturing this premium.

Frequently asked questions

Is it better to pay off the mortgage early or invest?

It depends on the gap between your mortgage rate and your expected real (after-inflation) return on investments. If your mortgage rate is above your expected real return, paying off early wins on a guaranteed basis. If the expected real return is comfortably higher and you have at least fifteen years, investing usually wins on expected value. In 2026, the rough cutoff sits around a 5-to-6 percent fixed mortgage rate. Use the calculator at the top of this page to plug in your specific numbers — it will show you the winner by end net worth in today's money.

Does the answer change if my mortgage rate is low?

Yes, dramatically. A 3 percent fixed mortgage against a 7 percent real stock return is a 4-point spread that compounds into six-figure differences over twenty-five years. At low rates, the math overwhelmingly favors investing the spare cash and making only scheduled mortgage payments. The case is even stronger if you have access to tax-advantaged accounts that shield the investment gains. The main reasons to still pay down a low-rate mortgage are behavioral: peace of mind, simplifying retirement cash flow, or preparing to leave the workforce within ten years.

What if the stock market returns less than my mortgage rate?

Then paying off early wins decisively. A guaranteed return equal to your mortgage rate beats a risky return that turns out lower, every time. This is exactly the scenario that hits investors who load up on equities at the top of a cycle and then face a decade of below-average returns — they would have been better off paying down the mortgage. The calculator models a single point estimate for return, so if you believe the next twenty years will under-perform the historical 7 percent real average, lower the expected return input and the recommendation will likely shift to paying off early.

Should I count my mortgage interest tax deduction?

Usually no, because most households no longer claim it. Since the 2017 Tax Cuts and Jobs Act doubled the US standard deduction, only about 10 percent of US homeowners itemize, and Czechia's mortgage interest deduction is capped and modest. If you do itemize, your effective mortgage rate is reduced by roughly your marginal tax rate times the deduction — for example, a 6 percent mortgage with a 24 percent marginal rate becomes effectively 4.56 percent. That shifts the math toward investing. This calculator does not model the deduction; if it applies to you, mentally adjust your mortgage rate input downward.

How does inflation change the math?

Inflation matters because it erodes both your mortgage debt and your investment returns, but unevenly. Your mortgage rate is nominal and fixed, so high inflation effectively shrinks the real value of every payment you make — a windfall for the borrower. Investment returns are usually quoted nominally too, but you need to subtract inflation to get the real return that matters for comparison. This calculator does that subtraction automatically: every dollar shown in the results is in today's purchasing power, so you can compare strategies on a true apples-to-apples basis.

Is the math different in Czechia or Europe vs the US?

The core math is identical, but a few inputs differ. Czech mortgages typically have shorter fixation periods (5-10 years) so your rate may reset, which adds risk to long horizon assumptions. Czech capital gains tax is 15 percent but exempt after three years of holding, which makes the after-tax case for investing stronger than in the US. Average historical equity returns are slightly lower in Europe than in US-dominated indices. If your mortgage is in CZK or EUR, switch the currency in the calculator and the defaults adjust accordingly. The decision rules in the deep-dive section above still apply.

What about emotional peace of mind — is that worth the math difference?

Often, yes. A paid-off mortgage removes the largest fixed expense in most household budgets and reduces fragility against job loss, illness, or recession. Behavioral economists have documented that the marginal utility of debt freedom exceeds its dollar-equivalent return for many people. If you would sleep better at night with no mortgage, that is a legitimate input to the decision and not a math mistake. The calculator gives you the strict-dollars answer; weight it against your own risk tolerance. For households within a decade of retirement or with unstable income, peace of mind often deserves to win.

How is one extra payment per year different from biweekly payments?

Biweekly payments and one annual extra payment are mathematically almost identical: both add roughly one extra monthly payment per year. Twenty-six biweekly payments equal thirteen monthly payments. The difference is purely behavioral — biweekly aligns with paychecks and feels invisible, while a single annual lump feels intentional and gives you the option to redirect it in tough years. This calculator models the annual lump because it lets the spare cash earn whatever return you choose during the eleven months it is not yet applied. The numerical difference between the two patterns is well under one percent of end net worth.

What if I do not have an emergency fund yet?

Build the emergency fund first, before deploying spare cash against either the mortgage or investments. A standard target is three to six months of essential expenses in a high-yield savings account. Without that cushion, a single unexpected bill — car repair, medical, job gap — can force you to sell investments at a loss or take on high-interest credit card debt, undoing months of careful progress. The opportunity cost of holding cash short-term is modest. The downside risk of being uninsured against a cash shock is large. Get the buffer in place, then optimize.

Should I prioritize maxing my 401k or pension before extra mortgage payments?

Yes, almost always. Any employer match is a 50-to-100 percent immediate return on contribution, which dominates every other use of the dollar. After capturing the match, traditional 401k or pension contributions also reduce current taxable income, which is functionally a discount on the contribution. Once you have captured the match and any tax-advantaged contribution room, the leftover cash is what the strategies on this page are competing for. This calculator assumes you have already optimized retirement contributions and are deciding what to do with surplus cash.

Does this calculator factor in capital gains tax?

Yes, optionally. Open the Include taxes section under the inputs and set your capital gains rate (default 15 percent). The calculator applies the tax to investment gains only — not to contributions — at the end of the comparison period. With tax enabled, the case for paying off the mortgage strengthens slightly because investment gains are taxed while interest savings are not. In the US, long-term capital gains is typically 15 percent (or 20 percent for high earners). In Czechia, it is 15 percent if held under three years and zero after.

What real (inflation-adjusted) return assumption should I use?

A reasonable long-run real return for a globally diversified equity portfolio is between 4 and 7 percent. The historical US-heavy benchmark sits near 7 percent real, but global ex-US has been closer to 4-5 percent over the same period. If you want a conservative answer, use 5 percent real. If you want an optimistic answer, use 7 percent real. Avoid anything above 8 percent real over multi-decade horizons — it requires the next thirty years to outperform the historical average, which is not a base case any responsible planner uses.

What if I plan to sell or refinance the house before payoff?

If you plan to sell within five years, the math shifts toward investing and away from paying off principal. Extra principal payments build illiquid home equity that is only released when you sell, and the closing costs of a sale can eat a meaningful share of what you paid down. Refinancing is similar — if your rate is high and rates may fall, holding cash in investments preserves optionality that early principal payments do not. This calculator assumes you hold the mortgage to its current end date; adjust your years-left input if a shorter horizon is more realistic.

Why does invest-only usually beat pay-off-early in your example?

Because the default inputs (10 percent nominal stock return, 3 percent inflation, 6.5 percent mortgage rate) produce a real return of roughly 7 percent versus a 6.5 percent mortgage cost. That is a positive spread, and over a 28-year horizon a positive spread compounds into a large gap. Lower the expected return to 8 percent or raise the mortgage rate to 7.5 percent and the recommendation flips to paying off early. The defaults reflect a realistic 2026 case; your own numbers may legitimately produce a different winner, which is exactly why the calculator exists.

Educational tool, not financial advice

This calculator is for educational use and assumes constant returns, constant inflation, and a single-point capital gains rate. Real markets vary year to year and the math here cannot predict your specific outcome. Always run the same decision past a qualified financial advisor before acting on it.

Want to track this for real, not just simulate it?

Plug your real balances into My Financial Freedom Tracker and watch your mortgage payoff and portfolio grow side-by-side every month.

Get started free