Mortgage Payoff vs. Invest Calculator

Compare using your savings to wipe out a mortgage today against keeping the loan and investing the same cash upfront. Results update instantly and judge the tradeoff on final net wealth after mortgage interest.

Assumptions

Shared mortgage and market assumptions for both paths. Adjust these once and both scenarios update instantly.

Used both as the payoff amount and the day-0 lump sum investment comparison. Range $50,000 to $800,000.
27 years
2.5%
Monthly mortgage payment resolves to $1,232 / mo.
Return assumption mode
Choose manual planning assumptions or a historical market reference.
7.0%
Adjust expected annual return for planning scenarios.

Option 1

Pay off mortgage today

Invest the full balance on day 0, keep the loan, and invest monthly on top. Use savings to clear the balance at once, then build a portfolio from monthly investing.

$1,200 / mo
Monthly amount invested after the mortgage is fully gone, over time.
Mortgage payment$0 / mo
Monthly investing$1,200 / mo
Total monthly outflow$1,200 / mo

Savings clear the mortgage immediately, so the portfolio starts at zero and grows from monthly contributions only, tracked over time.

Final portfolio

$1,148,528

Monthly investing

$1,200 / mo

Mortgage interest cost

$0

Net value

$1,148,528

Option 2

Keep mortgage and invest

Invest the full mortgage balance on day 0, keep the loan, and invest monthly on top. Use savings to clear the balance at once, then build a portfolio from monthly investing.

$400 / mo
Monthly amount invested while the mortgage payment continues.
Mortgage payment$1,232 / mo
Monthly investing$400 / mo
Total monthly outflow$1,632 / mo

The mortgage stays in place while the same cash is invested upfront and tracked both gross and net of mortgage interest paid.

Final gross portfolio

$2,291,947

Monthly investing

$400 / mo

Mortgage interest cost

$109,094

Net value

$2,182,853

Option 2 wins on net wealth

$1,034,326

Keeping the mortgage and investing upfront ends at $2,182,853 net versus $1,148,528 for paying off the mortgage first.

Portfolio comparison over time

Blue shows the payoff-first portfolio. Green dashed subtracts cumulative mortgage interest from the gross investment path.

How to Read Your Results

Understand what each metric means, how the two paths diverge over time, and what actually drives the outcome - not just which option wins on paper.

Introduction

Paying off a mortgage early feels responsible. Investing the same cash instead feels ambitious. Most people treat these as a values question rather than a math question.

They are both.

But the math deserves a clear answer first. The core question is always the same:

Would the same money grow faster in the market than it saves me in mortgage interest?

This calculator is built to answer that question honestly. It takes your remaining mortgage balance, treats it as the lump sum available to you today, and models two futures side by side:

  • You clear the mortgage immediately, then build a portfolio from monthly investing
  • You keep the mortgage, invest the lump sum upfront, and continue making monthly contributions alongside your mortgage payment

Both paths are judged on the same metric: net wealth at the end of your mortgage term, after accounting for every dollar of mortgage interest paid.

Because the reality is simple: the winning path depends on the spread between your mortgage rate and your investment return — and that spread is not always what people expect. This calculator makes it visible.


What Makes This Calculator Different?

Most mortgage payoff calculators tell you how much interest you save by paying early. Most investment calculators tell you how much a lump sum grows over time. Neither tool compares the two outcomes on the same basis.

This calculator is built around the comparison itself. It:

  • Uses the same lump sum for both paths — your remaining mortgage balance
  • Applies the same time horizon — your remaining mortgage term
  • Judges both on net wealth, not gross portfolio value
  • Subtracts cumulative mortgage interest from the investment path so the comparison is honest
  • Adjusts the monthly investing amount for each path based on what cash actually becomes available

The result is a direct, apples-to-apples answer: which choice leaves you wealthier at the end of your mortgage term, and by how much.


Key Concepts You Need to Understand

1. The Opportunity Cost of Paying Off Debt

When you use a lump sum to pay off your mortgage, you are not just eliminating debt. You are also choosing not to invest that money. The return you forgo is the opportunity cost.

Whether paying off the mortgage is the better choice depends on whether your mortgage interest rate is higher or lower than what you could expect to earn by investing. That comparison is the foundation of the entire calculation.

2. The Spread Between Mortgage Rate and Investment Return

