
Business Advisory Services
Everything you need to help you launch your new business entity from business entity selection to multiple-entity business structures.
Table Of Contents
By Jason Watson, CPA
Posted Monday, March 30, 2026
Part 4 of our series tackles the messy intersection of home and business when it comes to capital gains. As most real estate investors know, there is a $250,000 exclusion for single taxpayers and $500,000 exclusion for married taxpayers on the gains attributed to the sale of a primary residence.
According to IRC Section 121, there are two tests-
The ownership and use test do not have to overlap (you could rent a home for two years, purchase it, convert to a rental, and sell two years later and still be eligible for the gain exclusion). Additionally, the two years do not have to be consecutive. The best way to compute or think about this is to consider months as your unit of measurement- 24 out of 60. This helps with fragmented ownership and use periods.
There are several exceptions for health, work-related move, unforeseen circumstances, death, divorce, government personnel on extended duty (think military) among others. We will not go into these, however, since IRS Publication 523 Selling Your Home has nauseating details and examples.
But what happens when you have a hybrid home where your property was part home and part rental? When we have a single structure that was used as both at different times, you must consider the period of non-qualified use, which might limit how much of the gain is excluded. According to IRC Section 121(b)(5)(C)–
The term “period of nonqualified use” means any period (other than the portion of any period preceding January 1, 2009) during which the property is not used as the principal residence of the taxpayer or the taxpayer’s spouse or former spouse.
There are two basic scenarios with varying outcomes when you sell a property that was both a rental and your primary residence-
The immediate perspective on these scenarios is that you can influence the tax effects by the time spent living in the property as your primary residence. In other words, delaying a sale to increase the time spent as a primary residence might prove beneficial.
Let’s run through these two examples-
The first example involves some math since a portion of the gain is not excludable because of nonqualified use. This is because the property was not used as a primary residence for a portion of the ownership period that counts as “nonqualified use” under the tax code. This contrasts with the thought that the amount of exclusion is reduced. Huh?
In other words, the tax code when written could have either reduced the amount of the exclusion or it could have limited the amount of gain eligible for exclusion. Again, subtle difference. The good news is that as written, IRC Section 121 limits the amount of gain eligible for exclusion which is a loophole of sorts or perhaps a version of tax arbitrage.
Consider-
| Gain on Property Sale (a) | 650,000 |
| Years of Non-Qualified Use | 3 |
| Years of Total Ownership | 12 |
| Percentage (b) | 25% |
| Non-Excludable Gain (a x b) | 162,500 |
| Excluded Gain under IRC Section 121 | 487,500 |
The above example is how the law works assuming married taxpayers. But what if the exclusion amount of $500,000 was reduced by the period of non-qualified use? You would have this-
| IRC Section 121 Gain Exclusion | 500,000 |
| Gain Exclusion Reduction (fictitious) | 125,000 |
| Adjusted Gain Exclusion (fictitious) | 375,000 |
| Illustrative Difference | 112,500 |
In our fictitious second example, $112,500 would not be excluded because the exclusion amount was reduced (versus reducing the amount of gain that is eligible for exclusion). Yes, this is a bit nerdy, but it matters. Sorry, not sorry. The fauxpology.
Neat. Let’s move on to the second scenario where the property was your primary residence first, and then you converted it into a rental. IRC Section 121(b)(5)(C)(ii)(I), yeah deep deep deep into the code, reads-
(ii) Exceptions. The term “period of nonqualified use” does not include-
(I) any portion of the 5-year period described in subsection (a) which is after the last date that such property is used as the principal residence of the taxpayer or the taxpayer’s spouse,
What does this mean? If you owned a property for five years, and for the first three years it was your primary residence, the period afterwards is not included as a “period of nonqualified use.” In other words, rental use after the last use as a primary residence is ignored only if the property still meets the “2-of-5 test.” Therefore, you would enjoy the full gain exclusions of $250,000 (single) or $500,000 (married).
But not so fast! What about depreciation recapture? Depreciation recapture is not excludable. Ah, we just buzz-killed the topic, didn’t we?
Here is an example of a hybrid-use property (rental and primary residence) where the eligible gain is reduced plus depreciation recapture-
Or
| Original Purchase Price (cost basis) | 500,000 |
| Depreciation Taken | 75,000 |
| Adjusted Cost Basis (a) | 425,000 |
| Sale Price (b) | 675,000 |
| Preliminary Gain (b – a) | 250,000 |
| Depreciation Recapture | 75,000 |
| Remaining Gain to Be Considered (c) | 175,000 |
| Years of Non-Qualified Use | 3 |
| Years of Total Ownership | 12 |
| Percentage (d) | 25% |
| Non-Excludable Gain (c x d) | 43,750 |
| Excluded Gain under IRC Section 121 | 131,250 |
In this example, the property owner will pay-
The big takeaway is the ability to influence some of the math with how much time is spent using the property as your primary residence. Tax planning is a must.
You are not going to be thrilled with this. Let’s say you have an ADU alongside your primary residence and you later sell. A portion of the sale price certainly includes the ADU, right? Can that gain be excluded under IRC Section 121? The answer is generally No. IRS Publication 523 Selling Your Home reads in part-
Space separate from the living area.
You generally can’t exclude gain on the separate portion of your property used for business or to produce rental income. Regulations section 1.121-1(e) provides that the use of a separate portion of your home for business or rental purposes doesn’t qualify for exclusion under section 121, and this may affect your gain or loss calculations. See Regulations section 1.121-1(e). Examples are:• A working farm on which your house was located,
• A duplex in which you lived in one unit and rented the other, or
• A store building with an upstairs apartment in which you lived.You can’t exclude gain on the separate part of your property used for business or to produce rental income unless you owned and lived in that part of your property for at least 2 years during the 5-year period ending on the date of the sale. If you don’t meet the use test for the separate business or rental part of the property, an allocation of the gain on the sale is required. For this purpose, you must allocate the basis of the property and the amount realized between the residential and nonresidential portions of the property using the same method of allocation that you used to determine depreciation adjustments.
Yuck! What can be done? Most people default to square footage, but this usually overestimates the value of the rental since a 500 sqft ADU rarely contributes value equal to a 500 sqft luxury living room in the main house. Instead, use a relative fair market value strategy. You would need to obtain an appraisal or broker’s opinion showing a purchase price allocation based on relative fair market value (and hopefully where very little is being assigned to the ADU, right?).
For example, if the property sold for $1M, you argue the main house is valued at $920,000 and the ADU contributes only $80,000. As a result, only 8% of the gain is allocated to the taxable rental portion, rather than 20% based on size. Recall from our earlier discussion on purchase price allocations and the underlying tone of fair market value viewed independently. The concept is the same here.
And remember, any depreciation claimed on the rental portion must still be recaptured, even if part of the gain qualifies for the primary residence exclusion under IRC Section 121. Many people get trapped on this thinking the exclusion excludes depreciation recapture.
The ADU example is easy, right? The duplex one is way more obnoxious. If you buy a duplex for $250,000 and rent one half to others, and then later sell for $600,000, you will have some problems. The overall gain is $350,000 in this example, but a portion must be assigned to the separate portion of the property for rental purposes. A tiny argument could be made for upgrades. If the primary half has granite counters and hardwood floors while the rental half has laminate, you can argue a larger portion of the $600,000 sales price is associated with the “good” half. Then again, upgrades or improvements add to the overall cost basis, naturally lowering your gains. Be careful not to accidentally lower your gain on the tax-free side while leaving the taxable rental side high (assuming a 50-50 split). Lots of hairs to split.
Did we happen to mention fair market value? If not, we are mentioning it (again).
