Taxes on Selling a House: Will You Owe Capital Gains?

Learn when you owe capital gains tax on a home sale, key exemptions, and how to reduce your tax bill when selling your house.

⬇️ Prefer to listen instead? ⬇️


  • 💰 Homeowners can exclude up to $500,000 in gains from capital gains tax when selling a primary residence.
  • ⚖️ Properties held for over one year qualify for reduced long-term capital gains tax rates between 0% and 20%.
  • 🛠️ Home improvements and selling costs can increase your home’s basis and reduce taxable gains.
  • 🏘️ Rental and investment properties do not qualify for exclusions and are subject to depreciation recapture at 25%.
  • 🧾 Receiving IRS Form 1099-S signals you must report your home sale, even if exclusions eliminate taxes owed.

If you’re getting ready to sell your home, the last thing you want is a surprise bill from the IRS. When you profit from a home sale, you could owe capital gains tax. But depending on your situation, you might get rid of or cut your tax bill entirely. This guide explains when capital gains taxes apply to selling a house. It also shows how exclusions work, and what you can do to get the most money after closing.

modern home exterior in bright daylight

Understanding Capital Gains Tax on Home Sales

When you sell a home for more than you paid for it, that extra money is a capital gain. The IRS taxes these profits. But it only taxes the amount you gained, not the total sale price. For example, if you bought a house for $300,000 and sell it for $500,000, you are only taxed on the $200,000 gain after figuring in adjustments.

Short-Term vs. Long-Term Capital Gains

Capital gains taxes come in two types. The rate you pay depends on how long you owned the property:

  • Short-term capital gains: You get these if you owned the home for less than one year. These profits count as regular income. The tax rate can be up to 37%, depending on how much you earn.
  • Long-term capital gains: You get these if you owned the home for more than one year. These have much lower tax rates: 0%, 15%, or 20%. It depends on your income.

Here’s an overview of long-term capital gains tax brackets for 2025:

Filing Status Income Threshold Long-Term Capital Gains Tax Rate
Single Up to $44,625 0%
$44,626 – $492,300 15%
Over $492,300 20%
Married Filing Jointly Up to $89,250 0%
$89,251 – $553,850 15%
Over $553,850 20%

(Source: IRS, 2024)

Knowing if your gains are short- or long-term is an early step to guess how much tax you might owe on your home sale.

happy couple standing in front of house

Capital Gains Tax Exemption Rules

Homeowners get a big tax benefit called the home sale tax exclusion. With this rule, homeowners can keep out of tax up to:

  • $250,000 in gains for single tax filers
  • $500,000 in gains for couples filing jointly

This rule applies to your main home. It does not apply to investment or rental properties.

To qualify for the exclusion, you must meet three main rules:

  1. Ownership: You owned the home for at least 2 of the past 5 years.
  2. Use: You lived in the home as your main residence for at least 2 of the past 5 years.
  3. Frequency: You have not claimed this exclusion for another home in the past 2 years.

How Capital Gains Tax Exclusion Works: Example

Let’s say you’re a single filer:

  • Purchased your home for $300,000
  • Invested $50,000 in major upgrades (kitchen remodel, roof replacement)
  • Adjusted basis becomes $350,000
  • Sold the home for $600,000
  • Gain = $600,000 – $350,000 = $250,000
  • As a single filer, your capital gains exclusion lets you avoid tax on the full $250,000 gain.

Result: You owe $0 in capital gains tax.

(Source: IRS Publication 523)

construction worker installing new roof on house

What Qualifies as Your Tax Basis?

Knowing your tax basis is key to figuring out your capital gain. Your basis is not just what you paid for the home. It also includes certain improvements and selling costs.

Components of Your Adjusted Basis

  • Original purchase price: The amount you paid when you bought your house
  • Capital improvements: Money spent that makes the home better or more useful, such as:
    • Room additions
    • Adding new systems or changing the yard
    • New roof or upgraded windows
    • Putting in HVAC systems or energy-efficient appliances
  • Closing costs and fees: Some fees you paid when you bought the house, like certain closing costs
  • Selling costs: Real estate agent commissions, legal fees, escrow and title fees, and marketing expenses

Routine upkeep or small cosmetic fixes, like painting or patching walls, do not add to your basis. Only costs that really add to the home’s value or make it last longer count.

Keep good records of all improvements. This is important. The more you can legally add to your basis, the less gain you will pay tax on.

military family with moving boxes in front yard

Special Cases: Divorce, Death, and Military Exceptions

Not all home sales are the same. Here is how capital gains rules change in big life events:

Divorce

If a property goes from one spouse to another because of a divorce, it does not create a tax event. The spouse who gets the home also takes on the full original basis of the home. So, any future capital gains start from that original cost.

Inheritance

Homes you get after a death get a “stepped-up basis.” This means the home’s value on the date of death becomes the new basis. If you sell the house soon after you get it, you might owe very little or no tax.

Military Extensions

Active-duty military members have special rules. If they are stationed more than 50 miles from their main home, they can make the 2-year living rule last for 10 years. This gives them more time to use the exclusion.

Partial Exclusions for Unexpected Events

Even if you do not meet the full ownership and use tests, you might get a partial exclusion in certain cases. These include:

  • Moving for a job (over 50 miles away)
  • Divorce or legal separation
  • Moving for health reasons
  • Death of a co-owner
  • Natural disasters or other unexpected problems

With these exceptions, you can get part of the full exclusion based on how long you lived in the home.

(Source: IRS Publication 523)

apartment building under blue sky

Taxes on Rental Properties and Second Homes

The rules are not as good if the property you sell was not your main home.

Non-Primary Residence Rules

