A 1031 exchange lets you sell investment real estate, roll the proceeds into more investment real estate, and defer the tax on the gain. For a house hacker, it only covers the part of the property actually held as an investment. The unit you live in is a home-sale question under Section 121. The units you rent, or the whole house once you move out and lease it, can be 1031 property, and IRS Revenue Procedure 2005-14 explains how one sale can use both. Plan it with a CPA and a qualified intermediary before you list.
I covered the general rental-seller side in what Central Iowa investors need to know before selling a rental. This post is the house hacker's version: you lived in the property, rented part or all of it, and now want to trade up.
House hacking gets you in the door with owner-occupant financing. The 1031 is how you keep that equity compounding once you move on. In my 10, 20 and 30-year house hacking math, a $200,000 house hack builds roughly $92,000 of equity by year 10 and roughly $219,000 by year 20, and is paid off and worth about $363,000 by year 30. Those numbers are illustrative, not a projection.
When you sell, you can pay tax on the gain now, or exchange into another investment property and keep the full amount working. The tax is figured on your gain - the amount realized over your adjusted basis - not on your equity.
The next property goes on investment financing, not an owner-occupant loan, and your lender will confirm the terms. Used as the down payment, the equity from one house hack can control a larger property, and repeating that across several house hacks is how a small start scales. That is not a loophole. It is Section 1031 of the Internal Revenue Code, and the IRS publishes the rules.
Under the Form 8824 instructions, Section 1031 does not apply if the property you gave up was used solely as your personal residence at the time of the exchange. Expecting it to appreciate does not change that. In a case the IRS cites in Revenue Procedure 2008-16, the Tax Court held that the "mere hope or expectation that property may be sold at a gain cannot establish an investment intent" if you use it as a residence.
That includes the unit you occupy in a duplex. What changes the answer is real, documented rental use.
Section 121 is the home-sale exclusion: if you owned and used the home as your main home for at least 2 of the 5 years before the sale, you may exclude up to $250,000 of gain, or $500,000 for married couples filing jointly. House hackers usually fall into one of two patterns:
Section 121 is applied first, and Section 1031 then applies to what remains. Gain from depreciation claimed after May 6, 1997 cannot be excluded under Section 121, but Section 1031 may defer it. A rented spare bedroom inside your own home is space within the living area under Publication 523, which keeps it mostly a Section 121 question. The allocation math is CPA work.
The clearest IRS benchmark for when a converted home counts as investment property is the Revenue Procedure 2008-16 safe harbor: the IRS will not challenge a dwelling unit you owned for at least 24 months immediately before the exchange if, in each of the two 12-month periods before it, you rented it at a fair rental for 14 days or more and kept personal use within tight limits. If your timeline does not fit, raise it with your CPA before you list.
The reverse move has its own rule: if you exchange into a property and later move into it, Publication 523 bars the home-sale exclusion if you sell within 5 years of acquiring it in the exchange.
What this means for your strategy: if you are house hacking now, the 1031 decision starts years before the sale. Keep clean records of which units you lived in and which you rented, and know your 2-of-5 dates before you move out. Then treat the exchange like a purchase on a deadline: have the replacement shortlist built and the financing confirmed before you sign a listing agreement. If you would rather recycle capital through a refinance than a sale, compare it with the BRRRR strategy before you decide.
Run the replacement property first. An exchange only makes sense if the property you are trading into works as a rental on investment financing, and the Deal Calculator will show you cash flow and break-even on real rents. If you are still deciding whether to sell at all, turning your Central Iowa home into a rental instead of selling walks through the keep-or-sell math.
When you are ready to map the trade, start with the house hacking playbook, see how I work as an investment real estate agent in Central Iowa, or reach out and we will look at what your equity could move into. No pressure either way.
This is general information, not tax advice - confirm your situation with a CPA and a qualified intermediary before you act.
Jackson Krile | Flanders Team | RE/MAX Real Estate Center
515.490.8614 · Jackson@FlandersTeam.com
Let's talk through your specific situation - no pressure.