IRS.com

Paying Taxes When You Sell a House

person
Jacob Dayan

CPA

calendar_todayMarch 11, 2025·syncUpdated March 18, 2025
Paying Taxes When You Sell a House — IRS.com
info

IRS.com is not affiliated with the IRS or U.S. government. This article is for educational purposes only. For official guidance, visit IRS.gov.

Technically, yes. However, the profit on home sale can be tax free if certain conditions are met. In fact, many home sellers will not even be required to report the sale of their home to the IRS, but there are plenty of other technicalities you have to be aware of, which is why this guide will help you sort through those hoops, or at least be aware of them.

Do You Pay Taxes When You Sell a House?

Selling a home ranges from a serious financial transaction to a monumental step in one’s life, depending on who the homeowner is. New homeowners especially tend to ask, Do you pay taxes when you sell a house? The answer depends on several factors, including how much profit you make, how long you owned and lived in the home, and whether it was your primary residence.

While capital gains tax applies to home sales, there are generous exemptions that can help reduce or eliminate your tax liability. This guide will break down everything you need to know about the tax implications of selling a home, including exemptions, deductions, and strategies to minimize taxes.

What is the Capital Gains Tax?

The capital gains tax is applied on the profit made from selling an asset, including real estate; the profit is a capital gain which is taxed, ergo the “capital gains tax”. It’s as simple as that. There are, however, different types of capital gains taxes:

Short-Term vs. Long-Term Capital Gains Tax

• Short-term capital gains: The short-term capital gains tax applies if you owned the home for less than one year, and the profits are taxed at your regular income tax rate.

• Long-term capital gains: On the other hand, the long-term capital gains tax applies if you owned the home for more than one year, with the profits taxed at lower rates: 0%, 15%, or 20%, depending on your income level.

The Capital Gains Exclusion for Homeowners

The IRS provides a tax exemption for homeowners who meet specific qualifications, which can significantly reduce or even eliminate capital gains tax on a home sale.

• Single filers can exclude up to $250,000 in capital gains from taxation.

• Married couples filing jointly can exclude up to $500,000 in capital gains.

There are qualifying criteria you must meet before you can claim this exclusion, however, and they might make the process harder for more than a few people. They are as follows:

• You must have owned the home for at least two out of the last five years.

• You must have used the home as your primary residence for at least two out of the last five years.

• You cannot have claimed this exclusion on another home sale within the past two years.

If you do not meet these criteria, you may owe capital gains tax on the full profit, which could rise up significantly depending on the value of the property.

When Does the Capital Gains Tax Apply in Full for Home Sale?

The bad news is, not everyone qualifies for the capital gains exclusion when selling a home. There are plenty of scenarios where the profits from the sale are fully taxable. Here are the main ones, in which you’d have to pay taxes on the entire gain:

• The home wasn’t your primary residence: If the property wasn’t your main home where you lived most of the time, it doesn’t qualify for the exclusion.

• You bought the property through a 1031 exchange within the last five years: A 1031 exchange allows you to swap investment properties without immediate tax consequences, but if you later sell the home, you won’t be able to use the capital gains exclusion.

• You’re subject to expatriate taxes: If you renounced your U.S. citizenship or residency, you may face additional tax rules that prevent you from claiming the exclusion.

• You didn’t meet the ownership and residency requirements: To qualify, you must have owned and lived in the home as your primary residence for at least two out of the last five years before selling. If you don’t meet this rule, the exclusion generally doesn’t apply—though there are some exceptions.

• You already used the capital gains exclusion on another home sale in the past two years: The IRS only lets you claim this benefit once every two years, so if you’ve recently sold another home and used the exclusion, you’ll have to pay capital gains taxes on your next sale.

These rules can make a big difference in how much tax you owe, so it’s important to know where you stand get well acquainted with them before selling your home

Reducing Your Taxable Gains

Certain expenses can be added to your home’s cost basis, reducing taxable capital gains. These include:

• Renovations (kitchen remodels, bathroom upgrades, etc.)

• Home additions (extra bedrooms, garages, etc.)

• Energy-efficient upgrades (solar panels, new HVAC systems, etc.)

• Landscaping and major exterior improvements

Always keep receipts and records of these expenses to help lower your taxable profit.

Tax Considerations for Investment Properties and Second Homes

If the home you are selling is not your primary residence, different tax rules apply:

• No capital gains exclusion: Investment properties and second homes do not qualify for the $250,000/$500,000 exemption.

• Depreciation recapture: If you claimed depreciation on a rental property, you may owe additional taxes when selling.

