Can the gain on this home sale be excluded?
Enter the dates and the gain. The tests run in statutory order, each shows the evidence it used, and the result updates as you type. Up to $250,000 ($500,000 joint) is excluded if the home was owned and lived in for 730 days of the last five years and no other §121 sale fell in the last two. Fail a test for a job, health or unforeseen reason and the cap is prorated.
Model scope
- Tax year
- Date-based model - no annual tax table
- Supported situations
- A home sale using the entered ownership, occupancy and sale dates: eligibility, reduced exclusion, depreciation and nonqualified use. Joint scenarios assume shared ownership/use periods.
- Exclusions
- Separate spouse periods, automatic military/Foreign Service or temporary-absence exceptions, vacant-land and home-office allocation, and other special elections. This is not the tax due on a sale.
- Last scope review
- — checked against the model and its documentation; not a tax-law update.
The source rules 26 U.S.C. §121 and Treas. Reg. §§1.121-1, 1.121-3, full text — optional
26 U.S.C. §121 — Exclusion of gain from sale of principal residence
(a) Exclusion Gross income shall not include gain from the sale or exchange of property if, during the 5-year period ending on the date of the sale or exchange, such property has been owned and used by the taxpayer as the taxpayer’s principal residence for periods aggregating 2 years or more.
(b) Limitations
(1) In general The amount of gain excluded from gross income under subsection (a) with respect to any sale or exchange shall not exceed $250,000.
(2) Special rules for joint returns In the case of a husband and wife who make a joint return for the taxable year of the sale or exchange of the property—
(A) $500,000 Limitation for certain joint returns Paragraph (1) shall be applied by substituting “$500,000” for “$250,000” if—
(i) either spouse meets the ownership requirements of subsection (a) with respect to such property;
(ii) both spouses meet the use requirements of subsection (a) with respect to such property; and
(iii) neither spouse is ineligible for the benefits of subsection (a) with respect to such property by reason of paragraph (3).
(B) Other joint returns If such spouses do not meet the requirements of subparagraph (A), the limitation under paragraph (1) shall be the sum of the limitations under paragraph (1) to which each spouse would be entitled if such spouses had not been married. For purposes of the preceding sentence, each spouse shall be treated as owning the property during the period that either spouse owned the property.
(3) Application to only 1 sale or exchange every 2 years Subsection (a) shall not apply to any sale or exchange by the taxpayer if, during the 2-year period ending on the date of such sale or exchange, there was any other sale or exchange by the taxpayer to which subsection (a) applied.
(4) Special rule for certain sales by surviving spouses In the case of a sale or exchange of property by an unmarried individual whose spouse is deceased on the date of such sale, paragraph (1) shall be applied by substituting “$500,000” for “$250,000” if such sale occurs not later than 2 years after the date of death of such spouse and the requirements of paragraph (2)(A) were met immediately before such date of death.
(5) Exclusion of gain allocated to nonqualified use
(A) In general Subsection (a) shall not apply to so much of the gain from the sale or exchange of property as is allocated to periods of nonqualified use.
(B) Gain allocated to periods of nonqualified use For purposes of subparagraph (A), gain shall be allocated to periods of nonqualified use based on the ratio which—
(i) the aggregate periods of nonqualified use during the period such property was owned by the taxpayer, bears to
(ii) the period such property was owned by the taxpayer.
(C) Period of nonqualified use For purposes of this paragraph—
(i) In general The term “period of nonqualified use” means any period (other than the portion of any period preceding January 1, 2009) during which the property is not used as the principal residence of the taxpayer or the taxpayer’s spouse or former spouse.
(ii) Exceptions The term “period of nonqualified use” does not include—
(I) any portion of the 5-year period described in subsection (a) which is after the last date that such property is used as the principal residence of the taxpayer or the taxpayer’s spouse,
(II) any period (not to exceed an aggregate period of 10 years) during which the taxpayer or the taxpayer’s spouse is serving on qualified official extended duty (as defined in subsection (d)(9)(C)) described in clause (i), (ii), or (iii) of subsection (d)(9)(A), and
(III) any other period of temporary absence (not to exceed an aggregate period of 2 years) due to change of employment, health conditions, or such other unforeseen circumstances as may be specified by the Secretary.
(D) Coordination with recognition of gain attributable to depreciation For purposes of this paragraph—
(i) subparagraph (A) shall be applied after the application of subsection (d)(6), and
(ii) subparagraph (B) shall be applied without regard to any gain to which subsection (d)(6) applies.
(c) Exclusion for taxpayers failing to meet certain requirements
(1) In general In the case of a sale or exchange to which this subsection applies, the ownership and use requirements of subsection (a), and subsection (b)(3), shall not apply; but the dollar limitation under paragraph (1) or (2) of subsection (b), whichever is applicable, shall be equal to—
(A) the amount which bears the same ratio to such limitation (determined without regard to this paragraph) as
(B)
(i) the shorter of—
(I) the aggregate periods, during the 5-year period ending on the date of such sale or exchange, such property has been owned and used by the taxpayer as the taxpayer’s principal residence; or
(II) the period after the date of the most recent prior sale or exchange by the taxpayer to which subsection (a) applied and before the date of such sale or exchange, bears to
(ii) 2 years.
(2) Sales and exchanges to which subsection applies This subsection shall apply to any sale or exchange if—
(A) subsection (a) would not (but for this subsection) apply to such sale or exchange by reason of—
(i) a failure to meet the ownership and use requirements of subsection (a), or
(ii) subsection (b)(3), and
(B) such sale or exchange is by reason of a change in place of employment, health, or, to the extent provided in regulations, unforeseen circumstances.
(d) Special rules
(1) Joint returns If a husband and wife make a joint return for the taxable year of the sale or exchange of the property, subsections (a) and (c) shall apply if either spouse meets the ownership and use requirements of subsection (a) with respect to such property.
(2) Property of deceased spouse For purposes of this section, in the case of an unmarried individual whose spouse is deceased on the date of the sale or exchange of property, the period such unmarried individual owned and used such property shall include the period such deceased spouse owned and used such property before death.
(3) Property owned by spouse or former spouse For purposes of this section—
(A) Property transferred to individual from spouse or former spouse In the case of an individual holding property transferred to such individual in a transaction described in section 1041(a), the period such individual owns such property shall include the period the transferor owned the property.
(B) Property used by former spouse pursuant to divorce decree, etc. Solely for purposes of this section, an individual shall be treated as using property as such individual’s principal residence during any period of ownership while such individual’s spouse or former spouse is granted use of the property under a divorce or separation instrument.
(C) Divorce or separation instrument For purposes of this paragraph, the term “divorce or separation instrument” means—
(i) a decree of divorce or separate maintenance or a written instrument incident to such a decree,
(ii) a written separation agreement, or
(iii) a decree (not described in clause (i)) requiring a spouse to make payments for the support or maintenance of the other spouse.
(4) Tenant-stockholder in cooperative housing corporation For purposes of this section, if the taxpayer holds stock as a tenant-stockholder (as defined in section 216) in a cooperative housing corporation (as defined in such section), then—
(A) the holding requirements of subsection (a) shall be applied to the holding of such stock, and
(B) the use requirements of subsection (a) shall be applied to the house or apartment which the taxpayer was entitled to occupy as such stockholder.
(5) Involuntary conversions
(A) In general For purposes of this section, the destruction, theft, seizure, requisition, or condemnation of property shall be treated as the sale of such property.
(B) Application of section 1033 In applying section 1033 (relating to involuntary conversions), the amount realized from the sale or exchange of property shall be treated as being the amount determined without regard to this section, reduced by the amount of gain not included in gross income pursuant to this section.
(C) Property acquired after involuntary conversion If the basis of the property sold or exchanged is determined (in whole or in part) under section 1033(b) (relating to basis of property acquired through involuntary conversion), then the holding and use by the taxpayer of the converted property shall be treated as holding and use by the taxpayer of the property sold or exchanged.
(6) Recognition of gain attributable to depreciation Subsection (a) shall not apply to so much of the gain from the sale of any property as does not exceed the portion of the depreciation adjustments (as defined in section 1250(b)(3)) attributable to periods after May 6, 1997, in respect of such property.
(7) Determination of use during periods of out-of-residence care In the case of a taxpayer who—
(A) becomes physically or mentally incapable of self-care, and
(B) owns property and uses such property as the taxpayer’s principal residence during the 5-year period described in subsection (a) for periods aggregating at least 1 year,
then the taxpayer shall be treated as using such property as the taxpayer’s principal residence during any time during such 5-year period in which the taxpayer owns the property and resides in any facility (including a nursing home) licensed by a State or political subdivision to care for an individual in the taxpayer’s condition.
(8) Sales of remainder interests For purposes of this section—
(A) In general At the election of the taxpayer, this section shall not fail to apply to the sale or exchange of an interest in a principal residence by reason of such interest being a remainder interest in such residence, but this section shall not apply to any other interest in such residence which is sold or exchanged separately.
(B) Exception for sales to related parties Subparagraph (A) shall not apply to any sale to, or exchange with, any person who bears a relationship to the taxpayer which is described in section 267(b) or 707(b).
(9) Uniformed services, Foreign Service, and intelligence community
(A) In general At the election of an individual with respect to a property, the running of the 5-year period described in subsections (a) and (c)(1)(B) and paragraph (7) of this subsection with respect to such property shall be suspended during any period that such individual or such individual’s spouse is serving on qualified official extended duty—
(i) as a member of the uniformed services,
(ii) as a member of the Foreign Service of the United States, or
(iii) as an employee of the intelligence community.
(B) Maximum period of suspension The 5-year period described in subsection (a) shall not be extended more than 10 years by reason of subparagraph (A).
(C) Qualified official extended duty For purposes of this paragraph—
(i) In general The term “qualified official extended duty” means any extended duty while serving at a duty station which is at least 50 miles from such property or while residing under Government orders in Government quarters.
(ii) Uniformed services The term “uniformed services” has the meaning given such term by section 101(a)(5) of title 10, United States Code, as in effect on the date of the enactment of this paragraph.
(iii) Foreign Service of the United States The term “member of the Foreign Service of the United States” has the meaning given the term “member of the Service” by paragraph (1), (2), (3), (4), or (5) of section 103 of the Foreign Service Act of 1980, as in effect on the date of the enactment of this paragraph.
(iv) Employee of intelligence community The term “employee of the intelligence community” means an employee (as defined by section 2105 of title 5, United States Code) of—
(I) the Office of the Director of National Intelligence,
(II) the Central Intelligence Agency,
(III) the National Security Agency,
(IV) the Defense Intelligence Agency,
(V) the National Geospatial-Intelligence Agency,
(VI) the National Reconnaissance Office,
(VII) any other office within the Department of Defense for the collection of specialized national intelligence through reconnaissance programs,
(VIII) any of the intelligence elements of the Army, the Navy, the Air Force, the Marine Corps, the Federal Bureau of Investigation, the Department of Treasury, the Department of Energy, and the Coast Guard,
(IX) the Bureau of Intelligence and Research of the Department of State, or
(X) any of the elements of the Department of Homeland Security concerned with the analyses of foreign intelligence information.
(v) Extended duty The term “extended duty” means any period of active duty pursuant to a call or order to such duty for a period in excess of 90 days or for an indefinite period.
(D) Special rules relating to election
(i) Election limited to 1 property at a time An election under subparagraph (A) with respect to any property may not be made if such an election is in effect with respect to any other property.
(ii) Revocation of election An election under subparagraph (A) may be revoked at any time.
(10) Property acquired in like-kind exchange If a taxpayer acquires property in an exchange with respect to which gain is not recognized (in whole or in part) to the taxpayer under subsection (a) or (b) of section 1031, subsection (a) shall not apply to the sale or exchange of such property by such taxpayer (or by any person whose basis in such property is determined, in whole or in part, by reference to the basis in the hands of such taxpayer) during the 5-year period beginning with the date of such acquisition.
[(11) Repealed. Pub. L. 111–312, title III, § 301(a), Dec. 17, 2010, 124 Stat. 3300]
(12) Peace Corps
(A) In general At the election of an individual with respect to a property, the running of the 5-year period described in subsections (a) and (c)(1)(B) and paragraph (7) of this subsection with respect to such property shall be suspended during any period that such individual or such individual’s spouse is serving outside the United States—
(i) on qualified official extended duty (as defined in paragraph (9)(C)) as an employee of the Peace Corps, or
(ii) as an enrolled volunteer or volunteer leader under section 5 or 6 (as the case may be) of the Peace Corps Act (22 U.S.C. 2504, 2505).
(B) Applicable rules For purposes of subparagraph (A), rules similar to the rules of subparagraphs (B) and (D) of paragraph (9) shall apply.
(e) Denial of exclusion for expatriates This section shall not apply to any sale or exchange by an individual if the treatment provided by section 877(a)(1) applies to such individual.
(f) Election to have section not apply This section shall not apply to any sale or exchange with respect to which the taxpayer elects not to have this section apply.
(g) Residences acquired in rollovers under section 1034 For purposes of this section, in the case of property the acquisition of which by the taxpayer resulted under section 1034 [1] (as in effect on the day before the date of the enactment of this section) in the nonrecognition of any part of the gain realized on the sale or exchange of another residence, in determining the period for which the taxpayer has owned and used such property as the taxpayer’s principal residence, there shall be included the aggregate periods for which such other residence (and each prior residence taken into account under section 1223(6) [1] in determining the holding period of such property) had been so owned and used.
26 C.F.R. §1.121-1 — Exclusion of gain from sale or exchange of a principal residence
(a) In general. Section 121 provides that, under certain circumstances, gross income does not include gain realized on the sale or exchange of property that was owned and used by a taxpayer as the taxpayer's principal residence. Subject to the other provisions of section 121, a taxpayer may exclude gain only if, during the 5-year period ending on the date of the sale or exchange, the taxpayer owned and used the property as the taxpayer's principal residence for periods aggregating 2 years or more.
(b) Residence—(1) In general. Whether property is used by the taxpayer as the taxpayer's residence depends upon all the facts and circumstances. A property used by the taxpayer as the taxpayer's residence may include a houseboat, a house trailer, or the house or apartment that the taxpayer is entitled to occupy as a tenant-stockholder in a cooperative housing corporation (as those terms are defined in section 216(b)(1) and (2)). Property used by the taxpayer as the taxpayer's residence does not include personal property that is not a fixture under local law.
(2) Principal residence. In the case of a taxpayer using more than one property as a residence, whether property is used by the taxpayer as the taxpayer's principal residence depends upon all the facts and circumstances. If a taxpayer alternates between 2 properties, using each as a residence for successive periods of time, the property that the taxpayer uses a majority of the time during the year ordinarily will be considered the taxpayer's principal residence. In addition to the taxpayer's use of the property, relevant factors in determining a taxpayer's principal residence, include, but are not limited to—
(i) The taxpayer's place of employment;
(ii) The principal place of abode of the taxpayer's family members;
(iii) The address listed on the taxpayer's federal and state tax returns, driver's license, automobile registration, and voter registration card;
(iv) The taxpayer's mailing address for bills and correspondence;
(v) The location of the taxpayer's banks; and
(vi) The location of religious organizations and recreational clubs with which the taxpayer is affiliated.
(3) Vacant land—(i) In general. The sale or exchange of vacant land is not a sale or exchange of the taxpayer's principal residence unless—
(A) The vacant land is adjacent to land containing the dwelling unit of the taxpayer's principal residence;
(B) The taxpayer owned and used the vacant land as part of the taxpayer's principal residence;
(C) The taxpayer sells or exchanges the dwelling unit in a sale or exchange that meets the requirements of section 121 within 2 years before or 2 years after the date of the sale or exchange of the vacant land; and
(D) The requirements of section 121 have otherwise been met with respect to the vacant land.
(ii) Limitations—(A) Maximum limitation amount. For purposes of section 121(b)(1) and (2) (relating to the maximum limitation amount of the section 121 exclusion), the sale or exchange of the dwelling unit and the vacant land are treated as one sale or exchange. Therefore, only one maximum limitation amount of $250,000 ($500,000 for certain joint returns) applies to the combined sales or exchanges of vacant land and the dwelling unit. In applying the maximum limitation amount to sales or exchanges that occur in different taxable years, gain from the sale or exchange of the dwelling unit, up to the maximum limitation amount under section 121(b)(1) or (2), is excluded first and each spouse is treated as excluding one-half of the gain from a sale or exchange to which section 121(b)(2)(A) and § 1.121-2(a)(3)(i) (relating to the limitation for certain joint returns) apply.
(B) Sale or exchange of more than one principal residence in 2-year period. If a dwelling unit and vacant land are sold or exchanged in separate transactions that qualify for the section 121 exclusion under this paragraph (b)(3), each of the transactions is disregarded in applying section 121(b)(3) (restricting the application of section 121 to only 1 sale or exchange every 2 years) to the other transactions but is taken into account as a sale or exchange of a principal residence on the date of the transaction in applying section 121(b)(3) to that transaction and the sale or exchange of any other principal residence.
(C) Sale or exchange of vacant land before dwelling unit. If the sale or exchange of the dwelling unit occurs in a later taxable year than the sale or exchange of the vacant land and after the date prescribed by law (including extensions) for the filing of the return for the taxable year of the sale or exchange of the vacant land, any gain from the sale or exchange of the vacant land must be treated as taxable on the taxpayer's return for the taxable year of the sale or exchange of the vacant land. If the taxpayer has reported gain from the sale or exchange of the vacant land as taxable, after satisfying the requirements of this paragraph (b)(3) the taxpayer may claim the section 121 exclusion with regard to the sale or exchange of the vacant land (for any period for which the period of limitation under section 6511 has not expired) by filing an amended return.
(4) Examples. The provisions of this paragraph (b) are illustrated by the following examples:
(c) Ownership and use requirements—(1) In general. The requirements of ownership and use for periods aggregating 2 years or more may be satisfied by establishing ownership and use for 24 full months or for 730 days (365 × 2). The requirements of ownership and use may be satisfied during nonconcurrent periods if both the ownership and use tests are met during the 5-year period ending on the date of the sale or exchange.
(2) Use.
(i) In establishing whether a taxpayer has satisfied the 2-year use requirement, occupancy of the residence is required. However, short temporary absences, such as for vacation or other seasonal absence (although accompanied with rental of the residence), are counted as periods of use.
(ii) Determination of use during periods of out-of-residence care. If a taxpayer has become physically or mentally incapable of self-care and the taxpayer sells or exchanges property that the taxpayer owned and used as the taxpayer's principal residence for periods aggregating at least 1 year during the 5-year period preceding the sale or exchange, the taxpayer is treated as using the property as the taxpayer's principal residence for any period of time during the 5-year period in which the taxpayer owns the property and resides in any facility (including a nursing home) licensed by a State or political subdivision to care for an individual in the taxpayer's condition.
(3) Ownership—(i) Trusts. If a residence is owned by a trust, for the period that a taxpayer is treated under sections 671 through 679 (relating to the treatment of grantors and others as substantial owners) as the owner of the trust or the portion of the trust that includes the residence, the taxpayer will be treated as owning the residence for purposes of satisfying the 2-year ownership requirement of section 121, and the sale or exchange by the trust will be treated as if made by the taxpayer.
(ii) Certain single owner entities. If a residence is owned by an eligible entity (within the meaning of § 301.7701-3(a) of this chapter) that has a single owner and is disregarded for federal tax purposes as an entity separate from its owner under § 301.7701-3 of this chapter, the owner will be treated as owning the residence for purposes of satisfying the 2-year ownership requirement of section 121, and the sale or exchange by the entity will be treated as if made by the owner.
(4) Examples. The provisions of this paragraph (c) are illustrated by the following examples. The examples assume that § 1.121-3 (relating to the reduced maximum exclusion) does not apply to the sale of the property. The examples are as follows:
(d) Depreciation taken after May 6, 1997—(1) In general. The section 121 exclusion does not apply to so much of the gain from the sale or exchange of property as does not exceed the portion of the depreciation adjustments (as defined in section 1250(b)(3)) attributable to the property for periods after May 6, 1997. Depreciation adjustments allocable to any portion of the property to which the section 121 exclusion does not apply under paragraph (e) of this section are not taken into account for this purpose.
(2) Example. The provisions of this paragraph (d) are illustrated by the following example:
(e) Property used in part as a principal residence—(1) Allocation required. Section 121 will not apply to the gain allocable to any portion (separate from the dwelling unit) of property sold or exchanged with respect to which a taxpayer does not satisfy the use requirement. Thus, if a portion of the property was used for residential purposes and a portion of the property (separate from the dwelling unit) was used for non-residential purposes, only the gain allocable to the residential portion is excludable under section 121. No allocation is required if both the residential and non-residential portions of the property are within the same dwelling unit. However, section 121 does not apply to the gain allocable to the residential portion of the property to the extent provided by paragraph (d) of this section.
(2) Dwelling unit. For purposes of this paragraph (e), the term dwelling unit has the same meaning as in section 280A(f)(1), but does not include appurtenant structures or other property.
(3) Method of allocation. For purposes of determining the amount of gain allocable to the residential and non-residential portions of the property, the taxpayer must allocate the basis and the amount realized between the residential and the non-residential portions of the property using the same method of allocation that the taxpayer used to determine depreciation adjustments (as defined in section 1250(b)(3)), if applicable.
(4) Examples. The provisions of this paragraph (e) are illustrated by the following examples:
(ii) Because the stable and the 28 acres used in the business are separate from the dwelling unit, the allocation rules under this paragraph (e) apply and A must allocate the basis and amount realized between the portion of the property that he used as his principal residence and the portion of the property that he used for non-residential purposes. A determines that $14,000 of the gain is allocable to the non-residential-use portion of the property and that $10,000 of the gain is allocable to the portion of the property used as his residence. A must recognize the $14,000 of gain allocable to the non-residential-use portion of the property ($9,000 of which is unrecaptured section 1250 gain within the meaning of section 1(h), and $5,000 of which is adjusted net capital gain). A may exclude $10,000 of the gain from the sale of the property.
(ii) Because the portion of the property used in the antiques business is separate from the dwelling unit, the allocation rules under this paragraph (e) apply. B must allocate basis and amount realized between the portion of the property that she used as her principal residence and the portion of the property that she used for non-residential purposes. B determines that $4,000 of the gain is allocable to the non-residential portion of the property and that $17,000 of the gain is allocable to the portion of the property that she used as her principal residence.
(iii) B must recognize the $4,000 of gain allocable to the non-residential portion of the property (all of which is unrecaptured section 1250 gain within the meaning of section 1(h)). In addition, the section 121 exclusion does not apply to the gain allocable to the residential portion of the property to the extent of the depreciation adjustments attributable to the residential portion of the property for periods after May 6, 1997 ($3,000). Therefore, B may exclude $14,000 of the gain from the sale of the property.
(ii) Because the basement apartment and the upper floors of the townhouse are separate dwelling units, C must allocate the gain between the portion of the property that he used as his principal residence and the portion of the property that he used for non-residential purposes under paragraph (e) of this section. After allocating the basis and the amount realized between the residential and non-residential portions of the property, C determines that $6,000 of the gain is allocable to the non-residential portion of the property and that $12,000 of the gain is allocable to the portion of the property used as his residence. C must recognize the $6,000 of gain allocable to the non-residential portion of the property ($2,000 of which is unrecaptured section 1250 gain within the meaning of section 1(h), and $4,000 of which is adjusted net capital gain). C may exclude $12,000 of the gain from the sale of the property.
(f) Effective date. This section is applicable for sales and exchanges on or after Decmeber 24, 2002. For rules on electing to apply the provisions of this section retroactively, see § 1.121-4(j).
26 C.F.R. §1.121-3 — Reduced maximum exclusion for taxpayers failing to meet certain requirements
(a) In general. In lieu of the limitation under section 121(b) and § 1.121-2, a reduced maximum exclusion limitation may be available for a taxpayer who sells or exchanges property used as the taxpayer's principal residence but fails to satisfy the ownership and use requirements described in § 1.121-1(a) and (c) or the 2-year limitation described in § 1.121-2(b).
(b) Primary reason for sale or exchange. In order for a taxpayer to claim a reduced maximum exclusion under section 121(c), the sale or exchange must be by reason of a change in place of employment, health, or unforeseen circumstances. If a safe harbor described in this section applies, a sale or exchange is deemed to be by reason of a change in place of employment, health, or unforeseen circumstances. If a safe harbor described in this section does not apply, a sale or exchange is by reason of a change in place of employment, health, or unforeseen circumstances only if the primary reason for the sale or exchange is a change in place of employment (within the meaning of paragraph (c) of this section), health (within the meaning of paragraph (d) of this section), or unforeseen circumstances (within the meaning of paragraph (e) of this section). Whether the requirements of this section are satisfied depends upon all the facts and circumstances. Factors that may be relevant in determining the taxpayer's primary reason for the sale or exchange include (but are not limited to) the extent to which—
(1) The sale or exchange and the circumstances giving rise to the sale or exchange are proximate in time;
(2) The suitability of the property as the taxpayer's principal residence materially changes;
(3) The taxpayer's financial ability to maintain the property is materially impaired;
(4) The taxpayer uses the property as the taxpayer's residence during the period of the taxpayer's ownership of the property;
(5) The circumstances giving rise to the sale or exchange are not reasonably foreseeable when the taxpayer begins using the property as the taxpayer's principal residence; and
(6) The circumstances giving rise to the sale or exchange occur during the period of the taxpayer's ownership and use of the property as the taxpayer's principal residence.
(c) Sale or exchange by reason of a change in place of employment—(1) In general. A sale or exchange is by reason of a change in place of employment if, in the case of a qualified individual described in paragraph (f) of this section, the primary reason for the sale or exchange is a change in the location of the individual's employment.
(2) Distance safe harbor. A sale or exchange is deemed to be by reason of a change in place of employment (within the meaning of paragraph (c)(1) of this section) if—
(i) The change in place of employment occurs during the period of the taxpayer's ownership and use of the property as the taxpayer's principal residence; and
(ii) The qualified individual's new place of employment is at least 50 miles farther from the residence sold or exchanged than was the former place of employment, or, if there was no former place of employment, the distance between the qualified individual's new place of employment and the residence sold or exchanged is at least 50 miles.
(3) Employment. For purposes of this paragraph (c), employment includes the commencement of employment with a new employer, the continuation of employment with the same employer, and the commencement or continuation of self-employment.
(4) Examples. The following examples illustrate the rules of this paragraph (c):
(d) Sale or exchange by reason of health—(1) In general. A sale or exchange is by reason of health if the primary reason for the sale or exchange is to obtain, provide, or facilitate the diagnosis, cure, mitigation, or treatment of disease, illness, or injury of a qualified individual described in paragraph (f) of this section, or to obtain or provide medical or personal care for a qualified individual suffering from a disease, illness, or injury. A sale or exchange that is merely beneficial to the general health or well-being of an individual is not a sale or exchange by reason of health.
(2) Physician's recommendation safe harbor. A sale or exchange is deemed to be by reason of health if a physician (as defined in section 213(d)(4)) recommends a change of residence for reasons of health (as defined in paragraph (d)(1) of this section).
(3) Examples. The following examples illustrate the rules of this paragraph (d):
(e) Sale or exchange by reason of unforeseen circumstances—(1) In general. A sale or exchange is by reason of unforeseen circumstances if the primary reason for the sale or exchange is the occurrence of an event that the taxpayer could not reasonably have anticipated before purchasing and occupying the residence. A sale or exchange by reason of unforeseen circumstances (other than a sale or exchange deemed to be by reason of unforeseen circumstances under paragraph (e)(2) or (3) of this section) does not qualify for the reduced maximum exclusion if the primary reason for the sale or exchange is a preference for a different residence or an improvement in financial circumstances.
(2) Specific event safe harbors. A sale or exchange is deemed to be by reason of unforeseen circumstances (within the meaning of paragraph (e)(1) of this section) if any of the events specified in paragraphs (e)(2)(i) through (iii) of this section occur during the period of the taxpayer's ownership and use of the residence as the taxpayer's principal residence:
(i) The involuntary conversion of the residence.
(ii) Natural or man-made disasters or acts of war or terrorism resulting in a casualty to the residence (without regard to deductibility under section 165(h)).
(iii) In the case of a qualified individual described in paragraph (f) of this section—
(A) Death;
(B) The cessation of employment as a result of which the qualified individual is eligible for unemployment compensation (as defined in section 85(b));
(C) A change in employment or self-employment status that results in the taxpayer's inability to pay housing costs and reasonable basic living expenses for the taxpayer's household (including amounts for food, clothing, medical expenses, taxes, transportation, court-ordered payments, and expenses reasonably necessary to the production of income, but not for the maintenance of an affluent or luxurious standard of living);
(D) Divorce or legal separation under a decree of divorce or separate maintenance; or
(E) Multiple births resulting from the same pregnancy.
(3) Designation of additional events as unforeseen circumstances. The Commissioner may designate other events or situations as unforeseen circumstances in published guidance of general applicability and may issue rulings addressed to specific taxpayers identifying other events or situations as unforeseen circumstances with regard to those taxpayers (see § 601.601(d)(2) of this chapter).
(4) Examples. The following examples illustrate the rules of this paragraph (e):
(f) Qualified individual. For purposes of this section, qualified individual means—
(1) The taxpayer;
(2) The taxpayer's spouse;
(3) A co-owner of the residence;
(4) A person whose principal place of abode is in the same household as the taxpayer; or
(5) For purposes of paragraph (d) of this section, a person bearing a relationship specified in sections 152(a)(1) through 152(a)(8) (without regard to qualification as a dependent) to a qualified individual described in paragraphs (f)(1) through (4) of this section, or a descendant of the taxpayer's grandparent.
(g) Computation of reduced maximum exclusion.
(1) The reduced maximum exclusion is computed by multiplying the maximum dollar limitation of $250,000 ($500,000 for certain joint filers) by a fraction. The numerator of the fraction is the shortest of the period of time that the taxpayer owned the property during the 5-year period ending on the date of the sale or exchange; the period of time that the taxpayer used the property as the taxpayer's principal residence during the 5-year period ending on the date of the sale or exchange; or the period of time between the date of a prior sale or exchange of property for which the taxpayer excluded gain under section 121 and the date of the current sale or exchange. The numerator of the fraction may be expressed in days or months. The denominator of the fraction is 730 days or 24 months (depending on the measure of time used in the numerator).
(2) Examples. The following examples illustrate the rules of this paragraph (g):
(ii) Because H and W have not each used the house as their principal residence for at least 2 years during the 5-year period preceding its sale, the maximum dollar limitation amount that may be claimed by H and W will not be $500,000, but the sum of each spouse's limitation amount determined on a separate basis as if they had not been married. (See § 1.121-2(a)(3)(ii).)
(iii) H is eligible to exclude up to $250,000 of gain because he meets the requirements of section 121. W is not eligible to exclude the maximum dollar limitation amount. Instead, because the sale of the house is due to a change in place of employment, W is eligible to claim a reduced maximum exclusion of up to $125,000 of the gain (365/730 × $250,000). Therefore, H and W are eligible to exclude up to $375,000 of gain ($250,000 + $125,000) from the sale of the house.
(h) Effective dates. Paragraphs (a) and (g) of this section are applicable for sales and exchanges on or after December 24, 2002. Paragraphs (b) through (f) of this section are applicable for sales and exchanges on or after August 13, 2004.
What would change this
The five-year window
Ownership and use are measured over the five years ending on the sale. Each needs 730 days; they do not have to overlap.
What the exclusion is worth
The tests, in statutory order
Each step shows what your facts say. The path you take is inked and steps you never reach are dimmed. Open a step for the controlling text; hover or focus Steps B, C and D to see them on the chart.
1Was the property used as the taxpayer’s principal residence?§121(a); Treas. Reg. §1.121-1(b)(2)
Treas. Reg. §1.121-1(b)(2)
(2) Principal residence. In the case of a taxpayer using more than one property as a residence, whether property is used by the taxpayer as the taxpayer's principal residence depends upon all the facts and circumstances. If a taxpayer alternates between 2 properties, using each as a residence for successive periods of time, the property that the taxpayer uses a majority of the time during the year ordinarily will be considered the taxpayer's principal residence. In addition to the taxpayer's use of the property, relevant factors in determining a taxpayer's principal residence, include, but are not limited to—(i) The taxpayer's place of employment;(ii) The principal place of abode of the taxpayer's family members;(iii) The address listed on the taxpayer's federal and state tax returns, driver's license, automobile registration, and voter registration card;(iv) The taxpayer's mailing address for bills and correspondence;(v) The location of the taxpayer's banks; and(vi) The location of religious organizations and recreational clubs with which the taxpayer is affiliated.Plain EnglishOnly the home you mainly live in qualifies. If you have two, it’s usually the one you live in most of the year.
- NoNo §121 exclusion.
- YesContinue to Step 2
2Owned for periods aggregating 2 years or more during the 5-year period?§121(a); §121(d)(3)(A), (d)(9), (d)(10)
26 U.S.C. §121(a)
(a) Exclusion Gross income shall not include gain from the sale or exchange of property if, during the 5-year period ending on the date of the sale or exchange, such property has been owned and used by the taxpayer as the taxpayer’s principal residence for periods aggregating 2 years or more.Treas. Reg. §1.121-1(c)(1)
(c) Ownership and use requirements—(1) In general. The requirements of ownership and use for periods aggregating 2 years or more may be satisfied by establishing ownership and use for 24 full months or for 730 days (365 × 2). The requirements of ownership and use may be satisfied during nonconcurrent periods if both the ownership and use tests are met during the 5-year period ending on the date of the sale or exchange.26 U.S.C. §121(d)(10)
(10) Property acquired in like-kind exchange If a taxpayer acquires property in an exchange with respect to which gain is not recognized (in whole or in part) to the taxpayer under subsection (a) or (b) of section 1031, subsection (a) shall not apply to the sale or exchange of such property by such taxpayer (or by any person whose basis in such property is determined, in whole or in part, by reference to the basis in the hands of such taxpayer) during the 5-year period beginning with the date of such acquisition.26 U.S.C. §121(d)(9)(A)–(B)
(A) In general At the election of an individual with respect to a property, the running of the 5-year period described in subsections (a) and (c)(1)(B) and paragraph (7) of this subsection with respect to such property shall be suspended during any period that such individual or such individual’s spouse is serving on qualified official extended duty—(i) as a member of the uniformed services,(ii) as a member of the Foreign Service of the United States, or(iii) as an employee of the intelligence community.(B) Maximum period of suspension The 5-year period described in subsection (a) shall not be extended more than 10 years by reason of subparagraph (A).26 U.S.C. §121(d)(3)(A)
(A) Property transferred to individual from spouse or former spouse In the case of an individual holding property transferred to such individual in a transaction described in section 1041(a), the period such individual owns such property shall include the period the transferor owned the property.Plain EnglishYou need 2 years of ownership, about 730 days, in the 5 years before the sale. The days don’t have to be consecutive. A home acquired in a §1031 exchange also has to be held 5 years. Military, Foreign Service, and intelligence personnel can elect to pause the 5-year clock, for up to 10 years.
- NoGo to Reduced exclusion
- YesContinue to Step 3
3Used as the principal residence for periods aggregating 2 years or more?§121(a); Treas. Reg. §1.121-1(c)(2); §121(d)(3)(B), (d)(7)
Treas. Reg. §1.121-1(c)(2)
(2) Use.(i) In establishing whether a taxpayer has satisfied the 2-year use requirement, occupancy of the residence is required. However, short temporary absences, such as for vacation or other seasonal absence (although accompanied with rental of the residence), are counted as periods of use.(ii) Determination of use during periods of out-of-residence care. If a taxpayer has become physically or mentally incapable of self-care and the taxpayer sells or exchanges property that the taxpayer owned and used as the taxpayer's principal residence for periods aggregating at least 1 year during the 5-year period preceding the sale or exchange, the taxpayer is treated as using the property as the taxpayer's principal residence for any period of time during the 5-year period in which the taxpayer owns the property and resides in any facility (including a nursing home) licensed by a State or political subdivision to care for an individual in the taxpayer's condition.26 U.S.C. §121(d)(7)
(7) Determination of use during periods of out-of-residence care In the case of a taxpayer who—(A) becomes physically or mentally incapable of self-care, and(B) owns property and uses such property as the taxpayer’s principal residence during the 5-year period described in subsection (a) for periods aggregating at least 1 year,then the taxpayer shall be treated as using such property as the taxpayer’s principal residence during any time during such 5-year period in which the taxpayer owns the property and resides in any facility (including a nursing home) licensed by a State or political subdivision to care for an individual in the taxpayer’s condition.26 U.S.C. §121(d)(3)(B)
(B) Property used by former spouse pursuant to divorce decree, etc. Solely for purposes of this section, an individual shall be treated as using property as such individual’s principal residence during any period of ownership while such individual’s spouse or former spouse is granted use of the property under a divorce or separation instrument.Plain EnglishYou also need 2 years of living there as your main home in the same 5 years, but those years don’t have to overlap with the ownership years. Time in a licensed care facility counts if you lived there at least 1 year first. Time your ex-spouse lives there under a divorce decree counts as yours.
- NoGo to Reduced exclusion
- YesContinue to Step 4
4Was there any other sale to which §121(a) applied during the 2-year period?§121(b)(3)(A)
26 U.S.C. §121(b)(3)
(3) Application to only 1 sale or exchange every 2 years Subsection (a) shall not apply to any sale or exchange by the taxpayer if, during the 2-year period ending on the date of such sale or exchange, there was any other sale or exchange by the taxpayer to which subsection (a) applied.Plain EnglishYou can use the exclusion only once every 2 years, counted from sale date to sale date.
- YesGo to Reduced exclusion
- NoContinue to Step 5
5Is this a joint return of a husband and wife?§121(b)(1); §121(b)(4)
26 U.S.C. §121(b)(1)
(1) In general The amount of gain excluded from gross income under subsection (a) with respect to any sale or exchange shall not exceed $250,000.26 U.S.C. §121(b)(4)
(4) Special rule for certain sales by surviving spouses In the case of a sale or exchange of property by an unmarried individual whose spouse is deceased on the date of such sale, paragraph (1) shall be applied by substituting “$500,000” for “$250,000” if such sale occurs not later than 2 years after the date of death of such spouse and the requirements of paragraph (2)(A) were met immediately before such date of death.Plain EnglishSingle filers are capped at $250,000. An unmarried surviving spouse keeps the $500,000 cap for 2 years after the death.
- NoExclude up to $250,000 §121(b)(1) ($500,000 for an unmarried surviving spouse, §121(b)(4)). Then see Always check.
- YesContinue to Step 6
6Does the couple meet all three requirements of §121(b)(2)(A)?§121(b)(2)(A)–(B)
26 U.S.C. §121(b)(2)
(2) Special rules for joint returns In the case of a husband and wife who make a joint return for the taxable year of the sale or exchange of the property—(A) $500,000 Limitation for certain joint returns Paragraph (1) shall be applied by substituting “$500,000” for “$250,000” if—(i) either spouse meets the ownership requirements of subsection (a) with respect to such property;(ii) both spouses meet the use requirements of subsection (a) with respect to such property; and(iii) neither spouse is ineligible for the benefits of subsection (a) with respect to such property by reason of paragraph (3).(B) Other joint returns If such spouses do not meet the requirements of subparagraph (A), the limitation under paragraph (1) shall be the sum of the limitations under paragraph (1) to which each spouse would be entitled if such spouses had not been married. For purposes of the preceding sentence, each spouse shall be treated as owning the property during the period that either spouse owned the property.Plain EnglishJoint filers get $500,000 if at least one spouse owned it, both lived there, and neither used the exclusion in the last 2 years. If not, each spouse gets up to $250,000 on their own, and the two are added together.
- YesExclude up to $500,000 §121(b)(2)(A). Then see Always check.
- NoSum of each spouse’s separate limit §121(b)(2)(B).
Side branch · Reduced exclusion
Reached from Step 2, 3, or 4. Governed by §121(c) and Treas. Reg. §1.121-3.
AIs the sale “by reason of a change in place of employment, health, or … unforeseen circumstances”?§121(c)(2); Treas. Reg. §1.121-3(c)–(e)
26 U.S.C. §121(c)(2)
(2) Sales and exchanges to which subsection applies This subsection shall apply to any sale or exchange if—(A) subsection (a) would not (but for this subsection) apply to such sale or exchange by reason of—(i) a failure to meet the ownership and use requirements of subsection (a), or(ii) subsection (b)(3), and(B) such sale or exchange is by reason of a change in place of employment, health, or, to the extent provided in regulations, unforeseen circumstances.Treas. Reg. §1.121-3(c)(2) · Employment safe harbor
(2) Distance safe harbor. A sale or exchange is deemed to be by reason of a change in place of employment (within the meaning of paragraph (c)(1) of this section) if—(i) The change in place of employment occurs during the period of the taxpayer's ownership and use of the property as the taxpayer's principal residence; and(ii) The qualified individual's new place of employment is at least 50 miles farther from the residence sold or exchanged than was the former place of employment, or, if there was no former place of employment, the distance between the qualified individual's new place of employment and the residence sold or exchanged is at least 50 miles.Treas. Reg. §1.121-3(d)(1)–(2) · Health
(d) Sale or exchange by reason of health—(1) In general. A sale or exchange is by reason of health if the primary reason for the sale or exchange is to obtain, provide, or facilitate the diagnosis, cure, mitigation, or treatment of disease, illness, or injury of a qualified individual described in paragraph (f) of this section, or to obtain or provide medical or personal care for a qualified individual suffering from a disease, illness, or injury. A sale or exchange that is merely beneficial to the general health or well-being of an individual is not a sale or exchange by reason of health.(2) Physician's recommendation safe harbor. A sale or exchange is deemed to be by reason of health if a physician (as defined in section 213(d)(4)) recommends a change of residence for reasons of health (as defined in paragraph (d)(1) of this section).Treas. Reg. §1.121-3(e)(1)–(2) · Unforeseen circumstances
(e) Sale or exchange by reason of unforeseen circumstances—(1) In general. A sale or exchange is by reason of unforeseen circumstances if the primary reason for the sale or exchange is the occurrence of an event that the taxpayer could not reasonably have anticipated before purchasing and occupying the residence. A sale or exchange by reason of unforeseen circumstances (other than a sale or exchange deemed to be by reason of unforeseen circumstances under paragraph (e)(2) or (3) of this section) does not qualify for the reduced maximum exclusion if the primary reason for the sale or exchange is a preference for a different residence or an improvement in financial circumstances.(2) Specific event safe harbors. A sale or exchange is deemed to be by reason of unforeseen circumstances (within the meaning of paragraph (e)(1) of this section) if any of the events specified in paragraphs (e)(2)(i) through (iii) of this section occur during the period of the taxpayer's ownership and use of the residence as the taxpayer's principal residence:(i) The involuntary conversion of the residence.(ii) Natural or man-made disasters or acts of war or terrorism resulting in a casualty to the residence (without regard to deductibility under section 165(h)).(iii) In the case of a qualified individual described in paragraph (f) of this section—(A) Death;(B) The cessation of employment as a result of which the qualified individual is eligible for unemployment compensation (as defined in section 85(b));(C) A change in employment or self-employment status that results in the taxpayer's inability to pay housing costs and reasonable basic living expenses for the taxpayer's household (including amounts for food, clothing, medical expenses, taxes, transportation, court-ordered payments, and expenses reasonably necessary to the production of income, but not for the maintenance of an affluent or luxurious standard of living);(D) Divorce or legal separation under a decree of divorce or separate maintenance; or(E) Multiple births resulting from the same pregnancy.Plain EnglishThe main reason for selling must be a job move (the 50-mile test is a safe harbor), a health reason (a doctor’s recommendation is a safe harbor), or an unforeseen event from the regulation’s list. Wanting a different house or having more money doesn’t count.
- NoNo exclusion. The entire gain is taxable.
- YesContinue to Step B
BDetermine “the shorter of” the qualifying periods§121(c)(1)(B); Treas. Reg. §1.121-3(g)(1)
26 U.S.C. §121(c)(1)
(1) In general In the case of a sale or exchange to which this subsection applies, the ownership and use requirements of subsection (a), and subsection (b)(3), shall not apply; but the dollar limitation under paragraph (1) or (2) of subsection (b), whichever is applicable, shall be equal to—(A) the amount which bears the same ratio to such limitation (determined without regard to this paragraph) as(B)(i) the shorter of—(I) the aggregate periods, during the 5-year period ending on the date of such sale or exchange, such property has been owned and used by the taxpayer as the taxpayer’s principal residence; or(II) the period after the date of the most recent prior sale or exchange by the taxpayer to which subsection (a) applied and before the date of such sale or exchange, bears to(ii) 2 years.Plain EnglishTake the shortest of how long you owned it, how long you lived there, and how long since your last §121 sale.
- ThenContinue to Step C
CCompute the reduced maximum exclusionTreas. Reg. §1.121-3(g)(1)
Treas. Reg. §1.121-3(g)(1)
(1) The reduced maximum exclusion is computed by multiplying the maximum dollar limitation of $250,000 ($500,000 for certain joint filers) by a fraction. The numerator of the fraction is the shortest of the period of time that the taxpayer owned the property during the 5-year period ending on the date of the sale or exchange; the period of time that the taxpayer used the property as the taxpayer's principal residence during the 5-year period ending on the date of the sale or exchange; or the period of time between the date of a prior sale or exchange of property for which the taxpayer excluded gain under section 121 and the date of the current sale or exchange. The numerator of the fraction may be expressed in days or months. The denominator of the fraction is 730 days or 24 months (depending on the measure of time used in the numerator).Plain EnglishReduced cap = $250,000 or $500,000 × shortest period ÷ 24 months. This prorates the cap, not the gain. For example, 12 months for a single filer gives $250,000 × 12 ÷ 24 = $125,000.
- ThenContinue to Step D
DExclude gain up to the reduced limitation§121(c)(1); §121(d)(6)
Plain EnglishExclude the smaller of your gain or the reduced cap. Anything above the cap is taxable. Depreciation and nonqualified use still apply; see Always check.
- Gain ≤ capAll gain excluded
- Gain > capExcess is taxable
Always check · Even when you qualify
!Recognition of gain attributable to depreciation§121(d)(6)
26 U.S.C. §121(d)(6)
(6) Recognition of gain attributable to depreciation Subsection (a) shall not apply to so much of the gain from the sale of any property as does not exceed the portion of the depreciation adjustments (as defined in section 1250(b)(3)) attributable to periods after May 6, 1997, in respect of such property.Plain EnglishDepreciation claimed after May 6, 1997, for a home office or rental use is taxable as unrecaptured §1250 gain, at up to 25%.
!Exclusion of gain allocated to nonqualified use§121(b)(5)
26 U.S.C. §121(b)(5)
(5) Exclusion of gain allocated to nonqualified use(A) In general Subsection (a) shall not apply to so much of the gain from the sale or exchange of property as is allocated to periods of nonqualified use.(B) Gain allocated to periods of nonqualified use For purposes of subparagraph (A), gain shall be allocated to periods of nonqualified use based on the ratio which—(i) the aggregate periods of nonqualified use during the period such property was owned by the taxpayer, bears to(ii) the period such property was owned by the taxpayer.(C) Period of nonqualified use For purposes of this paragraph—(i) In general The term “period of nonqualified use” means any period (other than the portion of any period preceding January 1, 2009) during which the property is not used as the principal residence of the taxpayer or the taxpayer’s spouse or former spouse.(ii) Exceptions The term “period of nonqualified use” does not include—(I) any portion of the 5-year period described in subsection (a) which is after the last date that such property is used as the principal residence of the taxpayer or the taxpayer’s spouse,(II) any period (not to exceed an aggregate period of 10 years) during which the taxpayer or the taxpayer’s spouse is serving on qualified official extended duty (as defined in subsection (d)(9)(C)) described in clause (i), (ii), or (iii) of subsection (d)(9)(A), and(III) any other period of temporary absence (not to exceed an aggregate period of 2 years) due to change of employment, health conditions, or such other unforeseen circumstances as may be specified by the Secretary.(D) Coordination with recognition of gain attributable to depreciation For purposes of this paragraph—(i) subparagraph (A) shall be applied after the application of subsection (d)(6), and(ii) subparagraph (B) shall be applied without regard to any gain to which subsection (d)(6) applies.Plain EnglishGain allocated to time after 2008 when the home wasn’t anyone’s principal residence, such as a rental before you moved in, is taxable: (gain − depreciation) × nonqualified time ÷ total time owned. Time after you move out, within the 5-year window, doesn’t count against you.
Workpaper
A plain-text record of the facts, tests, authority and computation. Copy it into your file or print it.
General information, not tax advice. Counting convention: a period from A to B counts B − A days; the regulation permits 24 full months or 730 days. Not modelled: spouses whose ownership or use periods differ (each spouse's separate limit, §121(b)(2)(B)), the military, Foreign Service and temporary-absence exceptions to nonqualified use, and the elections and special rules in §121(d)–(g).