Credential Index

Education and certification signals, decoded.

12

Capital Gains Tax on Home Sales: How Taxes on Real Estate Work in 2026

Back to libraryUnknown authorApr 1, 2026
Capital Gains Tax on Home Sales: How Taxes on Real Estate Work in 2026

You’re our first priority.
Every time.

We believe everyone should be able to make financial decisions with confidence. While we don’t cover every company or financial product on the market, we work hard to share a wide range of offers and objective editorial perspectives.

So how do we make money? Our partners compensate us for advertisements that appear on our site. This compensation helps us provide tools and services - like free credit score access and monitoring. With the exception of mortgage, home equity and other home-lending products or services, partner compensation is one of several factors that may affect which products we highlight and where they appear on our site. Other factors include your credit profile, product availability and proprietary website methodologies.

However, these factors do not influence our editors’ opinions or ratings, which are based on independent research and analysis. Our partners cannot pay us to guarantee favorable reviews. Here is a list of our partners.

do not influence our editors’ opinions or ratings

Capital Gains Tax on Home Sales: How Taxes on Real Estate Work in 2026

Home sales can be subject to capital gains taxes, but there are ways to limit or avoid a big tax bill.

Many, or all, of the products featured on this page are from our advertising partners who compensate us when you take certain actions on our website or click to take an action on their website. However, this does not influence our evaluations. Our opinions are our own. Here is a list of our partners and here's how we make money.

Updated · 5 min read

How is this page expert verified?

NerdWallet's content is fact-checked for accuracy, timeliness and relevance. It undergoes a thorough review process involving writers and editors to ensure the information is as clear and complete as possible.

More on our editorial rigor

Editor & Content Strategist

23 years of experience Expertise Taxes Small business Social Security and estate planning Home services RIA

Tina Orem is an editor and content strategist at NerdWallet. Prior to becoming an editor and content strategist, she covered small business and taxes at NerdWallet. She has a degree in finance, as well as a master's degree in journalism and an MBA. Previously, she was a financial analyst and director of finance at public and private companies. Tina's work has appeared in a variety of local and national media outlets.

Tina Orem is an editor and content strategist at NerdWallet. Prior to becoming an editor and content strategist, she covered small business and taxes at NerdWallet. She has a degree in finance, as well as a master's degree in journalism and an MBA. Previously, she was a financial analyst and director of finance at public and private companies. Tina's work has appeared in a variety of local and national media outlets.

Published in Editor & Content Strategist + more + more

Professor of accounting

Lei Han, Ph.D., is an associate professor of accounting at Niagara University in Western New York and a New York state-licensed CPA. She obtained her Ph.D. in accounting with a minor in finance from the University of Texas at Arlington. Her teaching expertise is advanced accounting and governmental and nonprofit accounting. She is a member of the American Accounting Association and New York State Society of Certified Public Accountants. At NerdWallet, our content goes through a rigorous editorial review process. We have such confidence in our accurate and useful content that we let outside experts inspect our work. Professor of accounting + more + more

Head of Content, New Verticals

11 years of experience

Chris Hutchison helped build NerdWallet's editorial operation and has directed coverage across banking, investing, taxes and insurance. He now leads a team exploring new verticals. Before joining NerdWallet, he was an editor and programmer at ESPN and an editor at the San Jose Mercury News.

Chris Hutchison helped build NerdWallet's editorial operation and has directed coverage across banking, investing, taxes and insurance. He now leads a team exploring new verticals. Before joining NerdWallet, he was an editor and programmer at ESPN and an editor at the San Jose Mercury News.

Head of Content, New Verticals + more + more

Editor & Content Strategist

Expertise Taxes Investing

Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her previous experience includes five years as a copy editor and associate editor in academic and educational publishing. She is based in Brooklyn, New York.

Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her previous experience includes five years as a copy editor and associate editor in academic and educational publishing. She is based in Brooklyn, New York.

Published in Editor & Content Strategist + more + more

It can feel great to get a high price for your home, but in some cases, the IRS may want a piece of the action. That’s because capital gains on home sales and other real estate can be taxable.

