Moving into your rental: nonqualified use and the 121 exclusion
TL;DR: If you turn a rental into your home, you can use the section 121 exclusion after living there 2 years, but rental years after 2008 are nonqualified use that shrinks the exclusion pro rata. Depreciation is always taxed at up to 25%. If you got the property in a 1031 exchange, you must also wait 5 years from acquisition.
Educational only, not tax, legal, or investment advice. Examples are illustrations, not predictions. Rules and limits change; verify current figures and talk to a qualified professional about your situation.
Before 2009, there was a famous move: own a rental for 20 years, move in for 2, sell, and exclude up to $500,000 of gain that was mostly earned as a rental. Congress found this charming and then ended it. The nonqualified use rule in section 121(b)(5) now prorates the exclusion for rental time. The move still helps, just less. Here's the math.
CPA Warning Label: Moving into a rental doesn't erase its rental history. Rental years after 2008 and all depreciation are taxed, and 1031 property needs a 5-year hold.
Post-2008 nonqualified use
Section 121(b)(5) says gain allocated to periods of nonqualified use isn't excludable. Nonqualified use means any period after December 31, 2008 when neither you nor your spouse (or former spouse) used the property as a principal residence.
Key exceptions, which are not nonqualified use:
- Any period before January 1, 2009.
- Any portion of the 5-year lookback period after the last date you used the property as your principal residence (this protects home-then-rental conversions).
- Up to 10 years of qualified official extended duty for military, foreign service or intelligence personnel.
- Temporary absences up to 2 years total due to change of employment, health or other unforeseen circumstances in IRS guidance.
So rental-then-home is the sequence that gets prorated. The rental years after 2008 count against you.
Pro-rata exclusion math
The formula, in order:
- Compute total gain.
- Carve out the gain attributable to depreciation after May 6, 1997. It's taxed as unrecaptured 1250 gain and is not part of the allocation (121(b)(5)(D) and 121(d)(6)).
- Multiply the remaining gain by nonqualified use period ÷ total ownership period. That portion is taxable (long-term capital gain).
- The rest is eligible for the exclusion, up to $250,000 single or $500,000 joint.
You still need to meet the 2-of-5-year ownership and use test. The proration is on top of that. See partial 121 exclusion with rental use for reduced-exclusion cases when you sell before 2 years for a qualifying reason.
Recapture still applies
Depreciation is the part that never gets forgiven. Every dollar claimed (or allowable) after May 6, 1997 is taxed at up to 25%, even if the rest of the gain is excluded. Moving in also ends depreciation: the property is no longer used in a rental activity. Suspended passive losses from the rental years generally stay suspended until you dispose of the property in a fully taxable transaction; converting to personal use isn't a disposition. Many practitioners treat those losses as usable on the eventual sale; it's an area to get advice on.
Example
Illustration (made-up numbers): Frugal Fran and her spouse bought a rental on January 1, 2017 for $300,000. They rented it through December 2022, claiming $55,000 of depreciation. They moved in January 1, 2023, and sell on January 1, 2027 for $700,000, net of selling costs. Ownership: 10 years. Nonqualified use: 2017 through 2022, 6 years.
| Step | Amount |
|---|---|
| Adjusted basis: $300,000 − $55,000 | $245,000 |
| Total gain: $700,000 − $245,000 | $455,000 |
| Depreciation gain (taxed at up to 25%) | $55,000 |
| Remaining gain | $400,000 |
| Nonqualified share: 6 ÷ 10 × $400,000 (taxable LTCG) | $240,000 |
| Eligible for exclusion | $160,000 (under the $500,000 cap, fully excluded) |
Taxable: $55,000 at up to 25% plus $240,000 of long-term capital gain. Compare to not moving in at all: $455,000 fully taxable. Moving in saved tax on $160,000. The more years they live there, the bigger the excluded fraction, since total ownership grows while nonqualified use stays at 6 years. If they stayed until 2031 (14 years total), the nonqualified fraction falls to 6/14 (about 43%).
Illustration 2 (pre-2009 rental time helps): Suppose Fran had instead bought the rental January 1, 2005, rented it through December 2012, and lived there from 2013 until a January 1, 2027 sale. Ownership is 22 years. Rental time before 2009 (2005-2008) isn't nonqualified use, so only 2009-2012 counts: 4 years. Her nonqualified fraction is 4/22, about 18%. On a $400,000 non-depreciation gain, about $72,700 is taxable and about $327,300 is eligible for the exclusion, all under the $500,000 joint cap. The depreciation from 2005-2012 is still taxed at up to 25%. Same house, same rental years, very different result. That's why the dates on your records matter more than the stories about them.
One more check: the exclusion applies only once every 2 years. If you excluded gain on another home sale in the prior 2 years, you can't exclude gain on this one until 2 years have passed, unless a reduced exclusion applies for a job change, health or unforeseen circumstances.
Now Lavish Larry, who got his rental through a 1031 exchange in 2023 and moved in during 2024: under section 121(d)(10), he can't use the exclusion at all if he sells before 2028 (5 years from acquisition). Even after 5 years, the rental years of the replacement property count as nonqualified use, and the gain deferred from the old property sits in the replacement's low basis, so a large share of his gain will still be taxable. See combining 1031 and 121.
Timing tips
- Live there at least 2 full years before selling; count days, not seasons.
- Longer stays dilute nonqualified use. Each extra year as your residence raises the excluded share.
- After moving out again, you have up to 3 years before the 2-of-5 test fails, and that later rental time isn't nonqualified use.
- 1031-acquired property: wait 5 years from acquisition.
- Document residence: driver's license, voter registration, mail, tax returns and utility bills at that address.
- Don't move in for show. Principal residence is a facts-and-circumstances test; a weekend place you visit doesn't count.
Reporting the sale
Report the sale on Form 4797 if the property had business or rental use in the year of sale; otherwise, report it on Form 8949 and Schedule D. Many people who move in and later sell end up on Form 8949 and Schedule D, with the excluded portion shown as an adjustment, code H. The depreciation portion flows to the unrecaptured section 1250 gain worksheet in the Schedule D instructions. If you receive a Form 1099-S, report the sale even if you think the whole gain is excluded. Pub. 523 has a worksheet for nonqualified use; keep it with your records.
Records you'll want: the original closing statement, every improvement receipt (for both the rental and personal years), depreciation schedules from each year's Schedule E and Form 4562, and proof of the move-in date. If you didn't claim depreciation in some rental years, the allowable amount still reduces basis. Form 3115 may fix that before the sale.
Common mistakes
- Excluding the depreciation. The 121 exclusion never covers depreciation after May 6, 1997. Software sometimes gets this wrong when the asset history is incomplete.
- Counting pre-2009 rental time as nonqualified. It isn't. Pre-2009 rental time helps the ratio, since it adds to ownership without adding to nonqualified use.
- Forgetting the 5-year 1031 hold. Selling in year 4 means no exclusion at all.
- Using months instead of days on a close call. The 2-year test is 730 days of use in the 5-year window; aggregate days if you moved in and out.
- Ignoring a home office or rented room. Depreciation from that use is also taxable; see renting a room.
Is it worth moving in?
Sometimes. The tax saving above was meaningful, but Fran also gave up rent for four years and lived in a place she might not have chosen. If you'd move there anyway (downsizing, a better location for retirement), the tax benefit is a bonus. If you'd only move for taxes, compare the rent you'd lose against the tax you'd save. Also weigh state tax: most states follow section 121, but not all treat nonqualified use identically. See the home sale exclusion and selling a rental.
FAQ
Can I exclude gain on a rental if I move in for 2 years?
Partly. You must meet the 2-of-5-year test, and gain is prorated: the share for rental periods after 2008 is taxable. Depreciation after May 6, 1997 is taxed at up to 25%.
What is nonqualified use?
Any period after 2008 when the home wasn't your or your spouse's principal residence, except time after you last lived there within the 5-year lookback and certain military or temporary absences.
Do I have to wait 5 years if I got the house in a 1031 exchange?
Yes. Under section 121(d)(10), the exclusion isn't available if you sell within 5 years of acquiring the property in a like-kind exchange.
What happens to my suspended passive losses when I move in?
Converting to personal use is not a disposition, so they generally remain suspended. Their use on a later sale is a technical question to review with a tax professional.
Does moving out after living in a former rental hurt me?
No. Time after you last used the home as your principal residence, within the 5-year lookback, is not nonqualified use.
Sources & fact-check notes
- 26 U.S.C. 121 (Cornell LII) (accessed 2026-10-27)
- IRS Publication 523, Selling Your Home (accessed 2026-10-27)
- IRS Publication 527, Residential Rental Property (accessed 2026-10-27)
- IRS Publication 925, Passive Activity and At-Risk Rules (accessed 2026-10-27)
Figures checked October 27, 2026. Rules and limits change; verify with the official source before acting.