1031 Exchange Rules for Vacation Homes and Former Residences
By Matthew Martinez, Founder, CEO & Managing Broker, Diamond Real Estate Group. California DRE #01869679.
A vacation home used mainly by you and your family generally does not qualify for a 1031 exchange, because Section 1031 covers only real property held for business or investment. The IRS safe harbor in Rev. Proc. 2008-16 treats a home as qualifying if you owned it for 24 months before the exchange and, in each of those two years, rented it at a fair rent for at least 14 days and kept personal use to no more than 14 days or 10% of the days rented, whichever is greater. A former main home that you now rent can use the home-sale exclusion and a 1031 exchange together, and a home you acquire in an exchange must be owned five years before its sale can use that exclusion.
This guide is for owners of wine-country second homes and former residences in Sonoma, Napa and Marin who want to know whether an exchange is possible and what it takes. It covers the safe harbor, how local rental rules affect it, the Section 121 and 1031 combination for a former home, and the rules for moving into a property you got through an exchange. For the general exchange rules and deadlines, start with our 1031 exchange guide.
Why a second home is a problem under Section 1031
Section 1031(a)(1) defers gain only on “real property held for productive use in a trade or business or for investment,” exchanged for like-kind property held the same way. Section 1031(a)(2) excludes real property held primarily for sale.
A weekend home you use yourself is generally treated as held for personal use, not investment. That is why second-home owners who sell and buy another usually pay tax on the gain, unless they first change how the property is used.
The question is how much rental and how little personal use is enough. Rev. Proc. 2008-16 gives a safe answer. A home that falls outside it is not automatically disqualified, but the IRS can then judge the facts, and you lose the certainty.
The Rev. Proc. 2008-16 safe harbor
The revenue procedure applies to a “dwelling unit,” meaning real property improved with a house, apartment, condominium or similar improvement. It is effective for exchanges on or after March 10, 2008. The tests mirror each other for the property you sell and the property you buy.
| Test | Home you sell (relinquished) | Home you buy (replacement) |
|---|---|---|
| Ownership period | At least 24 months immediately before the exchange | At least 24 months immediately after the exchange |
| Rental in each 12-month period | Rented to others at a fair rental for 14 days or more | Rented to others at a fair rental for 14 days or more |
| Personal use in each 12-month period | No more than the greater of 14 days or 10% of the days rented at a fair rental | No more than the greater of 14 days or 10% of the days rented at a fair rental |
What counts as personal use
The safe harbor borrows the definition in Internal Revenue Code section 280A(d)(2). A day is personal use if, for any part of the day, the home is used by you or a family member, by someone under a swap that lets you use another home, or by anyone paying less than a fair rental. The revenue procedure also applies the exception in section 280A(d)(3): a family member who rents the home at a fair rental as their principal residence is not treated as personal use.
Days spent working on repairs and maintenance on a substantially full-time basis do not count as personal days, under the same section. Keep a log of who was there and why, with receipts for the work.
How the 10% rule plays out
If you rent the home at fair rent for 150 days in a 12-month period, you can use it yourself for up to 15 days, because 10% of 150 is greater than 14. If you rent it for 100 days, the limit is 14 days. Fair rental is judged on the facts when the rental agreement is signed, so a discounted stay for a friend counts against you.
If the replacement home fails the test later
You report the exchange expecting the new home to meet the 24-month tests. If it doesn’t, the revenue procedure says you should file an amended return and not report the transaction as a 1031 exchange. Plan the first two years of the replacement property before you close.
Local rental rules can decide whether you meet the test
The safe harbor needs only 14 days of fair-rent rental in each year, but you still have to be allowed to rent. In wine country, that depends on the jurisdiction.
- City of Sonoma: the City Council has prohibited new vacation rentals since early 2018. New applications are limited to the adaptive reuse of a historic structure; existing licensed rentals may continue if they meet updated standards. Our Sonoma County vacation rental rules explain the city and county systems.
- Unincorporated Sonoma County: nightly rentals need county approval, Ordinance 6427 added a vacation rental business license, and cap and exclusion zones apply to specific parcels.
- Unincorporated Marin: short-term rentals of 30 days or less need a county license, and some coastal towns are capped. See our Marin short-term rental guide.
- Napa County and its cities: each sets its own short-term rental rules; read our Napa County vacation rental guide before counting on nightly income.
Where nightly rentals are off the table, a lease of more than 30 days can still supply the 14 rental days. Marin’s program, for example, covers stays of 30 days or less, so confirm how your jurisdiction defines a short-term rental before you sign. Check your HOA rules, your lender and your insurer before you sign any lease. Fractional and co-ownership models raise separate questions; our page on Pacaso and co-ownership covers how those work locally.
A former main home: Section 121 plus Section 1031
Section 121 excludes up to $250,000 of gain, or $500,000 for most married couples filing jointly, on a home you owned and used as your principal residence for at least two of the five years before the sale. Rev. Proc. 2005-14 explains how to use that exclusion and a 1031 exchange on the same property once it has become a rental.
The rules in order
- Apply Section 121 first, then Section 1031 to the remaining gain.
- The home does not have to be your residence on the day you sell; it only has to meet the two-of-five-year test.
- Depreciation claimed after May 6, 1997 can’t be excluded under Section 121, but it can be deferred under Section 1031.
- Cash or other boot you receive counts only to the extent it exceeds the gain already excluded under Section 121.
- The excluded gain increases your basis in the replacement property; boot received reduces it.
- The property must be held for business or investment at the time of the exchange.
The IRS example
In the revenue procedure’s first example, an owner lived in a house for four years, then rented it for two years and claimed $20,000 of depreciation. The owner exchanged it for a rental townhouse plus $10,000 in cash, with a realized gain of $280,000. The owner excluded $250,000 under Section 121, deferred the other $30,000 under Section 1031, including the depreciation, and recognized no gain on the $10,000 in cash. The owner’s basis in the townhouse came to $430,000.
The timing point is the three-year window. If you lived in the home for exactly two years and then moved out, you have up to three more years to sell and still pass the two-of-five-year test. Renting during that window doesn’t reduce the exclusion, because Section 121(b)(5) does not count time after you last lived in the home as nonqualified use.
Moving into a home you got through an exchange
Some owners exchange into a rental in wine country and plan to retire into it. That works only if the property was genuinely held for investment first; the replacement-property side of the safe harbor, 24 months with fair-rent rental and limited personal use, is the clearest way to show it.
After you move in, two rules limit the exclusion when you later sell:
- Five-year rule: under Section 121(d)(10), if you acquired the home in an exchange in which gain was deferred under Section 1031, the exclusion does not apply to a sale within five years of the date you acquired it.
- Nonqualified use: under Section 121(b)(5), periods after 2008 when the home was not your principal residence, such as the years it was a rental before you moved in, reduce the exclusion in proportion to total ownership. If you owned the home ten years and rented it for the first four, about 40% of the gain is not eligible for the exclusion.
Depreciation taken during the rental years is also outside the exclusion under Section 121(d)(6). Run the numbers with your CPA before you change the use; our guide to capital gains on a California home sale covers the exclusion in more detail.
Planning steps for a second-home owner
- Decide what the property is for. If it is a family retreat, an exchange is probably not the right tool; our comparison of a second home vs an investment property lays out the trade-offs.
- Confirm the jurisdiction and whether you can legally rent, and on what terms, at that address.
- Rent at a market rate and keep the evidence: leases, a rental calendar, comparable rents and records of any repair days.
- Track personal days against the 14-day or 10% limit in each 12-month period.
- Hold the property for at least 24 months under those rules before the exchange if you want the safe harbor.
- Engage a qualified intermediary before closing, and plan the replacement property’s first 24 months the same way.
- Review the tax picture with your CPA, including depreciation recapture and any boot from a partial exchange.
Diamond may refer you to partners we work with; you’re free to choose any provider.
California rules that apply
If you exchange California property for replacement property in another state, you must file Form FTB 3840 for the exchange year and each later year until the deferred California gain is recognized. This applies regardless of residence status, for exchanges on or after January 1, 2014; see our page on the California clawback and FTB 3840.
The exchange does not carry over your property tax base. A purchase is a change in ownership, so the county reassesses the replacement property to market value, as our guide to California property tax for investors explains.
Questions people ask
Can I do a 1031 exchange on a vacation home?
Only if it is held for investment. The safest route is the Rev. Proc. 2008-16 safe harbor: 24 months of ownership, at least 14 days of fair-rent rental each year, and personal use within the greater of 14 days or 10% of rental days.
Can I exchange into a vacation home and use it myself?
A little. To use the safe harbor, you need to own it at least 24 months after the exchange, rent it at fair rent for 14 days or more each year and stay within the personal-use limit during those two years.
Can I do a 1031 exchange on my primary residence?
Not while it is your residence. Once you move out and rent it, the property can be exchanged, and Rev. Proc. 2005-14 lets you combine the exchange with the Section 121 exclusion if you still meet the two-of-five-year test.
Can I move into a 1031 replacement property?
Yes, after it has been held for investment, but you can’t use the home-sale exclusion on a sale within five years of acquiring it, and rental years before you moved in reduce the exclusion.
Do days my family uses the home count as personal use?
Usually. Use by you, a family member, someone under a home-swap arrangement, or anyone paying less than a fair rental counts as personal use under Section 280A(d)(2). The exception is a family member who rents the home at a fair rental as their principal residence, which Rev. Proc. 2008-16 does not count as personal use.
What if I can’t get a short-term rental permit?
The safe harbor requires 14 days of rental at a fair rent, not nightly rentals. A lease of more than 30 days at market rent can count, and such leases generally fall outside short-term rental programs, but confirm your jurisdiction’s definition first.
Does a 1031 exchange keep my old property tax base?
No. The replacement property is reassessed to its market value when you buy it.
Thinking about selling a second home or a former residence and buying investment property? We can review the property’s rental history and local rules with you and coordinate with your intermediary and CPA. Contact us, or see our investor services.
This is general information, not legal or tax advice; talk to a CPA or California tax attorney about your situation before you change how a property is used or sign exchange documents.
Sources & notes
- IRS: Rev. Proc. 2008-16, like-kind exchanges of dwelling units
- IRS: Internal Revenue Bulletin 2008-10
- IRS: Rev. Proc. 2005-14, Sections 121 and 1031 on the same property
- Cornell LII: 26 U.S.C. 1031
- Cornell LII: 26 U.S.C. 121
- Cornell LII: 26 U.S.C. 280A
- City of Sonoma: Opening a vacation rental business
- Permit Sonoma: Vacation rental regulations
- County of Marin: County debuts short-term rental licensing program (Dec. 2024)
- Franchise Tax Board: 2025 Instructions for Form FTB 3840
- California State Board of Equalization: Change in ownership FAQ
Last reviewed October 2026 by Matthew Martinez.