Capital Gains on Vacation Home: Rates, NIIT, and 1031 Exchanges

When you sell a vacation home, the profit is subject to federal capital gains tax at 0%, 15%, or 20% depending on your income, plus a potential 3.8% surtax, and any depreciation from rental years is taxed separately at up to 25%. Unlike your main home, a second home does not automatically qualify for the Section 121 exclusion that shelters up to $250,000 of gain (or $500,000 for joint filers) on a principal residence.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence What you actually owe on a vacation home sale depends on your basis, how long you owned it, whether you ever rented it, and whether you moved into it before selling.

Figuring the Taxable Gain

The gain is the amount you realize on the sale minus your adjusted basis. Every dollar you can document as basis is a dollar that never gets taxed, so this piece deserves careful work.

Basis starts with what you paid for the property, including acquisition costs at closing such as title insurance, legal fees, recording fees, and transfer taxes. Capital improvements add to basis: projects that increase value, extend useful life, or adapt the property to a new use. Adding a deck or bathroom, replacing the roof, installing central air, paving a driveway, and remodeling the kitchen all count. Routine maintenance does not. Painting, patching leaks, and swapping broken hardware are repairs.2Internal Revenue Service. Publication 523, Selling Your Home Keep receipts; the burden of proof is yours.

The amount realized is your gross sale price minus selling expenses: commissions, advertising, and closing costs you paid as seller. Subtract adjusted basis from that net figure to get your capital gain.

If you ever rented the property, your basis is reduced by the depreciation you were allowed to take on the structure (not the land) over 27.5 years using straight-line. The reduction is mandatory whether or not you actually claimed it on past returns. The IRS calculates gain as though you had taken every allowable deduction.

The Rates That Apply

Property held for one year or less produces a short-term gain, taxed at ordinary income rates. Hold it longer than a year and the long-term capital gains rates of 0%, 15%, or 20% apply.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses For 2026, the long-term thresholds based on taxable income are:

  • 0% rate up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
  • 15% rate from those thresholds up to $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
  • 20% rate on taxable income above those 15% ceilings.

Most vacation-home sellers land in the 15% bracket. A large gain can push part of the profit into the 20% tier for that year alone.

The 3.8% Net Investment Income Tax

Higher-income sellers pay an additional 3.8% surtax on net investment income. It applies to the lesser of your net investment income or the amount by which modified adjusted gross income exceeds $200,000 (single), $250,000 (joint), or $125,000 (married filing separately).4Internal Revenue Service. Topic No. 559, Net Investment Income Tax Vacation-home gain counts as investment income, so a seller in the 20% bracket can face an effective federal rate of 23.8% before state tax. Gain excluded under Section 121, by contrast, is not subject to NIIT.5Internal Revenue Service. Net Investment Income Tax

Extra Tax If You Ever Rented It Out

Renting the property for even part of your ownership triggers depreciation recapture at sale. The cumulative depreciation you claimed, or were required to claim, on the building creates unrecaptured Section 1250 gain, which is taxed at a maximum federal rate of 25%, separate from the rest of the capital gain.6Office of the Law Revision Counsel. 26 USC 1250 – Gain From Dispositions of Certain Depreciable Realty Land is not depreciable, so only the structure’s depreciation feeds the recapture bucket.

An example makes the math concrete. Say you sell with a total gain of $150,000 and $40,000 of it corresponds to depreciation taken during rental years. That $40,000 is taxed at up to 25%, or $10,000. The remaining $110,000 is taxed at your long-term rate. Compared to a straight 15% on the whole gain, the recapture piece costs roughly $4,000 more.

There is one silver lining tied to rental use. Rental losses are passive by default and often get suspended year to year.7Internal Revenue Service. 2025 Instructions for Form 8582 – Passive Activity Loss Limitations When you dispose of your entire interest, any suspended losses are released. They first offset the sale gain, and any excess can reduce your other income, including wages.

The Rental Classification Rules

How the IRS treats your property during rental years turns on the 14-day rule in Section 280A. Rent it fewer than 15 days a year and you report no rental income and deduct no rental expenses; the property stays purely personal.8Office of the Law Revision Counsel. 26 USC 280A – Disallowance of Certain Expenses in Connection With Business Use of Home, Rental of Vacation Homes, Etc. Rent it 15 or more days and the classification depends on your personal use. If personal use exceeds the greater of 14 days or 10% of rental days, the property is a personal residence with rental income, and deductions are capped at rental income. Below that line, it’s a rental investment and full deductions (and possible passive losses) are allowed.

