Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / Second home
Second home and vacation home sale

Capital Gains Tax on a Second Home: What You Owe and What Changes It

Short answerA second home does not qualify for the $250,000 or $500,000 home sale exclusion, so the whole gain is taxable: long-term capital gain, plus the 3.8% net investment income tax for higher earners, plus state tax. In our Colorado example a $600,000 gain costs $146,765. Renting it, exchanging it under Rev. Proc. 2008-16, or making it your main home changes the answer.

Why a second home is taxed like an investment

The home sale exclusion in IRC 121(a) covers property you owned and used as your principal residence for two of the five years before the sale. A lake house, ski condo or beach place you visit on weekends fails the use test no matter how long you have owned it, so every dollar of gain is taxable. Long-term gain is taxed federally at 0%, 15% or 20%, with 20% starting above $613,700 of taxable income for joint filers (Rev. Proc. 2025-32, 2026); our capital gains hub has the full table.

Two more layers usually apply. Gain on a second home is not from a trade or business, so it counts toward the 3.8% net investment income tax once modified AGI passes $250,000 for joint filers (IRC 1411, not indexed, 2026). And the state where the home sits taxes the gain even if you live elsewhere. In the first example the federal part is $98,705, the 3.8% adds $21,660, and Colorado's flat 4.4% (2026) adds $26,400.

The asymmetry stings in down markets: a loss on a purely personal second home is a nondeductible personal loss, while the gain is fully taxed.

Your basis: what you can add before you compute the gain

Gain is the net sale price minus adjusted basis. For a second home, basis is the purchase price plus closing costs you paid at purchase, plus capital improvements: a new roof, a dock, an addition, a septic replacement. Repairs and upkeep do not count. Selling costs such as commissions and transfer taxes reduce the amount realized. Second homes are often owned for decades and improved piecemeal, so rebuilding the improvement file from old invoices, permits and bank records is the cheapest way to shrink the bill. Our adjusted basis guide walks through what counts.

If you rented it out: the 14-day line and depreciation

How you used the place each year decides how it is treated. Under IRC 280A(d)(1), it is a residence for the year if your personal use exceeds the greater of 14 days or 10% of the days it was rented at fair rent. Rent it fewer than 15 days in a year and the rent is not income at all (IRC 280A(g)). Rent it more, and you report the income and may deduct expenses, including depreciation, allocated by rental days.

That depreciation comes back at sale. Gain up to the depreciation is unrecaptured Section 1250 gain taxed at up to 25% (IRC 1(h)(1)(E), 2026), and the rule reaches depreciation you were entitled to claim even if you skipped it. In the second example, the same $600,000 gain costs $154,393 instead of $146,765, a difference of $7,628, all from the 25% layer. A rented second home can also release suspended passive losses at sale; see rental property gains.

The 1031 safe harbor for vacation homes (Rev. Proc. 2008-16)

A 1031 exchange needs property held for investment, and a home you mostly enjoy yourself is not. The IRS created a safe harbor in Rev. Proc. 2008-16 (effective for exchanges on or after March 10, 2008). The IRS will not challenge investment intent for a dwelling unit if:

  • You owned it at least 24 months immediately before the exchange.
  • In each of the two 12-month periods before the exchange, you rented it at fair rent to others for 14 days or more.
  • Your personal use in each of those periods did not exceed the greater of 14 days or 10 percent of the days it was rented at fair rent (Rev. Proc. 2008-16).

The replacement property must meet the same tests for the 24 months after the exchange. Falling outside the safe harbor does not automatically kill an exchange, but you then argue investment intent on the facts. A converted second home can work with a 1031 exchange; if the plan is to retire into the replacement home later, read Section 121 and 1031 combined first, because IRC 121(d)(10) blocks the exclusion on a home acquired in an exchange until you have owned it five years.

Moving in: the nonqualified use rule since 2009