It can feel great to get a high price for your home, but in some cases, the IRS may want a piece of the action. That’s because capital gains on home sales and other real estate can be taxable.

What is the capital gains tax on real estate?

What is the capital gains tax on real estate?

When you sell your home for more than what you paid for it, you could be subject to capital gains tax on some of the sale. However, the IRS allows people who have sold their primary homes to exclude a certain amount of the profit from their taxable income. This means you may only need to pay taxes on the amount of profit that goes over the limit.

When you sell your home for more than what you paid for it, you could be subject to capital gains tax on some of the sale. However, the IRS allows people who have sold their primary homes to exclude a certain amount of the profit from their taxable income. This means you may only need to pay taxes on the amount of profit that goes over the limit.

This rule is called the Section 121 exclusion, but is also sometimes known as the home sale tax exclusion

This rule is called the Section 121 exclusion, but is also sometimes known as the home sale tax exclusion Internal Revenue Service. Topic No. 701, Sale of Your Home. Accessed Dec 15, 2025. .

How much is the capital gains tax exclusion on home sales?

How much is the capital gains tax exclusion on home sales?

Single filers and those married filing separately can exclude up to $250,000 of capital gains. Those married filing jointly can exclude up to $500,000. If your profit exceeds this threshold, you may owe capital gains tax on the overage. Those rates are generally determined by your income, your filing status and how long you had the property before you sold it.

Single filers and those married filing separately can exclude up to $250,000 of capital gains. Those married filing jointly can exclude up to $500,000. If your profit exceeds this threshold, you may owe capital gains tax on the overage. Those rates are generally determined by your income, your filing status and how long you had the property before you sold it. ? Nerdy Tip

If you want to take advantage of the capital gains tax exclusion on home sales, you need to know about other rules beyond the exclusion limit. Not all types of properties are eligible, and certain ownership factors can disqualify you from taking the exclusion. Read on to learn more.

If you want to take advantage of the capital gains tax exclusion on home sales, you need to know about other rules beyond the exclusion limit. Not all types of properties are eligible, and certain ownership factors can disqualify you from taking the exclusion. Read on to learn more.

Calculating capital gains tax on a home sale

Calculating capital gains tax on a home sale

If the amount of profit you made exceeds the exclusion threshold for your filing status, you may owe taxes on the extra amount. The IRS determines exactly how much by looking at how long you owned the home before selling and what your income is.

If the amount of profit you made exceeds the exclusion threshold for your filing status, you may owe taxes on the extra amount. The IRS determines exactly how much by looking at how long you owned the home before selling and what your income is.

Short-term capital gains: If you owned the home for a year or less before selling, short-term capital gains tax rates may apply. The rate is equal to your ordinary income tax rate, also known as your income tax bracket.

Short-term capital gains Short-term capital gains : If you owned the home for a year or less before selling, short-term capital gains tax rates may apply. The rate is equal to your ordinary income tax rate , also known as your income tax bracket.

Long-term capital gains: If you owned the home for longer than a year before selling, long-term capital gains tax rates may apply. These rates are much more forgiving. Many people qualify for a 0% tax rate. Everybody else pays 15% or 20%, depending on your filing status and taxable income.

Long-term capital gains Long-term capital gains : If you owned the home for longer than a year before selling, long-term capital gains tax rates may apply. These rates are much more forgiving. Many people qualify for a 0% tax rate. Everybody else pays 15% or 20%, depending on your filing status and taxable income.

Example: Let's say that you bought a home 10 years ago for $200,000 and sold it today for $800,000. Your net profit would be $600,000. If you’re married and filing jointly, $500,000 of that gain might not be subject to the capital gains tax because of the exclusion — but $100,000 of the gain could be subject to long-term capital gains tax.

Example: Example: Let's say that you bought a home 10 years ago for $200,000 and sold it today for $800,000. Your net profit would be $600,000. If you’re married and filing jointly, $500,000 of that gain might not be subject to the capital gains tax because of the exclusion — but $100,000 of the gain could be subject to long-term capital gains tax.

