Rent vs. Buy: Detailed Methodology to Simulating the Rent vs. Buy Equation

Economic question: A customer has a given lifestyle in mind. They have multiple paths they can take in gaining this lifestyle. We want to answer whether it is better to rent or to buy the same home to achieve that lifestyle.
Buying a home = a consumption decision for ongoing shelter and utility in the space + an investment decision on an appreciating asset (with maintenance)
So the alternative, and opportunity cost, is renting to consume shelter and utility from the space, and investing in some alternative asset unrelated to real estate that has a similar risk and return.
What we’ll do: Simulate the purely financial aspect of the decision so that the decision maker can decide if it is financially advantageous to commit to homeownership with a fixed-rate loan. Functionally, we’ll estimate the time horizon the buyer needs to maintain ownership to breakeven or if the difference in simulated costs on a short(er) horizon is at least at a price low enough to pay for the utility of full control of the property over that time.
Optimality then implies that a renter becomes a buyer if and only if:
Where SSt=T, SR t=T denote the net present value for being a buyer and a renter respectively at time T, the intended years after purchase the buyer hopes to move again. The savings accrued from renting each period are the saved/invested funds that would have been used for a down payment and transaction costs invested at the risk-free rate plus the recurring costs of owning a home net the recurring cost of renting (rent, rent insurance, application fees, etc.)
As the average of the middle third of unbiased neural Zestimates within any region studied, the Zillow Home Value Index is our most reliable estimate of a “typical” home price within an area. So we set the price at purchase,
Practical realities to knowing the price and rent on the same house:
Zestimation at Zillow
The Zestimate,
and Rental Zestimate
are unbiased property-level estimates of current home price and market-rate asking rent, respectively. They use advanced machine learning algorithms and neural networks trained with historical home prices or listed asking rents against property features to jointly minimize error (median absolute percent error, or MAPE) and minimize bias (median percent error) in predicting property valuation or rent.
Advantages of neural networks:
So we should be able to exploit the estimates, with some reservation discussed later, on the same individual homes to estimate a “true” or at least “truer” price-to-rent ratio than previously available. With these property-level estimates of price and asking rent, our preferred method for evaluating the breakeven simulation at scale (for many different regions and scenarios) is to set rent in the first year such that
In which K is the total number of housing units (single-family, townhouses, condos and co-ops; excludes mobile homes) in the region.
Why not just use the Zestimate and Rental Zestimate at the property level?
The computer processing load to estimate the full simulation is too great to reliably run the buy vs. rent break even simulation at the property level for public production. So we apply the typical price-to-rent ratio to the ZHVI and only have to calculate the buy vs. rent simulation for each scenario for each metro once. The MEDIANi=1,…,K(ZRi,t=0/ZFSi,t=0) also has public metrics potential for other applications by researchers beyond this one.
Alternatives used to demonstrate the importance of estimating a ZHVI-comparable rent
Remaining concerns in this approach
The user will purchase the typical home in the metro (ZHVI) with only 20% down on a 15- or 30-year fixed-rate loan. The buyer will then earn appreciation on the full purchase price. To account for the user’s level of risk and what they’re willing to accept about the future of home price growth, they can choose three different home price path scenarios that will set Pt as the consumer holds the home after purchase:
Transaction costs at purchase
3% x P0 at purchase and 8% x Pt=n at sale
Interest portion of mortgage payment
Assumes a 15- or 30-year fixed-rate loan, mortgage rate locked at t=0. Mortgage rate is set in the simulation to explore before the pandemic (3%) and now (7%). (We will use this 4 percentage point change to explore the sensitivity to many of the parameters set in the simulation.)
Property taxes
Assumed 1% x Pt annually
Property insurance
Assumed 0.5% x Pt annually
Maintenance costs
Assumed 1% x Pt annually
Capital gains taxes on profit above $375K
Assumes half of the household is married, so can deduct the average of $500K and $250K, when applying the capital gain exclusion for the primary purchase. The estimated taxes use the local median household income to set the tax rate, but this is almost always 15%.
Condo or HOA fees
Assumed 0 in our simulation
Property tax and mortgage interest deductions
These are only triggered in the simulation if property taxes and mortgage interest exceed the standard deduction (data on other itemized deductions not incorporated). Since new limits on SALT deductions and the doubling of the standard deduction, at the median, this is almost never triggered without other itemized deductions to overcome the standard, so this is more or less negligible in the simulation.
Rent growth
Because of relatively short rent histories within Zillow’s database, we do not yet have a formal forecast for asking-rate rent. To explore the impact of rent growth, we allow the user to choose 2% or 6% in the first year before splining to 2% annual growth by the fifth year.
Rental broker fee
Assumed 0
Rent deposit:
You get it back, but used in opportunity cost calculations together with 1st and last months rent required at signing (and so tied up instead of invested in our simulation logic)
Renters insurance
1% of rent monthly
A major contribution from this work is to disentangle the investment streams of this decision from the more salient if still not totally certain upfront and monthly costs of the two options: rent or buy.
To make a comparable decision to buying, as a renter, we assume that the renter is fully investing the money that would have been used to buy a home.
Rates of return available in the simulation
The money invested by the renter includes any “savings” (the difference in monthly costs between buying and renting) each month. To keep it fair between the choices, the renter also then has to take money out of their investments to cover the difference during periods when out-of-pocket renter’s costs are larger than the homeowner’s for a similar property. The easiest way to mechanically code this is to estimate what the buyer would have earned as a return in the alternative asset with all the money they spent on housing. We then do the same thing for the renter.
The renter’s investment gains are then the buyer’s opportunity cost (what would have been earned in the stock market after capital gains taxes but can’t be earned if it’s locked up in housing as an owner) minus the renter’s opportunity cost (what they didn’t earn from stock markets because their money was tied up in renting).
Investment value of the renter
= After-tax interest earned investing everything they spent to buy and own
The buyer’s comparable investment gain is their home equity (home price at sale minus the mortgage balance) minus the transaction costs and taxes they pay to liquidate the asset and get the return, and minus the down payment which they made in the first place.
Investment value of the buyer