Here’s a quick and dirty formula that you can use to help you figure out whether it’s better to buy or rent, which works with any duration of ownership. Try to calculate: Seller and Buyer Agent Fees When You Sell + Purchase Price + Maintenance Cost for the Time of Occupancy + Interest Paid on Mortgage + Investment Gains from Your Down Payment + Taxes Paid (Such as Property Tax) + Closing Costs – Selling Price. This number could come out negative or positive, but if it’s lower than the rent you would have paid during the same time frame, then you would be better off buying. If the number is higher, meaning that the selling price wasn’t high enough to cover all those costs, then renting would be the more cost-effective choice.’
From the MoneyNing article and thanks to Gary Newsham of Lawbird for bringing it to my attention.