Text or WhatsApp (808) 600-9260

Ownership and use tests for a home sale

You generally must have owned your home for at least 2 years and lived in it as your main home for at least 2 years during the 5 years ending on your sale date. Your ownership and use periods can be different, but both must fall within that window. Meeting these tests does not remove separate limits for a previous excluded sale, depreciation, nonqualified use or property acquired in certain exchanges.

What your ownership and use tests require

You generally need to satisfy both the ownership test and the use test to qualify for the home sale exclusion. Your ownership test concerns how long you owned the property. Your use test concerns how long you lived there as your main home. You must satisfy each requirement during the 5 years ending on the date you sell or exchange the home.

You meet the ownership requirement if you owned the home for 2 years or more within that period. Your qualifying occupancy must total at least 2 years inside that window. Your use requirement calls for a main home, so ownership alone does not satisfy both tests.

If you meet the applicable conditions, you may exclude up to $250,000 of gain from your income. Your exclusion limit can increase to $500,000 if you are married and file jointly. Your eligibility for that larger joint limit depends on additional requirements involving both spouses.

How your 2 year periods fit within the 5 year window

Your ownership and use periods do not have to be the same 2 years. You can meet the ownership test during one period and the use test during another. You must still fit both qualifying periods within the 5 years ending on your sale date.

Your qualifying ownership and use periods must each total at least 2 years. The statutory requirement refers to periods totaling 2 years or more. You therefore do not need to establish that your qualifying ownership and use occurred during identical periods.

You do not have to use the property as your principal residence on the sale or exchange date. You can satisfy the tests through qualifying ownership and main home use earlier in the applicable 5 year window. You must still account for the separate rules governing depreciation and nonqualified use.

What counts toward your use requirement

You generally must occupy the residence to satisfy your 2 year use requirement. Your ownership of the home does not replace that occupancy requirement. However, you can count short temporary absences, such as vacations or other seasonal absences, as periods of use.

You can count those short temporary absences even if you rent the residence during them. This rule applies to the short temporary absences described in the regulation. You cannot treat every rental period as qualifying occupancy merely because you continue to own the home.

Your occupancy requirement and the rules allocating gain to nonqualified use address separate conditions. You can meet your ownership and use tests while still having gain that you cannot exclude because it is allocated to nonqualified use. You can also have gain that remains ineligible because it equals depreciation allowed or allowable after May 6, 1997.

How your tests work when you file jointly

If you file jointly, either you or your spouse must satisfy the ownership requirement for the $500,000 exclusion limit. You and your spouse must each satisfy the use requirement. Neither of you can be ineligible because of another sale or exchange that used the exclusion during the applicable 2 year period.

You do not need joint ownership to satisfy the ownership condition for that larger limit. One spouse can meet the ownership test. You still need both spouses to meet the use test individually, along with the restriction on a previous excluded sale.

If you do not satisfy the requirements for the $500,000 joint limit, your joint limit is the sum of the limits you and your spouse would each have if unmarried. For that calculation, you each receive credit for ownership during any period either spouse owned the property. Your use requirement remains a separate condition.

Why your previous excluded sale matters

You generally cannot apply the exclusion to your current sale or exchange if you had another sale or exchange to which the exclusion applied during the 2 years ending on your current sale date. This restriction concerns your previous use of the exclusion. If your sale is because of a change in place of employment, health, or unforeseen circumstances to the extent provided in regulations, you may qualify despite failing the ownership and use requirements or the restriction on a previous excluded sale, with your applicable exclusion limit multiplied by the shorter of your qualifying ownership and use during the 5 years ending on the sale date or the time since your most recent excluded sale, divided by 2 years.

If you are a surviving spouse whose own ownership and use fall short of the 2 year requirements, you can count your late spouse's ownership and use. You may qualify for a $500,000 exclusion limit if you are unmarried on the sale or exchange date, sell no later than 2 years after your spouse's death and met the joint limit requirements immediately before the death. Those requirements mean either you or your spouse met the ownership test and both of you met the use test. Immediately before your spouse's death, you both needed eligibility under the rule limiting excluded transactions to one per 2 years.

How rental use can limit your exclusion

If you convert a rental property into your main home, satisfying the ownership and use tests does not necessarily let you exclude all your gain. You cannot exclude gain allocated to periods of nonqualified use. Your allocation generally compares your total periods of nonqualified use during ownership with your total ownership period.

For this allocation, your nonqualified use generally includes periods beginning January 1, 2009, when neither you nor your spouse or former spouse used the property as a principal residence. You do not include periods before that date in your nonqualified use numerator. Your allocation remains subject to the statutory exceptions.

You exclude from nonqualified use any portion of the applicable 5 year period after the last date you or your spouse used the property as a principal residence. You must still satisfy the ownership and use tests within the applicable window. Your rental use after moving out therefore does not remove those tests.

You also exclude up to an aggregate of 10 years when you or your spouse serve on qualified official extended duty in the uniformed services, Foreign Service or intelligence community. Another exception covers temporary absences totaling no more than 2 years due to employment changes, health conditions or other unforeseen circumstances specified by the Secretary.

You apply the nonqualified use allocation after the rule for gain attributable to depreciation. You disregard gain subject to that depreciation rule when calculating the gain allocated to nonqualified use. You can use Worksheet 3 to figure the portion allocated to nonqualified use.

