Skip to main content
1031Property.com — 1031 exchange & DST replacement property specialists
1031 Basics

Can You Do a 1031 Exchange on Your Primary Residence?

6 min read

By 1031Property Research TeamLast updated

Researched against current IRS guidance and reviewed before publication. Educational information only — not tax, legal, or investment advice. See our disclosures.

No. A 1031 exchange only covers real property held for investment or for use in a trade or business, and a home you live in is held for personal use. The tax break built for a primary residence is a different one, the Section 121 home sale exclusion, which can remove up to $250,000 of gain from tax, or up to $500,000 for a married couple filing jointly, if the ownership and use tests are met. Where things get more interesting is a home that is not purely a home: one that has been rented out, one with a rental unit attached, or one that sits on land used for a business.

This article is educational only. It is not tax, legal or investment advice. How these rules apply depends on your own facts, so review your situation with your CPA and, if an exchange is involved, your Qualified Intermediary.

Why does a primary residence not qualify?

Section 1031 has a use test on both sides of the exchange. The property you sell and the property you buy must each be held for productive use in a trade or business or for investment. Living in a property is neither, however much the home has appreciated. The tax code looks at how the property is actually used, and a residence is personal use.

The same test applies to the replacement side. You cannot sell a rental, exchange into a house and move straight in. The replacement property has to be held for investment too, which usually means renting it to unrelated tenants at a market rent for a meaningful period.

What does Section 121 do instead?

Section 121 lets you exclude gain on the sale of your main home rather than defer it. That difference matters. A 1031 exchange pushes the tax into the future and carries it into the next property. An exclusion under Section 121 removes the excluded gain permanently.

To qualify, you generally need to have owned the home and used it as your main home for at least two of the five years before the sale. The two years do not have to be continuous. The exclusion is generally available once every two years. Depreciation claimed for periods after May 6, 1997, for example on a home office or on a period of rental use, is not covered by the exclusion and is generally taxable when you sell.

For many homeowners the exclusion covers the whole gain, and no exchange is needed at all.

What if the gain is larger than the exclusion?

Gain above $250,000 or $500,000 is taxable, and a 1031 exchange cannot shelter it while the home is your residence. Here is an illustrative example only. A married couple bought a home many years ago and their gain on sale is $700,000. If they meet the tests, $500,000 can be excluded under Section 121, and roughly $200,000 of gain remains taxable. Because the property is their residence, an exchange is not available for that remaining amount. The figures are invented to show the mechanics and are not a projection for any real sale.

When can a home use both Section 121 and a 1031 exchange?

There are a few situations where a property that was once, or is partly, a home can use both rules on the same sale.

  • ›A former home that became a rental. If you moved out and rented the property, it may now be held for investment. If you still meet the two out of five year test for Section 121 when you sell, IRS guidance allows the exclusion to apply first and a 1031 exchange to defer the remaining gain.
  • ›A duplex or small multifamily building where you live in one unit. The part you live in is treated as your residence and the rental units as investment property. The gain is split, with Section 121 available on the residence portion and a 1031 exchange available on the rental portion.
  • ›A separate structure or parcel used for business or rental. A detached rental cottage, or acreage used in a farming business, may be treated separately from the residence itself. A home office inside the house is generally treated as part of the residence for Section 121 purposes, although depreciation taken on it is still generally taxable.

Each of these needs careful allocation of price, basis and depreciation. The split is not something to estimate on the back of an envelope.

What about a vacation home or second home?

A second home you use personally is not a primary residence, but it is not automatically investment property either. A vacation home that is mostly for your own use does not qualify for a 1031 exchange. One that is rented out regularly, with limited personal use, may qualify. The IRS has published a safe harbor that looks at rental days and personal use days over the two years before and after an exchange. A second home also does not qualify for the Section 121 exclusion unless it becomes your main home and meets the ownership and use tests.

Can you rent out your home first and then exchange it?

Converting a residence to a rental is a real change of use, and many owners do it for genuine reasons, such as a job move. A home that is actually rented to tenants and held for investment can become eligible for a 1031 exchange. There is no published minimum rental period, and the facts that support investment intent include a lease at market rent, unrelated tenants, depreciation claimed on your tax return and the absence of personal use.

Moving out for a few weeks shortly before a sale, without a real change in use, is unlikely to be treated the same way. The question is how the property is actually held, not what it is called.

Can you exchange a rental into a future home?

You can exchange into a property that you later convert to your residence, but the rules are strict. The replacement must first be held for investment. If you later move in and eventually sell it, the Section 121 exclusion is not available on that property until you have owned it for at least five years from the exchange, and part of the gain may still be taxable because of the periods when it was not your main home. Owners who plan this route should map out the timing with their CPA before the exchange, not after.

What to keep in mind

A home you live in is a Section 121 question, not a 1031 question. The two rules only meet when a property has a genuine investment or business use alongside, or instead of, personal use. If you are selling a home that has been rented, partly rented or used for a business, ask your CPA to run the numbers both ways before you list it, and bring in a Qualified Intermediary early if an exchange is part of the plan.

Ready to see real options?

Get illustrative DST, net-lease, and fund options matched to your situation — free, no obligation.

This article is educational and not tax, legal, or investment advice. 1031 exchanges are complex — consult your own CPA and attorney. DST and fund offerings are securities available to accredited investors only; all examples are illustrative.