Moving In Before Selling

Converting the vacation home to your principal residence is the most powerful lever for cutting the tax, because it opens the door to the Section 121 exclusion. You must own the home and use it as your principal residence for at least two of the five years before the sale, and both tests must be met simultaneously. The exclusion can be used repeatedly, but no more than once every two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Meeting the two-year residency test does not shelter the entire gain, though. Two rules cut into the exclusion.

Nonqualified Use

Any period after December 31, 2008, when the property was not your principal residence counts as nonqualified use, and the gain allocated to those periods cannot be excluded.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The allocation is a ratio: nonqualified-use days divided by total ownership days, applied to the total gain. That share is taxable regardless of the exclusion.

Time after you stop using the home as a principal residence is not counted as nonqualified use, as long as it stays within the five-year lookback. Live in it for three years, move out, sell 18 months later, and that 18-month gap is not held against you. The nonqualified use that matters is time before you moved in. Military, intelligence, and Peace Corps personnel on qualified extended duty can suspend the clock for up to 10 years, and temporary absences of up to two years total for job, health, or unforeseen circumstances also do not count.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Depreciation Comes Out First

Before applying the nonqualified-use ratio, depreciation from any rental period must be carved out. That amount is taxed at up to 25% and gets no benefit from Section 121.

A Worked Example

You buy in January 2017, use it only for personal vacations, then move in full-time in January 2022. You sell in January 2026 with a $300,000 gain after removing depreciation. Total ownership is 108 months. The nonqualified-use period is the 60 months from 2017 through 2021, all after December 31, 2008. The ratio is 60 รท 108, about 55.6%. Roughly $166,800 of the gain is allocated to nonqualified use and fully taxable. The remaining $133,200 is eligible for the Section 121 exclusion, comfortably inside the $250,000 cap for a single filer.

Other Ways to Defer or Eliminate the Tax

A 1031 Like-Kind Exchange

If the vacation home qualifies as investment or business property rather than personal-use property, you can swap it for another investment property and defer the gain. Revenue Procedure 2008-16 gives a safe harbor: in each of the two years before the exchange, rent the property at fair market value for at least 14 days and keep personal use to no more than 14 days or 10% of rental days, whichever is greater.9Internal Revenue Service. Revenue Procedure 2008-16

The deadlines are strict. Identify replacement properties within 45 days of closing on the property you sell, and complete the acquisition within 180 days (or by your return’s due date, whichever is earlier).10Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment A qualified intermediary must hold the proceeds; if you take possession, the exchange fails. To defer the entire gain, reinvest all net proceeds and replace any debt relief. Any shortfall, called boot, is taxed immediately. A 1031 defers the tax, it does not erase it: your old basis rolls into the replacement, and the gain is waiting when you eventually sell without another exchange.

Installment Sales

If the buyer pays you over multiple years, Section 453 lets you spread the gain across those payment years.11Office of the Law Revision Counsel. 26 USC 453 – Installment Method Each payment carries a proportional slice of the gain, which can keep you in a lower capital gains bracket and reduce NIIT exposure. The trade-off is that you’re acting as lender and taking on default risk.

Stepped-Up Basis at Death

Owners who do not need to sell during their lifetime can achieve the largest reduction of all. Under Section 1014, heirs take the property with a basis equal to fair market value on the date of death, wiping out the unrealized gain entirely.12Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent A vacation home bought for $200,000 and worth $600,000 at death passes to heirs with a $600,000 basis and no capital gains tax on the appreciation. The gain is never recaptured. The obvious trade-off is that you never see the cash, and estate tax may apply to very large estates.

Reporting the Sale

Several forms fit together depending on how the property was used:

The two most common filing errors are miscalculating basis and mishandling the nonqualified-use allocation. Worksheet 3 in Publication 523 walks through the ratio step by step and is worth working through even if you use tax software.15Internal Revenue Service. Publication 523, Selling Your Home

State Tax Adds to the Bill

Most states tax capital gains as ordinary income. Top rates range from 0% in states with no income tax to over 13% in the highest-tax states. A handful of states allow partial deductions or lower rates for long-term gains, but the majority treat the gain the same as wages. Both the state where the vacation home sits and the state where you live can have a claim, and some sellers owe in both. Check your state’s rules before estimating your total tax, because state tax can add five or more percentage points to your effective rate.