Pay Off Mortgage or Invest? I Backtested 69 Mortgages Since 1928, and Investing Won 63 at Today’s 7.28%

Should you pay off your mortgage or invest the extra cash? Most answers give you a rule of thumb: Fidelity’s is 6%, and others simply say “compare your rate with expected returns.” I wanted the historical record instead, so I replayed the decision on every 30-year window from 1928 to 2025: a $300,000 fixed-rate loan, $500 a month of extra cash, and two choices. Prepay the loan, or put the $500 into an S&P 500 index fund.

Short answer: at the current Freddie Mac average of 7.28%, investing the extra cash beat prepaying in 63 of 69 windows (91%). Below 6.74%, investing won every single one. But two findings change the answer for many readers. Over 10 years instead of 30, investing won only 69% of the time. And at the rates borrowers actually paid in each year from 1972 to 1996, prepaying won 15 of 25 loans.

Where the extra $500 can come from: side income works as well as a raise. ImagineYourBook is an AI book-writing tool that turns a prompt or your notes into a 10,000-word text draft with a cover, exported as Word or EPUB, with series memory so Book Two remembers Book One. The royalty math for a $500-a-month KDP stream is in the closing section.

TL;DR

  • Investing an extra $500/month beat prepaying a 7.28% mortgage in 63 of 69 30-year windows since 1928.
  • Below 6.74%, investing won every 30-year window. The median break-even rate was 10.74%.
  • Over 10 years, investing won only 69% at 7.28%, with a median edge of $20,407.
  • At the rates borrowers actually paid from 1972 to 1996, prepaying won 15 of 25.
  • Calculator, Fidelity’s 6% rule checked against history, and a short Python script included.

Pay off mortgage or invest calculator (historical backtest)

Enter your loan and your extra cash per month; the calculator replays both choices on every window in the data.

Pay off mortgage or invest calculator: backtest your loan on every window since 1928

Enable JavaScript to run the calculator. The tables below show the same backtest.

Prepay: the extra goes to principal until the loan is gone, then the full payment plus the extra goes into an S&P 500 index fund. Invest: the extra goes into the index fund every month. Compared when the original loan term ends. Annual S&P 500 total returns 1928-2025 (Damodaran, NYU Stern), spread evenly over each year’s months. Fixed-rate loan, no fees, no mortgage-interest deduction. Runs in your browser; nothing is sent anywhere.

How the comparison works. Prepay: the extra $500 goes to principal every month. Once the loan is gone, the full payment plus the extra goes into the index fund until the original term ends. Invest: you pay the normal payment and put the $500 into the index fund from day one. At the end of the term, both houses are paid off, so the only difference is the size of the portfolio. Returns are Aswath Damodaran’s annual S&P 500 total returns (dividends reinvested), spread evenly across each year’s months. Assumptions: no fees, no taxes unless stated, no mortgage-interest deduction, and you really do invest the freed-up payment after payoff.

Pay off mortgage or invest at 7.28%: what 69 windows show

The default case: $300,000 at 7.28% over 30 years is a $2,052.64 monthly payment. Adding $500 a month pays the loan off in 207 months (17 years and 3 months) and saves $212,144 of interest. That’s the guaranteed side of the trade. Here’s how investing the same $500 fared at different rates and horizons:

Mortgage rateInvesting won: 10 years15 years30 yearsMedian 30-year edge of investing
3%83/89 (93%)81/84 (96%)69/69 (100%)$708,834
5%75/89 (84%)74/84 (88%)69/69 (100%)$608,933
6%69/89 (78%)71/84 (85%)69/69 (100%)$555,601
7.28% (today)61/89 (69%)67/84 (80%)63/69 (91%)$398,557
8%60/89 (67%)64/84 (76%)52/69 (75%)$359,247
9%57/89 (64%)49/84 (58%)45/69 (65%)$242,693
10%51/89 (57%)47/84 (56%)38/69 (55%)$81,419
$300,000 30-year fixed loan, $500/month extra, S&P 500 with dividends. 10/15-year columns compare net worth (portfolio minus loan balance) at that point. Start years 1928-2016 / 2011 / 1996. Data: Damodaran, NYU Stern; mort.py
  1. Over 30 years, investing won 91% of the time at 7.28%. The median window ended $398,557 ahead. The worst, a 1957 start, ended $75,202 behind; the best, 1970, ended $1,671,126 ahead.
  2. At 6% or less, investing never lost a 30-year window. The lowest break-even rate in the data was 6.74% (a 1956 start).
  3. Shorter horizons cut the odds sharply. If you plan to sell or retire in 10 years, net worth (portfolio minus loan balance) favored investing in only 69% of windows at 7.28%, with a median edge of just $20,407.
