Second home / vacation home

Capital Gains Tax on Selling a Second Home or Vacation Home

Short answer: a second home or vacation home does not get the $250,000/$500,000 home-sale exclusion. The whole gain is taxable: 0%, 15% or 20% federally, plus the 3.8% net investment income tax for higher incomes, plus the state where the property sits, and unlike a main home, a loss is not deductible.

This calculator also prices what a vacation home sale does to your Social Security and your Medicare premiums, which is where the surprise usually comes from for owners in their sixties and seventies.

By Hans Goldstein, EA, Enrolled Agent, enrolled to practice before the IRS. Updated December 2026.

2027 federal brackets (IRS Rev. Proc. 2026-35), SSA Section 86 thresholds, CMS 2027 Medicare premiums and IRMAA tiers, state rates as of December 2026. Estimates, not tax advice.

Worked example

A single owner, age 66, sells a second home for $1,100,000. They paid $450,000, added $80,000 of improvements and pay $66,000 in selling costs. They collect $30,000 a year of Social Security and have $55,000 of other income.

Worked exampleAmount
Taxable gain$504,000
Federal tax on the gain$76,977
Net investment income tax (3.8%)$14,611
California tax on the gain$48,936
Tax most calculators show$140,525
Extra tax on Social Security the sale makes taxable ($0 more taxable)$0
Medicare Part B + D surcharge two years later$7,186
Real cost$147,710

Why a second home gets no exclusion

The Section 121 exclusion is only for a main home: the place you owned and lived in as your principal residence for at least two of the last five years. A vacation home, beach house, ski condo or a home you visit a few weeks a year does not qualify, so the whole gain is taxable. The tax rate is the long-term capital gain rate if you held it more than a year.

The gain is also net investment income, so the 3.8% NIIT applies once your modified adjusted gross income passes $200,000 (single) or $250,000 (married filing jointly).

If you rented it out part of the year

Renting a second home out for 15 or more days a year means you report the rent, and you can claim depreciation on the rented share. Under the vacation home rules, and when you sell, the depreciation comes back as unrecaptured Section 1250 gain taxed at up to 25%. If you rented it more than you used it, it may be a rental property for tax purposes; use the rental property calculator and see the vacation home rules in IRC Section 280A with your CPA.

Which state taxes the sale?

The state where the property is located taxes the gain, even if you live somewhere else. A Texas resident selling a California vacation home owes California tax on the gain; a California resident selling a Nevada cabin still owes California tax on the full gain because California taxes residents on all income. Use the State where the property is field to model it. For California property, see the California second home guide.

Frequently asked questions

Is there an exclusion when selling a second home?

No. The $250,000/$500,000 Section 121 exclusion applies only to your main home. The gain on a second or vacation home is fully taxable unless you convert it to your main home for the required period first.

How is capital gain on a vacation home calculated?

Sale price, minus selling costs, minus your adjusted basis (purchase price, closing costs and capital improvements). The result is the taxable gain. If you rented the home, depreciation lowers the basis and creates a recapture layer.

Can I deduct a loss on a second home?

Generally no. A loss on property used for personal purposes, such as a vacation home, is not deductible. A loss on a property that was a true rental can be.

Do I pay capital gains tax if I sell my vacation home and buy another?

Yes, buying another vacation home does not defer the tax. A Section 1031 exchange is only for investment or business property, not for a home you use personally.

Does selling a second home affect Social Security and Medicare?

A taxable gain raises your adjusted gross income. That can make more of your Social Security taxable that year and raise your Medicare Part B and D premiums two years later. This calculator prices both.

How can I reduce the tax on a second home sale?

Common approaches include documenting every improvement, an installment sale to spread the gain, converting the home to your main residence for a period before selling, timing the sale into a lower-income year, or holding it until death for a stepped-up basis.

Run it on your real return

A free 15-minute call with Hans Goldstein: which levers fit your sale, what the Social Security and Medicare effects look like on your actual numbers, and what to ask your CPA.

Book 15 minutes 213-414-2808

Educational estimate, not tax, legal or financial advice. Figures use 2027 federal brackets and thresholds (IRS Rev. Proc. 2026-35), the Social Security benefit-taxation rules in IRC Section 86, CMS 2027 Medicare premiums and IRMAA tiers, and state rates as of December 2026 (California uses the FTB 2026 schedule until the 2027 schedule is published). Later Medicare years hold the 2027 tiers flat. Your CPA should confirm any figure before you act. By Hans Goldstein, EA, Enrolled Agent (enrolled to practice before the IRS), reviewed December 2026.

Run my numbers Book 15 min Call

Hans Goldstein is an Enrolled Agent, enrolled to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.