Capital Gains Tax on a Second Home: What You Owe and What Changes It
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 run | Personal-use cabin, Colorado | Same cabin, rented part of the year | Converted to the main home |
|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint |
| State | Colorado | Colorado | Colorado |
| 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 gain | 24.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
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.
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.
Frequently asked questions
Do you pay capital gains tax on the sale of a second home?
How do I avoid capital gains tax on a second home?
Can I move into my second home to avoid capital gains?
Can I do a 1031 exchange on a vacation home?
Is a loss on the sale of a second home deductible?
Is depreciation recaptured on a vacation rental?
Sources
- IRC 121 (Cornell LII)
- Rev. Proc. 2008-16 (IRS)
- IRC 280A (Cornell LII)
- IRC 1 rates (Cornell LII)
- IRC 1411 (Cornell LII)
- IRS Publication 527, Residential Rental Property
- IRS Publication 523, Selling Your Home
- Rev. Proc. 2025-32 (IRS)
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
Home sale over the exclusion
For long-time owners whose gain beats $250,000 or $500,000: what is excluded, what is taxed, and the rules that move the line.
ReadRental property
How a rental sale is really taxed: the 25% depreciation layer, the losses the sale finally frees, the 3.8% tax, and why moving in first rarely helps.
ReadAdjusted basis
How to build adjusted basis from your records, what goes in and what never does, inherited versus gifted basis, partnership and S corporation basis, and what a
Read1031 exchange
Defer the whole gain by trading investment real estate for more real estate, if you can find it and close inside 180 days.
ReadSection 121 plus 1031
A former home that became a rental can use both the home sale exclusion and a 1031 exchange on the same sale under Rev. Proc. 2005-14.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadKnow 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.