This is the single most important variable in the analysis. If your mortgage rate is 5% and your expected investment return is 7%, the net spread is roughly 2% per year in favor of investing. If your mortgage rate is 6% and your expected return is 5%, the spread favors paying off the debt.

A small spread in either direction, compounded over 20 or 25 years, produces a significant difference in outcome. The calculator makes that difference visible rather than leaving it to intuition.

3. Net Wealth vs. Gross Portfolio Value

This distinction matters enormously for an honest comparison.

If you keep the mortgage and invest, the gross portfolio may grow large — but you also pay mortgage interest every month over the remaining term. Gross portfolio value ignores that cost. Net wealth subtracts every dollar of mortgage interest you paid over the life of the loan from the final portfolio value.

This is the only fair comparison. A result that shows the investment path winning by a large margin on gross value but a smaller margin on net value is telling you something important about how much the mortgage actually cost.

4. Monthly Cash Flow After the Decision

The two options do not have the same monthly cash position.

  • If you pay off the mortgage, the monthly payment disappears. That freed cash becomes available to invest each month.
  • If you keep the mortgage, the monthly payment continues. The cash available to invest each month is lower by the amount of the mortgage payment.

The calculator reflects this directly. The monthly investing amount shown for each path is not the same number — it accounts for what cash is actually available after each choice.

5. Lump Sum Investing vs. Monthly Contributions

These two types of investing compound differently.

A lump sum invested on day one has the full benefit of compounding for the entire period. Monthly contributions enter the compounding system gradually — each one has less time than the one before it.

In the invest path, the lump sum goes to work immediately. In the payoff path, no lump sum is invested — only the monthly contributions that accumulate from the freed mortgage payment. That structural difference is part of what often makes the invest path stronger when returns are meaningfully higher than the mortgage rate.

6. Time Horizon

The comparison is run over the remaining mortgage term. At the end of that period, the mortgage is fully paid on both paths — the payoff path because the lump sum cleared it on day one, the invest path because the scheduled payments complete it on time.

Both paths are debt-free at the same moment. The difference is what each path has accumulated in investments by that date.


The Core Formula

Option 1 — Pay Off Mortgage:

The mortgage is cleared on day one. No interest is paid. The monthly investing begins immediately using the freed cash flow:

Portfolio = Monthly Contribution × [((1 + r)^t − 1) / r] × (1 + r)

Where:

  • r = monthly return rate
  • t = months remaining on mortgage
  • Monthly contribution = cash available after clearing the mortgage

Option 2 — Keep Mortgage and Invest:

The lump sum is invested immediately. Monthly contributions continue alongside the mortgage payment. Total interest paid over the term is calculated from the amortization schedule:

Gross Portfolio = Lump Sum × (1 + r)^t + Monthly Contribution × [((1 + r)^t − 1) / r] × (1 + r)

Net Portfolio = Gross Portfolio − Total Mortgage Interest Paid

The winner is determined by comparing Option 1's final portfolio to Option 2's net portfolio.


How to Use the Calculator

Step 1 — Enter Your Mortgage Details

Provide:

  • Remaining mortgage balance (this is also the lump sum in the invest path)
  • Years remaining on the mortgage
  • Mortgage interest rate

The calculator derives your monthly mortgage payment from these inputs automatically.


Step 2 — Set the Monthly Investing Amounts

Each path has its own monthly investing field:

  • Option 1 (Pay Off): Enter the amount you plan to invest each month after the mortgage is cleared
  • Option 2 (Keep and Invest): Enter the amount you can invest each month while continuing to make mortgage payments

These do not need to match. The calculator compares whatever cash allocation you choose for each path.


Step 3 — Set Your Return Assumption

Choose your expected annual investment return, either manually or using a historical market reference. This assumption applies to both paths equally.


Step 4 — Read the Results

Look at:

  • Final portfolio value for each path
  • Total mortgage interest paid under Option 2
  • Net wealth for each path after interest costs
  • The dollar difference between the two outcomes

Step 5 — Test the Sensitivity

Change the return assumption by 1–2% in each direction. Notice how much the winning margin changes. That sensitivity tells you how confident you need to be in your return assumption before the investment path is clearly superior.


Understanding the Results

Final Portfolio Value (Option 1)

The portfolio accumulated by investing your freed monthly cash flow over the mortgage term, starting from zero on day one. This path has no mortgage interest cost, so the final portfolio is the net wealth figure directly.


