How the IRS defines a second home vs. a rental property
The term second home means different things in different contexts. For tax purposes, the key distinction is how you use the property:
Pure personal use second home: A vacation home or family retreat you use exclusively for personal purposes. You take no rental deductions, and no depreciation is claimed.
Vacation rental / mixed-use property: A property you rent out for some portion of the year and use personally for others. The IRS uses the 14-day / 10% test to allocate expenses between rental and personal use.
Full rental property: Held exclusively as an investment — tenants occupy it and you do not use it personally. Depreciation is claimed; all gain is potentially subject to recapture.
The tax consequences on sale depend heavily on which category applies. A pure personal-use second home avoids depreciation recapture but receives no primary-residence exclusion. A rental property triggers recapture but may qualify for a 1031 exchange.
Capital gains tax on a second home sale
When you sell a second home held entirely for personal use, the gain is a capital gain. If you held the property more than one year, the gain is a long-term capital gain taxed at 0%, 15%, or 20% depending on your taxable income. For 2025, the 20% rate applies at higher income thresholds indexed annually.
In addition to the regular capital gains rate, gains above certain income thresholds trigger the 3.8% Net Investment Income Tax (NIIT) under IRC Section 1411. For 2025, the NIIT applies above $200,000 (single) or $250,000 (married filing jointly) in modified adjusted gross income. A large gain from a second home sale can push you into NIIT territory even if your regular income is modest.
Your taxable gain is: Sale price minus selling costs minus adjusted basis. Adjusted basis is your original purchase price plus closing costs added to basis at acquisition plus capital improvements minus any depreciation claimed. For a pure personal-use second home where no depreciation was ever claimed, the formula simplifies to purchase price plus improvements plus acquisition closing costs minus selling costs.
The Section 121 exclusion does not apply to a second home — normally
The primary-residence exclusion under IRC Section 121 allows a single taxpayer to exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from the sale of a home that was their principal residence for at least two of the five years before sale. A pure second home or vacation property does not satisfy this test.
However, you can potentially convert a second home into your primary residence before selling. If you live in the second home as your principal residence for at least two of the five years immediately before sale, the exclusion applies — with an important restriction.
The non-qualifying use period: Since 2009, the Section 121 exclusion does not shelter gain attributable to periods of non-qualifying use (periods when the property was not your principal residence after 2008). If you owned the property for 10 years and moved in only for the last two, only a portion of the gain is potentially excludable; the rest is taxable. The rules are complex and fact-specific; a CPA should model the exact exclusion for any converted property.
Depreciation recapture on a mixed-use or former rental
If the second home was rented at any point — even for just a few years before you began using it personally — you almost certainly claimed depreciation on the rental portion. That depreciation does not disappear on conversion to personal use. It comes due when you sell.
Depreciation recapture on residential real property (Section 1250 recapture, commonly called unrecaptured Section 1250 gain) is taxed at up to 25% — higher than the standard long-term capital gains rate for most taxpayers.
Example: You purchased a vacation cabin for $400,000, rented it for eight years and claimed $104,000 in depreciation, then moved in for two years before selling at $600,000. Even if the Section 121 exclusion shelters some of the gain, the $104,000 of depreciation recapture is recognized and taxed at up to 25% regardless.
State income tax on second home sales
Most states with an income tax also tax capital gains, and most follow the federal long-term / short-term distinction. Some states tax all capital gains as ordinary income, which can add another 7 to 13% to your effective rate on top of federal tax.
States also do not all follow the Section 121 exclusion. Some conform; others impose an alternative calculation or phaseout. If your second home is in a state different from your residence state, you may face taxation in both — your state of residence (usually with a credit for taxes paid to the property's state) and the state where the property is located.
High-value second homes in states with high income taxes therefore come with potentially significant combined federal-plus-state tax rates on gain — sometimes exceeding 35% of the gain in total.
1031 exchange as an exit strategy
If your second home qualifies as an investment property held for productive use in a trade or business or for investment, you can defer all gain and recapture through a 1031 like-kind exchange.
A pure personal-use vacation home does not qualify. However, a vacation rental with significant rental income and limited personal use may qualify — the IRS issued Revenue Procedure 2008-16 providing a safe harbor: if you held the property for at least 24 months, rented it at fair market rent for at least 14 days per year in each of the two 12-month periods, and personal use did not exceed 14 days or 10% of fair rental days in each period, the IRS will not challenge 1031 treatment.
A successful 1031 exchange defers all gain, including depreciation recapture, into the replacement property. The deferred gain is not eliminated — it waits until you eventually sell the replacement property outside of a 1031 — but indefinite deferral with reinvestment compounds the benefit significantly over time.
Worked example: selling a $600,000 vacation home
You bought a lakeside vacation home 12 years ago for $350,000, added a $50,000 deck and dock (capital improvements), and paid $8,000 in acquisition closing costs added to basis. You never rented it — pure personal use — so no depreciation was ever claimed. You now sell for $600,000 and pay $42,000 in commissions and closing costs.
Amount realized: $600,000 minus $42,000 equals $558,000. Adjusted basis: $350,000 plus $50,000 plus $8,000 equals $408,000. Taxable gain: $558,000 minus $408,000 equals $150,000. Because you held it more than a year and it was never your principal residence, the full $150,000 is long-term capital gain — no Section 121 exclusion applies.
At a 15% federal rate the tax is $22,500; at 20% (higher-income) it is $30,000. If your income exceeds the NIIT threshold, add 3.8% ($5,700) on the gain. A high-tax state could add another 5 to 13%. The lesson: a personal-use second home offers no depreciation recapture but also no exclusion — the entire economic gain is taxed.
Step-by-step: computing your taxable gain on a second home
Step 1 — establish original basis: purchase price plus acquisition closing costs added to basis (title, legal, transfer taxes, survey). Step 2 — add capital improvements: additions, renovations, and new systems — not routine repairs.
Step 3 — subtract depreciation ever claimed: zero for a pure personal-use home, but any period the home was rented generates depreciation that reduces basis and creates recapture. Step 4 — compute amount realized: sale price minus commissions and seller-paid closing costs.
Step 5 — gain equals amount realized minus adjusted basis. Step 6 — carve out any depreciation recapture (taxed up to 25%) before applying capital-gains rates to the remainder. Step 7 — layer on NIIT and state tax where applicable. Working the steps in order prevents double-counting improvements or forgetting recapture.
Converting between rental and second-home use: the ordering rules
Many owners cycle a property through personal and rental use, which complicates the sale. Two separate regimes interact: the Section 121 non-qualifying-use rules (which can shrink a primary-residence exclusion if you ever convert the home to your main residence) and depreciation recapture (which always comes due on the rental-period depreciation).
The key ordering point: depreciation recapture is never sheltered by the Section 121 exclusion. Even if you convert a former rental into your principal residence, live there two years, and qualify for the exclusion, every dollar of depreciation you claimed while it was a rental is still recaptured at up to 25%.
Because the interaction is genuinely complex — and the non-qualifying-use fraction depends on the exact months of each use after 2008 — model any converted property with a CPA before listing it. The difference between a clean sale and a surprise five-figure tax bill often comes down to these ordering rules.
Common mistakes and planning tips
Assuming the home-sale exclusion applies. The $250,000/$500,000 exclusion is only for a principal residence. A vacation home you never lived in as your main home gets none of it.
Forgetting NIIT. A large one-time gain can push otherwise-modest earners over the $200,000/$250,000 MAGI thresholds and trigger the 3.8% surcharge for that year.
Overlooking the 1031 option on a rental-use second home. If the property genuinely meets the Rev. Proc. 2008-16 safe harbor, an exchange defers both the gain and the recapture. A pure personal-use home cannot use it.
Planning tip — installment sale. Selling with owner financing under the installment method (Form 6252) spreads the gain across years, which can keep you in lower capital-gains brackets and below the NIIT threshold in each year.
Frequently asked questions
Do I pay capital gains tax when I sell my vacation home?
Yes. A vacation home or second home held for personal use does not qualify for the Section 121 exclusion (which is for primary residences). Your gain is taxed as long-term capital gain if held more than one year — typically 15% or 20% at the federal level, plus the 3.8% NIIT if your income exceeds the threshold, plus any applicable state income tax.
Can I avoid capital gains on a second home by moving in before I sell?
You can qualify for a partial Section 121 exclusion if you convert the second home to your primary residence and live there for at least two of the five years before sale. However, gain attributable to periods of non-qualifying use after 2008 is not excludable, so the benefit may be limited. A CPA should compute the exact exclusion.
Does depreciation on a rental second home come back when I sell?
Yes. All depreciation claimed while the property was a rental must be recaptured when you sell, regardless of whether you converted it to personal use. The recapture is taxed at up to 25% as unrecaptured Section 1250 gain — and the Section 121 exclusion does not shelter depreciation recapture.
Can I use a 1031 exchange on a vacation home?
Possibly. A vacation home that meets the IRS safe harbor in Rev. Proc. 2008-16 — rented at fair market value for at least 14 days per year in each of the prior two years, with personal use not exceeding 14 days or 10% of rental days — may qualify for a 1031 exchange. A pure personal-use vacation home does not qualify.
Does the 3.8% NIIT apply to selling my second home?
It can. The gain from selling a personal-use second home is net investment income. If your modified AGI for the year exceeds $200,000 (single) or $250,000 (married filing jointly), the 3.8% Net Investment Income Tax applies to the lesser of the gain or the amount your MAGI exceeds the threshold. A large gain can itself push you over the line.
If I never rented my second home, do I owe depreciation recapture?
No. Depreciation recapture only applies to depreciation you actually claimed (or were allowed to claim). A pure personal-use second home generates no depreciation, so there is nothing to recapture — the entire gain is capital gain. Recapture becomes an issue only if the home was rented at some point.
Can I do an installment sale on a second home to lower my tax?
Yes, if you offer owner financing. Under the installment method (Form 6252), you report gain as you receive payments rather than all at once. Spreading the gain across multiple years can keep you in lower capital-gains brackets and under the NIIT threshold each year. Note that depreciation recapture, if any, is generally taxed in full in the year of sale regardless.
Sources
- IRS — Like-Kind Exchanges (Real Estate Tax Tips)
- IRS — About Form 8824
- IRS Topic No. 701 — Sale of Your Home
Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.
