Home Sale Exclusion After Renting It Out
The home was a rental before we moved in. How much of the gain can we still exclude? Every piece below can be linked to, so it opens in a window on your reader's screen, current as of the record. No form to fill in.
2026 law · Reviewed September 6, 2026 · The full page, with methodology and sources · the terms · All tools
Embed the calculator in your page
The sale price, cost, depreciation, years owned, and years rented before moving in; the gain split into excluded, taxed at the gains rate, and taxed as depreciation, with the tax. In a frame it carries no cookies, no tracking, and a visible link back to the methodology. Your site has to allow frames; most do. The link that opens it in a small window is on the professionals page.
Show the code
- In plain words.
- Selling your main home lets you skip tax on a large chunk of the profit. But if the home was a rental before you moved in, the share of the profit that belongs to those rental years is taxed anyway, and the depreciation you took while renting is taxed at its own rate. Renting the home out after you move out does not have the same effect, as long as you sell within a few years. This tool takes the sale, the years owned and rented, and the depreciation, and splits the profit into what is excluded and what is taxed.
- Why it matters.
- People who retire into a former rental, a lake house or a condo they once let out, are surprised at closing. The years before they moved in count against them, and nothing done later changes that.
- An example.
- Bought for $400,000, rented four of ten years before you moved in, $40,000 of depreciation, sold for $900,000 on a joint return: about $200,000 of the gain is taxable because of the rental years, the depreciation is taxed at 25 percent, and the rest is excluded. About $40,000 of tax, against $10,000 had it never been rented.
- Where it stops.
- It counts whole years and treats the rental years as after 2008. It does not handle a home office, a partial rental, a sale at a loss, or state tax, and the depreciation figure should come from the returns or a CPA.
The facts
Six quotable sentences on selling a home that was once a rental.
The button shows exactly what your reader sees when they click the link. Paste the link where a link goes; it opens this list in a small window, always current as of the record, with the attribution and a link to the full page. Nothing to copy out, nothing to update later.
Show the code
- The home-sale exclusion ($250,000, $500,000 joint) is for a principal residence owned and used two of the last five years. A home rented out before you moved in is partly outside it: the share of the gain matching the rental years after 2008 is not excludable (§ 121(b)(5)).
- The order matters. Renting BEFORE moving in creates nonqualified use; renting AFTER moving out, within the five-year window, does not (§ 121(b)(5)(C)(ii)). A house you lived in and then rented for two years before selling keeps its full exclusion.
- Depreciation taken while the home was rented is never excludable and is taxed at up to 25 percent when the home is sold (§ 121(d)(6); § 1(h)(6)), whether or not it was actually claimed on the returns.
- Example: a home bought for $400,000, rented four of ten years before the owners moved in, with $40,000 of depreciation, sold for $900,000 on a joint return: 40% of the $500,000 gain ($200,000) is taxable, the depreciation is taxed at 25 percent, and the rest is excluded: $40,000 of tax, against $10,000 had it never been rented.
- The allocation is by time owned, not by value: a year of rental in a flat market costs the same share as a year in a rising one.
- A rental converted to a residence is common for people who move into a second home in retirement; the two-year use test starts when they move in, and the years before it count against them forever.
Which years count against the exclusion
The rental years that reduce the exclusion, and the ones that do not.
The button shows exactly what your reader sees when they click the link. Paste the link where a link goes; it opens this table in a small window, always current as of the record, with the attribution and a link to the full page. Nothing to copy out, nothing to update later.
Show the code
| Situation | Effect on the exclusion | Tax |
|---|---|---|
| Rented BEFORE moving in (after 2008) | That share of the gain is not excludable | Long-term gain rate, 15% or 20% |
| Rented AFTER moving out, within the five-year window | No effect | Excluded with the rest |
| Rented more than three years after moving out | Fails the two-of-five test entirely | All gain taxed |
| Depreciation taken while rented | Never excludable | Up to 25% |
| Gain within the exclusion after the above | Excluded up to $250,000 ($500,000 joint) | 0% |
Cite and link.
The clean address, a citation generated from the record so it can never carry a stale review date, and an address for every section so you can point a reader at the exact table or method.
Show the code
- Link
- https://consideratecapital.com/tools/home-sale-exclusion-after-renting
- Citation
- Considerate Capital, "Home Sale Exclusion After Renting It Out," reviewed September 6, 2026, https://consideratecapital.com/tools/home-sale-exclusion-after-renting.
Link to a section
- The calculator https://consideratecapital.com/tools/home-sale-exclusion-after-renting#calculator
- The facts https://consideratecapital.com/tools/home-sale-exclusion-after-renting#facts
- Which years count https://consideratecapital.com/tools/home-sale-exclusion-after-renting#key-numbers
- How the rental years are counted https://consideratecapital.com/tools/home-sale-exclusion-after-renting#how-it-works
- Methodology https://consideratecapital.com/tools/home-sale-exclusion-after-renting#methodology
- Sources https://consideratecapital.com/tools/home-sale-exclusion-after-renting#sources
- Revision history https://consideratecapital.com/tools/home-sale-exclusion-after-renting#revision-history
Everything here reads from one reviewed record, so a copied piece carries its year and its review date. When the law moves, the embed updates by itself; a copied table or chart keeps the year in its caption. Corrections are welcome through the contact page.