roofy
Money

Pay Off Your Mortgage Early or Invest? How to Decide

Prepaying a mortgage earns a sure return equal to its rate; investing may earn more, with risk. Compare after tax, liquidity and penalties, with worked math.

8 min read · Updated

Every extra dollar you put toward your mortgage earns a guaranteed, risk-free return equal to your interest rate; investing that dollar instead only comes out ahead if your after-tax investment return beats that rate, and that return is never guaranteed. So the higher your mortgage rate, the stronger the case for prepaying; the lower it is, and the longer you can stay invested, the stronger the case for investing.

Before either, most people should have an emergency fund and no high-interest debt. This guide walks through the comparison, the rules on prepayment penalties, and a worked example you can redo in our calculators.

At a glance

Return on prepaying
Your mortgage rate
Guaranteed, but locked in the house
Break-even return
≈ your rate, after tax
Investing must beat this to win
Prepayment penalties
Max 2% (yrs 1–2), 1% (yr 3)
None after 3 years on covered loans
Prepaying $500/mo in our example
Saves $225,192
Loan paid off 9 years 2 months early

Do these first

  1. 1

    Build an emergency fund

  2. 2

    Pay off high-interest debt

  3. 3

    Capture any employer retirement match

  4. 4

    Then compare prepaying with investing

The comparison, side by side

Prepay the mortgageInvest the money
ReturnYour mortgage rate, guaranteedUnknown; can be higher or negative
LiquidityLow: locked in home equityHigher (less so in retirement accounts)
Lowers required monthly paymentNo, unless you recast or refinance
Shortens the loan
Tax angleLose some deductible interest if you itemizeGains and dividends may be taxed
Peace of mindHigh: owning outrightDepends on your risk tolerance

What your “guaranteed return” really is

If your rate is 6.5%, each dollar of extra principal saves 6.5% a year in interest for as long as the loan would have run. Taxes can shrink that a little: if you itemize and deduct mortgage interest, part of the interest you save was tax-deductible, so your after-tax return from prepaying is lower. Under IRS Publication 936, you can deduct home mortgage interest only if you itemize on Schedule A, and for loans taken out after December 15, 2017, only interest on up to $750,000 of acquisition debt ($375,000 if married filing separately) counts. If you take the standard deduction, your after-tax return from prepaying is simply your rate. See who still benefits from the deduction.

Investment returns work the other way: they are uncertain, and gains may be taxed unless they are in a retirement account. To compare fairly, use the return you expect after taxes and fees, and remember that a few bad years can land right when you need the money.

Worked example: $500 a month, two ways

Take a $500,000, 30-year fixed loan at 6.5%. The principal-and-interest payment is $3,160.34, and over 30 years you would pay $637,722 in interest. Now suppose you have an extra $500 a month.

$500,000 at 6.5%, 30-year fixed: prepaying $500/month
ScenarioPaid off inTotal interestInterest saved
Regular payments30 years$637,722—
Plus $500/month to principal20 years 10 months$412,530$225,192
Source: Roofy amortization math (monthly compounding)

Prepaying $500 a month for 20 years (about $120,000 of extra payments) cuts the balance $245,210 below where it would have been. Investing the same $500 a month instead would grow to:

Investing $500/month for 20 years at hypothetical after-tax returns
After-tax annual returnPortfolio after 20 yearsvs. prepaying ($245,210)
4%$183,387$61,823 behind
6.5% (same as the mortgage)$245,210A tie
8%$294,510$49,300 ahead
Source: Roofy math; returns are illustrative, not forecasts

The math confirms the rule: if your after-tax return equals your mortgage rate, it is a tie. Prepaying wins at lower returns and investing wins at higher ones. The difference is that the prepaying column is certain and the investing column is not, while the investing column is money you can reach and the prepaying column is not.

How prepaying actually works

  • Mark it as principal. Most servicers let you add an amount labeled “additional principal” online or on the coupon. Check your next statement to confirm it reduced the principal, not escrow or a future payment.
  • Your required payment doesn’t drop. On a fixed-rate loan, extra principal shortens the term; the monthly payment stays the same. If you want a lower payment instead, ask about a recast.
  • Watch how partial amounts are handled. Under Regulation Z, a servicer must credit a full periodic payment on the day it arrives, but it may hold a payment smaller than a full installment in a suspense account until enough builds up. Sending “extra” as a separate principal payment avoids confusion.
  • Lump sums vs. monthly extras. Both work. Earlier dollars save more because they stop interest sooner.

Prepayment penalties

The CFPB notes that penalties typically apply when you pay off the whole loan early (by selling or refinancing), sometimes when you pay off a large amount at once, and do not normally apply to small extra principal payments. Your note and closing documents say whether your loan has one; ask the servicer if unsure.

When prepaying tends to make more sense

  • Your mortgage rate is high relative to safe returns you could earn elsewhere.
  • You already have a full emergency fund and are on track with retirement savings.
  • You plan to stay in the home and want to retire without a mortgage payment.
  • Market risk would keep you up at night, or you would likely sell investments in a downturn.

When investing tends to make more sense

  • Your rate is low, for example a loan locked in when rates were near historic lows.
  • You have a long time horizon and can ride out market drops.
  • You lack liquid savings, or you have tax-advantaged retirement room left to fill.
  • You may move or refinance soon, which limits how long a prepayment pays off.

General information, not financial advice. Investment returns are not guaranteed; consider a fee-only adviser for your full picture.

Fact-checked October 12, 2026

Re-verified 2026-10-12. Reg Z 1026.43(g) (CFPB regulation text): penalty only if permitted by law, APR cannot increase, qualified mortgage, not higher-priced; none after 3 years; max 2% of balance prepaid in years 1-2 and 1% in year 3; alternative no-penalty loan of the same rate type must be offered. CFPB prepayment-penalty page: typically applies to paying off the whole loan (sale/refinance), sometimes large lump sums, not normally small extra principal payments. Reg Z 1026.36(c): periodic payment (principal, interest, escrow) credited on date of receipt; partial payments may be held in suspense and applied once a full payment accumulates. IRS Pub 936 (2025 returns): deduction requires itemizing on Schedule A; $750,000/$375,000 limit for debt after 12/15/2017. CFPB emergency-fund guide description. All dollar figures recomputed by the fact-checker: $500,000 30-yr 6.5% = $3,160.34 P&I, $637,722 interest; +$500/mo pays off in 20y10m with $412,530 interest ($225,192 saved, within $1 rounding); balance gap after 240 months $245,210; $500/mo for 240 months at 4%/6.5%/8% (monthly compounding) = $183,387/$245,210/$294,510. Replaced eCFR links (bot-blocked) with CFPB regulation pages. Investment returns are hypothetical, not forecasts.

Sources

  1. What is a prepayment penalty? · Consumer Financial Protection Bureau (accessed October 12, 2026)
  2. 12 CFR § 1026.43(g), Prepayment penalties (Regulation Z) · Consumer Financial Protection Bureau (accessed October 12, 2026)
  3. 12 CFR § 1026.36(c), Servicing practices: payment crediting · Consumer Financial Protection Bureau (accessed October 12, 2026)
  4. Publication 936, Home Mortgage Interest Deduction · IRS (accessed October 12, 2026)
  5. An essential guide to building an emergency fund · Consumer Financial Protection Bureau (accessed October 12, 2026)

General information, not legal, tax or financial advice. Rules change; confirm with the agency or a professional before you act.

Keep reading