Tax Strategy: How a 1031 Exchange Works with the $250k Primary Residence Exclusion - Multiple Questions
Hey everyone, I currently own my house outright (no mortgage) plus a multi-unit rental property that still has a mortgage. I'm planning to sell both properties sometime in the near future since I'm kind of over being a landlord and want to live closer to my job. Here's my situation with the rental: It should be worth around $880k when I sell, I initially paid $575k for it, I've taken about $125k in depreciation, and I'll still owe $340k on the mortgage. After paying selling costs of roughly $65k and the mortgage, I'd walk away with about $475k cash. I'm considering doing a 1031 exchange to buy a single-family rental for approximately $800k, putting 20% down ($160k) and getting an investor loan for the rest. I'd rent it out for 2 years. After that, I'd sell my primary home using the $250k capital gains exclusion. Then I'd move into the rental property, making it my primary residence. I'd live there for 2 more years and then potentially sell it. Let's say by then it's worth $950k with $65k in selling costs. My questions: 1. Would I qualify for the full $250k exclusion? There's $250k gain from the original 1031'd property plus $70k from the new property. Would I just owe depreciation recapture at 25% federal plus state tax? 2. Can I refinance the investor loan to a owner-occupied mortgage after moving in? 3. Does the IRS care if I keep cash by increasing my loan amount in a 1031? 4. For 1031 purposes, does the sold value count as before or after selling fees? 5. If my replacement property costs less than what I sold, how do I calculate the taxes owed? 6. What if instead of the 1031 plan, I just moved into one of the units in my multi-family (it's a 4-unit) for 2 years? Would I get to exclude 25% of the gains (about $70k in this case)? In reality, I might just stay in the final property until retirement (20+ years), but by then my gain would be well over the $250k exclusion (unless I get married and qualify for $500k). I'm trying to minimize real estate transaction costs while maximizing tax advantages. I could also potentially sell directly to another investor for the right price. Thanks for any insights!
19 comments