Before 2009, owners could move into a vacation home for two years and exclude up to $500,000. Congress closed that. Under IRC 121(b)(5), gain is allocated to "nonqualified use" (any period after December 31, 2008 when the home was not your or your spouse's principal residence) by the ratio of those periods to your total ownership, and that share cannot be excluded.

  • Years before 2009 are not nonqualified use, so long-held vacation homes get a better ratio.
  • Time after you move out of a principal residence, within the five-year window, does not count against you. The rule bites second-home-then-main-home, not main-home-then-rental.
  • Depreciation from rental years is carved out first and taxed at up to 25% regardless (IRC 121(b)(5)(D)).

In the third example, six of ten ownership years were second-home years, so 60% of the gain stays taxable. The tax caused by the sale is $82,380, against $146,765 had they never moved in.

Owning a second home in another state

The state where the home sits taxes the gain as its own source income, and your home state taxes you on everything, usually with a credit for tax paid to the other state. Many states also require the buyer or escrow to withhold from a nonresident seller's proceeds; Colorado, for example, withholds the lesser of 2% of the price or the net proceeds on sales over $100,000 (Colorado DR 1083, 2026 rule). If your home state has no income tax, the second home's state is the only state layer. See the Colorado page, and if you are planning a move, the residency change analysis; a move will not change the state where a vacation home sits.

Spreading or deferring the gain

If a buyer wants terms, a Section 453 installment sale spreads the long-term gain across the years you are paid, which can keep more of it in the 15% bracket and under the NIIT threshold in later years. Any 25% depreciation gain is reported first, before the lower-taxed gain (Treas. Reg. 1.453-12). Families who plan to keep the place should compare a sale now with holding it for the basis step-up at death (step-up analysis); a gift to children during life carries your low basis to them. To compare a sale, an installment note, a 1031 and holding side by side, get the Big Sale Tax Analysis.

What to know

The 2008-16 safe harbor requires real rentals at market rent and limits on family use for two years on each side of the exchange, which changes how the home feels to own. Moving in for the exclusion now saves only the share of gain tied to principal-residence years after 2008. Keep rental logs, depreciation schedules and improvement records; without them you cannot prove the basis or the use.

Worked example

Married couple, $220,000 of other income, never rented the cabin, $600,000 gain. Same $600,000 gain, but $90,000 of depreciation was claimed during rental years, so that slice is unrecaptured 1250 gain. Owned 10 years: second home 2016 to 2022, principal residence 2022 to 2026. 6 of 10 years are nonqualified use, so 60% of the $600,000 gain ($360,000) is taxable; the other $240,000 is excluded.

Engine runPersonal-use cabin, ColoradoSame cabin, rented part of the yearConverted to the main home
Filing statusMarried, jointMarried, jointMarried, joint
StateColoradoColoradoColorado
Other income (wages, pension, interest)$220,000$220,000$220,000
Long-term capital gain$600,000$510,000$360,000
Unrecaptured Section 1250 gain (25% max)$0$90,000$0
Federal income tax on the sale$98,705$106,333$54,000
Net investment income tax (3.8%)$21,660$21,660$12,540
State income tax on the sale$26,400$26,400$15,840
Total tax caused by the sale$146,765$154,393$82,380
Effective rate on the gain24.5%25.7%22.9%
Gain kept after these taxes$453,235$445,607$277,620

Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.

Run your own numbers

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.

Free PDF sheet

Long-Term vs Short-Term Capital Gains (2026)

The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

Do you pay capital gains tax on the sale of a second home?
Yes. The Section 121 exclusion applies only to a principal residence, so a second home's entire gain is taxable at long-term rates if you held it more than a year, plus the 3.8% net investment income tax above the IRC 1411 thresholds and state tax where the home is located.
How do I avoid capital gains tax on a second home?
You can reduce or defer it, not erase it by rule. Options: add every capital improvement to basis, use the Rev. Proc. 2008-16 safe harbor to qualify a rented vacation home for a 1031, make it your main home for a partial exclusion, sell on an installment note, or hold it for the basis step-up at death.
Can I move into my second home to avoid capital gains?
Partly. After two years as your principal residence you can exclude gain, but IRC 121(b)(5) keeps the share of gain tied to post-2008 years it was a second home taxable. Ten years owned with six as a second home means 60% of the gain is still taxed.
Can I do a 1031 exchange on a vacation home?
Yes if it was held for investment. Rev. Proc. 2008-16 gives a safe harbor: owned 24 months, rented at fair rent 14 days or more in each of the two prior years, and personal use no more than 14 days or 10% of rental days. The replacement must meet the same tests afterward.
Is a loss on the sale of a second home deductible?
Not if the home was used personally. A loss on personal-use property is not deductible. If the home was converted to a rental, a loss can be allowed, but basis for the loss is the lower of your adjusted basis or the value at conversion, which often wipes it out.
Is depreciation recaptured on a vacation rental?
Yes. Gain up to the depreciation allowed or allowable during rental years is unrecaptured Section 1250 gain taxed at up to 25%, and that slice cannot be excluded even if you later move in and qualify for Section 121.
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.

Prefer email? Request the analysis by email.

Book a callCall Hans