Capital Gains Tax on Home Sales and Real Estate - NerdWallet (2024)

MORE LIKE THISTax Strategy and PlanningSelling a HomeTaxes

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 real estate and home salescan be taxable.

  • How capital gains taxes on real estate work

  • What is the home sale tax exemption?

  • How to qualify for the exclusion

  • How to avoid capital gain tax on a home sale

  • Calculating capital gains tax on your home sale

How does capital gains tax on real estate work?

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.

How the home sale tax exemption works

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.

But 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.

» Considering selling? Learn tips for any market

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (1)

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.

for a NerdWallet account

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (2)

Transparent pricing

Hassle-free tax filing* is $50 for all tax situations — no hidden costs or fees.

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (3)

Maximum refund guaranteed

Get every dollar you deserve* when you file with this tax product, powered by Column Tax.

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (4)

Faster filing

File up to 2x faster than traditional options.* Get your refund, and get on with your life.

*guaranteed by Column Tax

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (5)

Who qualifies for the home sales tax exclusion?

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.

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.

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.

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

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

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.

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."

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.

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

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.

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.

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. If you are subject to this tax, you can't take the exclusion.

» Still not sure whether you qualify for the exclusion? Our tool might help

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (6)

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.

for a NerdWallet account

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (7)

Calculating capital gains tax on a home sale

The capital gains tax on your home sale 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-terms capital gains tax rates may apply. The 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.

» Curious about your federal tax rates? Take a look at the 2023-2024 federal income tax brackets and rates

Will you owe capital gains taxes on your home sale?

How to avoid capital gains tax on home sales

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.

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.

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.

How taxes on real estate, rental, and investment sales work

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 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

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 is applicable to a wider range of taxpayers.

Advertisem*nt

Facet
Vanguard Personal Advisor
Harness Wealth

Fees

$2,000 and up

per year (free initial consultation)

Fees

0.35%

management fee

Fees

Up to 1%

per year

Account minimum

$0

Account minimum

$50,000

Account minimum

$250,000

Promotion

Get $300 reward

into Facet brokerage account for new members who transfer at least $5,000 within the first 90 days of their Facet membership.*

Promotion

None

no promotion available at this time

Promotion

$250 off

one year of financial or tax planning

Learn More
Learn More
Learn More

AD

Paid non-client promotion

AD

Paid non-client promotion

AD

Paid non-client promotion

Capital Gains Tax on Home Sales and Real Estate - NerdWallet (2024)

FAQs

Capital Gains Tax on Home Sales and Real Estate - NerdWallet? ›

How do capital gains taxes work? Capital gains can be subject to either short-term tax rates or long-term tax rates. Short-term capital gains are taxed according to ordinary income tax brackets, which range from 10% to 37%. Long-term capital gains are taxed at 0%, 15%, or 20%.

How does the IRS know your capital gains on real estate? ›

Transfer the requested information from form 8949 to Schedule D, "Capital Gains and Losses." This form compiles both short- and long-term gains and losses and allows you to reduce the present year's capital gains by a capital loss carryover when applicable. Schedule D reports your total capital gain or loss to the IRS.

What is a simple trick for avoiding capital gains tax on real estate investments? ›

Use a 1031 exchange for real estate

Internal Revenue Code section 1031 provides a way to defer the capital gains tax on the profit you make on the sale of a rental property by rolling the proceeds of the sale into a new property.

What are the two rules of exclusion on capital gains for homeowners? ›

Is there a way to avoid capital gains tax on the selling of a house? You will avoid capital gains tax if your profit on the sale is less than $250,000 (for single filers) or $500,000 (if you're married and filing jointly), provided it has been your primary residence for at least two of the past five years.

Do you have to pay capital gains after age 70? ›

Whether you're 65 or 95, seniors must pay capital gains tax where it's due. This can be on the sale of real estate or other investments that have increased in value over their original purchase price, which is known as the “tax basis.”

Does the IRS get notified when you sell a house? ›

The information is transferred onto magnetic media by the settlement agent who will make the required report to the I.R.S. The settlement agent is also required to keep a master copy of all transactions reported for a length of four years from the date of transaction.

Can I sell my house and buy another without paying capital gains? ›

You can avoid capital gains tax when you sell your primary residence by buying another house and using the 121 home sale exclusion. In addition, the 1031 like-kind exchange allows investors to defer taxes when they reinvest the proceeds from the sale of an investment property into another investment property.

What is the one time exemption on capital gains tax? ›

If you have a capital gain from the sale of your main home, you may qualify to exclude up to $250,000 of that gain from your income, or up to $500,000 of that gain if you file a joint return with your spouse. Publication 523, Selling Your Home provides rules and worksheets.

How do house flippers avoid capital gains? ›

Homeowners have options to reduce the taxes paid by using IRS Code Section 1031 to recognize a "like-kind" exchange when selling an investment property. In this manner, capital gains are able to be deferred by buying a similar investment property.

How many years to stay in a house to avoid capital gains tax? ›

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.

How do I calculate capital gains tax on sale of a home? ›

How to calculate capital gains tax — step-by-step
  1. Determine your basis. ...
  2. Determine your realized amount. ...
  3. Subtract your basis (what you paid) from the realized amount (how much you sold it for) to determine the difference. ...
  4. Review the descriptions in the section below to know which tax rate may apply to your capital gains.

What is deductible for home sale capital gains? ›

Use the Internal Revenue Service (IRS) primary residence exclusion, if you qualify. For single taxpayers, you may exclude up to $250,000 of the capital gains, and for married taxpayers filing jointly, you may exclude up to $500,000 of the capital gains (certain restrictions apply).1.

How to avoid capital gains tax on a house? ›

You do not have to report the sale of your home if all of the following apply:
  1. Your gain from the sale was less than $250,000.
  2. You have not used the exclusion in the last 2 years.
  3. You owned and occupied the home for at least 2 years.
Jan 8, 2024

What home improvements are tax deductible when selling IRS? ›

Qualifying home renovations may include upgrading exterior doors, windows, skylights and insulation materials or replacing central air conditioners, water heaters or furnaces with more energy-efficient versions.

Do I pay taxes to the IRS when I sell my house? ›

If you owned and lived in the home for a total of two of the five years before the sale, then up to $250,000 of profit is tax-free (or up to $500,000 if you are married and file a joint return). If your profit exceeds the $250,000 or $500,000 limit, the excess is typically reported as a capital gain on Schedule D.

How does the IRS track real estate transactions? ›

Third Party Records

This can include pulling documents from banks, lenders and sellers to confirm the value of a real estate transaction or a personal property sale. It might include brokerage records to confirm the sale price of securities, or pulling bank statements to confirm your cash outflow on any given purchase.

How does the IRS know the cost basis of property? ›

The IRS expects taxpayers to keep the original documentation for capital assets, such as real estate and investments. It uses these documents, along with third-party records, bank statements and published market data, to verify the cost basis of assets.

What happens if you don't report capital gains? ›

The IRS has the authority to impose fines and penalties for your negligence, and they often do. If they can demonstrate that the act was intentional, fraudulent, or designed to evade payment of rightful taxes, they can seek criminal prosecution.

What triggers capital gains tax on real estate? ›

If you buy a home and a dramatic rise in value causes you to sell it a year later, you would be required to pay full capital gains tax—short-term or long-term on the house, depending on exactly how long you owned it.

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 6327

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.