---
title: Do I Have To Pay Capital Gains Tax If I Sell My House and Buy Another?
description: Learn if you have to pay capital gains tax if you sell your house and buy another.
image: https://www.realized1031.com/hubfs/Do-I-Have-To-Pay-Capital-Gains-Tax-If-I-Sell-My-House-And-Buy-Another-iStock-2050385284.jpg
---

[![Realized 1031 Exchange Marketplace](https://www.realized1031.com/hs-fs/hubfs/Images/Brand/Logo/Realized/Realized-Logo-Black.png?width=240&height=80&name=Realized-Logo-Black.png "Realized 1031 Logo") ](https://www.realized1031.com/)

- [Wealth Management Gap](https://www.realized1031.com/the-wealth-management-gap)
- [Our Process](https://www.realized1031.com/how-realized-works)
- [Financial Advisors](https://www.realized1031.com/advisor)
- [Resources](https://www.realized1031.com/resources)

- [The Company](https://www.realized1031.com/about-us)
- [Articles](https://www.realized1031.com/blog)

[Register](https://www.realized1031.com/marketplace)

[Log In](https://www.realized1031.com/login)

- Better Business Bureau Rating: **A+**
- [FINRA BrokerCheck](https://brokercheck.finra.org/firm/summary/22333)
- [Call](tel:1-877-797-1031) **(877) 797-1031**

# Do I Have To Pay Capital Gains Tax If I Sell My House and Buy Another?

Posted Jul 20, 2024

![Mini house sitting on top of laptop with a pen and paper next to it and a person's hands showing](https://www.realized1031.com/hs-fs/hubfs/Do-I-Have-To-Pay-Capital-Gains-Tax-If-I-Sell-My-House-And-Buy-Another-iStock-2050385284.jpg?width=1024&height=576&name=Do-I-Have-To-Pay-Capital-Gains-Tax-If-I-Sell-My-House-And-Buy-Another-iStock-2050385284.jpg)

Selling your home and buying a new one is a significant financial decision for several reasons. For one thing, your home’s sale and your purchase of a new one represent sizable investments on your part. The second and more pressing reason is that this transaction may come with tax implications.

Because the sale of your home can lead to tax liabilities, you may be asking yourself one question:

“Do I pay taxes if I sell my house and buy another?”

The short answer to this question is “yes.” 

Read on to learn more about the ins and outs of capital gains taxes on home sales.

You’ll also want to stick around to the end for some effective tips on how to potentially minimize or defer these taxes.

### What Are Capital Gains Taxes?

Before diving into the specifics of home sales, let’s clarify what capital gains taxes are.

When you sell an asset, including a house, for more than you paid for it, the profit is called a [capital gain](https://www.irs.gov/taxtopics/tc409). The IRS taxes these gains, and the rate depends on various factors, including your income and how long you’ve owned the asset.

In short, when you sell your home and profit from the sale, your profits will be subject to [home sale capital gains tax](https://www.realized1031.com/blog/how-much-are-capital-gains-tax-on-a-house) rules. This means you’ll owe a certain amount of taxes to the IRS for the gains you made from selling your home.

### Do You Always Have To Pay Capital Gains Tax When Selling a House?

In most cases, homeowners will owe the IRS capital gains taxes from the sale of their homes.

However, there are some exceptions. Among them are situations where the home sold is the homeowner’s primary residence.

[According to the IRS](https://www.irs.gov/taxtopics/tc701), homeowners who sell their primary homes can qualify for the Section 121 Exclusion.

### The Section 121 Exclusion

Under the Section 121 rule, if you’ve owned and used your home as your primary residence for at least two of the five years preceding the sale, you can exclude up to $250,000 of the capital gain from your income if you’re single, or up to $500,000 if you’re married filing jointly.

Let’s illustrate this with an example:

For example, imagine that you are a single homeowner who purchased a house for $200,000. Ten years later, you sell it for $400,000. Your capital gain is $200,000.

Under the Section 121 exclusion, you would not owe any capital gains tax on this sale because the gain falls under the $250,000 threshold.

### When Gains Exceed the Exclusion Amount

If your profit from selling your home exceeds the exclusion amount, you will likely owe capital gains tax on the excess. There are several factors that can determine your tax liability, including your income and how long you’ve owned the home.

For instance, if you’re married, bought a home for $300,000, and sold it for $900,000, your capital gain would be $600,000 ($900,000 – $300,000).

The first $500,000 would be excluded, but you would owe capital gains tax on the remaining $100,000.

### Do You Have To Pay Capital Gains If You Reinvest in Another House?

By now, it’s clear that you will own the IRS capital gains taxes from selling your home. However, what happens if you use the proceeds to reinvest in another home?

A common misconception is that you can [avoid capital gains tax by immediately buying another home](https://www.realized1031.com/blog/can-you-avoid-paying-capital-gains-tax-by-buying-another-house). This isn’t the case for primary residences.

We can attribute this misconception to a rule that allowed this. This rule was known as the [1034 rollover rule](https://irc.bloombergtax.com/public/uscode/doc/irc/section_1034) and was repealed in 1997 and replaced with the current Section 121 exclusion.

However, despite the 1034 rollover rule’s abolishment, there is still a strategy that can help defer capital gains taxes when selling one investment property and buying another.

This strategy is the 1031 Exchange.

### What Is a 1031 Exchange?

The 1031 exchange is named after [Section 1031 of the Internal Revenue Code](https://www.irs.gov/pub/irs-news/fs-08-18.pdf). It allows investors to defer capital gains taxes by exchanging one investment property for another of like-kind.

This strategy can be particularly useful for real estate investors looking to upgrade or diversify their portfolios without incurring an immediate tax liability.

It’s important to note that 1031 exchanges apply to investment properties and not primary residences.

Also, contrary to popular belief, 1031 exchanges are not safe [tax deferral instruments for house flippers](https://www.realized1031.com/blog/how-do-house-flippers-avoid-capital-gains-tax).

However, if you’ve converted your primary residence into a rental property, you might be eligible for a 1031 exchange after a certain period.

### How Much Time After Selling a House Do You Have To Buy Another To Avoid the Tax Penalty?

For primary residences, there’s no time limit to buy another house to defer capital gains tax. The Section 121 exclusion applies regardless of whether or when you purchase another home.

However, if you’re considering a 1031 exchange for investment properties, timing is crucial.

You must identify potential replacement properties [within 45 days](https://www.irs.gov/pub/irs-news/fs-08-18.pdf) of selling your relinquished property and complete the purchase [within 180 days](https://www.irs.gov/pub/irs-news/fs-08-18.pdf).

### Defer Capital Gains Taxes With a 1031 Exchange

While selling your primary residence and buying another doesn’t automatically exempt you from capital gains tax, the Section 121 exclusion provides significant tax relief for many homeowners.

On the other hand, if you’re dealing with investment properties, a strategy like the 1031 exchange can be a viable option for tax deferral.

If you’re considering selling an investment property and are interested in learning more about 1031 exchanges or other tax-deferral strategies, we’re here to help. At Realized, we guide investors through the 1031 exchange process.

Contact us today and let our team help you make informed decisions about managing your investment property wealth.

*The tax and estate planning information offered by the advisor is general in nature.  It is provided for informational purposes only and should not be construed as legal or tax advice.  Always consult an attorney or tax professional regarding your specific legal or tax situation*.

**Sources: **

[https://www.irs.gov/taxtopics/tc409](https://www.irs.gov/taxtopics/tc409)

[https://www.irs.gov/taxtopics/tc701](https://www.irs.gov/taxtopics/tc701)

[https://irc.bloombergtax.com/public/uscode/doc/irc/section_1034](https://irc.bloombergtax.com/public/uscode/doc/irc/section_1034)

[https://www.irs.gov/pub/irs-news/fs-08-18.pdf](https://www.irs.gov/pub/irs-news/fs-08-18.pdf)

Download The Capital Gains Tax Calculator

[![Cap Gains Calculator For Investors](https://www.realized1031.com/hs-fs/hubfs/Images/UI/graphics/composites/laptop-capital-gains-calculator-spreadsheet.jpg?width=500&height=290&name=laptop-capital-gains-calculator-spreadsheet.jpg "Estimate the cap gains tax owed ...") ](https://www.realized1031.com/blog/do-i-have-to-pay-capital-gains-tax-if-i-sell-my-house-and-buy-another#blogform)

Download Calculator

---

 

---

### Cap Gains Calculator For Investors

![Download The Capital Gains Tax Calculator](https://www.realized1031.com/hs-fs/hubfs/Images/UI/graphics/composites/laptop-capital-gains-calculator-spreadsheet.jpg?width=500&height=290&name=laptop-capital-gains-calculator-spreadsheet.jpg)

Estimate the cap gains tax owed after selling an asset or property

By providing your email and phone number, you are opting to receive communications from Realized. If you receive a text message and choose to stop receiving further messages, reply STOP to immediately unsubscribe. Msg & Data rates may apply. To manage receiving emails from Realized visit the Manage Preferences link in any email received.

Search

### [Why Realized](https://www.realized1031.com/why-realized)

- [Wealth Management](https://www.realized1031.com/the-wealth-management-gap)
- [Why Realized](https://www.realized1031.com/why-realized)
- [Our Process](https://www.realized1031.com/how-realized-works)
- [Scenarios](https://www.realized1031.com/scenarios)
- [Private Client Program](https://www.realized1031.com/private-client)
- [Realized Exchange Services](https://www.realized1031.com/realized-exchange-services)

### [The Company](https://www.realized1031.com/about-us)

- [The Team](https://www.realized1031.com/about-us)
- [FAQ](https://www.realized1031.com/frequently-asked-questions)
- [Testimonials](https://www.realized1031.com/testimonials)
- [Press](https://www.realized1031.com/press)
- [Careers](https://www.realized1031.com/careers)

### [Partners](https://www.realized1031.com/partners)

- [Financial Advisors](https://www.realized1031.com/advisor)
- [Broker Dealers](https://www.realized1031.com/partners/broker-dealers)
- [Real Estate Agents](https://www.realized1031.com/partners/real-estate-agents)
- [Certified Public Accountants](https://www.realized1031.com/partners/certified-public-accountants)

### [Resources](https://www.realized1031.com/resources)

- #### Learn
  
    - [Articles](https://www.realized1031.com/blog)
    - [Glossary of Terms](https://www.realized1031.com/glossary)
    - [Capital Gains Tax Rates](https://www.realized1031.com/capital-gains-tax-rate)
- #### Watch
  
    - [Video Library](https://www.realized1031.com/videos)
    - [Webinar Archive](https://www.realized1031.com/webinars)
- #### Read
  
    - [Delaware Statutory Trust](https://www.realized1031.com/delaware-statutory-trust)
    - [Tenants-In-Common](https://www.realized1031.com/tenants-in-common-tic)
    - [1031 Exchange](https://www.realized1031.com/1031-exchange)
    - [Qualified Intermediary](https://www.realized1031.com/qualified-intermediary)
    - [Qualified Opportunity Zones](https://www.realized1031.com/opportunity-zones)

#### Realized

- 500 W 13th Street  
  Austin, TX 78701
- (877) 797-1031

##### [Contact Us](https://www.realized1031.com/contact-us)

- [![Realized on Facebook](https://www.realized1031.com/hs-fs/hubfs/Images/UI/Social/Icons/Mix/social-facebook-whiterev.png?width=60&height=60&name=social-facebook-whiterev.png)](https://www.facebook.com/Realized/)
- [![Realized on LinkedIn](https://www.realized1031.com/hs-fs/hubfs/Images/UI/Social/Icons/Mix/social-linkedin-whiterev.png?width=60&height=60&name=social-linkedin-whiterev.png)](https://www.linkedin.com/company/realized/)
- [![Realized on YouTube](https://www.realized1031.com/hs-fs/hubfs/Images/UI/Social/Icons/Mix/social-youtube-whiterev.png?width=60&height=60&name=social-youtube-whiterev.png)](https://www.youtube.com/c/Realized1031?sub_confirmation=1)

- [![Realized Holdings, Inc. BBB Business Review](https://www.realized1031.com/hs-fs/hubfs/Images/professional-assoc/bbb/RZH2-bbb-seal.png?width=40&height=65&name=RZH2-bbb-seal.png)](http://www.bbb.org/central-texas/business-reviews/real-estate-investors/realized-holdings-llc-in-austin-tx-1000112948/#bbbonlineclick)
- [![FEA Logo](https://www.realized1031.com/hs-fs/hubfs/Images/professional-assoc/fea/RZH2-fea-logo.png?width=82&height=65&name=RZH2-fea-logo.png "FEA Logo")](https://www.1031.org)

SECURITIES DISCLOSURE

Realized1031.com is a website operated by Realized Technologies, LLC, a wholly owned subsidiary of Realized Holdings, Inc. (“Realized Holdings”). Securities and/or Investment Advisory Services may be offered through Registered Representatives or Investment Advisor Representatives of Realized Financial, Inc. ("Realized"), a broker/dealer, member [FINRA](https://www.finra.org)/[SIPC](https://www.sipc.org/), and registered investment adviser. Realized is a subsidiary of Realized Holdings, Inc. ("Realized Holdings"). Check the background of this firm on [FINRA's BrokerCheck](https://brokercheck.finra.org/firm/summary/22333).

Hypothetical example(s) are for illustrative purposes only and are not intended to represent the past or future performance of any specific investment.

Investing in alternative assets involves higher risks than traditional investments and is suitable only for sophisticated investors. Alternative investments are often sold by prospectus that discloses all risks, fees, and expenses. They are not tax efficient and an investor should consult with his/her tax advisor prior to investing. Alternative investments have higher fees than traditional investments and they may also be highly leveraged and engage in speculative investment techniques, which can magnify the potential for investment loss or gain and should not be deemed a complete investment program. The value of the investment may fall as well as rise and investors may get back less than they invested.

This site is published for residents of the United States who are accredited investors only. Registered Representatives and Investment Advisor Representatives may only conduct business with residents of the states and jurisdictions in which they are properly registered. Therefore, a response to a request for information may be delayed until appropriate registration is obtained or exemption from registration is determined. Not all of services referenced on this site are available in every state and through every representative listed. For additional information, please contact the Realized Compliance department at 512-472-7171 or info@realized1031.com.

- [Terms & Conditions](https://www.realized1031.com/terms-and-conditions)
- [Privacy Policy](https://www.realized1031.com/privacy-policy)
- [Form CRS](https://www.realized1031.com/hubfs/common-files/disclosures/FormCRS.pdf)
- [ADV 2A](https://www.realized1031.com/hubfs/common-files/disclosures/ADV2A.pdf)
- [Reg BI Disclosures](https://www.realized1031.com/hubfs/common-files/disclosures/RegBI.pdf)
-  

© 2026 Realized Holdings, Inc.

```json
{
  "@context" : "http://schema.org/",
  "@type" : "BlogPosting",
  "articleBody" : "Selling your home and buying a new one is a significant financial decision for several reasons. For one thing, your home’s sale and your purchase of a new one represent sizable investments on your part. The second and more pressing reason is that this transaction may come with tax implications. Because the sale of your home can lead to tax liabilities, you may be asking yourself one question: “Do I pay taxes if I sell my house and buy another?” The short answer to this question is “yes.” Read on to learn more about the ins and outs of capital gains taxes on home sales. You’ll also want to stick around to the end for some effective tips on how to potentially minimize or defer these taxes. What Are Capital Gains Taxes? Before diving into the specifics of home sales, let’s clarify what capital gains taxes are. When you sell an asset, including a house, for more than you paid for it, the profit is called a capital gain. The IRS taxes these gains, and the rate depends on various factors, including your income and how long you’ve owned the asset. In short, when you sell your home and profit from the sale, your profits will be subject to home sale capital gains tax rules. This means you’ll owe a certain amount of taxes to the IRS for the gains you made from selling your home. Do You Always Have To Pay Capital Gains Tax When Selling a House? In most cases, homeowners will owe the IRS capital gains taxes from the sale of their homes. However, there are some exceptions. Among them are situations where the home sold is the homeowner’s primary residence. According to the IRS, homeowners who sell their primary homes can qualify for the Section 121 Exclusion. The Section 121 Exclusion Under the Section 121 rule, if you’ve owned and used your home as your primary residence for at least two of the five years preceding the sale, you can exclude up to $250,000 of the capital gain from your income if you’re single, or up to $500,000 if you’re married filing jointly. Let’s illustrate this with an example: For example, imagine that you are a single homeowner who purchased a house for $200,000. Ten years later, you sell it for $400,000. Your capital gain is $200,000. Under the Section 121 exclusion, you would not owe any capital gains tax on this sale because the gain falls under the $250,000 threshold. When Gains Exceed the Exclusion Amount If your profit from selling your home exceeds the exclusion amount, you will likely owe capital gains tax on the excess. There are several factors that can determine your tax liability, including your income and how long you’ve owned the home. For instance, if you’re married, bought a home for $300,000, and sold it for $900,000, your capital gain would be $600,000 ($900,000 – $300,000). The first $500,000 would be excluded, but you would owe capital gains tax on the remaining $100,000. Do You Have To Pay Capital Gains If You Reinvest in Another House? By now, it’s clear that you will own the IRS capital gains taxes from selling your home. However, what happens if you use the proceeds to reinvest in another home? A common misconception is that you can avoid capital gains tax by immediately buying another home. This isn’t the case for primary residences. We can attribute this misconception to a rule that allowed this. This rule was known as the 1034 rollover rule and was repealed in 1997 and replaced with the current Section 121 exclusion. However, despite the 1034 rollover rule’s abolishment, there is still a strategy that can help defer capital gains taxes when selling one investment property and buying another. This strategy is the 1031 Exchange. What Is a 1031 Exchange? The 1031 exchange is named after Section 1031 of the Internal Revenue Code. It allows investors to defer capital gains taxes by exchanging one investment property for another of like-kind. This strategy can be particularly useful for real estate investors looking to upgrade or diversify their portfolios without incurring an immediate tax liability. It’s important to note that 1031 exchanges apply to investment properties and not primary residences. Also, contrary to popular belief, 1031 exchanges are not safe tax deferral instruments for house flippers. However, if you’ve converted your primary residence into a rental property, you might be eligible for a 1031 exchange after a certain period. How Much Time After Selling a House Do You Have To Buy Another To Avoid the Tax Penalty? For primary residences, there’s no time limit to buy another house to defer capital gains tax. The Section 121 exclusion applies regardless of whether or when you purchase another home. However, if you’re considering a 1031 exchange for investment properties, timing is crucial. You must identify potential replacement properties within 45 days of selling your relinquished property and complete the purchase within 180 days. Defer Capital Gains Taxes With a 1031 Exchange While selling your primary residence and buying another doesn’t automatically exempt you from capital gains tax, the Section 121 exclusion provides significant tax relief for many homeowners. On the other hand, if you’re dealing with investment properties, a strategy like the 1031 exchange can be a viable option for tax deferral. If you’re considering selling an investment property and are interested in learning more about 1031 exchanges or other tax-deferral strategies, we’re here to help. At Realized, we guide investors through the 1031 exchange process. Contact us today and let our team help you make informed decisions about managing your investment property wealth. The tax and estate planning information offered by the advisor is general in nature. It is provided for informational purposes only and should not be construed as legal or tax advice. Always consult an attorney or tax professional regarding your specific legal or tax situation. Sources: https://www.irs.gov/taxtopics/tc409 https://www.irs.gov/taxtopics/tc701 https://irc.bloombergtax.com/public/uscode/doc/irc/section_1034 https://www.irs.gov/pub/irs-news/fs-08-18.pdf",
  "articleSection" : [ "Capital Gains" ],
  "author" : {
    "@type" : "Person",
    "email" : "marketing@realized1031.com",
    "image" : "",
    "name" : "The Realized Team",
    "url" : "https://www.realized1031.com/blog/author/the-realized-team"
  },
  "dateModified" : "2024-07-20T17:41:52+0000",
  "datePublished" : "2024-07-20T17:41:52+0000",
  "description" : "Learn if you have to pay capital gains tax if you sell your house and buy another.",
  "headline" : "Do I Have To Pay Capital Gains Tax If I Sell My House and Buy Another?",
  "image" : {
    "@type" : "ImageObject",
    "height" : 576,
    "url" : "https://733513.fs1.hubspotusercontent-na1.net/hubfs/733513/Do-I-Have-To-Pay-Capital-Gains-Tax-If-I-Sell-My-House-And-Buy-Another-iStock-2050385284.jpg",
    "width" : 1024
  },
  "mainEntityOfPage" : "https://www.realized1031.com/blog/do-i-have-to-pay-capital-gains-tax-if-i-sell-my-house-and-buy-another",
  "name" : "Do I Have To Pay Capital Gains Tax If I Sell My House and Buy Another?",
  "publisher" : {
    "@type" : "Organization",
    "address" : {
      "@type" : "PostalAddress",
      "addressCountry" : "USA",
      "addressLocality" : "Austin",
      "addressRegion" : "TX",
      "postalCode" : "78701",
      "streetAddress" : "500 W 13th Street "
    },
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "http://www.realized1031.com/hubfs/Images/Brand/Logo/Realized/Realized-Logo-Black-No-Margin-296x60-AMP.png",
      "width" : 296
    },
    "name" : "Realized"
  },
  "thumbnailUrl" : "https://733513.fs1.hubspotusercontent-na1.net/hubfs/733513/Do-I-Have-To-Pay-Capital-Gains-Tax-If-I-Sell-My-House-And-Buy-Another-iStock-2050385284.jpg"
}
```