Selling Your Home: What to Know Before You Assume It’s Tax-Free
- Clarity Tax
- Apr 29
- 4 min read
Understanding the Common §121 “Gotchas”
When people sell their home, there’s often an assumption that the gain is automatically tax-free. In many cases, that’s true. But once you start layering in real-life situations like moving, renting, or working from home, the rules become more nuanced.
There are a few key areas that tend to come into play:
The basic home sale exclusion rules under IRC §121
Periods where the home was not used as a primary residence
Renting part or all of the home
Prior depreciation from business (think home office deduction) or rental use
Individually, these are manageable. Together, they can change the outcome in ways that aren’t always obvious at first glance.
The Foundation: What the Home Sale Exclusion Actually Does
At a high level, IRC §121 allows you to exclude up to $250,000 of gain on the sale of your primary residence, or $500,000 if you are married filing jointly.
To qualify, you generally need to meet two requirements within the five-year period before the sale:
You owned the home for at least two years out of the last five years
You lived in the home as your primary residence for at least two years
These don’t need to be consecutive, and ownership and use don’t have to perfectly overlap.
One of the most common misconceptions we see is the belief that buying another home eliminates the gain. That used to be true under older tax rules, but it no longer applies. The gain stands on its own, and the exclusion is applied based on eligibility, not what you do with the proceeds.
Why This Matters More Than It Seems
Very few clients have a perfectly clean fact pattern. More often, the story looks something like this. At some point:
They lived in the home, then rented it for a while.
They used part of the home as an office.
They moved for work but kept the property.
They converted a second home into a primary residence before selling.
Each of those decisions leaves a footprint. The result is that two homeowners with similar gains can end up with very different tax outcomes.
This is where thoughtful planning starts to matter. Without it, it’s easy to assume everything is covered, only to find out later that part of the gain is taxable.
What This Looks Like in Practice
Let’s walk through a scenario that comes up fairly often.
A couple buys a home for $400,000 and later sells it for $900,000. That’s a $500,000 gain, which on the surface fits neatly within the $500,000 exclusion for a married couple.
But their history with the home isn’t perfectly straightforward.
Before moving in, they rented the property for a couple of years. Later on, they used one room as a home office and claimed depreciation using the actual method. Eventually, they moved out and rented the home again before selling.
Even though they still meet the basic two-out-of-five-year rule, the full gain is no longer automatically excluded.
The portion of the gain attributable to depreciation must be recognized as taxable income. That applies even if everything else qualifies for the exclusion.
On top of that, certain periods when the home was not used as a primary residence can reduce the amount of the remaining gain eligible for exclusion. The calculation isn’t always intuitive, and it depends heavily on timing.
What looked like a clean, tax-free sale at first glance can easily become partially taxable once you walk through the full history.
We've seen clients miss out on a $500,000 exclusion because they moved two months earlier than the full exclusion would have allowed. Ouch!
Where Things Tend to Go Wrong
Most of the issues we see aren’t from complicated strategies. They come from reasonable assumptions that just don’t quite line up with how the rules actually work.
One of the biggest is the idea that buying another home cancels out the gain. It doesn’t. The exclusion stands on its own and has to be evaluated independently.
Rental use is another area where expectations and reality don’t always match. Clients often assume that moving back into the home for two years resets everything. In some cases, it helps, but prior rental periods can still impact the calculation depending on when they occurred.
The concept of “nonqualified use” adds another layer. Periods where the home wasn’t used as a primary residence can reduce the available exclusion, but there are also exceptions built into the rules. For example, certain periods after you move out may still be treated more favorably if they fall within the five-year window. It’s not always as simple as counting years.
Home office use tends to be more subtle. Many clients use the simplified method, which avoids depreciation and keeps things cleaner. But when the actual method is used, depreciation is taken into account, and that portion of the gain becomes taxable when the home is sold. The actual method is basically taking actual expenses and multiplying them by the percentage of space used for business.
There’s also an important distinction between using space within the home versus having a separate unit or structure. A detached office or a fully separate rental space can change how the gain is allocated and what qualifies for the exclusion.
Lastly, one detail that often catches people off guard is that depreciation is based on what was allowed, not just what was claimed. Even if it wasn’t taken, it still reduces the basis and is treated as a taxable gain when the property is sold.
How We Think About This at Clarity
When we look at a home sale, we don’t start by asking whether the gain is excluded. We start with the full story of the property.
We walk through how the home was used over time, including shifts between personal, rental, and business use, and whether any of those periods fall within exceptions that preserve the exclusion.
From there, we look at timing. In many cases, small adjustments, such as whether you sell or move back into the home, can have a meaningful impact on the outcome.
The goal is not just to apply the rules, but to understand how they interact with the client’s actual decisions. Because when it comes to selling a home, the tax result is rarely about a single moment in time and is almost always shaped by the path you took to get there.


Comments