If you sell a vacation home, rental unit, or investment property, you cannot claim the $250,000/$500,000 exclusion. You must pay capital gains tax on all profits.

Depreciation Recapture

If the property was a rental and you claimed yearly depreciation deductions, the IRS wants you to pay back those deductions (called recapture) when you sell. This is taxed at a specific rate of 25%.

Rental Conversion Example:

  • Bought rental for $250,000
  • Claimed $50,000 in depreciation over the years
  • Sold it for $400,000
  • Reportable gain: $150,000, taxed at long-term capital gains rates
  • Depreciation recapture: $50,000 taxed at 25%, or $12,500 owed

Even if you later made the property your main home, you will need special math to find out what part of the value can get the exclusion.

State Taxes on Home Sales

Federal tax rules apply everywhere. But each state has its own way to tax capital gains.

States with No Capital Gains Taxes

If you are selling a home in one of the following states, you are in luck. They do not charge state income or capital gains taxes right now:

  • Florida
  • Texas
  • Nevada
  • South Dakota
  • Washington

States with High Capital Gains Taxes

But some states have high tax rates that can take a lot of your profit:

  • California: Up to 13.3%
  • New York: Up to 10.9%
  • Oregon, New Jersey: These are also among the states with the highest taxes.

Check with your state’s Department of Revenue or a tax professional to learn about local tax laws.

financial planner with calculator at kitchen table

How to Reduce Capital Gains Tax When Selling a House

Capital gains taxes can be high. But with smart planning, you can greatly lower or even get rid of what you owe.

  • Meet the 2-out-of-5-year rule to get the full exclusion
  • Keep records of all capital improvements and closing costs to increase your basis
  • Use losses to offset gains: Sell investments that are not doing well to cancel out taxable profits
  • Put off taxable gains through a 1031 Exchange: Trade one investment property for another to delay paying taxes
  • Sell during a low-income year: This can put you in a lower capital gains tax bracket
  • Turn rentals into a main home: Live in a rental long enough to qualify for part of the home sale exclusion (ask a tax specialist about how long to live there and if you can qualify)

Talking to a CPA or real estate tax advisor before selling an expensive property is smart. They can help you make the best plan.

desktop computer showing calculator app

Capital Gains Calculator Example

Want to see how much you might owe? Here is an example:

Line Item Amount
Sales Price $600,000
Purchase Price $350,000
Major Improvements $30,000
Agent Commissions (6%) $36,000
Adjusted Basis $416,000
Net Gain $184,000
Exclusion (Single Filer – $250,000) $250,000
Capital Gains Tax Due $0

irs tax forms on home office desk

How to Report Your Home Sale to the IRS

Even if your gain is excluded, in some cases, you still need to report the sale.

When Reporting Is Required

  • You receive Form 1099-S, which your title company or closing agent usually sends
  • You do not qualify for the full exclusion
  • You have depreciation recapture to report from a rental
  • You want to claim a partial exclusion because you moved for a job or for health reasons

Required IRS Forms

  • Form 8949 – Shows details about selling capital assets
  • Schedule D (Form 1040) – Shows a summary of capital gains and losses

Documentation to Keep

  • Closing Disclosure or HUD-1 Statement
  • 1099-S (if received)
  • Receipts for home improvements that count
  • Property tax records showing home value

(Source: IRS Instructions for Schedule D)

calendar with house keys and pen

Timing Matters: How to Avoid a Tax Bill and Get More Money

Good timing can mean extra money in your wallet:

  • Own and live in the home for at least 2 years to qualify for the exclusion
  • Sell after a dip in your income to drop into a lower capital gains bracket
  • Avoid short-term gains: Wait until you have owned the house for over a year
  • List during a high-demand season (spring and early summer) to get the best sale price and sell faster (fewer days on market)
  • Put off the sale to the next calendar year, which might cancel out other income or losses

Simply put, smart timing helps you keep more money when you close.

real estate agent passing house keys

Our 1% Listing Commission Helps You Save

Even when you plan for tax savings, do not forget about another big cost: real estate commissions. Regular agents charge up to 6% in fees. This can greatly cut the money you take home.

Sell with our team and pay only 1%. You save thousands and you get:

  • A full-service licensed agent
  • Professional marketing materials and photos
  • Contract talks and document handling
  • Net sheet analysis that shows how taxes and fees might affect you

young couple reviewing home purchase paperwork

How Buyers Save, Too: Rebates Where Allowed and Lender-Approved

Buying a home after selling? We help you save when you buy and sell. In states where allowed, we give back part of the buyer’s agent commission. This often means thousands of dollars back to you.

Example Buyer Savings

Buy a $500,000 home = up to $7,500 in agent rebate
Combine that with a lower capital gains tax bill and reduced listing fees. This helps you get the most profit from your sale and gives you more buying power.


Do not give more to the IRS—or to your agent—than you need to. By knowing if you qualify, planning smart, and working with the right people, you can keep more of the money you earned from your home.


Citations

Internal Revenue Service. (2024). Topic No. 701 Sale of your home. Retrieved from https://www.irs.gov/taxtopics/tc701
Internal Revenue Service. (2024). Instructions for Schedule D. Retrieved from https://www.irs.gov/instructions/i1040sd
Internal Revenue Service. (2024). Publication 523: Selling Your Home. Retrieved from https://www.irs.gov/pub/irs-pdf/p523.pdf
National Association of Realtors. (2024). 1031 Like-Kind Exchanges & Real Estate Investment Guidance.

Want to listen to more episodes?

Previous Article

Pocket Listing: Is It Fair or Just Smart Selling?

Next Article

Terminate Listing Agreement: Can You Cancel a Realtor?

Stay Informed

Subscribe to our email newsletter to get the latest real estate tips and tricks.
All inspiration, zero spam ✨