Line chart of how often investing an extra $500 a month beat prepaying a $300,000 mortgage, by mortgage rate from 3% to 10%: at 7.28% investing won 91% of 30-year windows, 80% of 15-year and 69% of 10-year windows
Same loan, same extra cash: the shorter the horizon, the weaker investing’s edge.

The six 30-year windows where prepaying won at 7.28% started in 1955 to 1958 and in 1991 and 1992. Timing explains them. The 1991 and 1992 prepayers cleared their loans in 2008 and 2009, then invested $2,552.64 a month near the bottom of the financial crisis. The 1950s investors, meanwhile, rode the flat, inflationary 1966-1981 market.

The twist: at the rates people actually paid, prepaying won 15 of 25

The table above holds the rate fixed. Real borrowers didn’t get to choose 7.28%. They got whatever the market offered the year they bought. So I ran each 30-year window from 1972 (the first full year of Freddie Mac’s survey) to 1996 at that year’s average 30-year rate.

Bar chart of investing minus prepaying after 30 years for loans started 1972 to 1996 at that year's average Freddie Mac rate: investing won 1972 to 1979, prepaying won every start from 1980 to 1992, including a $499,269 edge at 16.64% in 1981; prepaying won 15 of 25 overall
Green: investing won. Red: prepaying won. Labels: that year’s average 30-year mortgage rate.

Investing won every window from 1972 to 1979, when rates were 7.4% to 11.2%. Then rates jumped: 16.64% in 1981, 16.04% in 1982. Prepaying won 15 of the 25 windows overall, including every start from 1980 to 1992. That’s despite one of the best stock markets in history: the S&P 500 returned 10.61% a year from 1981 to 2010, but a 16.64% guaranteed return beat it by $499,269 on our $300,000 loan.

The lesson isn’t “stocks lose.” It’s that your rate is the hurdle, and a guaranteed hurdle above roughly 10% to 11% was hard to clear. Today’s 7.28% is well below the median break-even rate of 10.74% across all 69 windows, and above the 6.74% floor.

Animated bar chart sweeping the mortgage rate from 3% to 10%, showing the investing advantage for each 30-year start year 1928 to 1996; red bars where prepaying won grow from none below 6.74% to 31 of 69 at 10%
Rate sweep, 3% to 10%. Pauses at 7.25%, the frame closest to today’s rate.

Green bars: investing won; red: prepaying won. At 9%, investing still won 45 of 69; at 10%, only 38.

Fidelity’s 6% rule vs the history

Fidelity’s pay down debt vs invest guideline says to prepay debt at 6% or more. It assumes a balanced portfolio of about 50% stocks, a tax-advantaged account, 10+ years, and that you only pick investing when it has at least a 70% chance of winning.

The backtest agrees. With a 50/50 mix of S&P 500 and 10-year Treasuries (rebalanced yearly) and a 10-year horizon, investing beat prepaying a 6% loan in 65 of 89 windows: 73%, right at Fidelity’s 70% bar. With 100% stocks over 30 years, the same 6% loan never lost. So the 6% rule is a cautious, balanced-portfolio number. More stocks and a longer horizon push the real threshold up, toward 7% to 8%.

Taxes, bonds and the risk you actually take

The headline numbers are pre-tax and all-stock. Here’s what happens when you change that, all at 7.28%:

