If you own a home you're thinking of selling, you might earn more over time by renting it out. This calculator from Forbes helps you decide which is a more lucrative option. Forbes explains how it works:
It divides the net operating income from renting the property by the expected sale price of the house, giving you an investment yield — like a bond yield. If this yield, also called a "capitalisation rate," is less than what long-term Treasurys are yielding (around 5.7%) you'd probably be better off selling your house.
You simply enter in a few details, like sale price, taxes and income, and you'll get an idea of what your "capitalisation rate" looks like.
Of course, there's more that goes into your decision (for one, closing costs aren't calculated). Still, it gives you a decent general idea of which is the better option, assuming you'd invest the money from your home sale in bonds. Check it out at the link below.