How to quantify the true buy‑vs‑rent opportunity cost: a math-first model using mortgage rate, expected equity returns and local rent growth

How to quantify the true buy‑vs‑rent opportunity cost: a math-first model using mortgage rate, expected equity returns and local rent growth

I’m often asked whether buying a home “makes sense” versus continuing to rent — and the honest answer I give is: it depends. The decision is rarely binary. What I aim to do here is give you a math-first framework to quantify the true buy‑vs‑rent opportunity cost using three core inputs: the mortgage rate, expected equity (stock/portfolio) returns on cash you don’t put into the house, and local rent growth. If you like numbers and reproducible assumptions, this is for you.

Why a simple rent vs. buy calculator misleads

Most tools focus on monthly cash flows: mortgage payment vs. rent. That’s a start, but incomplete. Two large and frequently overlooked drivers are:

  • Opportunity cost of the down payment (and closing costs) — money you could invest elsewhere.
  • Expected asset returns — both home price appreciation and the returns from alternative investments (equities, bonds).
  • Another key variable is local rent growth. If rents are climbing quickly, staying a renter becomes more expensive over time; if they’re flat or falling, renting gains an edge. My approach folds these components together so you can quantify the net present value of buying versus renting over a chosen horizon.

    The model (math-first)

    I build a simplified but robust NPV-style model with annual time steps. The core insight: compare the wealth at horizon T if you buy today versus if you rent and invest the difference.

    Notation and assumptions:

  • P = purchase price
  • D = down payment (cash)
  • M = mortgage principal = P − D
  • r_m = mortgage nominal interest rate (annual)
  • n = mortgage term (years)
  • c = annual recurring homeownership costs (taxes, insurance, maintenance) expressed as % of P
  • t = property tax and other deductible/taxable benefits approximated as net annual tax advantage (if any)
  • g_h = expected annual home price growth (real or nominal consistent with other inputs)
  • r_e = expected annual return of alternative investment (e.g., equity portfolio)
  • R0 = current annual rent
  • g_r = expected annual rent growth
  • T = analysis horizon in years
  • Steps:

  • Compute annual mortgage payment (level payment): A = M * (r_m/(1 − (1 + r_m)^−n)). Convert r_m to decimal annual rate.
  • Owner annual net cash outflow each year = A + c*P − t (approximate; adjust for local tax law).
  • Renter annual cash outflow each year = R0 * (1 + g_r)^(year−1).
  • Down payment D invests in equities if renting. Value at T if invested = D * (1 + r_e)^T.
  • At horizon T, home equity value (ignoring transaction costs) = P * (1 + g_h)^T − remaining mortgage balance. For simplicity I compute home appreciated price and subtract remaining mortgage principal; include selling costs (s%) if desired.
  • Wealth_if_buy at T = home_equity_value − cumulative_owner_net_outflows financed from cash/others (but principal repayment is part of equity). For model parsimony: treat owner net cash outflow excluding principal repayment as consumption cost, subtract cumulative net outflow discounted or compounded at r_e.
  • Wealth_if_rent at T = D*(1 + r_e)^T − cumulative_rent_paid_compounded_at_r_e (since rent is opportunity cost financed by income which otherwise could be invested).
  • Net opportunity cost (buy vs rent) = Wealth_if_buy − Wealth_if_rent. Positive favors buying; negative favors renting.

    Worked example (practical numbers)

    Let’s illustrate with a concrete example I’ve used with clients in a mid-growth market:

    Purchase price (P)$500,000
    Down payment (D)$100,000 (20%)
    Mortgage rate (r_m)4.5% annual, 30-year fixed
    Recurring costs (c)1.5% of P per year ($7,500)
    Tax / net advantage (t)$1,500 per year (net)
    Expected home growth (g_h)3.0% per year
    Expected equity return (r_e)7.0% per year (broad portfolio)
    Current annual rent (R0)$24,000 ($2,000/mo)
    Rent growth (g_r)2.5% per year
    Horizon (T)10 years

    Quick calculations (rounded):

  • Mortgage M = $400,000. Annual payment A ≈ $24,273 (from mortgage formula).
  • Owner net cash outflow per year (excluding principal repayment treated as equity accumulation) = A + c*P − t ≈ $24,273 + $7,500 − $1,500 = $30,273.
  • Cumulative rent over 10 years with 2.5% growth (compounded) = sum_{k=0}^{9} 24,000*(1.025)^k ≈ $273,000. If that money had instead been invested at 7% annually, its future value is larger; for parity we compound each payment at r_e to T. For a simple approximation, treat the rent payments as cash outflows compounded at r_e; the future value of rent paid ≈ $348,000.
  • Down payment invested: $100,000*(1.07)^10 ≈ $196,715.
  • Home price at T: 500,000*(1.03)^10 ≈ $671,959. Remaining mortgage balance after 10 years on a 30-year amortization ≈ $349,000. Equity at sale before costs = $322,959. Subtract selling costs (say 5% of sale price = ~$33,598) gives net ≈ $289,361.
  • Wealth_if_buy = net equity ($289,361) − future value of owner's non-equity net outflows (owner annual net outflows compounded at r_e). Owner annual non-equity outflow $30,273 compounded to T: approximate future value ≈ $437,000.
  • Wealth_if_buy ≈ $289,361 − $437,000 = −$147,639 (a negative number indicates net wealth decrease relative to investing those cash flows at r_e).
  • Wealth_if_rent = down payment compounding ($196,715) − future value of rent paid ($348,000) = −$151,285.
  • Net difference: Wealth_if_buy − Wealth_if_rent ≈ (−147,639) − (−151,285) = +$3,646 in favor of buying — a near zero outcome.
  • Interpretation: with these inputs and a 10‑year horizon, the buy vs rent choice is essentially a toss-up. Small changes in any assumption (mortgage rate, g_h, r_e, or rent growth) swing the result materially.

    Sensitivity — the most powerful levers

    The variables that most change the outcome:

  • Mortgage rate: A higher rate increases the owner’s net cash outflow dramatically and favors renting or refinancing. At 6% vs 4.5%, owning quickly becomes less attractive.
  • Expected equity return (r_e): If you believe equities will return 9% instead of 7%, the opportunity cost of the down payment grows and renting gains ground.
  • Local rent growth (g_r): Fast rent inflation favors buying because the renter’s future cash burden escalates.
  • Home price growth (g_h): If you expect local housing supply constraints or strong demand (higher g_h) buying gains an edge.
  • Practical tweaks and local nuances

    When I run this with readers or clients I always stress three adjustments:

  • Include mortgage tax shields appropriately — the benefit depends on your tax situation and whether you can itemize.
  • Account for liquidity and flexibility value: renting offers mobility; owning provides leverage and forced savings (principal repayment) — value these qualitatively or add a monetary mobility premium.
  • Transaction costs matter — both buying and selling fees and time-to-market risk. I typically subtract selling costs (broker fees, staging, capital gains where applicable) from realized home equity.
  • How to use this model

    Start by plugging local and personal inputs: your expected holding period, realistic g_h based on local supply/demand and historical trends, expected personal investment returns (r_e), and honest estimates of maintenance and taxes. Run sensitivity ranges (±1% or ±2% on major assumptions) to see how robust the decision is. If your result flips with small assumption changes, recognize the decision has meaningful non-financial components (stability, school district, local amenities) that should drive your choice.

    If you want, I can provide a downloadable spreadsheet based on this framework with built-in sensitivity analysis and example markets. Tell me the city and your horizon and I’ll tailor the assumptions to local rent growth and home price data.


    You should also check the following news:

    Real Estate

    How to underwrite a value‑add multifamily deal step‑by‑step: rent roll adjustments, unit-level capex phasing and pro forma stress tests

    09/07/2026

    I underwrite dozens of value‑add multifamily deals a year, and the process often looks simple on a pitch deck and messy in the spreadsheet. If you...

    Read more...
    How to underwrite a value‑add multifamily deal step‑by‑step: rent roll adjustments, unit-level capex phasing and pro forma stress tests
    Real Estate

    Obtenir un prêt immobilier en cdd : how to get a mortgage without cdi

    02/07/2026

    I’ve worked with many buyers who don’t have a permanent contract but still dream of owning a home. In this piece I’ll explain, from practical...

    Read more...
    Obtenir un prêt immobilier en cdd : how to get a mortgage without cdi