Consider a $350,000 home with a $70,000 down payment, a 6.5% 30-year mortgage, 2% buying closing costs, 1.2%/year property tax, $2,000/year insurance, 1%/year maintenance, 3.5%/year appreciation and 6% selling costs, against renting a similar home for $1,800/month rising 3% a year, with a 5% investment return over 15 years.
The monthly principal and interest is $1,769.79, and $77,000 goes in upfront (down payment plus closing costs). For the first 9 years the renter stays ahead, because the invested $77,000 compounds while the buyer pays mostly interest. In year 10 the lines cross: buying net worth reaches about $226,714 against $223,286 for renting. By year 15 buying is ahead by roughly $39,718 ($348,024 vs $308,306). Shorten the stay to 5 years and renting wins by about $17,700, transaction costs punish short stays.