Version (7.28%, $500/month extra)Investing wonMedian edge of investing
S&P 500, pre-tax, 30 years (base case)63/69 (91%)$398,557
S&P 500, 15% tax on final gains, 30 years58/69 (84%)$306,952
50/50 S&P 500 and 10-year Treasuries, 30 years45/69 (65%)$56,447
10-year Treasuries only, 30 years20/69 (29%)$-157,661
S&P 500, sell or retire after 10 years61/89 (69%)$20,407
Negative edge = prepaying came out ahead. Taxes applied to gains above contributions at the end of the window. mort.py
  • Taxes: in a taxable account, a 15% long-term capital gains rate (the IRS rate most people pay) on the final gains cuts the win rate to 58 of 69.
  • Bonds: prepaying a mortgage is a guaranteed return, so the risk-matched comparison is a safe bond. Invested in 10-year Treasuries, the extra cash beat a 7.28% loan only 20 of 69 times (29%).

Prepaying is a guaranteed return, but it’s illiquid. Every extra dollar you put into the loan is locked in the house until you sell or borrow against it. Morningstar and U.S. News both point out that a brokerage account is far easier to tap in an emergency. Build the cash buffer before you do either.

Run the pay off mortgage or invest backtest in Python

This short script downloads Damodaran’s data and reproduces the 30-year result. It needs pandas, xlrd and requests. If DataFrames are new to you, start with the Finxter pandas quickstart.

# Pay off mortgage or invest? Backtest every 30-year window since 1928 (pip install pandas xlrd requests)
import io, requests, pandas as pd
URL = "https://pages.stern.nyu.edu/~adamodar/pc/datasets/histretSP.xls"
raw = requests.get(URL, headers={"User-Agent": "Mozilla/5.0"}).content
d = pd.read_excel(io.BytesIO(raw), "Nominal vs Real Data", usecols=[0, 1])
d.columns = ["year", "sp500"]
sp = d[pd.to_numeric(d.year, errors="coerce").notna()].astype(float).set_index("year").sp500.loc[1928:2025]