Gross Portfolio Value (Option 2)

The total value of the invested lump sum plus monthly contributions, compounded over the mortgage term. This is the raw investment result before accounting for the cost of carrying the mortgage.

Gross portfolio value is not the right number to compare against Option 1. It ignores the interest you paid to keep the mortgage in place.


Mortgage Interest Cost (Option 2)

The total interest paid over the remaining mortgage term under a normal amortization schedule. This is a real cost of the invest path — money that leaves your household and goes to the lender. It must be subtracted to make the comparison honest.


Net Wealth (Option 2)

Gross portfolio minus cumulative mortgage interest paid. This is the correct figure to compare against Option 1's final portfolio. It represents what you actually have after accounting for the full cost of keeping the mortgage.


The Net Winner

The calculator states which path produces higher net wealth and by how much. That gap — not the gross portfolio difference — is the meaningful result.

When the invest path wins, the gap represents how much more wealth you accumulate by putting the money to work in markets rather than using it to eliminate a relatively low-cost debt. When the payoff path wins, the gap represents the effective value of the certainty and interest savings you gained.


Scenario Insights

The chart shows both portfolio paths over time. Blue tracks the payoff-first portfolio growing from monthly contributions. Green dashed tracks the invest path net of cumulative interest — showing how the advantage builds or narrows as the mortgage term progresses.

If the green line consistently runs above the blue line, the invest path is ahead throughout the period. If the lines are close, the outcome is more sensitive to your return assumption, and testing a lower return becomes more important.


What Matters Most

Do not focus only on which path wins. Pay attention to:

  • How sensitive the result is to the return assumption. If the invest path wins by a large margin only at 7% but barely wins at 5%, your confidence in returns matters more than the headline number suggests.
  • The mortgage interest cost in absolute terms. Even when investing wins, the interest cost is real. Understanding its size helps you evaluate whether the margin of victory is worth the behavioral commitment of staying invested through market volatility.
  • Your actual monthly cash flow. A calculator result is only useful if the plan behind it is one you can sustain. If keeping the mortgage means investing a smaller monthly amount than you can realistically maintain, the math may favor a different allocation than the model suggests.

Frequently Asked Questions (FAQ)

What does this calculator compare?

It compares two uses of the same lump sum: paying off a mortgage immediately versus investing that money and keeping the mortgage in place. Both paths are evaluated over the same time horizon — your remaining mortgage term — and judged on net wealth after accounting for mortgage interest paid.


What is the lump sum in this comparison?

The lump sum is your remaining mortgage balance. The logic is that you have that amount available as a choice: use it to clear the debt, or deploy it into the market. The calculator models both uses and compares the outcomes.


Why does the calculator subtract mortgage interest from the invest path?

Because mortgage interest is a real cost. If you keep the mortgage, you pay interest every month for the remaining term. That money does not grow — it goes to the lender. Subtracting it from the gross investment result gives you net wealth: what you actually have after the full cost of the decision.

Comparing gross investment value to the payoff portfolio would be misleading, because it ignores a significant expense of the invest path.


Why are the monthly investing amounts different for each option?

Because your monthly cash position is different under each choice.

If you pay off the mortgage, the monthly payment stops immediately. That cash becomes available to invest. If you keep the mortgage, the payment continues. You have less cash available each month for investing.

The calculator lets you set each amount independently to reflect your actual situation.


When does paying off the mortgage win?

Paying off the mortgage tends to win when:

  • The mortgage interest rate is relatively high (close to or above expected investment returns)
  • The remaining term is short (less compounding time for the lump sum)
  • The monthly investing amount after payoff is high relative to what would be invested in the keep path

In environments where the spread between mortgage rates and investment returns is narrow or negative, eliminating the guaranteed cost of debt often beats the uncertain return from markets.


When does investing win?

Investing tends to win when:

  • The expected investment return is meaningfully higher than the mortgage rate
  • The remaining term is long (more time for the lump sum to compound)
  • The monthly investing amount while keeping the mortgage is still sustainable

The longer the time horizon and the wider the spread between return and mortgage rate, the more powerful the investment path becomes.


What return rate should I use?

A reasonable range for long-term planning:

  • Conservative: 4–5%
  • Balanced: 5–7%
  • Aggressive: 7–9%

