Taxes, Rules & OwnershipPart of: How to Sell a House: The Complete Step-by-Step Guide

Taxes When Selling a Second Home or Vacation Home

The $250,000/$500,000 home-sale exclusion is built for your main home, not a second home or vacation home. Here is how the sale is actually taxed: gain calculation, capital-gains treatment, the loss rule, depreciation recapture, and when a 1031 exchange can help.

A woman turning a key in the front door lock of a timber lakeside cabin

If you sell a second home or vacation home, the federal tax rules are different from the ones that apply to your main home. The $250,000/$500,000 Section 121 exclusion, the one most sellers know about, generally does not apply, so more of your gain is taxable, a loss is not deductible, and a few additional rules can come into play depending on your history with the property.

This article covers the federal tax mechanics for a second or vacation home you use personally, not a primary residence and not a rental property. For how lenders define that same property type, see how Fannie Mae and lenders define a second home.

If your home was your main residence, see how the $250,000/$500,000 exclusion works for a primary residence. If the property is a rental, see tax rules when the property is a rental instead of a second home. If you're selling your main home because of a job relocation rather than owning a separate vacation property, the prorated exclusion for a work-related move is the article you want instead. For the rest of the selling process, start with the complete guide to selling a house.

Why the Home-Sale Exclusion Rarely Applies

Section 121 lets a qualifying seller exclude gain on the sale of a home, but the IRS is explicit that the exclusion belongs to your main home, and an individual has only one main home at a time. A second home, vacation home, or investment property does not qualify, no matter how long you have owned it.

The ownership-and-use test

To exclude any gain at all, a property must pass the ownership-and-use test: you must have owned the home for at least 24 months of the last 5 years, and you must have used it as your residence for at least 24 months of the last 5 years. Those 24 months do not need to be consecutive.

A vacation home you visit a few weeks a year does not meet the use half of this test, so it stays outside the exclusion entirely.

How the IRS defines your main home

When someone owns more than one home, which one counts as the "main home" is a facts-and-circumstances question, not a matter of choice. The full ownership-and-use rules, including the exclusion amounts of up to $250,000 for a single filer and $500,000 for a married couple filing jointly, apply only once a property clears that test as your principal residence.

Calculating Your Taxable Gain

Without the exclusion, the starting math is the same formula used for any capital asset: taxable gain equals amount realized minus adjusted basis.

  • Amount realized is your sale price minus selling expenses, such as real-estate commissions and legal fees.
  • Adjusted basis is your purchase price plus qualifying settlement and closing costs and capital improvements you made during ownership.
  • Routine repairs and maintenance are not added to basis, even though they cost money to perform.

A worked example

Say a couple bought a lake house years ago and, over time, added a garage and rebuilt the dock, both capital improvements. Their adjusted basis is the purchase price plus the cost of those improvements. When they sell, they subtract their selling expenses, commissions and closing costs, from the sale price to get their amount realized, then subtract adjusted basis from amount realized to get their gain.

This walkthrough is illustrative only, not a real case. Because Section 121 does not apply to a second home under ordinary circumstances, the resulting gain is generally fully taxable, subject to the capital-gains and Net Investment Income Tax rules below. To run your own numbers, estimate your net proceeds after selling.

Long-Term vs. Short-Term Gains

How long you owned the home determines which rate structure applies. A home held more than one year produces a long-term capital gain or loss. A home held one year or less produces a short-term gain, taxed as ordinary income rather than at capital-gains rates.

Finding this year's rate thresholds

Long-term gains receive preferential 0%, 15%, or 20% federal rates, and which rate applies depends on your taxable income for the year. Those income thresholds are set annually and change from year to year, so check the current-year figures at IRS Topic no. 409 rather than relying on a number printed elsewhere. The sale is reported on Form 8949, which flows to Schedule D of Form 1040.

The Loss Rule for Personal-Use Homes

Here is a rule that surprises a lot of sellers: if you sell your second home for less than your adjusted basis, you cannot deduct the loss.

The IRS treats a loss from the sale of property held for personal use as nondeductible, except in the case of a casualty or theft loss, and a second or vacation home falls into that personal-use category the same way a primary residence does.

This cuts against how an investment loss works. A loss on investment property can offset gains and up to $3,000 of ordinary income per year ($1,500 if married filing separately), with any excess carried forward. A personal-use home loss never reaches that stage, because it is not deductible in the first place.

Depreciation Recapture If You Rented It

