Selling a second home, such as a vacation cabin, beach condo, or a house you once lived in, can bring a nice profit. But that profit may come with a tax bill. The biggest difference from selling your main home is that a second home usually does not qualify for the home sale tax exclusion. This guide explains how the tax works, what you can do to lower it, and how it fits into your next move.
Why a Second Home Is Taxed Differently
When you sell your primary residence, the IRS lets you exclude up to $250,000 of gain if you’re single, or up to $500,000 if you’re married filing jointly. This is called the Section 121 exclusion. To qualify, you generally must have owned and lived in the home as your main residence for at least two of the five years before the sale.
A second home usually fails that test, because it isn’t where you live most of the time. So most or all of the profit is treated as a taxable capital gain.
How to Figure Your Capital Gain
Your taxable gain is the difference between what you get from the sale and your adjusted cost basis.
- Start with the sale price. Subtract selling costs like real estate commissions, title fees, and transfer taxes. This gives you the amount realized.
- Find your adjusted basis. This is what you paid for the home, plus certain closing costs from the purchase, plus the cost of capital improvements (like a new roof, an addition, or a remodeled kitchen).
- Subtract the basis from the amount realized. The result is your capital gain or loss.
Here’s a hypothetical example:
- Purchase price: $300,000
- Purchase closing costs added to basis: $5,000
- Capital improvements: $45,000
- Adjusted basis: $350,000
- Sale price: $500,000
- Selling costs: $30,000
- Amount realized: $470,000
- Capital gain: $120,000
Normal repairs and upkeep, like painting or fixing a leaky faucet, usually don’t add to your basis. Keep receipts for real improvements, because they can lower your tax bill a lot.
Short-Term vs. Long-Term Gains
How long you owned the home matters a great deal.
- Short-term gain: If you owned the home for one year or less, the gain is taxed at your regular income tax rate.
- Long-term gain: If you owned it for more than one year, the gain is taxed at lower long-term capital gains rates of 0%, 15%, or 20%, depending on your taxable income.
The income ranges for each rate are adjusted every year for inflation, so check the current IRS figures for the tax year of your sale.
The Net Investment Income Tax
Higher earners may also owe the Net Investment Income Tax (NIIT) of 3.8% on the gain. It applies when your modified adjusted gross income is above $200,000 for single filers or $250,000 for married couples filing jointly. These thresholds are set by law and are not adjusted for inflation. The NIIT is added on top of the regular capital gains tax.
If You Rented the Home Out: Depreciation Recapture
Many second homes are rented part of the year. If you rented the property and claimed (or could have claimed) depreciation, that affects your taxes when you sell.
- Depreciation lowers your adjusted basis, which makes your gain larger.
- The part of your gain tied to depreciation is called unrecaptured Section 1250 gain. It’s taxed at a maximum rate of 25%.
- The IRS uses the rule “allowed or allowable.” This means you may owe recapture tax even if you never actually took the depreciation deductions you were entitled to.
What If You Sell at a Loss?
If you used the second home only for personal purposes, a loss on the sale is not deductible. The IRS treats it like a loss on any personal item. If the home was a rental property, a loss may be deductible under different rules. A tax professional can help you sort out which applies.
Can You Turn a Second Home Into Your Primary Residence?
Some owners move into their second home for two years to use the home sale exclusion. This can help, but there’s a catch. For homes with “nonqualified use” after December 31, 2008 (time when it wasn’t your main home), the exclusion is reduced based on how much of your ownership period counted as nonqualified use.
For example, if you owned a vacation home for 8 years, used it as a second home for the first 6, and then lived in it as your main home for 2, only a portion of the gain could be excluded. One helpful exception: time after you move out of a home that was your main residence generally doesn’t count as nonqualified use, as long as you sell within the allowed window. Any depreciation recapture is still taxed either way.
Can You Use a 1031 Exchange?
A 1031 exchange lets you defer capital gains tax by reinvesting proceeds into another investment property. A second home used only for personal enjoyment does not qualify.
However, a vacation home that’s also rented may qualify under an IRS safe harbor if, among other rules:
- You owned it for at least 24 months before the exchange.
- You rented it at fair market rent for at least 14 days in each of those two 12-month periods.
- Your personal use stayed under the greater of 14 days or 10% of the days it was rented each year.
1031 exchanges have strict deadlines and require a qualified intermediary, so plan ahead.
State Taxes Matter Too
Most states tax capital gains as regular income, while a few have no state income tax. If your second home is in a different state than where you live, you may owe tax to the state where the property is located. Some states also require withholding at closing for out-of-state sellers. You may get a credit in your home state for taxes paid elsewhere, but the rules differ by state.
Special Cases: Inherited or Gifted Homes
- Inherited second home: You usually get a stepped-up basis equal to the home’s fair market value on the date of the owner’s death. This can greatly reduce or wipe out the gain.
- Gifted second home: You generally take over the giver’s original basis, which can mean a larger taxable gain.
Ways to Lower Your Tax Bill
- Hold the home more than one year to get long-term rates.
- Track every capital improvement to raise your basis.
- Offset gains with capital losses from stocks or other investments.
- Sell in a lower-income year, such as early retirement, to possibly land in a lower bracket.
- Consider an installment sale, which spreads the gain over several years.
- Look into a 1031 exchange if the home qualifies as a rental.
Reporting the Sale
The closing agent usually reports the sale to the IRS on Form 1099-S. You’ll report your gain or loss on Form 8949 and Schedule D of your federal tax return. Depreciation recapture may also involve Form 4797 if the property was a rental. You may need to make estimated tax payments to avoid underpayment penalties.
Planning Your Next Purchase
Many sellers use their proceeds to buy another home, pay down debt, or invest. If you’re buying again, a mortgage broker can be a big help. Brokers compare loan options from many lenders, including second home and investment property loans, which often have different down payment and credit rules. Some lenders also have stricter requirements, called overlays, than the program minimums. A broker can find lenders that fit your situation and help you time your purchase around your sale.
The Bottom Line
Selling a second home usually means paying capital gains tax, since the primary home exclusion rarely applies. Your bill depends on your gain, how long you owned the home, your income, any rental depreciation, and your state’s rules. Because tax laws are detailed and change over time, talk with a tax professional or CPA before you sell. Good planning can save you thousands of dollars.
Related mortgage answers
Helpful guides
Have a question about your situation?
Ask Morty, our free mortgage assistant, and get an answer for your numbers in plain English.
This answer is general information, not financial, tax or legal advice. Any rates shown are illustrative averages or examples, not a quote, and real rates change daily. Talk with a licensed mortgage professional about your situation.