Cory SalisburyKW Westfield
(801) 245-0511Admin

What Happens to Your Tax-Free Home Sale Exclusion If You Rent Out Your Utah Home?

By Cory Salisbury, Realtor - KW Westfield · helping Utah families since 2014

Short answer: it depends on the order. Live in the home first, then rent it out, and you've likely got roughly 3 years from your move-out date to sell. Sell inside that window and you keep the full $250,000 (or $500,000 married filing jointly) tax-free exclusion. Rent it out first, then move in later, and it's a different rule. The IRS only lets you exclude the gain from the years you actually lived there, split against your total years of ownership. Either order, any depreciation you claimed while it was a rental gets taxed separately when you sell. That part is never tax-free.

Sources: IRS Topic no. 701, Sale of Your Home; IRS Publication 523, Selling Your Home; IRS FAQ, Capital Gains, Losses, and Sale of Home; Internal Revenue Code Section 121(b)(5), added by the Housing Assistance Tax Act of 2008, via Cornell Law School's Legal Information Institute. Utah property tax figures reused from this site's own sourced coverage of the Utah State Tax Commission's Primary Residential Exemption. Page last updated September 2, 2026.

What is the Section 121 home-sale tax exclusion, in plain terms?

Section 121 of the tax code lets you exclude up to $250,000 of gain from the sale of your main home. It's $500,000 if you file a joint return with your spouse, per the IRS. To qualify, you need to pass two tests. Both run over the 5-year period ending on the day you sell. First, you owned the home for at least 24 months (2 years) of that window. Second, you used it as your main home for at least 24 months of that same window. The two 2-year periods don't have to overlap. They just both have to fall somewhere inside those 5 years.

Does renting the house out change your 2-of-5-year clock?

Yes, and the order you did things in matters more than most Utah homeowners realize. There are two very different situations here, and the tax code treats them completely differently:

  • You lived in it first, then converted it to a rental. This is the far more common Wasatch Front case. A rate lock, a job move, or a move-up purchase turns a primary residence into a rental.
  • You rented it out first, then moved in later. This shows up with an inherited property, a house-hack, or an investment purchase you eventually decide to live in yourself.

Get the order backwards in your head, and you can badly overestimate what you're actually allowed to exclude.

You lived there first, then rented it out: how much time do you actually have?

Once you move out and start renting, the clock doesn't stop right away. Under IRC 121(b)(5)(C)(ii), the time after your last day of living there doesn't count as "nonqualified use." That's true as long as it still falls inside the 5-year lookback window when you sell, per the Legal Information Institute's text of the statute. In practice, you need 24 of the last 60 months as your main home. That math gives you roughly a 3-year window from your move-out date to sell and still pass the test. Sell inside that window, and the full exclusion is still available, aside from the depreciation rule below. Sell after it closes, and you no longer pass the use test at all. That isn't a partial loss. It's the whole exclusion, gone, on every dollar of gain since you bought the house, not just the gain since you moved out.

You rented it out first, then moved in later: how does the IRS split your gain?

This is the scenario most people get wrong. Moving in for two years feels like it should "fix" everything. It doesn't. Under IRC Section 121(b)(5)(A), the exclusion still won't cover every dollar, even once you do pass the 2-of-5-year test. It doesn't apply to gain allocated to "periods of nonqualified use." That's any period after December 31, 2008 when neither you nor your spouse used the property as a main residence, per the statute. The allocation is strictly proportional. Take your nonqualified-use time, divide it by your total ownership time, and apply that share to your total gain.

Here's a worked, illustrative example, not a real transaction. Say you bought a rental in Utah in 2019. You rented it for 6 years, through 2025. Then you moved in and used it as your primary residence for 2 years before selling in 2027. You owned it for 8 years total. 6 of those 8 years, or 75%, were nonqualified use.

