Home sales can be subject to capital gains taxes, but there are ways to limit or avoid a big tax bill.
Updated May 31, 2024 · 6 min read Written by Tina Orem Assistant Assigning Editor Tina Orem
Assistant Assigning Editor | Taxes, small business, Social Security and estate planning, home services
Tina Orem is an editor at NerdWallet. Prior to becoming an editor, she covered small business and taxes at NerdWallet. She has been a financial writer and editor for over 15 years, and she has a degree in finance, as well as a master's degree in journalism and a Master of Business Administration. Previously, she was a financial analyst and director of finance for several public and private companies. Tina's work has appeared in a variety of local and national media outlets.
Reviewed by Lei Han Professor of accounting Lei Han
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.
Lead Assigning Editor Chris HutchisonChris Hutchison helped build NerdWallet's content operation and has worked across banking, investing and taxes. He now leads a team exploring new markets. Before joining NerdWallet, he was an editor and programmer at ESPN and a copy editor at the San Jose Mercury News.
Fact Checked Co-written by Sabrina Parys Assistant Assigning Editor Sabrina Parys
Assistant Assigning Editor | Taxes, Investing
Sabrina Parys is an assistant assigning editor 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.
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.
Nerdy takeawaysIt 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.
When you sell your home for more than what you paid for it, you could be subject to capital gains tax on the profit. Capital gains tax rates are generally determined by three factors: your taxable income, your filing status and how long you had the property before you sold it.
However, some homeowners may be able to avoid paying capital gains tax on their profit because of an IRS exemption rule called the Section 121 exclusion (also known as the home sale tax exclusion) [0]
Internal Revenue Service . Topic No. 701, Sale of Your Home. Accessed May 31, 2024.Generally, the IRS allows people who sold their primary homes to exclude a certain amount of the profit from their reportable income. Single filers and those married filing separately can exclude $250,000 of capital gains and those married filing jointly can exclude up to $500,000 [0]
Internal Revenue Service . Topic No. 701 Sale of Your Home. Accessed May 31, 2024. . If your profit exceeds this threshold, you may owe capital gains tax on the overage.If you want to take advantage of the capital gains tax exclusion on home sales, you need to know the rules . Not all types of properties are eligible, and certain ownership factors can disqualify you from taking the exclusion.
Simple tax filing with a $50 flat fee for every scenario
With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.
Register Nowfor a NerdWallet account
Hassle-free tax filing* is $50 for all tax situations — no hidden costs or fees.Maximum refund guaranteed
Get every dollar you deserve* when you file with this tax product, powered by Column Tax. File up to 2x faster than traditional options.* Get your refund, and get on with your life.*guaranteed by Column Tax
The capital gains tax on the sale of a home depends on the amount of profit you make from the sale. Profit is generally defined as the difference between how much you paid for the home and how much you sold it for.
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.
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 either 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.
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 tax advisor .
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 [0]
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.
The agency requires that you must have owned the home for at least two years in the five-year period before you sold 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 [0]
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 [0]
Internal Revenue Service . Publication 523 (2022), Selling Your Home. Accessed May 31, 2024.You can't claim the exclusion if you already took it for another home in the two-year period before the sale of this home.
Simple tax filing with a $50 flat fee for every scenario
With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.
Register Nowfor a NerdWallet account
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.
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 [0]
Internal Revenue Service . Expatriation Tax. Accessed Mar 20, 2024. . If you are subject to this tax, you can't take the exclusion.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.
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 [0]
Internal Revenue Service . Publication 523 (2022), Selling Your Home. Accessed May 31, 2024.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 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 the other rules above — 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.
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 is applicable to a wider range of taxpayers [0]
Internal Revenue Service . 1997 Publication 523: Selling Your Home. Accessed May 31, 2024. About the authorsYou’re following Tina Orem
Visit your My NerdWallet Settings page to see all the writers you're following.
Tina Orem is an editor at NerdWallet. Before becoming an editor, 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.
You’re following Sabrina Parys
Visit your My NerdWallet Settings page to see all the writers you're following.
Sabrina Parys is a content management specialist 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.
On a similar note.
Finance Smarter Credit Cards Financial Planning Financial News Small BusinessDownload the app
Disclaimer: NerdWallet strives to keep its information accurate and up to date. This information may be different than what you see when you visit a financial institution, service provider or specific product's site. All financial products, shopping products and services are presented without warranty. When evaluating offers, please review the financial institution's Terms and Conditions. Pre-qualified offers are not binding. If you find discrepancies with your credit score or information from your credit report, please contact TransUnion® directly.
NerdUp by NerdWallet credit card: NerdWallet is not a bank. Bank services provided by Evolve Bank & Trust, member FDIC. The NerdUp by NerdWallet Credit Card is issued by Evolve Bank & Trust pursuant to a license from MasterCard International Inc.
Impact on your credit may vary, as credit scores are independently determined by credit bureaus based on a number of factors including the financial decisions you make with other financial services organizations.
NerdWallet Compare, Inc. NMLS ID# 1617539
California: California Finance Lender loans arranged pursuant to Department of Financial Protection and Innovation Finance Lenders License #60DBO-74812
Insurance Services offered through NerdWallet Insurance Services, Inc. (CA resident license no.OK92033) Insurance Licenses
NerdWallet™ | 55 Hawthorne St. - 10th Floor, San Francisco, CA 94105