Home Sale Capital Gain Exclusion

The home sale capital gain exclusion keeps up to $250,000 of gain out of gross income, or $500,000 jointly. See the ownership and use tests, the joint asymmetry

Written by AccountablyReviewed by Jugal Thacker, CPA8 minute readUpdated

The home sale capital gain exclusion keeps gain on the sale of a principal residence out of gross income, up to a dollar ceiling, provided the seller owned and lived in the property for long enough and has not used the exclusion too recently. It is written as an exclusion from gross income rather than as a deferral.

The operative sentence is short. 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 (26 U.S.C. 121(a)). Two tests are inside that one sentence, ownership and use, and the qualifying time does not have to be a single stretch.

The Ceiling

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)(1)). Gain above the ceiling is taxable in the ordinary way, and how it is rated is in the capital gains tax rate.

The Joint Return Version Is Not Symmetrical

This is the limb most often stated wrong. In the case of a husband and wife who make a joint return for the taxable year of the sale or exchange, paragraph (1) shall be applied by substituting $500,000 for $250,000 if three conditions all hold: either spouse meets the ownership requirements of subsection (a) with respect to such property, both spouses meet the use requirements of subsection (a) with respect to such property, and neither spouse is ineligible for the benefits of subsection (a) with respect to such property by reason of paragraph (3) (26 U.S.C. 121(b)(2)(A)).

Read the first two conditions against each other. Ownership is an either test and use is a both test, so one spouse can own the house alone and the doubled ceiling still applies, while a spouse who never lived there costs the doubling.

Failing that test does not cost the whole doubling. 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, and for that purpose each spouse shall be treated as owning the property during the period that either spouse owned it (26 U.S.C. 121(b)(2)(B)).

Once Every Two 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 (26 U.S.C. 121(b)(3)). The bar is triggered by a prior sale the exclusion was actually applied to, not by owning two homes.

The Widow and Widower Window

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 (26 U.S.C. 121(b)(4)). Both halves have to hold, the timing and the pre-death qualification.

A Partial Exclusion Cuts the Ceiling, Not the Gain

Where a sale misses the tests for one of three named reasons, the statute does not exclude a proportion of the gain. It shrinks the dollar limit and then applies it normally. 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 the amount which bears the same ratio to that limitation, determined without regard to this paragraph, as the shorter of two periods bears to 2 years (26 U.S.C. 121(c)(1)). The two periods compared are the aggregate periods, during the 5-year period ending on the date of such sale or exchange, the property has been owned and used by the taxpayer as the taxpayer’s principal residence, and 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 (26 U.S.C. 121(c)(1)(B)).

The gateway is narrow. This subsection shall apply to any sale or exchange if subsection (a) would not, but for this subsection, apply by reason of a failure to meet the ownership and use requirements of subsection (a), or by reason of subsection (b)(3), and such sale or exchange is by reason of a change in place of employment, health, or, to the extent provided in regulations, unforeseen circumstances (26 U.S.C. 121(c)(2)).

Depreciation Comes Out First

A home that was ever rented or used for business carries a piece of gain the exclusion cannot reach. 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 (26 U.S.C. 121(d)(6)). The wider mechanic that governs is in depreciation recapture and the asset class it runs on is in section 1250 property.

Gain Allocated to Nonqualified Use

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 (26 U.S.C. 121(b)(5)(A)). That gain is allocated based on the ratio which the aggregate periods of nonqualified use during the period the property was owned by the taxpayer bears to the period the property was owned by the taxpayer (26 U.S.C. 121(b)(5)(B)).

The definition carries a start date and three exceptions, and dropping either changes the answer. 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 (26 U.S.C. 121(b)(5)(C)(i)). It does not include any portion of the 5-year period described in subsection (a) which is after the last date the property is used as the principal residence of the taxpayer or the taxpayer’s spouse, any period not exceeding an aggregate of 10 years during which the taxpayer or the taxpayer’s spouse is serving on qualified official extended duty as subsection (d)(9) defines and describes it, or any other period of temporary absence not exceeding an aggregate of 2 years due to change of employment, health conditions, or such other unforeseen circumstances as may be specified by the Secretary (26 U.S.C. 121(b)(5)(C)(ii)).

The two carve-outs interact in a fixed order. Subparagraph (A) shall be applied after the application of subsection (d)(6), and subparagraph (B) shall be applied without regard to any gain to which subsection (d)(6) applies (26 U.S.C. 121(b)(5)(D)).

Common Questions

No. The statute asks whether the property has been owned and used as the principal residence for periods aggregating 2 years or more during the 5-year period ending on the date of the sale (26 U.S.C. 121(a)). Aggregating is the operative word, and separate stretches inside the window are added together.

Both are handled by holding-period rules rather than by exceptions to the tests. In the case of an unmarried individual whose spouse is deceased on the date of the sale, the period such unmarried individual owned and used the property shall include the period the deceased spouse owned and used it before death (26 U.S.C. 121(d)(2)). Where property was transferred between spouses or former spouses in a transaction described in section 1041(a), the period the recipient owns it includes the period the transferor owned it (26 U.S.C. 121(d)(3)(A)).

Use is treated the same way, and the provision opens with a scope phrase worth keeping. 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 (26 U.S.C. 121(d)(3)(B)). How holding periods tack more generally is in holding period.

It is still treated as a sale for this purpose. For purposes of this section, the destruction, theft, seizure, requisition, or condemnation of property shall be treated as the sale of such property (26 U.S.C. 121(d)(5)(A)).

Not for a taxpayer who qualifies under a specific rule. Where a taxpayer becomes physically or mentally incapable of self-care and owns and uses the property as a principal residence during the 5-year period for periods aggregating at least 1 year, the taxpayer is treated as using the property as a principal residence during any time in that period in which the taxpayer owns it 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)).


Accountably places offshore accountants and tax preparers inside US CPA and EA firms, working in the firm’s own systems and under the firm’s own review. Residence sales are the kind of return where the gain calculation, the depreciation history and the basis schedule all have to be rebuilt from client records, and that is preparation work a reviewed offshore team can carry.

Related Terms

View All Terms

See how to evaluate an offshore accounting partner before you sign. Download the free guide now.