Houses facing the sand at Stinson Beach, Marin CountyHouses facing the beach at Stinson Beach · Photo: Alexia Boulot, CC BY 2.0 (creativecommons.org/licenses/by/2.0/), via Wikimedia Commons

1031 Exchange Rules for Vacation Homes

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.

24 monthsOwnership before and after the exchange for the safe harborRev. Proc. 2008-16, sec. 4.02
14 daysMinimum fair-rent rental in each 12-month periodRev. Proc. 2008-16, sec. 4.02
14 days or 10%Personal-use cap, whichever is greaterRev. Proc. 2008-16, sec. 4.02
5 yearsBefore an exchange home’s sale can use the Section 121 exclusion26 U.S.C. 121(d)(10)
Safe harbor Rev. Proc. 2008-16, exchanges on or after March 10, 2008Former home Rev. Proc. 2005-14 (Sections 121 and 1031)Personal use 26 U.S.C. 280A(d)(2)Local rules Sonoma, Napa and Marin rental permits

Can you do a 1031 exchange on a vacation home?

Only if the home is held for investment rather than personal use. 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, and Section 1031(a)(2) excludes real property held primarily for sale.

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. For the general rules and deadlines, start with our 1031 exchange guide.

A weekend home you use yourself is generally treated as held for personal use. Rev. Proc. 2008-16 cites the Tax Court’s decision in Moore v. Commissioner (T.C. Memo. 2007-134), where owners swapped one lakeside vacation home for another that neither had ever rented; the court held that the “mere hope or expectation that property may be sold at a gain cannot establish an investment intent if the taxpayer uses the property as a residence.”

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.

What is the Rev. Proc. 2008-16 safe harbor for vacation homes?

The IRS won’t challenge whether a “dwelling unit” was held for investment if it meets mirror-image ownership, rental and personal-use tests. A dwelling unit is real property improved with a house, apartment, condominium or similar improvement with sleeping space, a bathroom and cooking facilities, and the safe harbor covers exchanges on or after March 10, 2008.

TestHome you sell (relinquished)Home you buy (replacement)
Ownership periodAt least 24 months immediately before the exchangeAt least 24 months immediately after the exchange
Rental in each 12-month periodRented to others at a fair rental for 14 days or moreRented to others at a fair rental for 14 days or more
Personal use in each 12-month periodNo more than the greater of 14 days or 10% of the days rented at a fair rentalNo 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 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.

Section 280A(d)(2) also says a day you spend on repairs and maintenance on a substantially full-time basis can’t be treated as personal use merely because other people on the property that day aren’t working. 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, if necessary, 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.

Do local rental rules affect a vacation home exchange?

Yes. The safe harbor needs only 14 days of fair-rent rental in each year, but you still have to be allowed to rent at that address, and 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 under the zoning code. Ordinance 6427, adopted May 16, 2023, added a vacation rental business license, and Ordinance 6423, adopted April 24, 2023, applied caps and exclusion zones to specific parcels in the 1st, 4th and 5th Supervisorial Districts.
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. Our statewide guide to short-term rental rules in California covers other counties. Fractional and co-ownership models raise separate questions; our page on Pacaso and co-ownership covers how those work locally.

Can you combine Section 121 and a 1031 exchange on a former home?

Yes. 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 bought a house for $210,000, lived in it from 2000 to 2004, then rented it from 2004 to 2006 and claimed $20,000 of depreciation. The owner exchanged it for a $460,000 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. Any boot from a partial exchange is measured after the exclusion.

Can you move into a property you got through a 1031 exchange?

Yes, but only after it was genuinely held for investment, and two rules then limit the home-sale exclusion. The replacement-property side of the safe harbor, 24 months with fair-rent rental and limited personal use, is the clearest way to show investment intent first.

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, all after 2008, and rented it for the first four, about 40% of the gain is not eligible for the exclusion.
Depreciation
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.

Rented your second home in the last two years?

Send the address, your rental calendar and your personal-use days, and we’ll check the property against the safe harbor and local rules with your CPA.

Review my rental history

How should a second-home owner plan a 1031 exchange?

