Second homes don't qualify for the Section 121 exclusion
The Section 121 exclusion allows married couples to exclude up to $500,000 ($250,000 for singles) of capital gains from selling a primary residence where they lived for at least two of the five years before sale. A second home — a vacation property you use personally but not as your primary residence — does not meet the use test and gets no exclusion.
All gain from the sale of a second home is taxable. If held more than one year, it is taxed at long-term capital gains rates (0%, 15%, or 20%), plus the 3.8% Net Investment Income Tax if your modified AGI exceeds the threshold.
If you rented the property
A vacation home that was also rented for part of the year is treated as a hybrid. If personal use exceeded 14 days or 10% of rental days (whichever is greater), it falls into the mixed-use vacation home rules. Depreciation is only allowed on the rental-use portion, which means less accumulated depreciation — and less recapture. The capital gain on sale is still fully taxable.
If the property was rented under those thresholds and treated as a fully rental property, the regular rental sale rules apply and the full depreciation taken is subject to recapture.
Converting a second home to a primary residence
If you move into the second home and use it as your primary residence for at least two of the five years before sale, you may qualify for a partial Section 121 exclusion. The exclusion is prorated to exclude only the gain attributable to the qualified use period; the gain attributable to non-qualified-use years is still taxable. Depreciation taken after May 6, 1997 is also excluded from the Section 121 exclusion — it remains subject to recapture regardless.
Calculating the gain: a worked example
Start with your amount realized (sale price minus selling costs) and subtract your adjusted basis (purchase price, plus capital improvements, minus any depreciation allowed during rental periods). Suppose you bought a lake house for $350,000, added a $50,000 dock and deck (capital improvements), never rented it, and sold it for $600,000 with $40,000 of selling costs.
Amount realized: $600,000 − $40,000 = $560,000. Adjusted basis: $350,000 + $50,000 = $400,000 (no depreciation because it was never a rental). Gain: $560,000 − $400,000 = $160,000, all long-term capital gain if held more than a year, taxed at 0/15/20% plus the 3.8% NIIT if your modified AGI exceeds $200,000 single or $250,000 married filing jointly. There is no Section 121 exclusion to shrink this figure.
Depreciation recapture if you ever rented it
If the second home was rented at any point and you claimed depreciation, that depreciation reduces your basis and is subject to unrecaptured Section 1250 gain treatment — taxed at up to 25% — when you sell. Even if you stopped renting years before selling, the depreciation you claimed (or were allowed to claim) must be recaptured. The IRS applies the “allowed or allowable” rule, so you owe recapture on depreciation you could have taken even if you never did.
A mixed-use vacation home under Section 280A limits depreciation to the rental-use portion, which caps how much recapture can accrue. Keep the depreciation schedules from every year the property was a rental — they determine the recapture layer at sale.
State income tax on second-home sales
Capital gains on a second home are taxed by the state where the property is located, not necessarily where you live. If your vacation property sits in a state with an income tax, that state generally taxes the gain from selling real estate located there, and you file a nonresident return. Your home state may also tax the gain, typically with a credit for taxes paid to the other state to avoid double taxation.
States vary widely: some (Florida, Texas, Nevada) have no personal income tax, while others tax capital gains as ordinary income at rates that can exceed 10%. Factor the state hit into any sale projection — it can rival the federal capital-gains tax.
Converting a second home before selling: the non-qualified use rule
Moving into a second home to claim the Section 121 exclusion works, but only partially, because of the non-qualified use rule in Section 121(b)(5), effective for use periods after 2008. The exclusion does not cover the portion of gain allocable to years the home was not your principal residence. The excludable fraction equals qualified-use years divided by total ownership years.
Example: you own a home 10 years — 6 as a vacation home, then 4 as your primary residence — and have $200,000 of gain (ignoring depreciation). Only 4/10 of the gain, $80,000, is potentially excludable; the other $120,000 attributable to non-qualified use remains taxable. Depreciation claimed after May 6, 1997 is always excluded from Section 121 and taxed as recapture regardless.
Planning options to reduce or defer the tax
Because no exclusion applies, second-home sellers rely on other levers. A 1031 exchange can defer the entire gain if the property was genuinely held for investment rather than personal enjoyment — the safe harbor in Rev. Proc. 2008-16 requires limited personal use (no more than 14 days or 10% of rented days) in each of the two years before the exchange. Installment sales can spread the gain across years and brackets. Gifting appreciated property to family members in lower brackets, or donating it to charity, are other possibilities.
Timing also matters: if you can recognize the gain in a year when your other income is low, more of it may fall in the 0% or 15% capital-gains bracket, and you may stay under the NIIT threshold. For large gains, consult a tax advisor before signing — the difference between a 15% and a 23.8% effective federal rate on six figures of gain is substantial.
Basis, records, and the step-up at death
Your gain depends entirely on getting the basis right, and second homes are notorious for lost records. Basis starts with the purchase price and the closing costs you paid to buy (title insurance, recording, legal fees — not loan costs), then grows with every capital improvement: additions, a new roof, a remodeled kitchen, a dock, value-adding landscaping. It shrinks only for depreciation if the home was ever rented. Keep a running basis schedule with receipts — decades of improvements on a long-held vacation home can add six figures to basis and cut the taxable gain accordingly.
Holding until death changes the math completely. Under Section 1014, a second home included in your estate receives a step-up in basis to fair market value on the date of death, wiping out the unrealized appreciation for your heirs. An heir who sells shortly after inheriting often owes little or no capital-gains tax. For highly appreciated vacation property, the estate-planning question — sell now and pay, or hold and let heirs inherit at a stepped-up basis — can be worth more than any deduction strategy.
Gifting during life does the opposite: a gift carries over your (lower) basis to the recipient, who then owes tax on the full appreciation when they sell. Gifting can still make sense to shift a gain to a family member in the 0% or 15% bracket, but it forfeits the step-up. Finally, remember the 3.8% Net Investment Income Tax — gain on a second home is investment income, so a large sale can trigger NIIT even when it does not change your capital-gains bracket. High earners should model the combined 20% capital-gains rate plus 3.8% NIIT plus state tax, which on a big vacation-home gain can push the effective rate toward or past 30%.
Can a second home qualify for a 1031 exchange?
A second home used primarily for personal enjoyment does not qualify for a 1031 exchange because it is not held for investment or productive use in a trade or business — the core requirement of Section 1031. A vacation property you use primarily for recreation fails this test regardless of whether you occasionally rented it.
However, a second home that was rented as investment property and used personally for no more than 14 days per year (or 10% of the days it was rented at fair market rent, whichever is greater) can qualify. The IRS's safe harbor in Rev. Proc. 2008-16 provides more clarity: if you owned the property for at least 24 months before the exchange, rented it at fair market value for at least 14 days in each of the two 12-month periods before the exchange, and limited personal use to 14 days or 10% of rental days in each period, the IRS will not challenge its qualification. A vacation home that meets this standard can be exchanged into a replacement rental property, deferring the entire gain. Convert personal-use patterns to investment-use patterns well before a planned exchange.
Charitable giving strategies for appreciated second homes
For investors who no longer want the property but also do not want to pay a large capital-gains bill, charitable giving of an appreciated second home can eliminate the tax entirely. If you donate the property directly to a qualified charity, you receive a charitable deduction equal to the property's fair market value (subject to AGI limits for appreciated property donations, generally 30% of AGI for capital gain property donated to public charities, with a five-year carryforward), and you owe no capital gains tax on the appreciation. The charity can then sell the property tax-free.
A charitable remainder trust (CRT) is a more flexible structure: you contribute the property to the CRT, the trust sells it without recognizing gain, and the trust then pays you an income stream (annuity or unitrust payment) for life or a term of years. The present value of the charity's remainder interest equals the charitable deduction. CRTs are complex legal and tax instruments requiring professional setup, but for a highly appreciated second home with significant ongoing value, they can convert a taxable gain into a lifetime income stream while also providing a current charitable deduction. Consult an estate-planning attorney before pursuing this strategy.
The impact of the Net Investment Income Tax on second-home sales
The 3.8% Net Investment Income Tax (NIIT) under IRC Section 1411 applies to the lesser of your net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly). Gain on a second home is net investment income, so if your MAGI exceeds the threshold, the NIIT stacks on top of the regular capital-gains tax.
At the top rate, the combined federal tax on a second-home gain is 20% (capital gains) + 3.8% (NIIT) = 23.8%, plus state tax. At the 15% rate, the combined rate is 15% + 3.8% = 18.8%. The NIIT thresholds are not indexed for inflation, which means more taxpayers cross them each year as incomes rise. For a married couple who normally earns $220,000 in wages but sells a vacation home with $200,000 of gain, the total MAGI in the sale year is $420,000 — well above the threshold — so the full gain is subject to the 3.8% surtax. Model the NIIT alongside the capital-gains tax in any sale-year projection, and consider timing large itemized deductions or Roth conversions to manage the all-in effective rate.
Reporting the sale on your tax return: which forms and lines
A second-home sale is reported on Form 8949 (Sales and Other Dispositions of Capital Assets) and Schedule D (Capital Gains and Losses). You will need Form 1099-S from the title company reporting the gross proceeds, and you will compute your adjusted basis separately using purchase records, improvement receipts, and any depreciation claimed during rental periods.
If the property was ever rented and depreciation was claimed, you also complete Form 4797 to account for the depreciation recapture (unrecaptured Section 1250 gain) and the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions to apply the 25% cap to that recapture. If your MAGI exceeds the NIIT threshold, complete Form 8960 to compute the 3.8% surtax on the gain. If you sold via an installment sale arrangement, add Form 6252. The closing statement (Closing Disclosure) is your primary source for gross proceeds and selling costs; keep it with your return because the IRS matches the Form 1099-S against your reported proceeds.
Frequently asked questions
Does the $500,000 home sale exclusion apply to a second home?
No. Section 121 requires the property to be your primary residence for at least two of the five years before sale. A second home or vacation property does not qualify.
What rate is capital gains on a second home?
Long-term capital gains rates (0/15/20%) apply if held more than one year. The 3.8% NIIT may also apply for high earners. Any depreciation claimed is recaptured at up to 25%.
Can I avoid capital gains on a vacation home with a 1031 exchange?
Yes, if the property was held for investment or business purposes. A vacation home used primarily for personal use does not qualify for 1031 treatment.
How do I calculate the gain on a second home?
Take the sale price minus selling costs (amount realized) and subtract your adjusted basis (purchase price plus capital improvements, minus any depreciation claimed while it was a rental). The remainder is your taxable gain.
Do I owe state tax when I sell a vacation home in another state?
Usually yes. The state where the property is located taxes gain on real estate located there, and you file a nonresident return. Your home state may also tax it, generally with a credit for the tax paid to the other state.
If I move into my second home, is the whole gain tax-free?
No. The non-qualified use rule prorates the Section 121 exclusion, so gain attributable to the years it was a second home stays taxable, and any post-1997 depreciation is recaptured.
Does my heir owe capital gains tax if I leave them my vacation home?
Generally very little. Under Section 1014, property included in your estate gets a step-up in basis to fair market value at the date of death, so the appreciation during your lifetime is wiped out for the heir. If they sell shortly after inheriting, there is little or no gain to tax — often a better outcome than gifting the property during life, which carries over your lower basis.
Do I owe the 3.8% Net Investment Income Tax when I sell a second home?
Very likely, if you are a higher earner. Gain on a second home is investment income for NIIT purposes, so the 3.8% surtax applies to the extent your modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). Combined with the 20% top capital-gains rate and any state tax, the effective rate on a large gain can approach or exceed 30%.
Sources
- IRS Topic No. 409 — Capital Gains and Losses
- IRS Publication 544 — Sales and Other Dispositions of Assets
- IRS Publication 946 — How to Depreciate Property
Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.
