Guide

Capital Gains Tax on a Second Home or Vacation Home: What Agents Should Know

Capital gains tax on a second home: why the home sale exclusion usually doesn't apply, how rental use changes the rules, and the options to defer the gain.

Updated October 18, 2026

Second-home sellers often assume the same rule applies as for their main home. It doesn’t, and the gap can be large for a lake house or beach condo owned for decades. This guide covers what agents should know when a client sells a second or vacation home.

It’s part of our series for agents. The hub is OZ talking points for your next listing appointment.

Why the home sale exclusion usually doesn’t apply

The $250,000 / $500,000 exclusion covers only the seller’s main home (IRC §121; IRS Publication 523). A second home is taxed like other property:

  • Long-term capital gain if owned more than a year, at 0%, 15% or 20% federally (IRC §1(h))
  • 3.8% net investment income tax above $200,000 of modified AGI ($250,000 married filing jointly) (IRC §1411)
  • No deduction for a loss on a home held for personal use

Our Section 121 guide covers the main-home rules.

How rental use changes the picture

How the home was used decides which rules apply (IRC §280A; IRS Publication 527):

UseTax treatment on sale
Personal onlyCapital gain; no exclusion; loss not deductible
Mixed personal and rentalDepreciation taken on the rental share is recaptured at up to 25%
Mostly rentedCan be treated as investment property, including for a 1031 if it meets the rules

For a 1031 exchange, the IRS safe harbor in Rev. Proc. 2008-16 treats a dwelling as investment property if it was owned at least 24 months before the exchange and, in each of the two 12-month periods, rented at fair rent for 14 days or more, with personal use no more than 14 days or 10% of the rented days, if greater. Clients who don’t meet it may still qualify, but they need advice.

Moving in to use the exclusion

A seller can make the second home their main home and, after two years, use the exclusion. But the share of gain tied to periods after 2008 when it wasn’t the main home isn’t excluded, and depreciation taken isn’t excluded either (§121(b)(5) and (d)(6)). It can help, but it’s rarely a full answer.

Options for a large gain

  • 1031 exchange, if the home qualifies as investment property. See the 1031 exchange 45-day rule.
  • An Opportunity Zone fund. The seller invests an amount equal to the eligible gain in a qualified opportunity fund within 180 days of closing (IRC §1400Z-2). It doesn’t matter that the home was personal-use. For investments on or after January 1, 2027, the gain is deferred five years with a 10% step-up (30% for a qualified rural fund), and the fund’s appreciation can be excluded after 10 years. See the Opportunity Zone tax benefits guide and the 180-day deadline calculator.
  • Installment sale to spread the gain (IRC §453).
  • Holding until death, after which heirs get a basis step-up (IRC §1014).

Compare a 1031, a DST and an Opportunity Zone fund on the client’s numbers with the 1031 vs DST vs Opportunity Zone calculator.

Questions to ask a second-home seller

  • How many days a year did you use it, and how many did you rent it?
  • Did you claim depreciation or rental expenses on your returns?
  • Do you want another vacation property, or out?
  • Is it in your names, a trust, or an LLC?

Sources: IRC §121; IRS Publication 523; IRC §280A; IRS Publication 527; Rev. Proc. 2008-16; IRC §1; IRC §1411; IRC §1400Z-2; IRC §453; IRC §1014.

Not tax advice.

Frequently asked questions

Do you pay capital gains tax when you sell a second home?
Usually yes. The home sale exclusion only covers a main home, so gain on a second or vacation home is generally taxable: long-term capital gain if owned more than a year, plus the 3.8% net investment income tax for some sellers (IRC §121; IRC §1411).
Can a vacation home be exchanged under Section 1031?
Only if it's held for investment. Personal-use property doesn't qualify. The IRS gives a safe harbor for a dwelling owned at least 24 months and, in each of the two 12-month periods, rented at fair rent for 14 days or more with personal use within limits (Rev. Proc. 2008-16).
Can a seller move into a second home to use the exclusion?
They can after living there two years, but periods after 2008 when it wasn't their main home reduce the excluded share, and gain from depreciation isn't excluded (IRC §121(b)(5) and (d)(6)).
Can gain on a second home go into an Opportunity Zone fund?
Yes, if it's capital gain. The seller can invest an amount equal to the eligible gain in a qualified opportunity fund within 180 days of the sale. A loss on a personal-use home, by contrast, generally isn't deductible.

Get the OZ 2.0 Investor Guide

One email when major OZ 2.0 events happen — Treasury guidance, state filings, rule changes. Unsubscribe anytime.

Tools: 1031 vs DST vs Opportunity Zone calculator · 180-day rule calculator · Opportunity Zone tax calculator · all Opportunity Zone tools