How this calculator works
It follows both choices to the same date, the end of the years you'd keep the house, and compares what you'd have. If you sell now, the cash left after the sale, the mortgage and any tax is invested at your alternative return. If you keep it, you collect rent for those years, put the cash flow aside at the same return, and then sell.
Each rental year, net operating income is rent after vacancy, minus management and operating expenses, with rent and expenses rising at the growth rate you enter. Cash flow subtracts the mortgage payment. Income tax is charged on net operating income minus mortgage interest and depreciation; when that is negative it is counted as tax saved. The mortgage is worked out month by month, so the interest and the later balance are exact.
The home-sale exclusion and why timing matters
If you owned the house and lived in it as your main home for at least 2 of the 5 years before the sale, you can usually exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly (IRS Publication 523). Renting it out starts a clock: once you have been out for more than about 3 years, you no longer meet the 2-of-5-year test and the exclusion is gone. For many owners that single rule is the biggest number in the whole decision, which is why the exclusion has a separate input for each choice.
Depreciation is taxed when you sell
Once the house is a rental you depreciate the building (not the land) over 27.5 years. For a home you lived in first, the starting figure is the lower of your adjusted basis or the market value on the day it became a rental (IRS Publication 527). Depreciation lowers your tax each year, but it also lowers your basis, and the part of your gain that comes from depreciation cannot be covered by the home-sale exclusion. Federally it is taxed at your ordinary income tax rate, capped at 25% (IRS Topic 409). The IRS counts depreciation you were allowed to take even if you didn't claim it, so leaving it off your return doesn't avoid this.
Return on equity from keeping
The yearly rate at which the cash you could pull out today would have to grow to match what keeping produces. Compare it with your alternative return: if keeping earns less, the house is holding money that would work harder elsewhere.
What this does not model
It does not include a 1031 exchange, which can defer tax when you sell a rental and buy another; passive loss limits, which can stop rental losses from offsetting your other income if your income is above $100,000 to $150,000; the rule that reduces the exclusion when a home was rented before you lived in it; tax on a loss at sale (treated here as no tax); state rules that differ from federal; repairs to make the house rentable, or the cost of your time as a landlord. Tax rules have exceptions, so confirm your own numbers with a tax professional before you decide.
Frequently asked questions
How long can I rent out my house and still avoid capital gains tax?
Generally you need to have owned and lived in the home for at least 2 of the 5 years before the sale. If you lived there 2 full years before moving out, that usually gives you up to about 3 years of renting before the exclusion is lost. The gain from depreciation taken while it was rented is taxed either way.
Is it better to sell my house or rent it out?
It depends mostly on four things: how much tax-free gain you would give up, the interest rate on your current mortgage, the cash flow the rent produces, and what you would do with the money instead. A low-rate mortgage and strong rent favor keeping; a large tax-free gain and thin cash flow usually favor selling.
Do I have to pay depreciation recapture if I didn't claim depreciation?
Yes. The IRS taxes the depreciation you were allowed to take, whether or not you claimed it. Claiming it at least gets you the yearly deduction to set against the tax at sale.
What return should I enter for the alternative?
Use a realistic after-tax return for where the money would actually go: paying down other debt, a savings account, or a diversified investment. Paying off a 7% credit card or car loan is a guaranteed 7%; a stock fund has a higher expected return but more risk than that number suggests.
Related calculators
Add this calculator to your website
Agents, lenders, coaches and bloggers can put this calculator on their own site for free. Paste this code into your page where you want it to appear. It resizes itself and always stays up to date.
Results are estimates based on the numbers you enter and simplified assumptions. They are not financial, tax, lending or legal advice. Confirm figures with your lender, accountant, attorney or the relevant county before you commit money.