Andrew Pinnock
I've handled several similar situations with my clients. Let me break this down for you: 1. The $250k exclusion works differently with 1031 properties. If you 1031 exchange your rental and then convert it to your primary residence, the exclusion only applies to appreciation that occurs AFTER you convert it. The $250k gain from the original property would still be taxable when you sell. You'd get exclusion on the $70k that occurred during your ownership as a primary residence. 2. Yes, you can absolutely refinance from an investor loan to an owner-occupied loan once you move in. Lenders typically require you to live there, which you would be doing. 3. The IRS doesn't care about your loan amount in a 1031, only that you reinvest all the proceeds from the sale. If you sell for $880k and buy for $800k, you'd pay tax on the $80k "boot" regardless of loan amount. 4. For 1031 purposes, the selling costs reduce your realized gain. So it's the net amount after fees that matters. 5. If you buy cheaper, the difference is called "boot" and is taxable. In your example, if you sell for $880k (net $815k after selling costs) but buy for $800k, you'd have $15k of taxable boot. 6. Yes, if you moved into one unit of a 4-unit building for 2 years, you could exclude 25% of the gain under the primary residence exclusion (assuming square footage is equal among units). This strategy can work, but timing is critical and the rules are complex. Consider your long-term goals carefully.
0 coins
Brianna Schmidt
Thanks for the detailed response! For #1, I'm confused - I thought there was a 5-year look-back period where the exclusion is prorated based on qualifying use vs. non-qualifying use. Does that not apply when a property was acquired through 1031?
0 coins
Andrew Pinnock
You're absolutely right to bring up the 5-year look-back period, and that's what makes this complicated. Under Section 121(d)(6), when you sell a property acquired through a 1031 exchange, the exclusion doesn't apply to the gain that was deferred from the previous property. The exclusion only applies to gains that accrue after converting to a primary residence. Additionally, the Housing Assistance Tax Act of 2008 created a "non-qualified use" test, where periods of non-qualified use after 2008 reduce your exclusion. This means your two years of rental would count as non-qualified use, further limiting your exclusion. You'd need to own and use the property as your main home for at least 2 years within the 5-year period before selling to get any exclusion at all.
0 coins
Alexis Renard
Hey! I was in a similar situation last year and discovered this amazing tool that helped me work through all the complexities of my 1031 exchange and primary residence exclusion questions. It's called taxr.ai (https://taxr.ai) and it basically analyzed all my real estate documents and gave me a detailed tax strategy roadmap. I was surprised at how it caught things I hadn't considered, like the exact timing requirements for converting the property and the specific documentation I needed to keep. It even showed me how to properly allocate the basis between land and improvements for the new property, which my regular accountant hadn't mentioned. The nice thing is you can upload your property docs and get a clear explanation of exactly how the 1031 deferral would work in your specific case, including calculating potential boot and depreciation recapture amounts. Saved me a ton of money compared to what I would have paid in taxes without knowing these strategies!
0 coins
Camila Jordan
Did it give you info about how the mortgage payoff affects the 1031? I'm in a similar situation but with more debt, and I'm worried about getting hit with unexpected taxes since I'll be reducing my mortgage amount significantly.
0 coins
Tyler Lefleur
Sounds too good to be true... how much does this service cost? I've been looking at 1031 exchange companies and they all want thousands upfront just to get started.
0 coins
Alexis Renard
Yes, it absolutely covered mortgage payoff implications. It specifically showed how mortgage relief can potentially create taxable boot in a 1031 exchange. In my case, I had to be careful about debt reduction because taking on less debt in the replacement property created a taxable event. The tool created a side-by-side comparison showing different debt scenarios and the tax impact of each. The service is surprisingly affordable compared to what I was quoted by attorneys and CPAs specializing in real estate. I don't remember the exact cost since it was last year, but it was significantly less than what I was paying for consultations that gave me less concrete information. The documentation it provides is comprehensive enough that you can take it to your accountant for implementation.
0 coins
Tyler Lefleur
Just wanted to update everyone after trying out taxr.ai like the other commenter suggested. I was skeptical at first but decided to give it a shot with my complicated real estate situation. Honestly, it was exactly what I needed. I uploaded my closing documents from my previous property sales and purchase agreements for the properties I was considering. The analysis broke down exactly how much of my gain would be taxable in each scenario and when I could apply the primary residence exclusion. It even pointed out that I could allocate more of my basis to the building vs land to increase my depreciation deductions while I'm still renting it. What really surprised me was finding out that I had been calculating my depreciation wrong on my previous returns, which could have triggered an audit. Now I'm going to file an amended return to fix it before it becomes an issue. Definitely worth checking out if you're dealing with real estate tax questions.
0 coins
Madeline Blaze
If anyone's struggling to get actual help from the IRS on 1031 exchange questions (like I was), I found a service called Claimyr (https://claimyr.com) that actually got me through to an IRS agent in less than 15 minutes. There's a demo video here: https://youtu.be/_kiP6q8DX5c that shows how it works. I was getting conflicting advice about my situation with rental property conversions, and I spent WEEKS trying to get through to the IRS directly with no luck. Claimyr basically calls the IRS for you, navigates all the phone prompts, waits on hold, and then calls you when there's an actual human on the line. The IRS agent I spoke with confirmed that I needed to file Form 8824 with my tax return for the year of the exchange, and he clarified exactly how to report both the 1031 exchange and later primary residence conversion correctly. Saved me from potentially making a $40k+ tax mistake.
0 coins
Max Knight
How does this actually work? I've been calling the IRS for weeks about my 1031 questions too but I always get disconnected after waiting on hold for an hour. Do they just have some special number or something?
0 coins
Emma Swift
Yeah right... there's no way to "skip the line" with the IRS. They're understaffed and overwhelmed. Sounds like a scam to collect your personal info or credit card details. I'll pass.
0 coins
Madeline Blaze
They don't use any special number - they call the same IRS numbers that we all have access to. The difference is they have a system that automatically redials if disconnected and navigates through all the phone prompts. Basically, they're doing the frustrating part for you. Once there's an actual IRS agent on the line, they immediately call you and connect you. I was skeptical too, which is exactly why I'm sharing this. I thought it wouldn't work, but I was desperate after weeks of failed attempts. They don't ask for any tax info or personal details - just your phone number so they can call you when an agent is on the line. I wouldn't have believed it worked if I hadn't used it myself. The IRS agent I spoke with was actually quite helpful once I finally got through to them.
0 coins
Emma Swift
I need to publicly eat my words here. After posting my skeptical comment yesterday, I was still desperate for answers about my 1031 situation, so I decided to try Claimyr as a last resort. I figured if it was a scam, I'd just dispute the charge. Well, I'm shocked to report that it actually worked exactly as described. I put in my request around 9am, they handled all the calling and waiting, and about 40 minutes later my phone rang with an IRS agent on the line. They stayed on just long enough to make sure we were connected, then dropped off. The agent confirmed something important for my situation - that my planned 1031 exchange would be disqualified if I moved into the replacement property too soon, and I need documentation proving it was held for investment intent. She recommended holding it as a rental for at least 2 full tax years to be safe. For anyone struggling with 1031 questions, getting definitive answers directly from the IRS was worth every penny. I would have made a huge mistake without this information.
0 coins
Isabella Tucker
Quick question about the depreciation recapture part - when you sell the final property after living in it for 2 years, aren't you gonna get hit with a HUGE depreciation recapture bill? My accountant told me the 25% depreciation recapture applies regardless of the 121 exclusion, so you'll still owe that even if you can exclude some of the gain. Am I understanding that right?
0 coins
Jayden Hill
Yes, you're right. Depreciation recapture is taxed at 25% (technically "unrecaptured section 1250 gain" is taxed at a max of 25%), and this happens REGARDLESS of whether you qualify for the Section 121 exclusion. The exclusion only helps with the capital gain portion, not the recapture. So in OP's scenario, they'd still be on the hook for recapture tax on all the depreciation they've taken or were required to take, even if they live in the property for 2+ years. This is one of the tax traps that surprises many real estate investors when they sell.
0 coins
Isabella Tucker
Thanks for confirming. That's what I was afraid of. So in the original scenario, they'd still owe 25% on the $125k of depreciation already taken PLUS any new depreciation taken during the 2 years it's a rental after the 1031. That could be a pretty significant hit even with the primary residence exclusion.
0 coins
LordCommander
Has anyone here actually completed a 1031 exchange into a property that you later converted to your primary? I'm considering this exact strategy and wondering about the practical aspects. Like how picky is the IRS about proving investment intent for the 2 years? Do you need to show specific rental income or just that you didn't live there?
0 coins
Lucy Lam
I did this back in 2023. Key things the IRS looked at: 1) I had a legitimate lease agreement with tenants, 2) I reported all rental income on Schedule E, 3) I took appropriate depreciation, and 4) I waited 2 full years before moving in myself. I kept meticulous records of everything - repairs, communication with tenants, etc. Basically, treat it like a serious business while it's a rental. When I sold a few years after converting it to my primary, I didn't have any issues with the IRS questioning the arrangement.
0 coins
Jenna Sloan
This is a really complex strategy with multiple moving parts, and I think you need to be careful about some potential pitfalls that haven't been fully addressed yet. One thing that concerns me is the timing of your primary residence sale. If you sell your current home first and then do the 1031 exchange on the rental, you'll have a large amount of cash sitting around that could complicate your exchange timeline. The 45-day identification period and 180-day completion deadline are strict. Also, regarding your question about keeping cash by increasing the loan amount in the 1031 - while the IRS doesn't directly care about loan amounts, you still need to invest ALL of your net proceeds from the sale. If you sell for $815k net and only buy a property for $800k, that $15k difference becomes taxable "boot" regardless of how you finance the purchase. For the multi-family conversion idea (question #6), that's actually a much simpler path tax-wise. Converting 25% of a 4-unit to primary residence use would let you exclude 25% of the gain, and you avoid all the 1031 complications entirely. You'd still have depreciation recapture on the rental portion, but the math might work out better overall. Have you run the numbers on just doing a straight sale of the rental and paying the capital gains tax? Sometimes the simplest approach is the most cost-effective when you factor in all the transaction costs and potential tax traps.
0 coins