• 1031 Exchange option: Investors may defer capital gains taxes by reinvesting proceeds into another property using a 1031 exchange.

The Final Word on the Capital Gains Tax for Real Estate…

So, after a whole article’s worth of information, do you pay taxes when you sell a house? Our final answer is… It varies! There are many factors that could swing the whole situation either way, like ownership duration, residence status, and profit amount.

The thing is, even capital gains tax applies, many homeowners can benefit from exclusions that significantly reduce or eliminate their tax liability. Understanding these tax rules, keeping records of home improvements, and consulting a tax professional can help you make informed financial decisions when selling a home.

Do You Pay Taxes When You Sell a House: FAQ

1. Do I have to pay taxes when selling my house even if I don’t make a profit?

No, the capital gains tax applies only if you sell your home for more than its original purchase price. Essentially, if there are no capital gains, there’s no tax.

2. How do I know if I qualify for the capital gains exclusion?

You qualify if you have owned and lived in the home for at least two of the last five years and have not used the exclusion on another home in the past two years. If you meet these requirements, then you’ll probably be eligible to exclude up to $250,000 (for single filers) or $500,000 (for married couples filing jointly) of the profits from taxation.

3. What happens if I sell my house before living in it for two years?

That might complicate things a bit. For starters, if you sell before meeting the two-year residency requirement, you may owe capital gains tax. However, you may be eligible for partial exemptions for certain life events, like job relocation or medical reasons. Not quite the same, but it’s better than nothing.

4. Can I deduct closing costs when calculating my taxable gain?

Certain closing costs, such as real estate agent commissions and title fees, can be deducted from your total profit, reducing your taxable gain.

5. Do I have to report the sale of my home to the IRS?

If your profit is within the capital gains exclusion limits ($250,000/$500,000), you generally do not need to report it. If it exceeds those limits, you must report it on your tax return.

6. How can I lower my capital gains tax when selling my home?

You can reduce your tax liability by meeting the ownership and residency requirements, increasing your cost basis with home improvements, and considering tax-deferred investment strategies like a 1031 exchange (if applicable).

Advertisement

Frequently Asked Questions

How much profit from a home sale can be excluded from capital gains tax?

Single filers can exclude up to $250,000 in capital gains from taxation, while married couples filing jointly can exclude up to $500,000. To qualify for this exclusion, you must have owned the home and used it as your primary residence for at least two out of the last five years before selling. You also cannot have claimed this same exclusion on another home sale within the past two years.

What is the difference between short-term and long-term capital gains tax on a home sale?

Short-term capital gains tax applies when you owned the home for less than one year, and the profits are taxed at your regular income tax rate. Long-term capital gains tax applies when you owned the home for more than one year, with profits taxed at preferential rates of 0%, 15%, or 20% depending on your income level. Holding a property for at least one year before selling can therefore result in significantly lower tax rates on any profit.

What situations would disqualify a homeowner from claiming the capital gains exclusion?

Several scenarios can disqualify you from the capital gains exclusion, including selling a property that was not your primary residence, having acquired the property through a 1031 exchange within the last five years, or having already claimed the exclusion on another home sale within the past two years. Expatriates who have renounced their U.S. citizenship or residency may also face additional restrictions that prevent them from claiming the exclusion. In any of these cases, the full profit from the sale may be subject to capital gains tax.

Can home improvement costs reduce the amount of capital gains tax owed when selling a house?

Yes, certain expenses can be added to your home's cost basis, which directly reduces your taxable capital gains. Qualifying costs include renovations such as kitchen and bathroom remodels, home additions like extra bedrooms or garages, energy-efficient upgrades such as solar panels or new HVAC systems, and major landscaping or exterior improvements. Keeping thorough receipts and records of these expenses is essential to properly document and lower your taxable profit.

Are investment properties and second homes eligible for the capital gains exclusion?

Investment properties and second homes do not qualify for the $250,000 or $500,000 capital gains exclusion, meaning any profit from their sale is generally fully taxable. Additionally, if depreciation was claimed on a rental property, a depreciation recapture tax may also be owed upon selling. However, investors may have the option to defer capital gains taxes by reinvesting the sale proceeds into another qualifying property through a 1031 exchange.

About the Author

JA
Jacob Dayan

CPA

Jacob Dayan is a tax professional at IRS.com with expertise in U.S. federal and state tax law. Their articles are written to help taxpayers understand complex tax topics in plain English.

Keep Reading

Related Capital Gains Tax Articles

Advertisement