Last checked December 4, 2026 (Mountain Time).
The 2-out-of-5 rule
You can exclude gain if, in the 5 years before the sale, you owned the home and used it as your main home for a total of 2 years or more (26 U.S.C. 121(a)). The limit is generally $250,000. It can be $500,000 for some married couples filing jointly (26 U.S.C. 121(b)).
Why the move-out date matters
The law cuts the exclusion for "nonqualified use," which is mostly time the home was not your main home. But time after you last lived there, within the 5-year window, does not count as nonqualified use (26 U.S.C. 121(b)(5)). So for many people who moved out and rented the home, the timing of the sale matters a lot.
Depreciation still counts
If you took depreciation while it was a rental, the exclusion cannot cover gain equal to that depreciation after May 6, 1997 (IRS Pub. 523). That part can be taxed at up to 25% (IRS Topic 409).
Your tenant
Your old home is now a rental, so tenant rules apply. A set-term lease runs to its end date, and a month-to-month tenant gets at least 15 calendar days' notice (Utah Code 78B-6-802).
Dates to bring to a CPA
- The date you bought the home.
- The date you moved out.
- The date the first tenant moved in.
- The depreciation you claimed each year.
- Your planned closing date.
Questions landlords ask
If I convert my rental to my primary residence before selling, can I avoid the tax?
Not all of it. IRS Pub. 523 says the home-sale exclusion cannot cover gain equal to depreciation taken after May 6, 1997. It also says time after 2008 when the home was not your main home can count against you (IRS Pub. 523).
What is depreciation recapture when I sell a rental?
It is tax on the gain that comes from the depreciation you took. Rental homes are depreciated over 27.5 years (IRS Pub. 527). When you sell, the IRS taxes that part of the gain, called unrecaptured section 1250 gain, at up to 25% (IRS Topic 409).
What tax rate applies to depreciation recapture on a rental sale?
Up to 25%. The IRS says unrecaptured section 1250 gain from selling real property is taxed at a maximum 25% rate (IRS Topic 409). Other long-term gain is taxed at 0%, 15%, or 20%, based on income.
How is the sale of a rental property taxed?
A sale can bring federal long-term capital gain, tax on the depreciation part, and sometimes a 3.8% investment income tax (IRS Topic 409; IRS Topic 559). Utah also taxes income at 4.45% for 2026 (Utah Code 59-10-104). A CPA can put it together.
Does a term lease in Utah end on its own when the term expires?
Yes. A lease with a set end date ends on that date, and no notice is needed (Utah Code 78B-6-802). If the tenant stays after it ends, the law treats the stay as unlawful. Ending a lease before its date is a question for your attorney.
How do I give a month-to-month tenant notice to vacate in Utah?
Give written notice at least 15 calendar days before the end of a rent period. The owner, the owner's agent, or a later owner, such as a buyer, can send it (Utah Code 78B-6-802). Deliver it in one of the ways the law lists (Utah Code 78B-6-805).
Can I sell my rental property with tenants still living in it?
Yes. On the state purchase contract, the buyer takes the home subject to leases of 30 days or more that do not end before closing (REPC Section 10.1(a)).
Who should I talk to before I sell my rental?
Most landlords talk to a few people. A real estate attorney can review the lease and any notice, a CPA can estimate the tax, and a licensed agent can price and list the home. Anyone paid to sell for you needs a Utah license (Utah Code 61-2f-201). Our guide on who to talk to explains each role.
Sources
- 26 U.S.C. 121 (Cornell LII), opened 2026-12-04
- IRS Pub. 523
- IRS Topic 409
- Utah Code 78B-6-802