Tax Education

How Is Capital Gains Tax Calculated When Selling a Second Home?

Owning a second home can be a wonderful investment, but when it's time to sell, it's important to understand the tax implications. A second home can look similar to a primary residence from a property owner's perspective, but the tax treatment can be different when the property is sold.

This article explains how capital gains tax is calculated when selling a second home, what factors can affect the calculation, and why the tax treatment can differ from selling a primary residence.

⚑ Quick Answer

A second-home sale can produce a capital gain. A simplified calculation is:

Amount Realized βˆ’ Adjusted Basis = Estimated Capital Gain

Amount Realized can involve relevant selling expenses.

Adjusted Basis can include applicable improvements and other adjustments.

Important: Capital gain is not automatically the same as the final tax owed. The home-sale exclusion generally does not apply to second homes in the same way it applies to primary residences.

Is Selling a Second Home Taxable?

Selling a second home can create a taxable gain. Unlike a primary residence, the federal home-sale exclusion is generally tied to a qualifying main home and should not simply be assumed to apply to a second home.

Key distinction: A second home is not your primary residence. The tax rules for second homes are different from those for primary homes. While the gain from a second home sale may be taxable, the actual tax outcome depends on individual circumstances and applicable rules.

Before estimating the tax, calculate the gain using the property's adjusted basis and relevant selling expenses.

How Is Capital Gain on a Second Home Calculated?

The capital gain from selling a second home is calculated using a similar formula to other property sales:

Amount Realized βˆ’ Adjusted Basis = Estimated Capital Gain
Amount Realized = Sale Price βˆ’ Selling Expenses
Adjusted Basis = Purchase Price + Improvements + Other Adjustments βˆ’ Depreciation

What Is the Second Home's Cost Basis?

Your cost basis is generally the amount you paid for the second home, plus certain acquisition costs. Common components include:

Not every purchase-related expense automatically increases your basis. Consult applicable tax guidance for specific details.

What Is Adjusted Basis?

Your adjusted basis can differ from your original purchase price. It reflects adjustments made to your basis over time, including increases for improvements and decreases for depreciation.

Adjusted Basis = Original Basis + Improvements + Adjustments βˆ’ Depreciation

Understanding your adjusted basis is important because it directly affects your gain. A higher adjusted basis means a lower gain, which can reduce your potential tax liability.

Do Improvements Affect the Gain?

Yes. Qualifying capital improvements can increase your adjusted basis, which reduces your gain. Examples of improvements that may qualify include:

Ordinary repairs and maintenance generally do not increase basis. For more details, see our article on How Do Home Improvements Affect Capital Gains Tax?

Do Selling Expenses Reduce the Gain?

Yes. Certain selling expenses can reduce the amount realized from the sale, which reduces your gain. Common selling expenses include:

Not every closing expense automatically reduces gain. The tax treatment depends on the nature of the expense and applicable rules. For more details, see our article on What Selling Expenses Reduce Capital Gains on a House?

Does the Primary-Home Exclusion Apply to a Second Home?

Generally, no. The federal home-sale exclusion has specific eligibility requirements associated with a qualifying main home. A second home generally does not qualify for the same exclusion as a primary residence.

Important: Converting a second home into a primary residence can create additional considerations and should not be presented as an automatic tax strategy. Eligibility depends on meeting specific ownership and use requirements.

For more information on the home-sale exclusion, see our article on How Does the Home Sale Capital Gains Exclusion Work?

What If the Second Home Was Rented?

If the second home was rented for part of the time, additional tax considerations can arise. Rental use can introduce:

For rental property-specific calculations, see our Capital Gains on Sale of Rental Property Calculator.

Holding Period and Capital Gains

The length of time you hold the second home can affect whether the gain is treated as short-term or long-term for federal tax purposes:

The applicable tax rate depends on your filing status, taxable income, and other factors. This article does not provide personalized tax rate advice.

Worked Example

Let's walk through an example to see how capital gain on a second home is calculated.

πŸ“Š Example: Selling a Second Home

Scenario: You purchased a second home for $250,000, made $40,000 in qualifying improvements, and sell for $420,000 with $15,000 in selling expenses.

Step 1: Calculate Amount Realized
Sale Price$420,000
βˆ’ Selling Expenses-$15,000
Amount Realized$405,000
Step 2: Calculate Adjusted Basis
Purchase Price$250,000
+ Improvements+$40,000
Adjusted Basis$290,000
Step 3: Calculate Estimated Capital Gain
Amount Realized$405,000
βˆ’ Adjusted Basis-$290,000
Estimated Capital Gain$115,000
πŸ’‘ What this means: The estimated gain is $115,000. This is NOT automatically the final taxable amount or tax bill. Since the home-sale exclusion generally does not apply to second homes, the gain may be taxable subject to applicable rates and rules.

Federal vs State Tax

Federal capital-gain rules and state tax rules may differ. State tax treatment varies widely:

Do not assume every state follows federal treatment. Check your state's current rules or consult a qualified professional.

Records to Keep

Keep these records to support your second-home sale calculation:

Common Mistakes

Here are some common mistakes to avoid when estimating tax on a second-home sale:

How to Estimate Your Second-Home Gain

Before estimating tax on a second-home sale, use this checklist:

For a quick estimate, try our Selling Second Home Tax Calculator.

Selling Second Home Tax Calculator
Estimate gain, tax, and net proceeds when selling a second home.
Try Calculator β†’

You may also find these related calculators helpful:

Frequently Asked Questions

Yes, generally. Selling a second home can create a taxable gain. Unlike a primary residence, the home-sale exclusion generally does not apply to second homes in the same way.

Calculate as: Amount Realized βˆ’ Adjusted Basis = Capital Gain. Amount Realized = Sale Price βˆ’ Selling Expenses. Adjusted Basis = Purchase Price + Improvements + Other Adjustments βˆ’ Depreciation.

Generally, no. The home-sale exclusion is for your primary residence. Second homes generally do not qualify for the exclusion, although there are limited exceptions.

Yes. Qualifying capital improvements increase your adjusted basis, which reduces your gain. This is why it's important to keep improvement records.

Yes. Selling expenses such as commissions and closing costs reduce your amount realized, which reduces your capital gain.

If the second home was rented, depreciation claimed during rental periods reduces your adjusted basis. Depreciation recapture may also apply when you sell.

Yes. Depreciation reduces your adjusted basis, which increases your gain. Depreciation recapture may also apply. The amount depends on your specific circumstances.

Yes. If you held the property for more than one year, the gain may be taxed at long-term capital gains rates. If held one year or less, it may be taxed as ordinary income.

No. Capital gain is the profit from the sale. Capital gains tax is the tax you may owe on that gain. The actual tax depends on your filing status, income, and applicable rates.

Yes, in many states. State tax treatment varies widely. Some states have no capital gains tax, while others tax it as ordinary income. Check your state's rules.

Keep: purchase documents, closing statements, improvement receipts, selling expenses, commission records, rental records, depreciation records, and relevant tax returns.

Yes. Our Selling Second Home Tax Calculator can help you estimate gain, tax, and net proceeds based on the information you provide. However, calculators provide estimatesβ€”not official tax determinations.

SB
Written by Shabnam Bano
Last Updated: August 14, 2026
Tax Year: 2026
Disclaimer: This article is for educational and informational purposes only and is not tax, legal or financial advice. Tax treatment depends on individual circumstances, applicable federal and state rules, and current tax law. Consider consulting a qualified tax professional for advice about your specific situation.

Read full disclaimer β†’