ListorWait
← Back to Learn

Housing Market Guide

Capital Gains Tax on Selling Your Home: What Actually Applies to You

July 6, 2026

Capital Gains Tax on Selling Your Home: What Actually Applies to You

Many homeowners selling a primary residence will not owe federal capital gains tax, because the IRS allows eligible sellers to exclude up to $250,000 of capital gains if filing individually, or up to $500,000 if married filing jointly. Whether a seller qualifies depends on factors such as how long the home was owned and lived in, filing status, and individual tax circumstances.

That is the short answer.

The longer answer is that capital gains tax is one of the most misunderstood parts of selling a home. Many homeowners assume they will owe taxes simply because their home increased in value. In reality, the rules are more nuanced, and many sellers qualify for an exclusion that significantly reduces or eliminates federal capital gains tax.

See how your market's current conditions compare nationally with a free List or Wait Score before working through the tax details below.

What Is Capital Gains Tax?

Capital gains tax is a tax on the profit made when selling an asset for more than its original purchase price.

For a home sale, the taxable gain is generally calculated by subtracting the adjusted cost basis from the selling price, then accounting for eligible selling expenses and any applicable exclusions.

The important point is that the gain is not simply the difference between the purchase price and the sale price.

Several factors can increase a home's cost basis and reduce the taxable gain.

Who Qualifies for the Home Sale Exclusion?

Under current federal tax law, many homeowners may qualify to exclude:

  • Up to $250,000 of capital gains if filing as an individual.
  • Up to $500,000 if married filing jointly.

To generally qualify, a seller must meet both of these tests:

  • Ownership test: The home was owned for at least two of the five years before the sale.
  • Use test: The home was the seller's primary residence for at least two of those five years.

Those two years do not necessarily have to be continuous.

There are also additional rules regarding prior home sale exclusions, certain life events, military service, and other special circumstances.

Because individual situations vary, reviewing the current IRS guidance or speaking with a qualified tax professional is recommended before making decisions based on expected tax liability.

An Example

Suppose a homeowner purchased their home for $300,000 several years ago.

The home later sells for $600,000.

At first glance, it appears the seller made a $300,000 profit.

However, assume the seller also:

  • Spent $40,000 on qualifying permanent improvements.
  • Paid $30,000 in eligible selling expenses.

The adjusted gain may be substantially lower than the simple difference between the purchase and sale prices.

If the seller also qualifies for the IRS home sale exclusion, they may owe little or no federal capital gains tax on the sale.

Every homeowner's situation is different, which is why estimating taxes based solely on appreciation can be misleading.

What Counts Toward Cost Basis?

A home's cost basis generally starts with what the owner originally paid for the property.

It may also include certain qualifying costs such as:

  • Major home additions
  • Kitchen remodels
  • Roof replacement
  • Room additions
  • HVAC replacement
  • Permanent landscaping
  • Certain closing costs paid when purchasing the home

Routine maintenance generally does not increase cost basis.

For example, painting a bedroom, replacing worn carpet, repairing a leaky faucet, or servicing an HVAC system typically counts as maintenance rather than a capital improvement.

Keeping records of qualifying improvements over the years can make calculating adjusted basis much easier at the time of sale.

What If This Is Not a Primary Residence?

The rules can be very different when selling:

  • A rental property
  • A vacation home
  • An inherited property
  • A second home
  • Property held through a business

These situations often involve additional tax considerations, including depreciation recapture, different exclusion rules, or unique basis calculations.

Because these transactions can become more complex, professional tax advice is often worthwhile.

Do State Taxes Apply?

Possibly.

While the IRS establishes federal capital gains rules, many states have their own tax laws.

Some states tax capital gains differently than others, and some have no state income tax at all.

Total tax obligation may depend on both federal and state law, making location another important factor to consider.

What Records Should Be Kept?

Good recordkeeping can make the selling process much smoother.

Consider maintaining copies of:

  • Original purchase documents
  • Settlement statements
  • Receipts for qualifying home improvements
  • Contractor invoices
  • Building permits, if applicable
  • Records of major renovations

These documents can help support an adjusted cost basis if questions arise later.

Common Misconceptions

"I will automatically owe taxes because my home doubled in value."

Not necessarily. Many homeowners qualify for the federal exclusion, and qualifying improvements and selling expenses may also reduce taxable gains.

"Every renovation reduces my taxes."

Only certain permanent capital improvements generally increase cost basis. Routine maintenance usually does not.

"The IRS taxes my entire sale price."

Capital gains tax generally applies to eligible gains, not the full amount a home sells for.

"Everyone has the same tax situation."

No. Filing status, ownership history, residency, improvements, previous home sales, and state tax laws can all affect the outcome.

Reality Check

Tax considerations are only one part of the decision to sell. Even when little or no capital gains tax is expected, sellers should still evaluate selling costs, remaining mortgage balance, current mortgage rates if buying another home, moving expenses, and broader financial goals. A lower tax bill does not automatically mean selling is the right decision.

The Bottom Line

For many homeowners, capital gains tax is less burdensome than expected because the federal home sale exclusion can eliminate some or all of the taxable gain. However, eligibility depends on individual circumstances, and calculating adjusted gain often involves more than simply comparing purchase price to sale price.

Before selling a home, it is worth reviewing the latest IRS guidance, organizing records of major improvements, and discussing the situation with a qualified tax professional if questions remain about potential tax liability.

Housing data can provide useful context, but national trends do not necessarily reflect conditions in any single neighborhood. Real estate markets are highly local, and factors such as inventory levels, buyer demand, and pricing trends can vary significantly from one community to another. Before making decisions about selling a home, consider speaking with a local real estate agent who understands current market conditions in your area.

For accuracy: Tax laws can change over time. This article is intended for general educational purposes and should not be considered tax or legal advice. Refer to the latest IRS guidance, including IRS Publication 523 ("Selling Your Home"), or consult a qualified tax professional regarding specific circumstances.

Check your market's List or Wait Score

Enter your address to get a free, data-driven signal on whether current market conditions favor listing your home now or waiting.

No account needed. Always free.

Related articles