Capital Gains Tax on Vacation Home Sale: Rules & Worked Example
Selling a vacation home? See how Section 121, the nonqualified use rule, depreciation recapture, and 1031 exchanges shape the tax, with a full worked example.

Capital Gains Tax on a Vacation Home Sale: The Quick Answer
Sell a vacation home or second property and the profit usually faces capital gains tax. The generous Section 121 exclusion only applies when the property was your primary residence for two recent years.
A beach condo rented every summer gets computed differently from a converted cabin. The two paths diverge the moment you look at exclusions.
This guide explains the allocation rules, the depreciation bill, the exclusion tactics that still work, and the 1031 alternative. A worked example at the end lets you price the tax on your own property with confidence.
Which Federal Rates Hit a Second Home
Long-term gains on a second home follow the same federal brackets as stock sales.
The 2026 brackets start at 0 percent for lower incomes and reach 20 percent at the top. Most filers pay the 15 percent rate on second home gains.
The 3.8 percent NIIT surtax also hits high earners once investment income crosses its fixed thresholds. Our rates breakdown shows every threshold in detail.
What makes second homes special is not the rates. The real question is which portion of the gain gets sheltered at all.
How Section 121 Applies to Vacation Properties
Single taxpayers can exclude $250,000 of gain under the primary residence exclusion. Married couples filing jointly double that coverage to $500,000. Two tests decide eligibility: ownership and use.
Ownership must span at least two years inside that five-year lookback window. Residence must also total at least 730 days of main-home living across the same stretch. Days count toward use even when scattered across multiple summers.
A lake house you visit three weeks a year fails the use test completely. A mountain condo you occupied for two full years before relocating passes it. The five-year lookback means timing the sale matters enormously.
Sell in year six after moving out and the exclusion vanishes entirely. Our home sale exclusion guide covers the base rules for primary homes.
Mixed Use: The Nonqualified Use Rule
Properties that switched between rental and personal use need an allocation calculation. The 2008 housing law created the nonqualified use rule for this situation.
Periods of nonqualified use are stretches when the home was neither a primary residence nor a rental producing income. Gains are divided between qualified and nonqualified periods using a ratio of days.
Here is the formula in plain language. Take the total ownership period after 2008, count the days of nonqualified use, and divide. That fraction of the gain stays fully taxable with no exclusion.
The remaining fraction qualifies for the Section 121 shelter if the two-year use test passed. Vacation homes used purely for family summers count as nonqualified use from day one.
| Use period | Counts toward exclusion? | Counts as nonqualified use? |
|---|---|---|
| Primary residence years | Yes, use test | No |
| Rented at market rates | Yes, ownership test only | No |
| Vacant summer home, personal use | Yes, use test if 2 years | Yes, full period |
| Caretaker or relative arrangement | Case by case | Usually yes |
Worked Example: Condo Converted to Primary, Then Sold
Numbers clarify the rules faster than definitions. Say you bought a Florida condo for $300,000 in January 2019 and immediately rented it for five years. You converted it to your primary residence in January 2024 and lived there for two full years.
The sale closed in January 2026 at $600,000. Assume $40,000 of cumulative depreciation during the rental years and a $30,000 selling cost package. Your adjusted basis sits at $260,000, which makes the total gain $310,000.
First, the depreciation recapture piece. Your $40,000 of straight-line depreciation returns as unrecaptured Section 1250 gain at sale. Tax authorities collect up to 25 percent on that slice, no matter what.
Second, the exclusion allocation. The five rental years before your move-in count as nonqualified use.
That is 5 of the 7 ownership years counted after 2008. About 71 percent of the remaining $270,000 gain, or roughly $193,000, stays taxable under the nonqualified use ratio.
The final two years of primary use satisfy the use test. The other $77,000 falls inside the $250,000 exclusion.
The bill lands differently than most owners expect. Roughly $193,000 of gain plus the $40,000 recapture remains taxable at long-term rates. Moving in two years before selling rescued part of the exclusion.
The long rental history still shrank its value. Our depreciation recapture guide explains that 25 percent rate in depth.
| Component | Amount | Tax treatment |
|---|---|---|
| Total gain on sale | $310,000 | Allocated by the rules below |
| Depreciation claimed | $40,000 | Up to 25% unrecaptured 1250 rate |
| Nonqualified use share | About $193,000 | Taxed, no exclusion available |
| Exclusion-eligible share | About $77,000 | Sheltered by Section 121 |
A Pure Vacation Home With No Primary Use
Properties never used as a main home get no Section 121 protection at all. The entire gain after depreciation is taxable at long-term rates in the year of sale. You still subtract buying costs, improvements, and selling expenses from the gain first.
Home office deductions, insurance payouts, and prior casualty losses can also adjust the basis.
Keep every closing statement and improvement receipt, because the cost basis rules decide your taxable profit.
The Depreciation Recapture You Cannot Exclude
Rental periods generate depreciation deductions, and the tax law wants that money back at sale. Straight-line depreciation on the building gets recaptured, and the rate caps at 25 percent. The tax code labels it unrecaptured Section 1250 gain.
Faster depreciation methods add a 25 percent cap on the excess too. This recapture applies no matter how much of the gain an exclusion wipes out. Owners who deducted $100,000 over the years face a bill up to $25,000 before any bracket math.
When a 1031 Exchange Beats Selling
Investment property can defer the entire gain through a 1031 exchange instead. You sell the vacation home, buy a replacement investment property through a qualified intermediary, and roll the gain forward. The property must qualify as held for investment, which means your personal summers need to end before the exchange.
The IRS applies a safe harbor test for dwellings used in exchanges. It requires 14 months of qualifying rental with limited personal use.
A pure exchange strategy suits owners who want income property, not a beach schedule. Domestic real estate exchanges only into other domestic real estate. You cannot 1031 into stocks, funds, or foreign property.
Timelines, deadlines, and classic traps all get covered in our 1031 exchange rules guide. A sale with the exclusion plus a smaller taxable slice sometimes beats a full deferral, so model both paths.
Holding Until Inheritance: The Step-Up Play
Families who never need the cash sometimes hold the property for life. The heir's basis resets to what the property was worth on the date of death. That step-up erases the embedded gain entirely.
A cabin bought for $150,000 and worth $900,000 at death transfers with a stepped-up $900,000 basis. Heirs can sell immediately with no capital gains tax.
The estate itself may owe tax above federal limits.
This path also forfeits years of rental income, so it fits owners who value the legacy more than liquidity.
State Taxes on Second Home Sales
States tax real estate at the property's location, regardless of where you now file as a resident. This sourcing rule surprises owners who moved to a low-tax state years ago. The old state still claims its share on a local property sale.
A New York apartment sold by a Florida resident still owes New York state and New York City tax. Some states, like California, also tax nonresidents on gains from local property through withholding.
Our no-tax states guide names all nine states that currently charge nothing at all. Expect withholding on large sales and file a nonresident return to reconcile it.
Planning Checklist Before You Sell
Walk through this sequence before you list a second property for sale. Each one can move the tax bill by thousands of dollars.
| Step | Action | Why it matters |
|---|---|---|
| 1 | Confirm the five-year use history | Decides if any Section 121 exclusion exists |
| 2 | Total all depreciation claimed | Fixed 25% recapture bill on that amount |
| 3 | Compute the nonqualified use ratio | Splits gain between sheltered and taxable |
| 4 | Compare a 1031 exchange scenario | Defers everything if you want property |
| 5 | Check projected federal bracket | 15% versus 20% plus NIIT swings the total |
| 6 | Model state tax at the property location | Nonresident rules still apply |
The Bottom Line on Selling a Vacation Home
A second home sale is rarely a simple 15 percent event. Recaptured depreciation, the nonqualified-use fraction, and state tax sourced to the property itself all add layers. Converting the property to a primary residence for two years captures partial shelter.
An exchange can defer everything instead, if you want more property. Start with a realistic gain calculation using our capital gains walkthrough. Then compare the sale and exchange paths on paper.
Costs That Shrink the Taxable Gain
Many owners overpay by forgetting legitimate adjustments to the sale price. Selling costs come off the top before any tax rate applies. That group includes broker commissions, title insurance, transfer taxes, legal fees, and staging costs.
Capital improvements add to your basis dollar for dollar across the whole ownership period. A new roof, a remodeled kitchen, and a seawall all count.
Repairs do not count, because the IRS rules in Publication 523 treat them as maintenance. Keep invoices for every improvement, since the documentation directly lowers the taxable gain.
| Item type | Examples | Tax effect |
|---|---|---|
| Selling costs | Commission, title, transfer tax | Reduces gain directly |
| Capital improvements | Roof, addition, new systems | Adds to basis, reduces gain |
| Repairs and upkeep | Painting, fixing a leak | No basis adjustment |
| Furniture and appliances | Separately itemized at sale | Ordinary income treatment on that portion |
Selling to Family or a Friend
Related-party sales carry special rules that surprise casual sellers. The code treats family transactions with extra suspicion, and for good reason. Selling to a sibling, child, or other family member keeps the gain fully taxable at your normal rates.
Losses on related-party sales, however, are generally disallowed by the tax code. Installment sales to family can spread the gain across years and may charge reasonable interest. If the relative later sells at a gain within two years, the code can claw back parts of the transaction.
Get the paperwork right before agreeing to a family price. Give the deal the same formality as a market sale.
How to Report a Second Home Sale
Second home sales land on Form 8949 alongside Schedule D when you file. The closing agent sends Form 1099-S to you and the IRS, so the transaction is already on file. Report each sale with the dates, proceeds, and adjusted basis first.
Any exclusion gets applied later on Schedule D. Rental periods may also require a final Schedule E for the year the property left service.
Our reporting guide walks through both forms line by line. Filing accurately matters because the closing data reaches the IRS directly.
Wasim Akram
Wasim researches and writes every article on TaxGainsCalc, covering capital gains tax for everyday investors. Every figure is checked against primary IRS sources before it goes live.


