Back to News

Understanding the Tax Consequences of Selling Your Home

August 27, 2026

Share:

Selling your home can be exciting, but before you close the deal, it’s important to understand the potential tax consequences. Many homeowners qualify for a valuable tax exclusion that can eliminate some, or even all, of the federal income tax on the sale of a primary residence.

Knowing how your taxable gain is calculated can help you avoid surprises and make more informed financial decisions.

 

How Is Gain Calculated When You Sell Your Home?

The taxable gain from selling your home is generally calculated using the following formula:

 

Sales Price – Selling Expenses – Adjusted Basis = Gain

Sales Price

This is the amount you receive from selling the property.

 

Selling Expenses

Selling expenses can reduce your taxable gain and may include:

  • Real estate commissions
  • Certain closing costs
  • Legal fees
  • Other qualifying costs directly related to the sale

 

Adjusted Basis

Your adjusted basis generally represents your investment in the home. It starts with your original purchase price and increases by the cost of qualifying capital improvements, including:

  • Room additions
  • Kitchen or bathroom remodels
  • New roofs
  • HVAC replacements
  • Major renovations

Routine maintenance and repairs generally do not increase your basis.

 

What If You Inherited the Home?

Inherited property is typically treated differently. In most cases, the home’s basis is “stepped up” to its fair market value on the owner’s date of death. This step-up in basis can significantly reduce the taxable gain when the property is later sold.

 

Can You Avoid Paying Tax on the Sale of Your Home?

Many homeowners qualify for the home sale gain exclusion.

If you meet the IRS requirements, you may exclude:

  • Up to $250,000 of gain if you’re single
  • Up to $500,000 of gain if you’re married filing jointly

 

Who Qualifies?

To qualify, you generally must satisfy both the:

  • Ownership Test: You owned the home for at least two of the five years before the sale.
  • Use Test: You lived in the home as your primary residence for at least two of the five years before the sale.

The two years do not have to be continuous.

If you meet these requirements, some, or even all, of your gain may be excluded from federal taxable income.

 

What Happens If Your Gain Exceeds the Exclusion?

If your gain is greater than the available exclusion amount, the excess is generally taxed as a long-term capital gain.

Depending on your overall income, you may also owe the Net Investment Income Tax (NIIT).

 

Example: Calculating the Taxable Gain on a Home Sale

Joe and Jane Doe purchased their home in 2010 for $400,000. They have lived in it as their primary residence ever since and invested $150,000 in qualifying improvements over the years.

In 2025, they sell the home for $1,200,000 and pay $100,000 in selling expenses.

Step 1: Calculate Adjusted Basis

  • Purchase Price: $400,000
  • Plus Capital Improvements: $150,000
  • Adjusted Basis = $550,000

Step 2: Calculate Realized Gain

  • Sales Price: $1,200,000
  • Less Selling Expenses: ($100,000)
  • Less Adjusted Basis: ($550,000)
  • Realized Gain = $550,000

Step 3: Apply the Home Sale Exclusion

  • Realized Gain: $550,000
  • Less Married Filing Jointly Exclusion: ($500,000)
  • Taxable Gain = $50,000

In this example, only $50,000 would be subject to long-term capital gains tax rates and potentially the Net Investment Income Tax.

 

Frequently Asked Questions

Do I have to pay taxes if I sell my primary residence?

Not necessarily. Many homeowners qualify to exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain if they meet the IRS ownership and use requirements.

Do home improvements reduce capital gains tax?

Yes. Qualifying capital improvements increase your adjusted basis, which can reduce your taxable gain when you sell your home.

Are repairs considered capital improvements?

Generally, no. Routine maintenance and repairs typically do not increase your basis, while improvements that add value, prolong the home’s life, or adapt it to a new use generally do.

Is an inherited home taxed differently?

Often, yes. Inherited property generally receives a step-up in basis to its fair market value on the date of the owner’s death, which may reduce taxable gain when sold.

 

Planning Ahead Can Help Reduce Taxes

Every home sale is unique. Factors such as prior home use, inherited property, partial business use, divorce, or periods of rental use can all affect the tax treatment of your sale.

Before selling your home, it’s worth reviewing your situation with a tax advisor to understand your potential tax liability and identify opportunities to minimize it.

If you’re planning to sell your home or have questions about the tax consequences, contact your Wilkins Miller advisor. We’re here to help you evaluate your options and make informed decisions before closing.