---
title: What Is the 2-Out-of-5-Year Rule?
description: The 2-out-of-five-year rule is a rule that states that you must have lived in your home for a minimum of two out of the last five years before the date of sale.
image: https://www.realized1031.com/hubfs/2-5iStock-1242933891.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**

# What Is the 2-Out-of-5-Year Rule?

Posted Jan 31, 2024

![2-5iStock-1242933891](https://www.realized1031.com/hs-fs/hubfs/2-5iStock-1242933891.jpg?width=750&height=502&name=2-5iStock-1242933891.jpg)

When selling your primary residence, taxes still matter — and they can get complicated. Your home is a capital asset and, therefore, subject to[ capital gains tax](https://www.realized1031.com/blog/how-much-are-capital-gains-tax-on-a-house). If your home appreciates in value, you might have to pay taxes on profit. However, there are exceptions.

### The 2-Out-of-5-Year Rule Explained

[According to the Internal Revenue Service](https://www.irs.gov/taxtopics/tc701), if you have a capital gain from the sale of your primary residence, you may qualify to exclude up to $250,000 of that gain for individuals and up to $500,000 if you file a joint return. You must meet the ownership and use tests to be eligible for that exclusion.

The 2-out-of-five-year rule states that you must have owned and lived in your home for a minimum of two out of the last five years before the sale. However, these two years don’t have to be consecutive, and you don’t have to live there on the sale date. You can exclude this amount each time you sell your home, but you can only claim this exclusion once every two years. Also, the ownership and occupancy periods don’t have to coincide.

For example, you can live in your home for a year, rent it out for three years, and then move back in for a year before the sale. It will still qualify as a primary residence under IRS guidelines.

Drew Reynolds (Realized® Chief Investment Officer) explains Capital Gains in Real Estate.

### Exceptions to the 2-Out-of-5-Year Rule

A vacation or even a short-term absence still counts as time you lived at home, even if you rented it out while you were away. If you became physically or mentally unable to care for yourself and spent time in a facility, that time still counts towards your 2-year residence requirements. The facility must be licensed to care for people with the same condition.

If you lived in your home for fewer than 24 months, you might be able to exclude a portion of the gain. However, you must qualify for the exception due to an extraordinary circumstance. Here are exceptions to the eligibility test:

- Separation or divorce
- Death of spouse
- The sale involved vacant land
- You owned a remainder interest and sold that right
- The previous home was destroyed or condemned
- You were a service member at ownership
- You acquired or relinquished the house in a[ 1031 like-kind exchange](https://www.realized1031.com/1031-exchange)

If you don't meet the eligibility test, you may still qualify for a partial exclusion of gain due to the following:

- A work-related move
- A health-related move
- Unforeseeable events such as death, destruction of the home, giving birth to two or more children from one pregnancy, or becoming eligible for unemployment benefits

A partial claim is calculated based on the time spent living in the residence and if you qualify under one of the special circumstances.

Here's how the exclusion can be calculated: Count the number of months spent living in the home and divide it by 24. Multiply that number by $250,000 or $500,000 if married. The remaining number is the amount of gain that you can potentially exclude from your taxable income.

The home sale exclusion can considerably lower your tax liability, but you must follow the 2-out-of-5-year rule to be eligible.

### How the exclusion can save money for taxpayers

Congress created a capital gains tax deferral for homeowners in 1951, adding Section 112 to the IRC (later Section 1034). If the owner bought another primary residence within a specified time, they could defer recognizing the gain. This rule was complicated, though, and required taxpayers to track accumulated deferrals. In 1964, Congress created Section 121, which allowed one-time exclusions under certain circumstances. The limit was for a gain of $125,000 and was only available to taxpayers over 55 who had lived in the home for at least three of the preceding five years. Section 121 did not require the homeowner to purchase a replacement property.

In 1997, Congress repealed Section 1034 and improved Section 121 by removing the age limit and single-use provision. Also, the updated rules increased the exclusion limit to $250,000 for single filers and $500,000 for married couples filing jointly.

Now, taxpayers can use the exclusion more than once as long as they meet the requirements. However, even if the taxpayer has two eligible homes, they can only use the exclusion every two years. If the taxpayer owns two houses and has split their time equally between them over the last five years, both could qualify for the exclusion when sold. But the once every two years provision will prevent the taxpayer from selling both and claiming the exclusion. Instead, they must wait two years between sales.

This material is for general information and educational purposes only. Information is based on data gathered from what we believe are reliable sources. It is not guaranteed as to accuracy, does not purport to be complete and is not intended to be used as a primary basis for investment decisions. It should also not be construed as advice meeting the particular investment needs of any investor.

Hypothetical examples shown are for illustrative purposes only.

Realized does not provide tax or legal advice. This material is not a substitute for seeking the advice of a qualified professional for your individual situation.

Download The Guide To Capital Gains

[![The Investor's Cap Gains Guidebook](https://www.realized1031.com/hs-fs/hubfs/Images/UI/graphics/composites/Capital-Gains-eBook-250.png?width=250&height=250&name=Capital-Gains-eBook-250.png "Re-invest your capital gains. ...") ](https://www.realized1031.com/blog/what-is-the-2-out-of-5-year-rule#blogform)

Download eBook

---

 

---

### The Investor's Cap Gains Guidebook

![Download The Guide To Capital Gains](https://www.realized1031.com/hs-fs/hubfs/Images/UI/graphics/composites/Capital-Gains-eBook-550.jpg?width=550&height=650&name=Capital-Gains-eBook-550.jpg)

Re-invest your capital gains. Defer or Eliminate Taxable Income.

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" : "https://schema.org",
  "@type" : "VideoObject",
  "caption" : {
    "@type" : "MediaObject",
    "contentUrl" : "https://www.realized1031.com/media-transcripts/160738385785/en.vtt",
    "inLanguage" : "en",
    "name" : "en Captions"
  },
  "contentUrl" : "https://733513.fs1.hubspotusercontent-na1.net/hubfs/733513/Video/concept-series-1/Vidyard%20Archive/Capital%20Gains%20%5Bchs%5D.mp4",
  "dateModified" : "2026-05-22T15:06:13.325Z",
  "duration" : "PT1M39.52S",
  "height" : 1080,
  "name" : "Capital Gains [chs]",
  "thumbnailUrl" : "https://api-na1.hubspot.com/filemanager/api/v3/files/thumbnail-redirect/160738385785?portalId=733513&size=medium",
  "uploadDate" : "2024-03-14T16:04:58.150Z",
  "width" : 1920
}
```

```json
{
  "@context" : "http://schema.org/",
  "@type" : "BlogPosting",
  "articleBody" : "When selling your primary residence, taxes still matter — and they can get complicated. Your home is a capital asset and, therefore, subject to capital gains tax. If your home appreciates in value, you might have to pay taxes on profit. However, there are exceptions. The 2-Out-of-5-Year Rule Explained According to the Internal Revenue Service, if you have a capital gain from the sale of your primary residence, you may qualify to exclude up to $250,000 of that gain for individuals and up to $500,000 if you file a joint return. You must meet the ownership and use tests to be eligible for that exclusion. The 2-out-of-five-year rule states that you must have owned and lived in your home for a minimum of two out of the last five years before the sale. However, these two years don’t have to be consecutive, and you don’t have to live there on the sale date. You can exclude this amount each time you sell your home, but you can only claim this exclusion once every two years. Also, the ownership and occupancy periods don’t have to coincide. For example, you can live in your home for a year, rent it out for three years, and then move back in for a year before the sale. It will still qualify as a primary residence under IRS guidelines. Drew Reynolds (Realized® Chief Investment Officer) explains Capital Gains in Real Estate. Exceptions to the 2-Out-of-5-Year Rule A vacation or even a short-term absence still counts as time you lived at home, even if you rented it out while you were away. If you became physically or mentally unable to care for yourself and spent time in a facility, that time still counts towards your 2-year residence requirements. The facility must be licensed to care for people with the same condition. If you lived in your home for fewer than 24 months, you might be able to exclude a portion of the gain. However, you must qualify for the exception due to an extraordinary circumstance. Here are exceptions to the eligibility test: Separation or divorce Death of spouse The sale involved vacant land You owned a remainder interest and sold that right The previous home was destroyed or condemned You were a service member at ownership You acquired or relinquished the house in a 1031 like-kind exchange If you don't meet the eligibility test, you may still qualify for a partial exclusion of gain due to the following: A work-related move A health-related move Unforeseeable events such as death, destruction of the home, giving birth to two or more children from one pregnancy, or becoming eligible for unemployment benefits A partial claim is calculated based on the time spent living in the residence and if you qualify under one of the special circumstances. Here's how the exclusion can be calculated: Count the number of months spent living in the home and divide it by 24. Multiply that number by $250,000 or $500,000 if married. The remaining number is the amount of gain that you can potentially exclude from your taxable income. The home sale exclusion can considerably lower your tax liability, but you must follow the 2-out-of-5-year rule to be eligible. How the exclusion can save money for taxpayers Congress created a capital gains tax deferral for homeowners in 1951, adding Section 112 to the IRC (later Section 1034). If the owner bought another primary residence within a specified time, they could defer recognizing the gain. This rule was complicated, though, and required taxpayers to track accumulated deferrals. In 1964, Congress created Section 121, which allowed one-time exclusions under certain circumstances. The limit was for a gain of $125,000 and was only available to taxpayers over 55 who had lived in the home for at least three of the preceding five years. Section 121 did not require the homeowner to purchase a replacement property. In 1997, Congress repealed Section 1034 and improved Section 121 by removing the age limit and single-use provision. Also, the updated rules increased the exclusion limit to $250,000 for single filers and $500,000 for married couples filing jointly. Now, taxpayers can use the exclusion more than once as long as they meet the requirements. However, even if the taxpayer has two eligible homes, they can only use the exclusion every two years. If the taxpayer owns two houses and has split their time equally between them over the last five years, both could qualify for the exclusion when sold. But the once every two years provision will prevent the taxpayer from selling both and claiming the exclusion. Instead, they must wait two years between sales.",
  "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" : "2025-02-20T20:52:10+0000",
  "datePublished" : "2025-02-20T20:52:10+0000",
  "description" : "The 2-out-of-five-year rule is a rule that states that you must have lived in your home for a minimum of two out of the last five years before the date of sale.",
  "headline" : "What Is the 2-Out-of-5-Year Rule?",
  "image" : {
    "@type" : "ImageObject",
    "height" : 502,
    "url" : "https://f.hubspotusercontent10.net/hubfs/733513/2-5iStock-1242933891.jpg",
    "width" : 750
  },
  "mainEntityOfPage" : "https://www.realized1031.com/blog/what-is-the-2-out-of-5-year-rule",
  "name" : "What Is the 2-Out-of-5-Year Rule?",
  "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://f.hubspotusercontent10.net/hubfs/733513/2-5iStock-1242933891.jpg"
}
```