» MORE: Check out our free capital gains tax calculator

» MORE: Check out our free capital gains tax calculator » MORE: Check out our free capital gains tax calculator

The more you earn, the more complex your taxes become. Learn the 10 traps to dodge.

GET THE FREE GUIDE

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

Who qualifies for the capital gains tax exclusion on home sales?

Who qualifies for the capital gains tax exclusion on home sales?

If you sell a house, all of the points below must be true; otherwise, you may owe capital gains taxes on the entire gain from the sale. The list is not exhaustive, as the rules for this exclusion can be complex. If you have questions, consider reviewing Publication 523 or speaking with a financial advisor.

If you sell a house, all of the points below must be true; otherwise, you may owe capital gains taxes on the entire gain from the sale. The list is not exhaustive, as the rules for this exclusion can be complex. If you have questions, consider reviewing Publication 523 or speaking with a financial advisor .

» MORE: Advantages of putting the house in a trust

» MORE: Advantages of putting the house in a trust » MORE: Advantages of putting the house in a trust

1. The home must be your principal residence

1. The home must be your principal residence 1. The home must be your principal residence

The IRS defines "home" broadly — your home could be a condo, a co-op, a mobile home or even a houseboat. The key to being eligible for the home sale capital gains tax exclusion is that it must be your primary (what the IRS calls "principal") home, meaning the place where you spend most of your time.

The IRS defines "home" broadly — your home could be a condo, a co-op, a mobile home or even a houseboat. The key to being eligible for the home sale capital gains tax exclusion is that it must be your primary (what the IRS calls "principal") home, meaning the place where you spend most of your time.