Decide what the property is for, then build two years of rental records before the exchange. A workable plan runs in seven steps.

1. 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.
2. Confirm you can legally rent
Check the jurisdiction, any permit or license, and the terms at that address.
3. Rent at a market rate and keep the evidence
Leases, a rental calendar, comparable rents and records of any repair days.
4. Track personal days
Count them against the 14-day or 10% limit in each 12-month period.
5. Hold for 24 months
Hold the property under those rules for at least 24 months before the exchange if you want the safe harbor.
6. Engage an intermediary before closing
Sign with a qualified intermediary before the sale closes, and plan the replacement property’s first 24 months the same way.
7. Review the tax picture
Go over depreciation recapture, any boot and the identification list with your CPA; our identification rules guide covers the 45-day list.

If the replacement needs work before it can be rented, read our guide to improvement exchanges; if you find it before your current home sells, see reverse exchanges. Replacement rentals in Sonoma County, Napa County and Marin County each carry their own rental rules. Diamond may refer you to partners we work with; you’re free to choose any provider.

What California rules apply to a vacation home exchange?

California follows the federal deferral, but it tracks out-of-state replacements and reassesses the property you buy.

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. The FTB instructions apply this 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 about vacation homes and 1031 exchanges

Answers reviewed November 2026.

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.

Is a vacation home that misses the safe harbor automatically disqualified?

No. Outside the safe harbor the IRS looks at all the facts to decide whether the home was held for investment, so the result is less certain. Courts have rejected exchanges of homes that were never rented and used only by the owners.

How long after moving out can I still combine Section 121 and a 1031?

Up to three years, if you lived in the home for at least two of the five years before the exchange. Rental time after you last lived there doesn’t count as nonqualified use.

Can I exchange a vacation home for an apartment building or land?

Yes, if the vacation home qualifies as investment property. Like-kind is broad within real estate, so a qualifying rental home can be exchanged for any real property held for business or investment.

Sources and notes

Sources are named in plain text without links. General information, not legal or tax advice; talk to a CPA or California tax attorney before you change how a property is used or sign exchange documents. Last reviewed November 2026 by Matthew Martinez.

  • IRS Revenue Procedure 2008-16, like-kind exchanges of dwelling units, read November 2026
  • IRS Revenue Procedure 2005-14, Sections 121 and 1031 on the same property, read November 2026
  • 26 U.S.C. 1031, 121 and 280A, read on Cornell Legal Information Institute, November 2026
  • Permit Sonoma, vacation rental regulations (Ordinances 6423 and 6427), read November 2026
  • City of Sonoma, opening a vacation rental business (as reviewed October 2026; the city site refused automated access in November 2026)
  • County of Marin, County debuts short-term rental licensing program, December 2024 (as reviewed October 2026)
  • Franchise Tax Board, 2025 Instructions for Form FTB 3840 (as reviewed October 2026)
  • California State Board of Equalization, change in ownership FAQ (as reviewed October 2026)
  • Photo: Houses on the beach in Stinson Beach, by Alexia Boulot, CC BY 2.0 (creativecommons.org/licenses/by/2.0/), via Wikimedia Commons

Talk to us before you change the use

Diamond Real Estate Group is a licensed California brokerage (DRE #02163490) led by broker Matthew Martinez (DRE #01869679). We are brokers, not tax advisers: we review a property’s rental history and local rules with you and coordinate the sale and purchase with your intermediary and CPA.

See our investor services.

Matthew’s read on wine-country second homes

I have represented buyers and sellers here across every property type we cover: single-family homes, condos and townhomes, luxury estates, land and vineyard parcels, multifamily and commercial property. Every recommendation starts with the parcel’s own records and the most recent matching sales.

Selling a second home or former residence?

Tell us the property, how you’ve used it and what you want to buy next, and Matthew will reply.

Send a 1031 question

Send a property inquiry

Matthew Martinez

Homes for sale near Vacation Home Primary Residence

Each area below has its own guide with current listings, local rules and prices.

San Francisco real estate · San Mateo County real estate · Santa Clara County real estate · Solano County real estate · Sacramento County real estate · Mendocino County real estate

Compare Listings