How do 1031 Exchange rules interact with Home Gain Exclusion when selling investment property?
So I've been a small-time real estate investor for about 8 years now and I'm facing a situation that's making my head spin with all the tax implications. I purchased a duplex back in 2016 for $310,000 that I initially used as a rental property. In 2020, I actually moved into one half of the duplex when my previous apartment lease ended, while continuing to rent out the other unit. Fast forward to today - I'm considering selling the entire property (market value around $485,000) and potentially buying another investment property. Here's where I'm confused: I know about the 1031 Exchange for deferring capital gains on investment properties, and I've also heard about the Home Gain Exclusion ($250k for singles/$500k for married) for primary residences. Since I've lived in half the property for almost 5 years now, can I somehow use BOTH tax benefits? Like use the Home Gain Exclusion for the half I've been living in, and then do a 1031 Exchange for the rental half? If that's possible, how would I calculate everything? Would I need to split the original purchase price and current value, and how would improvements be factored in? I've tried researching online but keep getting conflicting information. Some sources say you can combine these strategies, others say it's either/or. Really hoping someone here has dealt with this specific situation before!
19 comments


Diego Chavez
You're actually in a good spot with some options! Yes, you can potentially use both the Section 121 Home Gain Exclusion and the 1031 Exchange in your situation - this is sometimes called a "split treatment" or "partial exchange." Since you've used half the duplex as your primary residence for more than 2 years (meeting the ownership and use tests), you can exclude up to $250,000 of gain on that portion as a single person (or $500,000 if married filing jointly). For the other half that's been consistently used as a rental, you can use a 1031 Exchange to defer those gains by reinvesting in another like-kind property. For calculations, you'd essentially split everything 50/50 since it's a duplex where you occupied half. So if you bought for $310,000 and sell for $485,000, your total gain is $175,000. Half of that ($87,500) would be attributable to your personal residence and potentially excluded under Section 121. The other $87,500 gain from the rental portion could be deferred via 1031 Exchange if you follow all the proper timing requirements and use a qualified intermediary. Any capital improvements would also be split proportionally between the two halves, affecting your basis calculations.
0 coins
NeonNebula
•But don't you have to pay depreciation recapture on the rental half regardless? I thought that was always taxed at 25% even with a 1031? Also, what about the fact they originally used the entire property as a rental before moving in? Doesn't that complicate things?
0 coins
Diego Chavez
•You're right that depreciation recapture is an important consideration. When you do a 1031 Exchange, you can defer the depreciation recapture tax along with the capital gains tax. However, if you later sell the replacement property without doing another 1031 Exchange, you'll have to recapture all the depreciation taken on both properties. The fact that the entire property was initially a rental does complicate things a bit. The IRS would look at this as a "conversion" from investment to personal use for half the property. For the Section 121 exclusion, what matters is that you've used it as your primary residence for at least 2 out of the 5 years before the sale, which the original poster has done for their half. However, there may be some allocation required for the period when the entire property was a rental. A tax professional would need to help calculate the exact amounts based on the specific timeline.
0 coins
Anastasia Kozlov
After dealing with a similar mixed-use property situation last year, I found taxr.ai (https://taxr.ai) incredibly helpful for parsing through all the complicated tax implications. I originally thought I would need to choose between the 121 exclusion OR a 1031 exchange, but their platform analyzed my documentation and showed me how I could legally use both strategies together. What stood out was their ability to calculate the precise allocations for split treatments like yours - they take into account your specific timeline of when the property was fully rental vs. partially owner-occupied. They even helped me understand how to properly document the improvement costs I'd made over the years, which significantly reduced my taxable gain.
0 coins
Anastasia Kozlov
After dealing with a similar mixed-use property situation last year, I found taxr.ai (https://taxr.ai) incredibly helpful for parsing through all the complicated tax implications. I originally thought I would need to choose between the 121 exclusion OR a 1031 exchange, but their platform analyzed my documentation and showed me how I could legally use both strategies together. What stood out was their ability to calculate the precise allocations for split treatments like yours - they take into account your specific timeline of when the
0 coins
Sean Kelly
•How does this taxr.ai thing work? Do I have to give them all my financial documents? Not really comfortable sharing all that info with some random website.
0 coins
Zara Mirza
•I'm curious about this too. Does it actually give you specific advice for your situation or just general information that you could find anywhere? And do they connect you with an actual tax professional or is it all automated?
0 coins
Anastasia Kozlov
•For your first question, you only upload the documents relevant to your specific tax question - in this case, it would be property purchase documents, records of when you converted half to personal use, improvement receipts, etc. Their platform uses bank-level encryption, and they don't share your info with third parties. Regarding specific advice, it's much more tailored than general information. Their system analyzes your actual numbers and timeline for your specific situation. They focus on complex situations like partial 1031 exchanges that most basic tax software doesn't handle well. You can choose to just get the AI analysis, or upgrade to have a tax professional review everything. I just used the AI analysis and it gave me specific calculations I could take to my accountant, who confirmed they were correct.
0 coins
Zara Mirza
I just wanted to follow up about my experience with taxr.ai since I decided to try it after asking about it. I was really skeptical at first because most "tax help" tools I've used were glorified calculators with generic advice. But this was completely different. I uploaded my property records for a duplex situation (weirdly similar to yours actually) and the system broke down exactly how to allocate the basis, improvements, and depreciation between the investment and personal portions. The report showed me that I could exclude about $112,000 of gain on my owner-occupied portion while using a 1031 exchange for the other $95,000 of investment gain. What was most valuable was getting documentation that clearly explained the whole process - my CPA was actually impressed with how thorough it was and said it saved us both a ton of time figuring out the split treatment calculations. Definitely worth checking out if you're dealing with this kind of mixed-use property situation.
0 coins
Luca Russo
After struggling to get clear answers from the IRS about a similar mixed-use property situation, I finally gave up trying to call them directly and used Claimyr (https://claimyr.com) to actually get through to a human at the IRS. They got me connected to an agent in about 20 minutes when I had been trying unsuccessfully for weeks. Here's a video of how it works: https://youtu.be/_kiP6q8DX5c The IRS agent confirmed that split treatment is allowed and explained exactly what forms I needed to file. They also clarified that I needed to get a qualified intermediary involved BEFORE closing on the sale of my property to handle the 1031 portion correctly. Would have completely messed this up without that crucial timing information.
0 coins
Nia Harris
•How much does this Claimyr thing cost? The IRS helpline is free if you're patient enough to wait. Seems like a waste of money for something that should be a free government service.
0 coins
GalaxyGazer
•This seems like a scam. How would a third-party service get you through to the IRS faster than calling directly? The IRS phone system is the same for everyone, and if the lines are busy, they're busy. I don't buy that they have some magical "skip the line" power.
0 coins
Luca Russo
•Claimyr does charge a fee, but considering I had already wasted hours of my time trying to get through, it was worth it to me. I needed answers before my closing date, and waiting indefinitely wasn't an option. Sometimes your time is worth more than the cost of the service. They don't have magic powers - they use an automated system that continuously redials and navigates the IRS phone tree until it gets through. Then when a human answers, it calls your phone and connects you. It's basically doing what you would do manually if you had infinite patience and time. For me, getting definitive answers directly from the IRS about my specific situation was crucial for making investment decisions with significant tax implications.
0 coins
GalaxyGazer
I need to eat my words and apologize about my skepticism. After my comment, I had a deadline approaching for a property closing and still couldn't get clear guidance on how to handle my 1031 exchange documentation. Out of desperation, I tried Claimyr, and within 35 minutes I was talking to an actual IRS specialist who walked me through the exact requirements for my mixed-use property situation. The agent explained a critical form I was missing for the split treatment (Form 8824 for the investment portion) and confirmed I needed to specify the allocation method in my documentation. This potentially saved me thousands in taxes and prevented me from making a mistake that could have invalidated my entire 1031 exchange. Sometimes being wrong feels pretty good, especially when it helps solve a frustrating problem!
0 coins
Mateo Sanchez
Something nobody has mentioned yet is that you'll need to be really careful about the 45-day identification period and the 180-day completion period for the 1031 exchange portion. Miss those deadlines and you lose the tax deferral completely. Also make sure your qualified intermediary is bonded and insured - I learned that lesson the hard way when my first QI went bankrupt while holding my exchange funds...
0 coins
Aisha Mahmood
•How did you handle the QI bankruptcy situation? Were you able to recover your funds or did you end up having to pay the capital gains?
0 coins
Mateo Sanchez
•I was extremely lucky that the bankruptcy happened on day 15 of my 45-day identification period. I immediately hired a new QI who was able to make a claim against the first QI's bond. I did recover about 85% of my funds eventually, but it delayed my purchase of the replacement property and caused a ton of stress. I ended up having to bring additional cash to closing to make up the difference. The bigger problem was that I nearly missed the 180-day deadline for completing the exchange because of all the legal complications. If that had happened, I would have owed tax on the full gain. Now I only use large, established QI companies that have significant insurance and bonding, even if they charge slightly higher fees.
0 coins
Ethan Moore
Question for anyone who's done this successfully - what documentation do you need to support the allocation between personal and investment use? Do you just claim 50/50 for a duplex or do you need to measure actual square footage? And what about shared spaces like a basement or driveway?
0 coins
Yuki Kobayashi
•I did this last year with a triplex (lived in one unit, rented two). My CPA had me use square footage as the most defensible method in case of audit. We calculated the percentage of the total square footage that my unit represented, then allocated purchase price, improvements, and selling costs accordingly. For common areas, we split those proportionally too. Keep VERY detailed records of when you converted part to personal use, any improvements made to either side, and maintenance costs. Take photos of everything. The more documentation you have, the better position you'll be in if the IRS questions your allocation.
0 coins