Selling a second home triggers federal capital gains tax on the profit, and the tax implications of selling a second home differ sharply from selling your primary residence: there is no automatic exclusion, losses are not deductible, and any period the property was rented brings depreciation recapture into play. If you owned the home longer than a year, expect a federal rate of 0%, 15%, or 20% on the gain, a possible 3.8% surtax, and state income tax on top. The final bill depends heavily on your cost basis, your rental history, and whether you qualify for a conversion, exchange, or inherited-basis strategy.
What Rate Applies to Your Gain
Hold the property for one year or less and the gain is short-term, taxed as ordinary income at federal rates up to 37%.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Hold it longer than a year and you get long-term capital gains rates, which for 2026 are:2Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
- 0% on taxable income up to $49,450 single, $98,900 married filing jointly, $66,200 head of household
- 15% on taxable income above those thresholds up to $545,500 single, $613,700 married filing jointly, $579,600 head of household
- 20% on taxable income above the 15% ceiling
Most second-home sellers land at 15%, because the gain itself pushes total taxable income well past the 0% threshold. Remember that “taxable income” for this purpose includes your wages, retirement distributions, and everything else on your return, not just the sale profit.
The 3.8% Net Investment Income Tax
A 3.8% surtax on net investment income applies if your modified adjusted gross income exceeds $250,000 married filing jointly, $200,000 single, or $125,000 married filing separately.3Internal Revenue Service. Topic No. 559, Net Investment Income Tax These thresholds are not indexed for inflation, so more sellers cross them every year. A married couple earning $200,000 in wages who sells a vacation home for a $300,000 gain would owe the surtax on the full gain, bringing their effective federal rate to 18.8%.
Calculating the Taxable Gain
The gain is not simply your sale price minus what you paid. You start with your adjusted cost basis, and getting that number right is the biggest lever you have for lowering the tax.
What Goes Into Basis
Your starting basis is the purchase price plus the settlement costs the IRS treats as part of acquisition: title insurance, legal fees for the deed and title search, recording fees, transfer taxes, and survey fees.4Internal Revenue Service. Publication 523, Selling Your Home Mortgage-related costs like loan origination fees, points, and the lender’s appraisal do not increase basis.5Internal Revenue Service. Publication 551, Basis of Assets
Capital improvements add to basis; repairs do not. The IRS defines an improvement as something that adds value, extends the property’s useful life, or adapts it to a new use, such as new roofing, a kitchen remodel, a room addition, or a new HVAC system.6Internal Revenue Service. Tangible Property Final Regulations Painting, patching drywall, and fixing a leaky faucet are maintenance and do not count. The line trips people up: replacing a few broken tiles is a repair, while gutting and rebuilding the bathroom is an improvement. If you cannot produce receipts, permits, or contractor invoices, assume the IRS will not let you claim it. Keep a file for every major project from the day you close.
From Sale Price to Taxable Gain
Subtract your selling expenses (real estate commissions, seller-paid transfer taxes, closing legal fees) from the gross sale price to get the net sale price. Subtract the adjusted cost basis from the net sale price. What remains is your taxable capital gain.
You Cannot Deduct a Loss
If you sell your second home for less than your basis, the loss is not deductible. The IRS treats personal-use property losses as nondeductible, and you cannot use the loss to offset other capital gains or reduce your income.7Internal Revenue Service. Publication 544, Sales and Other Dispositions of Assets The only exception is property held purely as an investment, with no personal use, which requires real evidence that you never used the home yourself and held it solely to profit from appreciation. You still have to report the sale either way.
Depreciation Recapture If You Ever Rented It
If the home spent any time as a rental, an extra tax layer waits at closing. Residential rental property must be depreciated over 27.5 years using the straight-line method, and each year of depreciation reduces your basis, enlarging the gain.8Internal Revenue Service. Publication 527, Residential Rental Property At sale, accumulated depreciation is recaptured at a maximum federal rate of 25%, separate from the rest of the capital gain. This unrecaptured Section 1250 gain cannot be sheltered by the Section 121 primary-residence exclusion even if you converted the rental back to personal use before selling.9Office of the Law Revision Counsel. 26 US Code 1250 – Gain From Dispositions of Certain Depreciable Realty
The recapture applies to depreciation “allowed or allowable,” meaning the IRS taxes it whether you actually claimed the deduction or not.8Internal Revenue Service. Publication 527, Residential Rental Property Skipping the deduction on prior returns will not spare you at sale. Track cumulative depreciation carefully, because the number directly increases your taxable gain.
Strategies to Reduce or Defer the Tax
Converting to a Primary Residence
Section 121 lets you exclude up to $250,000 of gain on your main home, or $500,000 for married couples filing jointly, if you owned the home and lived in it as your principal residence for at least two of the five years before sale.10Internal Revenue Service. Topic No. 701, Sale of Your Home The two ownership years and two use years do not have to overlap or run consecutively.11Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Voter registration, driver’s license address, tax return address, and utility bills all help prove where you actually lived.
The strategy sounds cleaner than it usually is, because of the nonqualified use rule. Any use of the property other than as your principal residence after December 31, 2008 counts as “nonqualified use,” and the IRS allocates a share of your gain to that period which cannot be excluded.11Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The nonexcludable share equals total nonqualified use divided by total ownership time.
Say you bought a beach house in 2016, used it as a vacation home for eight years, moved in as your primary residence in 2024, and sold in 2026. You owned it for ten years but lived there as your main home for only two. Eight of ten years count as nonqualified use, so 80% of the gain stays taxable. On a $400,000 gain, only $80,000 would be eligible for exclusion. The math favors situations where the nonqualified stretch is short relative to total ownership. One helpful carve-out: time in the home after your last day of primary residence does not count as nonqualified use.
1031 Like-Kind Exchange
If the second home was held for investment or rental purposes (not personal use), you can defer the entire gain by exchanging into another qualifying property under Section 1031.12Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment A vacation home you use regularly does not qualify.
The deadlines are rigid. You have 45 days from closing on the old property to identify replacement candidates in writing, and 180 days to close on the replacement. Miss either date by a day and the exchange fails, making the full gain taxable that year.12Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment If your return is due before the 180th day, the return deadline controls unless you extend. You cannot touch the proceeds; a qualified intermediary must hold them. Deferral is not forgiveness. When you eventually sell the replacement property without another exchange, the deferred gain comes due.
Inherited Property and Stepped-Up Basis
If you inherited the home instead of buying it, your basis is generally the fair market value on the date the previous owner died.13Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent If your parent bought a lake house in 1985 for $60,000 and it was worth $350,000 at death, your basis is $350,000. Decades of appreciation are wiped clean. Selling shortly after inheriting often produces little or no taxable gain. If you hold and the property appreciates further, only the gain above the date-of-death value is taxed.
Get a formal appraisal as of the date of death even if you do not plan to sell immediately. Without documentation, defending the basis to the IRS years later becomes much harder.
Estimated Tax Payments After the Sale
Federal tax is pay-as-you-go. If the sale creates a gain large enough that your withholding will not cover at least 90% of your total 2026 liability, you need to make an estimated tax payment or face an underpayment penalty.14Internal Revenue Service. 2026 Form 1040-ES Practically, if you expect to owe $1,000 or more after withholding and credits, estimated payments are likely required.
The 2026 quarterly deadlines are April 15, June 15, September 15, and January 15, 2027.14Internal Revenue Service. 2026 Form 1040-ES Close in July and your first estimated payment is due September 15. You can skip the January payment by filing your full return and paying the balance by February 1, 2027.
A safe harbor protects you from the penalty: pay 110% of your prior-year total tax across the four quarters if your prior-year AGI was above $150,000, or 100% of prior-year tax if it was at or below $150,000. You still owe the balance at filing, but no penalty.
State Tax and Nonresident Withholding
Most states tax capital gains as ordinary income at their regular progressive rates, which can add 8% to 13% in higher-tax states. A handful of states have no income tax. If you sell a property in a state where you do not live, the closing agent or buyer is usually required to withhold a percentage of the sale price or estimated gain and remit it to the state tax authority. That withholding is a prepayment, not the final tax. You reconcile it by filing a nonresident return, and any excess comes back as a refund. Rates and mechanics vary widely, so check the specific requirements of the property’s state before closing.
Which Forms to File
- Form 8949 to report each sale, with dates, gross proceeds, and adjusted basis.15Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets
- Schedule D (Form 1040) to total capital gains and losses from Form 8949.
- Form 4797 if the property was rented and you owe depreciation recapture; the recapture goes in Part III under Section 1250.16Internal Revenue Service. Instructions for Form 4797
If you converted the home to a primary residence and qualify for the Section 121 exclusion, report the sale on Form 8949 and Schedule D and note the excluded portion. When the gain is fully excluded but you receive a Form 1099-S from the closing agent, still report the transaction so the IRS can see why no tax is owed.