StepAmount
Illustrative total gain at sale$200,000
Nonqualified-use share (6 rental years ÷ 8 total years)75%
Gain that can never be excluded$150,000 (taxed as a capital gain)
Gain eligible for the Section 121 exclusion$50,000 (under the $250K/$500K cap, so it's tax-free)

Illustrative example only, not a real property or a real tax return. Depreciation recapture on the rental years is calculated separately from this math, and it isn't in the $150,000 figure above. Confirm your own basis, gain, and depreciation schedule with a CPA.

Living-first vs. renting-first: the two outcomes side by side

Lived in it first, then rentedRented it first, then lived in it
Governing ruleIRC 121(b)(5)(C)(ii) exceptionIRC 121(b)(5)(A) allocation
If you sell inside the windowFull exclusion, no prorationOnly the qualified-use share of gain is excludable
If you sell after the window closesExclusion lost entirely (fail the use test)Still prorated the same way, no extra penalty for time
Depreciation recaptureStill owed on rental yearsStill owed on rental years

The lived-in-first case has a hard deadline. Miss it, and you lose the exclusion entirely. The rented-first case is different. It's a permanent, proportional haircut, whether you sell now or in ten years, because those nonqualified-use years already happened. They don't shrink with time.

Does depreciation wreck your tax-free exclusion?

Partly, and this applies no matter which order you did things in. While a home is a rental, you deduct depreciation against your rental income. At sale, per the IRS, "you may not exclude the part of your gain equal to any depreciation deduction allowed or allowable for periods after May 6, 1997." That's true even if that gain otherwise falls inside your qualified-use share. That depreciation-driven gain gets taxed separately, as unrecaptured Section 1250 gain, at a maximum federal rate of 25%. It can also trigger the 3.8% Net Investment Income Tax on top. You still have to reduce your cost basis by the depreciation you were allowed to take, even in years you forgot to claim it. There's no version of this where depreciation is a free deduction. It's a deferral, and the bill comes due at sale.

Utah adds its own cost on top while the house is a rental

None of this is only a federal question. Utah exempts 45% of a primary residence's value from property tax, so an owner-occupied home is only taxed on 55% of its value, per the Utah State Tax Commission's Primary Residential Exemption. A rental doesn't qualify. It's taxed on the full value instead, which typically raises the property tax bill by roughly 82% on the same home. That's a real, ongoing carrying cost while you're inside whichever Section 121 window applies to you, and it's on top of the eventual tax bill at sale. See the full property-tax and insurance breakdown in our companion piece on keeping a low-rate mortgage as a rental if you're weighing the monthly numbers, not just the exit tax.

What should you actually do before you convert your Utah home to a rental?

  • Write down the exact date you move out. Do it in writing, the same day it happens. That's the date that starts the roughly 3-year clock, if you're converting a home you already live in.
  • Get a real current value on the house now, before you rent it, so you've got a documented starting basis for your eventual gain calculation. I can run that comparison for you at no cost.
  • Keep every depreciation record from day one of renting it. You'll need it at sale, whether or not the exclusion fully applies.
  • Calendar the deadline, not just the general idea of "a few years." Set a reminder well before the 5-year lookback window actually closes.
  • Talk to a CPA before you list it, not after you've already accepted an offer. The nonqualified-use math and the depreciation recapture math both depend on your specific numbers. Neither one is something you want to estimate after the fact.

How do you actually find out where you stand?

Start with the two dates that drive everything: the day you first used the home as your main residence, and the day, if any, you stopped. Those two dates tell you which of the two scenarios above applies to you, and roughly how much runway you have left, if any. I can pull a real current value for your specific house, so you and your CPA are working from an actual number instead of a guess. I'll also walk you through what selling now versus later looks like on the real-estate side. The tax math itself is always a CPA conversation.

Talk with Cory Salisbury, Realtor with KW Westfield, helping Utah families since 2014.


General market education, not mortgage, financial, tax, or legal advice. Cory Salisbury is not a mortgage broker, lender, or CPA. Tax rules, rates, and figures on this page are dated and change; they aren't a guarantee of your actual tax outcome. Confirm your specific basis, gain, depreciation, and filing details with a CPA before making a decision, especially before a Section 121 deadline closes. Cory Salisbury, Realtor, KW Westfield. Equal Housing Opportunity.

Frequently asked questions

Do I lose my Section 121 exclusion completely if I rent out my Utah home?

Not automatically. If you lived in the home first and then rented it, you generally have about 3 years from your move-out date to sell and keep the full exclusion. If you sell after that window closes, you lose the exclusion entirely because you no longer pass the 2-of-5-year use test.

How long can I rent my Utah home before losing the tax exclusion?

Roughly 3 years from the day you move out, because you must have used the home as your main residence for at least 24 of the 60 months before the sale, per IRS Section 121 rules.

What counts as nonqualified use under Section 121?

Any period after December 31, 2008 during which neither you nor your spouse used the property as a main residence, except for time after your last day of living there that still falls inside the 5-year lookback window at sale, per IRC Section 121(b)(5).

Is depreciation recapture avoidable if I move back into a rental before selling?

No. Depreciation taken after May 6, 1997 is never excludable under Section 121, regardless of how the rest of your gain is treated. It is taxed separately as unrecaptured Section 1250 gain, at a maximum federal rate of 25%.

General market education, not mortgage, financial, tax, or legal advice. Cory Salisbury is not a mortgage broker, lender, or CPA. Tax rules, rates, and figures on this page are dated and change; they are not a guarantee of your actual tax outcome. Confirm your specific basis, gain, depreciation, and filing details with a CPA before making a decision, especially before a Section 121 deadline closes. Cory Salisbury, Realtor, KW Westfield. Equal Housing Opportunity.