Use the conservative end when your mortgage rate is already relatively high, or when you want to test whether the invest path still wins under weaker market conditions. The result at a conservative return assumption is often the more useful planning input than the result at an optimistic one.


Does the calculator account for taxes on investment gains?

Not directly in the base calculation. In practice, taxes on investment returns reduce the net advantage of the invest path. If your gains are subject to capital gains tax, the true net advantage of investing is lower than the gross comparison suggests.

If this is relevant to your situation, mentally discount the invest path's advantage by your approximate tax rate on gains, or consult a tax adviser for a precise figure.


Does the calculator account for mortgage interest tax deductibility?

Not in the default calculation. In some countries and circumstances, mortgage interest is tax-deductible, which reduces the effective cost of keeping the mortgage. If that applies to your situation, the true interest cost is lower than the figure the calculator shows, which would make the invest path more attractive than the headline result suggests.


What if I cannot invest the full lump sum?

If your cash available is less than the full mortgage balance, the comparison changes. The calculator is designed around a full payoff scenario — using the entire remaining balance in one direction or the other. If you are considering a partial prepayment, the more relevant tool may be a standard mortgage amortization calculator combined with an investment growth projection.


Is this a purely financial decision?

No. The calculator models the financial outcome. It does not model:

  • The psychological value of being debt-free
  • The reduced financial risk of having no mortgage payment in an income disruption
  • The behavioral challenge of staying invested through market volatility while carrying a mortgage

Many people who would mathematically benefit from investing choose to pay off their mortgage anyway — and that is a reasonable choice. Certainty, simplicity, and peace of mind have real value even when they do not maximize net wealth. The calculator gives you the financial picture. What you do with it is yours to decide.


What if interest rates or investment returns change over time?

The calculator assumes fixed rates throughout the period. Real mortgages have fixed or variable rates depending on the product, and real investment returns fluctuate significantly year to year. The model is a planning tool, not a prediction.

To account for uncertainty, test the invest path at a return assumption 2% lower than your base case. If the invest path still wins meaningfully, you have more confidence in the decision. If the result flips, the comparison is sensitive enough that the certainty of debt elimination deserves serious consideration.


Should I use this calculator before making a large prepayment?

Yes — even a partial prepayment involves the same trade-off. Every dollar directed at the mortgage is a dollar not invested. The question of whether that trade-off is favorable depends on the same spread between your mortgage rate and expected investment return. Running the numbers before committing to a prepayment strategy gives you a clearer basis for the decision.


What time horizon does the calculator use?

The comparison runs over your remaining mortgage term. At the end of that period, both paths are mortgage-free. The difference is in what was built in investments along the way. Using the mortgage term as the time horizon keeps the comparison symmetrical — both paths face the same endpoint.


Can this calculator help me decide between overpaying monthly and investing?

The calculator is designed around a lump sum decision — using a large available balance one way or the other. For ongoing monthly overpayment decisions, the same underlying logic applies: the overpayment earns a guaranteed return equal to your mortgage rate, while the same cash invested earns an uncertain market return. The direction of the spread between those two rates guides the decision in the same way.


Final Thoughts

Most people frame this question as a debate between financial discipline and financial ambition. Paying off the mortgage feels safe. Investing feels bold. But the more useful frame is simpler: you have a guaranteed cost and an uncertain return, and you need to decide which one to pursue with the cash you have available.

When you run the numbers, a few things become clear.

The spread between your mortgage rate and your expected investment return is the variable that matters most — not the absolute size of either number. A 2% mortgage and a 7% expected return is a very different situation than a 5% mortgage and a 6% expected return, even though both technically favor investing.

The time horizon amplifies everything. The longer your remaining term, the more powerfully compounding works in favor of the invest path — if returns cooperate. The shorter the term, the more the guaranteed interest savings of the payoff path can compete.

And the net comparison is the only honest one. Gross portfolio value looks impressive. But mortgage interest is a real cost, paid from real cash, over real years. The result that matters is what you have after that cost is accounted for.

Use this calculator to find the financial answer. Then weigh that answer against the parts of the decision that numbers cannot capture — certainty, cash flow, risk tolerance, and what you are actually likely to follow through on.

The best financial decision is not always the one that maximizes net wealth on a spreadsheet. It is the one that fits your situation well enough that you can execute it without second-guessing it for the next two decades.

Know the math. Then make the call.