def invest_minus_prepay(start, rate, loan=300_000, extra=500, months=360):
    i = rate / 12
    pay = loan * i / (1 - (1 + i) ** -months)    # monthly principal + interest
    bal_a, port_a, port_b = loan, 0.0, 0.0       # a = prepay, b = invest
    for m in range(months):
        g = (1 + sp[start + m // 12]) ** (1 / 12) - 1
        if bal_a > 0:                            # prepay until the loan is gone...
            bal_a = bal_a * (1 + i) - pay - extra
            if bal_a < 0: port_a, bal_a = -bal_a, 0.0
        else:                                    # ...then invest payment + extra
            port_a += pay + extra
        port_b += extra                          # invest the extra from day one
        port_a, port_b = port_a * (1 + g), port_b * (1 + g)
    return port_b - port_a                       # both houses are paid off at month 360

starts = range(1928, 2025 - 30 + 2)
for rate in (0.05, 0.06, 0.0728, 0.08, 0.09):
    diff = [invest_minus_prepay(s, rate) for s in starts]
    lost = [s for s, x in zip(starts, diff) if x <= 0]
    print(f"{rate:.2%}: investing won {len(diff) - len(lost)}/{len(diff)}; prepaying won {lost[:6]}{'...' if len(lost) > 6 else ''}")

Output:

5.00%: investing won 69/69; prepaying won []
6.00%: investing won 69/69; prepaying won []
7.28%: investing won 63/69; prepaying won [1955, 1956, 1957, 1958, 1991, 1992]
8.00%: investing won 52/69; prepaying won [1953, 1954, 1955, 1956, 1957, 1958]...
9.00%: investing won 45/69; prepaying won [1928, 1929, 1952, 1953, 1954, 1955]...

If you go the investing route, check that your actual holdings keep up with the index you’re betting on. PortfolioTracker24 is a free portfolio tracker that runs in your browser with no account or broker connection, keeps your data local, compares your returns with the S&P 500 and backs up to Excel.

How to decide

FindingNumberWhat it means for you
Investing vs prepaying at 7.28%, 30 years63 of 69 windows (91%)Long horizon: investing has been the better bet
Lowest break-even rate in history6.74% (1956 start)Below this, investing never lost a 30-year window
Median break-even rate10.74%Half of all windows beat even a 10.74% loan
Same loan, 10-year horizon61 of 89 (69%)Shorter horizon, much weaker edge
Real 1972-1996 ratesPrepaying won 15 of 25Your rate is the hurdle, not the market’s average
Prepaying $500/month at 7.28%$212,144 interest saved, paid off in 17.25 yearsGuaranteed, but the cash is locked in the house
  • Rate below about 6.5% and a long horizon: investing won every 30-year window and 86% to 90% of 20-year ones, as long as you actually invest the money.
  • Rate around 7% to 8%: investing still won most long windows, but your edge depends on taxes, horizon and nerve. A split (some prepaying, some investing) is a reasonable hedge.
  • Rate of 9% or more, or 7% to 8% with only 10 years to go: investing won only 55% to 69% of windows in those cases.
  • Either way, first: an emergency fund, any employer match and high-interest debt, as Fidelity advises. Wealthfront makes the same point about cash and high-interest debt.

For related math, see what investing $500 a month for 20 years builds, how real estate compares with the stock market, and why the order of returns matters in the sequence of returns risk example.

FAQ

Is it better to pay off your mortgage or invest?

Historically, investing usually won at rates below about 7%. With an extra $500 a month, investing in the S&P 500 beat prepaying a 7.28% loan in 63 of 69 30-year windows since 1928, but only 69% of 10-year windows.

At what mortgage rate should I pay off my mortgage instead of investing?

In our backtest, investing never lost a 30-year window below 6.74%, and the median break-even rate was 10.74%. Fidelity's more cautious guideline, built for a balanced portfolio and 70% odds, says to prepay at 6% or more.

Should I pay off my mortgage early if I'm close to retirement?

Your horizon is short, so the odds favor investing less. At 7.28%, investing beat prepaying in 69% of 10-year windows, versus 91% over 30 years. A paid-off home also lowers the fixed costs your portfolio has to cover.

How much interest do I save by paying $500 extra on my mortgage?

On a $300,000 30-year loan at 7.28%, an extra $500 a month pays it off in 207 months, about 17 years and 3 months, and saves $212,144 of interest.

Does paying off a mortgage beat investing in bonds?

Usually, yes, at today's rates. Investing the extra cash in 10-year US Treasuries beat prepaying a 7.28% loan in only 20 of 69 historical 30-year windows (29%).

Bottom line: invest below 7%, think hard above 9%, and grow the extra cash

Pay off mortgage or invest is a rate question first and a horizon question second. At today’s 7.28%, investing the extra $500 a month won 63 of 69 historical 30-year windows, but only 69% over 10 years, and borrowers who locked in 1980s rates did better prepaying.

The bigger lever is the extra cash itself. Amazon KDP’s 70% royalty option pays 70% of the list price minus delivery costs, which Amazon says average $0.06 per unit: about $3.43 per $4.99 ebook. Assumption, not a typical result: 146 sales a month across a small catalog would pay about $500, exactly the extra cash in this backtest. In the most recent finished window (1996 to 2025), $500 a month in the S&P 500 grew to $1,148,107 in nominal dollars. Book sales aren’t guaranteed, they usually fade, and many books sell far less.

If you want to try building that income, ImagineYourBook turns an idea or your notes into a full text draft with a cover, ready to edit and publish on KDP. The 7-day trial is $0 with a card and includes one 10,000-word book; if you don’t cancel before day 8, the first charge is $24.99 a month. You still do the editing, the fact check and the marketing.

Sources (checked November 23, 2026): Aswath Damodaran (NYU Stern): Historical returns on stocks, bonds and bills, 1928-2025 Β· histretSP.xls Β· Freddie Mac Primary Mortgage Market Survey (weekly 30-year rate, 7.28% on Nov 19, 2026) Β· Fidelity: Should you pay down debt or invest? Β· Morningstar: Should you pay off your mortgage early or invest? Β· U.S. News: Mortgage payoff vs. S&P 500 Β· Wealthfront: Prepay mortgage or invest? Β· IRS Topic 409: Capital gains and losses Β· Amazon KDP: eBook Royalties Β· ImagineYourBook pricing and trial terms Β· PortfolioTracker24. Scripts: mort.py (full analysis) and the short version shown above. Annual returns are spread evenly over each year’s months; no fees; taxes only where stated. Past returns don’t predict future returns. Not financial advice.

Leave a Comment