
Selling your home can come with one of the best tax breaks available to homeowners: the Section 121 home-sale exclusion.
If you qualify, you may be able to exclude up to:
🏡 $250,000 of gain if single
🏡 $500,000 of gain if married filing jointly
Sounds great, right?
But what happens if you rented out a bedroom, operated a home office, converted the basement into an Airbnb, or previously used the entire property as a rental?
That's where depreciation can come back into the picture.
And unfortunately, selling the house doesn't necessarily make that depreciation disappear.
When property is used to produce rental income, the IRS generally allows you to recover the cost of the depreciable portion of the property over time.
Residential rental property is generally depreciated over 27.5 years.
That depreciation deduction can reduce taxable rental income while you own the property.
Sounds like a win.
But depreciation also reduces your tax basis in the property.
And when you eventually sell, that matters.
Here's the part that catches homeowners by surprise.
If you claimed depreciation—or in many situations were entitled to claim it—you generally can't simply exclude the depreciation-related portion of your gain under Section 121.
For depreciation attributable to business or rental use after May 6, 1997, that portion of the gain generally remains taxable. For individuals, gain attributable to straight-line depreciation on real property is generally treated as unrecaptured Section 1250 gain and may be taxed at a maximum federal rate of 25%.
And here's an especially important point:
Your basis generally must still be adjusted for depreciation that was allowed or allowable. In other words, simply failing to take the deduction doesn't necessarily prevent the tax consequences when you sell.
That's why depreciation needs to be tracked correctly from the beginning.
To qualify for the full home-sale exclusion, you generally must meet both an ownership test and a use test.
In simple terms, during the five-year period ending on the sale date, you generally need to have:
✅ Owned the home for at least two years
and
✅ Used it as your principal residence for at least two years
The two years don't necessarily have to be consecutive.
If you qualify, Section 121 can potentially exclude a substantial amount of gain.
But it doesn't erase depreciation-related gain from periods when the property was used for business or rental purposes.
This distinction is extremely important.
The tax treatment can differ depending on whether the rental or business space was:
or
Let's look at both.
Suppose you own a single-family home and rent out a spare bedroom.
Or perhaps you use a room as a qualifying home office.
That space is within the dwelling unit.
If you otherwise qualify for the Section 121 exclusion, the IRS generally does not require you to allocate the overall gain between the personal portion and that room simply because part of the living area was used for business or rental purposes.
That's good news.
But there's still a catch:
Suppose you:
🏡 Bought your home for $500,000
💰 Later sold it for $750,000
📈 Have a simplified $250,000 gain before considering selling costs, improvements, and other basis adjustments
🛏️ Rented a bedroom within the home
📉 Claimed $15,000 of depreciation
Assume you meet the Section 121 requirements and have enough exclusion available to cover the otherwise eligible gain.
You generally wouldn't automatically make 25% of the $250,000 gain taxable just because 25% of your home's square footage had been rented.
Instead, the Section 121 exclusion could potentially shelter the otherwise qualifying gain.
However, the $15,000 attributable to depreciation generally cannot be excluded.
That amount may be subject to the special tax treatment for unrecaptured Section 1250 gain, with a maximum federal rate of 25%.
That's very different from saying the entire rental percentage of the appreciation is automatically taxable.
Now let's change the facts.
Suppose you own a duplex.
You live in Unit A and rent Unit B.
Or perhaps your property includes a separate building (ADU) used exclusively as a rental.
Now we may have a different result.
When the business or rental portion is separate from the dwelling area, you may need to allocate the property's:
💰 Sales proceeds
🏡 Adjusted basis
📈 Gain
between the personal-residence portion and the separate rental/business portion.
The portion that doesn't satisfy the Section 121 residence requirements generally won't qualify for the exclusion. The sale of the separate business or rental portion may also need to be reported on Form 4797.
Suppose you own a duplex and:
🏡 Live in 75% of the property
🏘️ Rent the other 25% as a separate unit
💰 Sell the entire property at a gain
If the separate rental unit doesn't meet the Section 121 use requirements, part of the gain may have to be allocated to that rental portion.
That rental-side gain may remain taxable.
And depreciation can add another layer to the calculation.
This is much different from simply renting a bedroom inside your primary residence.
This is another common situation.
Maybe you:
Lived in the property as your home,
Moved out,
Rented the entire house, and
Sold it a few years later.
You may still satisfy the 2-out-of-5-year ownership and use tests depending on when you sell.
And interestingly, rental use after the last date the property was your principal residence isn't necessarily treated as “nonqualified use” for the special Section 121 allocation rules.
But depreciation from the rental period generally still cannot be excluded.
You live in your home for several years.
Then you move and rent it for two years before selling it.
You still satisfy the Section 121 ownership and use requirements.
You may potentially exclude much of the appreciation—subject to the applicable $250,000 or $500,000 limitation.
But depreciation claimed or allowable during the rental period generally remains taxable.
That's an important distinction.
Now reverse the order.
You buy a property as a rental.
Several years later, you move into it and make it your principal residence.
Then you sell.
Simply living there for two years before selling doesn't necessarily make all of the prior rental-period appreciation eligible for exclusion.
Section 121 contains special nonqualified-use rules that can require a portion of the gain to remain taxable when the property was used for something other than your principal residence during certain periods after 2008.
Depreciation is then dealt with separately.
This is one of those areas where the timeline matters tremendously.
No.
Stopping rental activity can stop future depreciation, but it doesn't erase depreciation already allowed or allowable.
If you rented part of the property for years and then stop renting six months before selling, the historical depreciation doesn't simply disappear.
However, changing how a property is used can affect other aspects of the Section 121 calculation, particularly when separate portions of the property are involved.
So don't stop renting solely because someone told you:
“Just stop renting before you sell and there won't be depreciation recapture.”
That's not how it works.
There's another problem with overly simple examples.
Your taxable gain usually isn't just:
Sale price − original purchase price.
Your calculation can involve:
➕ Certain capital improvements
➕ Certain acquisition costs
➖ Depreciation allowed or allowable
➖ Other basis adjustments
➖ Certain selling expenses when determining the amount realized
That means the actual taxable gain can look very different from the number you get by simply subtracting what you originally paid from what you sold it for.
If you've ever rented all or part of your residence, keep records showing:
✔️ Original purchase price and closing documents
✔️ Capital improvements
✔️ Dates the property was your principal residence
✔️ Dates it was rented
✔️ Which portion was rented
✔️ How the rental percentage was calculated
✔️ Depreciation schedules
✔️ Prior tax returns
✔️ Selling expenses
✔️ Any periods when the entire property was used as a rental
These records can become extremely important when determining both your adjusted basis and how much gain may qualify for Section 121.
If your home has ever been used for rental or business purposes, don't wait until after closing to ask what the tax bill will be.
Before selling, determine:
🏡 Do you satisfy the Section 121 ownership and use tests?
🛏️ Was the rental space inside your dwelling or separate from it?
📅 When did the rental use occur?
💰 How much depreciation was allowed or allowable?
📈 What is your actual adjusted basis?
🧾 Do you have documentation for improvements and selling costs?
💵 How much of the gain could remain taxable?
A little planning before the sale can prevent a very large surprise afterward.
The Section 121 exclusion can be incredibly valuable, but once you introduce rental activity, business use, depreciation, or a change in how the property was used, the calculation becomes much more complicated.
The biggest takeaway?
Sometimes most of the gain may still qualify for exclusion while the depreciation-related portion remains taxable.
Other times, particularly with a separate rental unit or prior nonqualified use, a larger portion of the gain may remain taxable.
The details matter.
And with real estate, those details can mean thousands—or tens of thousands—of dollars.
Don't wait until after the sale to find out what the tax consequences are.
👉 Book a call with Lisa Brugman, EA & Associates.
We'll review your property's purchase history, rental use, depreciation, improvements, adjusted basis, and potential Section 121 exclusion so you understand the tax picture before you sell.