RunTheNumbersFirst

Home / Rent vs. Sell Calculator

Keep or sell

Rent vs. Sell Calculator

Moving out doesn't mean you have to sell. This compares two futures side by side: sell now and invest what's left, or rent the place out and sell later, with the taxes each one triggers.

The property today
$
$
What you paid plus closing costs and improvements
$
0 if it has never been a rental
$
%
years
If you keep it as a rental
$
%
$
Taxes, insurance, HOA, repairs, reserves
%
Percent of rent collected; 0 if self-managing
%
%
$
Building value (not land) divided by 27.5
years
Selling and taxes
%
Agent commission, closing costs and transfer taxes
%
Federal plus state; add 3.8% if the investment income tax applies
%
Federal maximum 25%, less if your income tax rate is lower; add your state rate
%
Your marginal income tax rate
$
Up to $250,000 single or $500,000 married filing jointly if you lived there 2 of the last 5 years; 0 if not
$
Only if you'd still have lived there 2 of the 5 years before that sale; otherwise 0
Your alternative
%
After-tax yearly return you'd expect elsewhere
Keeping vs. selling
 
Extra wealth from keeping, at the end of the hold (negative means selling wins)
Cash if you sell now
 
Keep: return on equity / yr
 
Year-one cash flow / mo
 
Tax when you sell later
 
Gain if you sell now
Tax if you sell now
Sell now: cash after it grows
Keep: after-tax cash flow, total
Keep: cash flow with growth
Value when you sell later
Mortgage balance then
Depreciation taken by then
Keep: cash from the later sale, after tax
Keep: total wealth at the end

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.

Amount realized = sale price − selling costs Gain = amount realized − (cost basis − depreciation) Tax = depreciation part of the gain × recapture rate + (rest of the gain − home-sale exclusion) × capital gains rate Sell now: (amount realized − mortgage − tax) × (1 + return)^years Keep: each year's after-tax cash flow, grown at the same return + (later amount realized − mortgage then − tax then)

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.