Details that strengthen your home's status as primary include that the home's address is used in your official documents (tax returns, driver's license, voting registration, and with the Postal Service) and that the residence is close by to certain day-to-day needs, such as your bank, your workplace, or any types of organizations you are part of

Details that strengthen your home's status as primary include that the home's address is used in your official documents (tax returns, driver's license, voting registration, and with the Postal Service) and that the residence is close by to certain day-to-day needs, such as your bank, your workplace, or any types of organizations you are part of Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. .

If you own more than one home, you should conduct a "facts and circumstances" test to make sure the home you're selling will be recognized as a principal residence by the IRS.

If you own more than one home, you should conduct a "facts and circumstances" test to make sure the home you're selling will be recognized as a principal residence by the IRS. Taxes on rental and investment properties Taxes on rental and investment properties

The capital gains tax exclusion only applies to the sale of your primary home. It doesn't work for commercial real estate, rental properties or houses used as investment vehicles. This also means your secondary home or a vacation home that you rent out in the off-season would need to be converted into your main residence, among other rules, for the exemption to apply.

The capital gains tax exclusion only applies to the sale of your primary home. It doesn't work for commercial real estate, rental properties or houses used as investment vehicles. This also means your secondary home or a vacation home that you rent out in the off-season would need to be converted into your main residence, among other rules, for the exemption to apply.

Navigating the tax rules of selling a real estate or an investment property can be complex. Long- or short-term capital gains tax will apply upon sale, depending on how long you owned the house. But there are also ways to minimize or defer taxes on these types of properties. Consider speaking with a tax advisor or financial advisor to learn more.

Navigating the tax rules of selling a real estate or an investment property can be complex. Long- or short-term capital gains tax will apply upon sale, depending on how long you owned the house. But there are also ways to minimize or defer taxes on these types of properties. Consider speaking with a tax advisor or financial advisor to learn more.

» Own a rental property? Five big rental property tax deductions to know about

» Own a rental property? » Own a rental property? Five big rental property tax deductions to know about

2. You must have owned the home for at least two years

2. You must have owned the home for at least two years 2. You must have owned the home for at least two years

The agency requires that you own the home for at least two years in the five-year period before you sell it. You may catch a break here if you're married and filing jointly — only one of the spouses is required to meet this test

The agency requires that you own the home for at least two years in the five-year period before you sell it. You may catch a break here if you're married and filing jointly — only one of the spouses is required to meet this test Internal Revenue Service. Publication 523, Selling Your Home: Eligibility Step 2—Ownership. Accessed Dec 15, 2025. .

3. You must have lived in the house for at least two years in the five-year period before you sold it

3. You must have lived in the house for at least two years in the five-year period before you sold it 3. You must have lived in the house for at least two years in the five-year period before you sold it

Owning the home isn't enough to avoid capital gains on the sale — the IRS also wants to make sure that you actually intended to live in the house, at least for a certain period of time. Living in the home for at least two of the five years helps to establish this. The IRS is flexible here — the 24 months don't have to be consecutive, and temporary absences, such as vacations, also don't count as being "away."

Owning the home isn't enough to avoid capital gains on the sale — the IRS also wants to make sure that you actually intended to live in the house, at least for a certain period of time. Living in the home for at least two of the five years helps to establish this. The IRS is flexible here — the 24 months don't have to be consecutive, and temporary absences, such as vacations, also don't count as being "away."

People who are disabled or need outpatient care, as well as people in the military, Foreign Service, or intelligence community, may also be exempt from this rule. See IRS Publication 523 for details

People who are disabled or need outpatient care, as well as people in the military, Foreign Service, or intelligence community, may also be exempt from this rule. See IRS Publication 523 for details Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. .

4. You cannot have claimed the home sale capital gains exclusion recently

4. You cannot have claimed the home sale capital gains exclusion recently 4. You cannot have claimed the home sale capital gains exclusion recently

You can't claim the exclusion if you have already taken it for another home in the two-year period before the sale of this home.

You can't claim the exclusion if you have already taken it for another home in the two-year period before the sale of this home.

5. You cannot have bought the house through a like-kind exchange

5. You cannot have bought the house through a like-kind exchange 5. You cannot have bought the house through a like-kind exchange

Your home is not qualified for the exclusion if you purchased it through a like-kind exchange, also sometimes called a 1031 exchange, in the past five years. This kind of purchase basically means swapping one investment property for another.

Your home is not qualified for the exclusion if you purchased it through a like-kind exchange, also sometimes called a 1031 exchange , in the past five years. This kind of purchase basically means swapping one investment property for another.

6. You cannot be subject to expatriate tax

6. You cannot be subject to expatriate tax 6. You cannot be subject to expatriate tax

The expatriate tax is a fee levied by the IRS on certain people who have given up their citizenship or who have given up their U.S. residency status as a result of living abroad for an extended period of time

The expatriate tax is a fee levied by the IRS on certain people who have given up their citizenship or who have given up their U.S. residency status as a result of living abroad for an extended period of time Internal Revenue Service. Expatriation Tax. Accessed Dec 15, 2025. . If you are subject to this tax, you can't take the exclusion.

Will you owe capital gains taxes on your home sale?

Will you owe capital gains taxes on your home sale?

How to avoid capital gains taxes on real estate

How to avoid capital gains taxes on real estate

1. Live in the house for at least two years

1. Live in the house for at least two years

The two years don’t need to be consecutive, but house flippers should beware. If you sell a house that you didn’t live in for at least two years, the gains can be taxable. Selling in less than a year is especially expensive because you could be subject to the short-term capital gains tax, which is higher than the long-term capital gains tax.

The two years don’t need to be consecutive, but house flippers should beware. If you sell a house that you didn’t live in for at least two years, the gains can be taxable. Selling in less than a year is especially expensive because you could be subject to the short-term capital gains tax, which is higher than the long-term capital gains tax.

2. See whether you qualify for an exception

2. See whether you qualify for an exception

If you have a taxable gain on the sale of your home, you might still be able to exclude some of it if you sold the house because of work, health or “an unforeseeable event,” according to the IRS. Check IRS Publication 523 for details

If you have a taxable gain on the sale of your home, you might still be able to exclude some of it if you sold the house because of work, health or “an unforeseeable event,” according to the IRS. Check IRS Publication 523 for details Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. .

3. Keep the receipts for your home improvements

3. Keep the receipts for your home improvements

The cost basis of your home typically includes what you paid to purchase it, as well as the improvements you've made over the years. When your cost basis is higher, your exposure to the capital gains tax may be lower. Remodels, expansions, new windows, landscaping, fences, new driveways, air conditioning installs — they’re all examples of things that might cut your capital gains tax.

The cost basis of your home typically includes what you paid to purchase it, as well as the improvements you've made over the years. When your cost basis is higher, your exposure to the capital gains tax may be lower. Remodels, expansions, new windows, landscaping, fences, new driveways, air conditioning installs — they’re all examples of things that might cut your capital gains tax.

The more you earn, the more complex your taxes become. Learn the 10 traps to dodge.

GET THE FREE GUIDE

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

on NerdWallet Wealth Partners' site. For informational purposes only. NerdWallet Wealth Partners does not provide tax or legal advice.

Is there an over-55 home sale exemption?

Is there an over-55 home sale exemption?

No. Homeowners aged 55 and above used to be eligible for a one-time $125,000 capital gains tax exclusion on the sale of their home, but this tax law expired in 1997 and was replaced by the current $500,000 exclusion cap, which applies to a wider range of taxpayers

No. Homeowners aged 55 and above used to be eligible for a one-time $125,000 capital gains tax exclusion on the sale of their home, but this tax law expired in 1997 and was replaced by the current $500,000 exclusion cap, which applies to a wider range of taxpayers Congressional Research Service. The Exclusion of Capital Gains for Owner-Occupied Housing. Accessed Dec 15, 2025. .

» MORE: See our picks for the year's best financial advisors

» MORE: See our picks for the year's best financial advisors » MORE: See our picks for the year's best financial advisors NerdWallet writers are subject matter authorities who use primary, trustworthy sources to inform their work, including peer-reviewed studies, government websites, academic research and interviews with industry experts. All content is fact-checked for accuracy, timeliness and relevance. You can learn more about NerdWallet's high standards for journalism by reading our editorial guidelines. Internal Revenue Service. Topic No. 701, Sale of Your Home. Accessed Dec 15, 2025. Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. Internal Revenue Service. Publication 523, Selling Your Home: Eligibility Step 2—Ownership. Accessed Dec 15, 2025. Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. Internal Revenue Service. Expatriation Tax. Accessed Dec 15, 2025. Internal Revenue Service. Publication 523, Selling Your Home. Accessed Dec 15, 2025. Congressional Research Service. The Exclusion of Capital Gains for Owner-Occupied Housing. Accessed Dec 15, 2025. About the authors Tina Orem Tina Orem Tina Orem is an editor and content strategist at NerdWallet. Before becoming an editor and content strategist, she was NerdWallet's authority on taxes and small business. Her work has appeared in a variety of local and national outlets. See full bio. Sabrina Parys Sabrina Parys Sabrina Parys is an editor and content strategist on the taxes and investing team at NerdWallet, where she manages and writes content on personal income taxes. Her work has appeared in The Associated Press, The Washington Post and Yahoo Finance. See full bio.

Helpful resources

Helpful resources Best Financial Advisors Search for a Financial Advisor Near You How to Choose a Financial Advisor in 5 Steps 3 Best Wealth Management Services More like this Taxes How Much Does a Financial Advisor Cost? Most financial advisors charge based on how much money they manage for you. Fees are typically 1% a year but can be lower. 2 By Andrea Coombes, Taryn Phaneuf Do You Need a Financial Advisor? 7 Ways to Tell You may need a financial advisor if you're facing big life changes, don't have financial goals, have complex compensation, high tax bills or for other reasons. Taryn Phaneuf How to Find Cheap or Free Financial Advice Quality financial advice is more accessible than ever — and much of it is free or inexpensive. Here's how to get it. Anna-Louise Jackson Retirement Calculator Are you on track to save enough for retirement? Use our calculator to check your progress, see how much retirement income you'll have and estimate how much more you should save. 2 By June Sham, Alana Benson