Have a Tax Question? Ask a Tax Expert
The key requorement for a successful 1031 exchange is the acquisition of property that is considered like-kind by the IRS. I think it is probably not likely that a house would be like-kind to a mixed use property, even if the the way that you use it in your business is similar. You can request a private letter ruling from the IRS on this.
The portion of your property that is your primary residence would enjoy the $500k exemption on your gain, so you would only owe tax on depreciation recapture and capital gain for the business use portion.
I can't think of any realistic ways to avoid the gain other than to buy another mixed use property and use the 1031 exchange rules.
A letter ruling is basically a request for the IRS to tell you how they would view a transaction, given a certain set of circumstances. The IRS website has instructions on how to submit one, but I would recommend that you retain someone who specializes in PLR requests to handle it for you. In my opinion, you have only a small chance of a favorable ruling.
If you stopped using the property for business, it would still be like-kind only to other mixed use property. Its classification is not dependent on how you use the property, but on what it actually is.
You are most welcome. Please let me know if there is anything else I can do for you and don't forget to rate!
Just a friendly reminder- rating my answer to this question is how I get credit for answering it. Please take a moment to rate.