Selling a home is complicated enough. If you used part of it for business or rented out a room, the tax situation can feel like a maze. That home office deduction or rental income helped you save money before, but now it brings extra rules when you sell.
The good news is you still have options. You just need to know what applies, what to document, and how to avoid paying more than you should.
Homeowners who meet the criteria can exclude up to $250,000 of capital gains from tax when they sell their primary residence. That number doubles to $500,000 for married couples filing jointly.
To qualify, you must:
The years don’t need to be in a row. Business or rental use also doesn’t disqualify you, but it can affect how much of your gain qualifies for the exclusion and whether you’ll need to pay taxes on any deductions you claimed.
Also, you can only use this exclusion once every two years. If you’ve moved frequently, timing becomes important.
Renting out your home changes the calculation, but not always in a bad way. Since 2009, the IRS has tracked something called “non-qualified use.” That means any time after you moved out and rented the home full-time, the gain from that period may not qualify for the exclusion.
On the other hand, having a roommate while you lived there does not create non-qualified use. Your eligibility continues as long as the home was still your main residence.
Here’s how the IRS applies it:
Example:
You owned a home for 10 years, lived in it for 6, and rented it for 4.
If your rental period was short and you planned to return, it might not count as non-qualified use. And if you move back in and live there for at least two years before selling, you can restore full eligibility. Just note that rental periods after 2008 still count when calculating the exclusion.
When you use part of your home as an office, the IRS treats that section differently. It becomes a business asset, even if it’s just a small corner of your living room.
If the office is part of the home itself, like a bedroom or basement room, the exclusion still applies to that area. But there’s another layer to consider: depreciation recapture.
If you claimed depreciation on your home office, the IRS will tax that portion of your gain when you sell. This applies only to the part you used for business and only for the years you used it that way.
Detached spaces, like a converted garage or backyard studio, are treated separately. The gain from selling those areas may not qualify for any exclusion at all.
Depreciation recapture is the IRS’s way of collecting tax on the business benefits you previously claimed. If you used part of your home for business or rented it out, you likely claimed depreciation. When you sell, the IRS wants a portion of that back.
Here’s what happens:
Example:
If you claimed $10,000 in depreciation, you’ll owe tax on that $10,000. The rest of your gain may qualify for the exclusion, depending on your residence history.
This applies even if the business or rental use lasted only one year.
You can still qualify for the exclusion if you lived in the property for two of the five years before the sale. But rental periods after 2008 are considered non-qualified use, and the gain from those years will be taxable.
Any depreciation you claimed or could have claimed during the rental period must be recaptured.
If you never moved back in, only the part of your gain tied to your time as a resident qualifies for the exclusion. The rest is fully taxable, and depreciation recapture still applies.
Yes, it matters. The IRS taxes you based on depreciation that was allowed or allowable. That means even if you skipped the deduction, you still owe tax as if you had taken it.
You don’t get a break for leaving money on the table. To avoid surprises, pull your records and calculate what you should have claimed. A tax professional can help you estimate the correct number.
Skipping the deduction does not save you. It just makes your paperwork harder.
Good planning can save you thousands. These strategies help reduce what you owe and increase the amount of gain you can exclude:
Selling a home you once used for business or rental income does not have to trigger a huge tax bill. The home sale exclusion still applies in many cases, even if you used part of the home in other ways.
Start by listing out your timeline. Note when the home was your primary residence and when it wasn’t. Add up depreciation and pull your tax records. Then, get help if you need it.
You worked hard for that gain. With the right plan, you can keep more of it.