Why your depreciation and exchange history still matter

If you were entitled to depreciation deductions because you used your home for business or as rental property, you cannot exclude the gain equal to depreciation allowed or allowable for periods after May 6, 1997. This limit applies even when you meet your ownership and use tests. Your depreciation limit includes allowable deductions, rather than only deductions you actually claimed.

If you acquired your home in a Section 1031 exchange in which gain was wholly or partly unrecognized, you cannot apply the home sale exclusion to a sale or exchange during the 5 years beginning on your acquisition date. This restriction also reaches a sale by someone whose basis is determined wholly or partly by reference to your basis.

Your exchange restriction measures 5 years forward from acquisition. Your ordinary ownership and use tests look at the 5 years ending on your sale date. Meeting your 2 year ownership and use requirements does not remove the separate restriction for property acquired in that kind of exchange.

When you can suspend your testing period for official duty

You can choose to pause the testing clock during your own or your spouse's qualified official extended duty as a uniformed services member, United States Foreign Service member or intelligence community employee. Your election cannot extend the ownership and use testing period by more than 10 years.

Your duty must involve active duty under a call or order for more than 90 days or for an indefinite period. You must serve at a duty station at least 50 miles from the property or reside under Government orders in Government quarters. Your service must also fall within the statute's definitions of eligible membership or employment.

Your uniformed services eligibility follows the definition in title 10, section 101(a)(5), in effect when this provision was enacted. Your Foreign Service eligibility follows paragraphs (1) through (5) of section 103 of the Foreign Service Act, also using the definition in effect when this provision was enacted.

For intelligence community eligibility, you must be an employee under title 5, section 2105, of an organization or element the statute lists. Your eligible employer can include the Office of the Director of National Intelligence, CIA, National Security Agency, Defense Intelligence Agency, National Geospatial Intelligence Agency or National Reconnaissance Office.

You can also qualify through another Defense Department office collecting specialized national intelligence through reconnaissance programs. Your eligible employment can include intelligence elements of the Army, Navy, Air Force, Marine Corps, FBI, Treasury Department, Energy Department or Coast Guard. It can also include the State Department's Bureau of Intelligence and Research or Homeland Security elements analyzing foreign intelligence information.

You can have this election in effect for only one property at a time. You cannot make an election for another property while your existing election remains in effect. You may revoke your election at any time.

Worked example

Illustrative example of your separate tests

Illustrative example: You file jointly with your spouse. Your sole ownership lasted throughout the entire testing window of 5 years. You and your spouse each lived there as your main home for 2 years. Your household's only excluded transaction falls on the current sale date, with no earlier exclusion claimed by either spouse in the preceding 2 years. Your ownership satisfies the ownership condition for the $500,000 joint limit, and your individual occupancy periods satisfy the use condition for both spouses. You do not need your spouse to have owned the home jointly with you. If your gain is $400,000, you may exclude that gain if you meet the remaining applicable conditions and none of it is ineligible because of depreciation or nonqualified use. Alternatively, your exclusion is unavailable throughout the first 5 years of ownership if Section 1031 deferred any acquisition exchange gain.

From Richard C. Wilson

Are You Prioritizing Tax Strategies or Tax Advantages?

Questions

Do your ownership and use periods have to overlap?
You can satisfy the tests during different 2 year periods. Your qualifying time for each test must fall inside a single window covering the final 5 years before disposition.
Do you have to live in your home when you sell it?
You may move out before completing your transaction. You still need the required ownership and main home use within the applicable testing period.
Can your vacation count toward the use test?
Your vacations and comparable seasonal breaks qualify as occupancy when they are brief and temporary. Your tenants' presence throughout such breaks does not prevent that credit.
Must you and your spouse both own the home?
For the $500,000 joint limit, you need either spouse to meet the ownership requirement. You both must meet the use requirement, and neither of you can be disqualified by another excluded sale during the applicable 2 year period.
Research notice. As of October 20, 2026, based on Instructions for Schedule D (Form 1040) (2025), Topic no. 701, Sale of your home, 26 U.S. Code Section 121, Exclusion of gain from sale of principal residence, Publication 523 (2025), Selling Your Home and Limits To Converting Rental Property Into A Primary Residence To Plan For IRC Section 121 Capital Gains Exclusion, our research shows this may be the case. The law changes, so this could be outdated or wrong. Confirm with a licensed tax attorney or CPA before acting. This page is general education, not tax or legal advice for your situation.
Sources
  1. Instructions for Schedule D (Form 1040) (2025)
  2. Topic no. 701, Sale of your home
  3. 26 U.S. Code Section 121, Exclusion of gain from sale of principal residence
  4. Publication 523 (2025), Selling Your Home
  5. Limits To Converting Rental Property Into A Primary Residence To Plan For IRC Section 121 Capital Gains Exclusion
  6. Internal Revenue Bulletin: 2005-7
  7. 26 CFR 1.121-1, Exclusion of gain from sale or exchange of a principal residence
  8. Tax Consequences of the Family Home for the Surviving Spouse
Richard C. Wilson, founder of Family Office Club
Questions about a sale

Talk to Richard

Richard C. Wilson, founder of Family Office Club