If you ever rented the home out or claimed depreciation for business use, such as a home office, that history follows the sale. Depreciation adjustments attributable to periods after May 6, 1997 cannot be excluded from gain; that portion must be recognized and reported on Form 4797.

The recognized amount is taxed as unrecaptured Section 1250 gain. Section 1250 property is depreciable real property, and the slice of gain attributable to depreciation gets its own rate treatment: unlike the standard 0%, 15%, and 20% long-term rates, unrecaptured Section 1250 gain is taxed at a maximum 25% federal rate. For the fuller mechanics of reporting a rental sale, how depreciation and passive-loss rules apply when you sell a rental property walks through that side in more depth.

Converting a Second Home to Your Main Home

A second home does not permanently lose access to Section 121. If you genuinely move into it and it becomes your principal residence for at least 2 of the last 5 years before you sell, part of the gain can qualify. But you don't get the full exclusion for free; the statute requires prorating your gain first.

What counts as nonqualified use

Under 26 U.S. Code Section 121(b)(5), a "period of nonqualified use" is any period, other than the portion preceding January 1, 2009, during which the property was not used as the principal residence of you, your spouse, or your former spouse. Time after the last date the property was used as your principal residence, within the 5-year lookback window, is not counted as nonqualified use.

How the proration works

Gain is allocated between qualified and nonqualified use based on the ratio of your nonqualified-use time to your total period of ownership, and the portion of gain allocated to nonqualified use cannot be excluded under Section 121.

For example, suppose you used a vacation home purely as a second home for most of your ownership, then genuinely moved in and made it your main home for your final two years of ownership before selling, satisfying the ownership-and-use test.

Because Section 121(b)(5) requires prorating gain by the ratio of nonqualified-use time to total ownership time, only the share of your gain matching that qualifying window could potentially be excluded, subject to the dollar caps. The much larger share matching your years of nonqualified use cannot be excluded, no matter how the ownership-and-use test itself comes out. This walkthrough is illustrative only.

The Net Investment Income Tax

A second-home sale can also trigger the Net Investment Income Tax, a 3.8% tax that applies to the lesser of your net investment income or the amount your modified adjusted gross income (MAGI) exceeds the statutory threshold for your filing status.

Filing statusMAGI threshold
Single or head of household$200,000
Married filing jointly or qualifying surviving spouse$250,000
Married filing separately$125,000

Statutory threshold amounts per the IRS Net Investment Income Tax page and the Instructions for Form 8960.

Gain excluded from income under Section 121 is not counted toward net investment income. But the Form 8960 instructions state that gain from the sale of investment real estate, including a second home that is not a qualified principal residence under Section 121, is subject to the tax. Because most gain on a second-home sale is not excluded, a large gain can push you over the threshold even if your other income is modest.

1031 Exchange Rules for Vacation Homes

A Section 1031 like-kind exchange defers capital-gains tax when you exchange one property for another, but the statute reaches only real property held for productive use in a trade or business or for investment, exchanged for like-kind real property to be held for those same purposes. A vacation home used solely for personal enjoyment does not meet that standard, so exchanging it under Section 1031 generally is not available.

The Rev. Proc. 2008-16 safe harbor

The one narrow path is the safe harbor in Revenue Procedure 2008-16. Prior guidance and case law had already established that Section 1031 does not apply to a property used solely as a personal residence; courts have described personal-residence use as running counter to the intent required to hold property for investment.

The safe harbor gives both the property you're giving up and the one you're acquiring a defined test to meet instead.

RequirementSafe-harbor standard
Ownership periodOwned at least 24 months immediately before (relinquished property) or after (replacement property) the exchange
Rental activityRented to another person at a fair rental for 14 or more days in each of the two 12-month periods within that window
Personal useCapped at the greater of 14 days or 10% of the days the unit was rented at a fair rental, in each of those same 12-month periods

Source: Revenue Procedure 2008-16.

Meeting the safe harbor means the IRS will not challenge the property's qualification as held for productive use in a trade or business or for investment. A taxpayer using the safe harbor must still satisfy every other requirement for a like-kind exchange, including the statute's 45-day identification and 180-day completion deadlines. See how the 1031 exchange timeline and deadlines work for the rest of the process.

A home used purely for personal enjoyment and never rented out does not come close to this test.

State Income Tax on the Sale

Everything above is federal law and applies the same way no matter which state your second home is in. State treatment of the resulting gain is separate and varies:

  • No personal income tax. A state may impose no personal income tax at all.
  • Ordinary-income treatment. A state may tax the gain as ordinary income.
  • Nonresident withholding. A state may require withholding a share of the sale proceeds at closing from a nonresident seller.

