All calculatorsOwn, hold or sell
Rent vs. sell calculator
Compare two paths over the years you choose: sell now and invest the money, or rent the home out and sell later. The calculator includes the tax on the sale, which is where renting out a former home often costs more than people expect.
Renting for 3 years comes out ahead by
$17,217
You keep the home sale exclusion: you would have lived there 2 of the 5 years before the sale.
Sell now and invest the money
- Sale price less selling costs
- $376,000
- Loan payoff
- − $250,000
- Tax on the sale
- − $0
- Cash today
- $126,000
- Invested for 3 years
- $150,068
Rent for 3 years, then sell
- Sale price in 3 years
- $437,091
- Selling costs
- − $26,225
- Loan payoff
- − $236,769
- Tax on $25,455 of depreciation
- − $6,109
- Capital gains tax
- − $0
- Rental cash flow, invested
- −$702
- Total
- $167,285
Compare selling after each year (1 to 6)
| Rent for | Sell now, invested | Rent, then sell | Difference | Exclusion |
|---|---|---|---|---|
| 1 year | $133,560 | $138,700 | +$5,140 | Kept |
| 2 years | $141,574 | $152,378 | +$10,804 | Kept |
| 3 years | $150,068 | $167,285 | +$17,217 | Kept |
| 4 years | $159,072 | $165,028 | +$5,956 | Lost |
| 5 years | $168,616 | $180,747 | +$12,130 | Lost |
| 6 years | $178,733 | $197,905 | +$19,172 | Lost |
How it is calculated
Difference = (Rental cash flow + sale proceeds after tax) − (Cash from selling now, invested)
- Home sale exclusion
- Up to $250,000 of gain, or $500,000 for a married couple filing jointly, is tax free if you owned the home and lived in it for at least 2 of the 5 years before the sale (IRS Publication 523).
- Renting after you move out
- Publication 523 does not count time after you last lived in the home, within those 5 years, against the exclusion. So renting it out is fine as long as you still pass the 2-of-5-year test when you sell. If you lived there at least 2 years before moving out, that generally means selling within 3 years.
- Depreciation recapture
- Depreciation reduces your basis and is never covered by the exclusion. Publication 523 says the exclusion doesn’t apply to gain from depreciation after May 6, 1997, and IRS Tax Topic 409 taxes it at a maximum rate of 25%.
- Depreciation on a former home
- It starts from the lower of what you paid (plus improvements) or the home’s value when it becomes a rental, without the land, spread over 27.5 years (Publication 527).
- Opportunity cost
- Selling frees cash that could earn a return elsewhere. The calculator grows it at the rate you choose, and invests the rental cash flow at the same rate, so both paths are compared on the same terms.
Worked example
- A married couple filing jointly has lived in their home for 5 years. It is worth $400,000, they paid $300,000, and $250,000 is left on a 6.5% loan with 25 years to go.
- Selling now: $400,000 less 6% selling costs ($24,000) and the $250,000 loan leaves $126,000. The $76,000 gain is within the exclusion, so there is no tax. Invested at 6% for 3 years, it grows to $150,068.
- Renting for 3 years at $2,600 a month, after 5% vacancy, 8% management, $7,800 of yearly costs and $20,256 a year of loan payments, the rental runs close to break-even: −$702 after 3 years, including the 6% return.
- Selling after 3 years, with the home’s value growing 3% a year: $437,091, less $26,225 of selling costs and a $236,769 loan payoff.
- Depreciation over those years is $25,455 on a $240,000 building. That part of the gain is taxed at 24%: $6,109. The rest of the $136,320 gain is excluded, because they lived there 2 of the 5 years before the sale.
- Renting ends with $167,285, which is $17,217 more than selling now. Rent for a fourth year and the exclusion is lost: $18,479 of capital gains tax cuts the lead to $5,956.
What decides it
Timing matters most. If you lived in the home for at least 2 years before renting it out, the exclusion generally survives about 3 years of renting, because the test looks back over the 5 years before the sale. After that, the whole gain is taxable. Open the year-by-year comparison to see where your numbers cross that line.
Depreciation is taxed when you sell whether or not you claimed it. Publication 523 reduces your basis by depreciation you took or were allowed to take, so skipping the deduction does not avoid the tax.
Growth in the home’s value applies to the whole price, not just your equity, so even modest appreciation can favor keeping it. A flat market, a large repair or a long vacancy can reverse the result quickly. The starting figures are examples, not forecasts, so try your own.
This calculator uses federal rules and taxes the home only when it is sold. It leaves out income tax on rental profit or loss during the rental years, state tax, 1031 exchanges and partial exclusions for special circumstances. It assumes the rental starts in January after you move out and the sale happens at the end of a year. The results are estimates, so check them with a tax professional before deciding.
Common questions
How long can I rent out my house and still avoid capital gains tax?
Publication 523 requires that you owned and lived in the home for at least 2 of the 5 years before the sale. If you lived there 2 years or more right up to renting it out, that generally means selling within 3 years of moving out. Tax on depreciation from the rental years is due either way.
Is depreciation covered by the home sale exclusion?
No. Publication 523 says the exclusion doesn’t apply to gain from depreciation adjustments after May 6, 1997. IRS Tax Topic 409 taxes that gain at a maximum rate of 25%.
What if I don’t claim depreciation while renting?
It still counts. Publication 523 reduces your basis by depreciation you took or were allowed to take, so the tax at sale is figured as if you had claimed it.
Does renting the home first reduce my exclusion?
Not while you still pass the 2-of-5-year test. Publication 523 does not treat time after you last lived in the home, within the 5 years before the sale, as nonqualified use.
What tax rate applies to the rest of the gain?
Long-term capital gains are taxed at 0%, 15% or 20% depending on taxable income (IRS Tax Topic 409). Enter the rate that fits your income.