Which of those applies depends on the state the property sits in and on your own residency, so confirm it for your specific state.

See state withholding rules when you sell property out of state for how that works and which states are involved.

This Is Not Personalized Tax Advice

Everything above is general information about how federal law treats the sale of a second home or vacation home, not personalized tax advice. Your own adjusted basis, use history, filing status, and state situation will change the numbers, sometimes significantly. Confirm your specific figures with a CPA or tax attorney before you file, and before you rely on any exclusion, recapture, or exchange strategy discussed here.

Frequently asked questions

Can I use the $250,000/$500,000 home-sale exclusion when I sell a second home or vacation home?
Generally no. The Section 121 exclusion applies only to your main home, and the IRS allows only one main home at a time. A second or vacation home can qualify only if it genuinely served as your principal residence for at least 24 of the 60 months before the sale, which a facts-and-circumstances test determines.
What if I converted my vacation home into my primary residence before selling it?
You may partially qualify, but Section 121(b)(5) requires prorating your gain between qualified and nonqualified use. The portion of gain matching the ratio of your nonqualified-use time to your total ownership time is not excludable, even if you meet the ownership-and-use test for the rest.
Can I deduct a loss if I sell my second home for less than I paid for it?
No. The IRS treats a loss from the sale of personal-use property, which includes a second or vacation home, as nondeductible, the same rule that applies to a primary residence. This differs from a loss on a rental or investment property, which can generally be deducted.
Will I owe the Net Investment Income Tax when I sell a second home?
Possibly. Gain from a second home that is not excluded under Section 121 counts as net investment income. The 3.8% tax then applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds the threshold for your filing status.
Can I use a 1031 exchange to defer tax on selling my vacation home?
Almost never. Section 1031 reaches only real property held for productive use in a trade or business or for investment, not property held for personal enjoyment. The narrow exception is the Revenue Procedure 2008-16 safe harbor, which requires a minimum number of fair-rental days and caps personal use in the two 12-month periods before the exchange for the property you give up, and the two 12-month periods after it for the property you acquire.
Does it matter for taxes if I ever rented the home out, even part-time?
Yes. Depreciation you claimed for business or rental use is not excludable from gain. Instead, it is taxed as unrecaptured Section 1250 gain, which carries a maximum 25% federal rate rather than the standard long-term capital-gains rates.

Sources

  1. Publication 523, Selling Your Home (For use in preparing 2025 Returns), Internal Revenue Service Official source
  2. Publication 544, Sales and Other Dispositions of Assets (For use in preparing 2025 Returns), Internal Revenue Service Official source
  3. Topic no. 409, Capital Gains and Losses, Internal Revenue Service Official source
  4. Topic no. 701, Sale of Your Home, Internal Revenue Service Official source
  5. 26 U.S. Code Section 121: Exclusion of gain from sale of principal residence, Office of the Law Revision Counsel, U.S. House of Representatives (United States Code) Official source
  6. 26 U.S. Code Section 1031: Exchange of real property held for productive use or investment, Office of the Law Revision Counsel, U.S. House of Representatives (United States Code) Official source
  7. Net Investment Income Tax (NIIT), Internal Revenue Service Official source
  8. Instructions for Form 8960, Net Investment Income Tax, Internal Revenue Service Official source
  9. Revenue Procedure 2008-16: Safe harbor for determining whether a dwelling unit qualifies as property held for productive use in a trade or business or for investment under Section 1031, Internal Revenue Service Official source

About the author

Kenny Chung is a REALTOR® with LPT Realty in Las Vegas (Nevada license S.0183907, licensed since 2018) and a Home Stimulus partner agent specializing in new construction and investment properties — the same beats he writes about. Born in San Francisco and a UC Davis graduate, he spent nine years in hospitality before real estate, a service background his clients feel: a 5.0 rating across 52 Zillow reviews, a Zillow Top Agent badge, and 116 sales concentrated in the entry-price band where first-time buyers actually shop. He serves clients in English and Cantonese across Las Vegas and Henderson.

Home Stimulus is a new-construction marketplace and homeowner toolkit; articles may reference its 1% listing service performed by licensed partner agents, its cash-offer option, and agent matching. Kenny Chung practices with LPT Realty as a Home Stimulus partner agent.

Ready to make your move?

Put the guidance to work: get a no-obligation cash offer on the home you're leaving, or list it for 1%.

The Home Stimulus app

Your next home, in your pocket.

Search every new-construction home we track, watch builder incentives move, and get an alert the moment a price drops.