Internal Revenue Code · 26 U.S.C.
§ 121. Exclusion of gain from sale of principal residence
Official text, no changes From the Office of the Law Revision Counsel, release point 119-121 (current through Public Law 119-121 (October 9, 2026)). Compare it with the official text at uscode.house.gov (external site).
Cite as 26 U.S.C. § 121
At a glance
Read from the text, the source credit and the official notes. Not part of the law.
- Status
- In force
- Added
- February 26, 1964 by Pub. L. 88–272
- Last amended
- December 22, 2017 by Pub. L. 115–97
- Amendments
- 18 dated changes in the source credit
- Length
- 7 subsections · 2,852 words · about 12 min to read
- Defines
- 8 terms
- Cross-references
- cites 10; cited by 27 Code sections and 17 other regulations
- Regulations
- 5 issued under this section
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.
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.
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.
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.
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.
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.
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.
For purposes of this section, the destruction, theft, seizure, requisition, or condemnation of property shall be treated as the sale of such property.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
For purposes of subparagraph (A), rules similar to the rules of subparagraphs (B) and (D) of paragraph (9) shall apply.
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.
This section shall not apply to any sale or exchange with respect to which the taxpayer elects not to have this section apply.
For purposes of this section, in the case of property the acquisition of which by the taxpayer resulted under section 1034 11 See References in Text note below. (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.
(Added Pub. L. 88–272, title II, § 206(a), Feb. 26, 1964, 78 Stat. 38; amended Pub. L. 94–455, title XIV, § 1404(a), title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1733, 1834; Pub. L. 95–600, title IV, § 404(a)–(c)(2), Nov. 6, 1978, 92 Stat. 2869, 2870; Pub. L. 97–34, title I, § 123(a), Aug. 13, 1981, 95 Stat. 197; Pub. L. 100–647, title VI, § 6011(a), Nov. 10, 1988, 102 Stat. 3691; Pub. L. 105–34, title III, § 312(a), Aug. 5, 1997, 111 Stat. 836; Pub. L. 105–206, title VI, § 6005(e)(1), (2), July 22, 1998, 112 Stat. 805; Pub. L. 107–16, title V, § 542(c), June 7, 2001, 115 Stat. 84; Pub. L. 108–121, title I, § 101(a), Nov. 11, 2003, 117 Stat. 1336; Pub. L. 108–357, title VIII, § 840(a), Oct. 22, 2004, 118 Stat. 1597; Pub. L. 109–135, title IV, §§ 402(a)(3), 403(ee), Dec. 21, 2005, 119 Stat. 2610, 2631; Pub. L. 109–432, div. A, title IV, § 417(a)–(d), Dec. 20, 2006, 120 Stat. 2965, 2966; Pub. L. 110–142, § 7(a), Dec. 20, 2007, 121 Stat. 1806; Pub. L. 110–172, § 11(a)(11)(A), Dec. 29, 2007, 121 Stat. 2485; Pub. L. 110–245, title I, §§ 110(a), 113(a), (b), June 17, 2008, 122 Stat. 1633, 1635; Pub. L. 110–289, div. C, title III, § 3092(a), July 30, 2008, 122 Stat. 2911; Pub. L. 111–312, title III, § 301(a), Dec. 17, 2010, 124 Stat. 3300; Pub. L. 113–295, div. A, title II, §§ 212(c), 213(c)(1), 221(a)(20), Dec. 19, 2014, 128 Stat. 4033, 4040; Pub. L. 115–97, title I, § 11051(b)(3)(A), Dec. 22, 2017, 131 Stat. 2089.)
Terms defined here
Where the text says “the term … means”. Select a term to jump to its definition.
- divorce or separation instrument § 121(d)(3)(C)
- employee of the intelligence community § 121(d)(9)(C)(iv)
- extended duty § 121(d)(9)(C)(v)
- member of the Foreign Service of the United States § 121(d)(9)(C)(iii)
- period of nonqualified use § 121(b)(5)(C)(i)
- period of nonqualified use § 121(b)(5)(C)(ii)
- qualified official extended duty § 121(d)(9)(C)(i)
- uniformed services § 121(d)(9)(C)(ii)
Regulations under this section
Treasury regulations (26 CFR) issued under § 121
- § 1.121-1 Exclusion of gain from sale or exchange of a principal residence.
- § 1.121-2 Limitations.
- § 1.121-3 Reduced maximum exclusion for taxpayers failing to meet certain requirements.
- § 1.121-4 Special rules.
- § 1.121-5 Suspension of 5-year period for certain members of the uniformed services and Foreign Service.
From our articles, not part of the law
Articles that cite this section
Cross-references
Computed from the citations in the text of Title 26 and 26 CFR.
This section cites 10 other sections
- § 1041(a) Transfers of property between spouses or incident to divorce
- § 216 Deduction of taxes, interest, and business depreciation by cooperative housing corporation tenant-stockholder
- § 1033 Involuntary conversions
- § 1250(b)(3) Gain from dispositions of certain depreciable realty
- § 267(b) Losses, expenses, and interest with respect to transactions between related taxpayers
- § 1031 Exchange of real property held for productive use or investment
- § 301(a) Distributions of property
- § 877(a)(1) Expatriation to avoid tax
- § 1034 Repealed
- § 1223(6) Holding period of property
Cited by 27 Code sections
- § 25(e)(7) Interest on certain home mortgages
- § 25C(c)(1)(A) Energy efficient home improvement credit
- § 25D(d)(3) Residential clean energy credit
- § 30C(c)(1)(A) Alternative fuel vehicle refueling property credit
- § 32(d)(2)(B)(iii)(II) Earned income
- § 36(c)(2) First-time homebuyer credit
- § 45F(c)(1)(A)(i)(III) Employer-provided child care credit
- § 56(e)(1)(A) Adjustments in computing alternative minimum taxable income
- § 72(t)(8)(D)(ii) Annuities; certain proceeds of endowment and life insurance contracts
- § 108(h)(5) Income from discharge of indebtedness
- § 143(i)(1)(C)(i)(I) Mortgage revenue bonds: qualified mortgage bond and qualified veterans’ mortgage bond
- § 152(d)(5)(B)(i) Dependent defined
- § 163(h)(5)(A)(i)(I) Interest
- § 216(e) Deduction of taxes, interest, and business depreciation by cooperative housing corporation tenant-stockholder
- § 220(f)(7) Archer MSAs
- § 223(f)(7) Health savings accounts
- § 280A(d)(4)(A) Disallowance of certain expenses in connection with business use of home, rental of vacation homes, etc.
- § 382(l)(3)(B)(iii) Limitation on net operating loss carryforwards and certain built-in losses following ownership change
- § 408(d)(6) Individual retirement accounts
- § 464(d)(2)(B)(i) Limitations on deductions for certain farming expenses
- § 1033(h)(4) Involuntary conversions
- § 1038(e)(1) Certain reacquisitions of real property
- § 1274(c)(3)(B) Determination of issue price in the case of certain debt instruments issued for property
- § 6012(c) Persons required to make returns of income
Show 3 more
Cited in 17 regulations not issued under it
- § 1.44-5 Definitions.
- § 1.897-6T Nonrecognition exchanges applicable to corporations, their shareholders, and other taxpayers, and certain transfers of property in corporate reorganizations (temporary).
- § 1.1033(a)-1 Involuntary conversions; nonrecognition of gain.
- § 1.1033(a)-3 Involuntary conversion of principal residence.
- § 1.1038-1 Reacquisitions of real property in satisfaction of indebtedness.
- § 1.1038-2 Reacquisition and resale of property used as a principal residence.
- § 1.1038-3 Election to have section 1038 apply for taxable years beginning after December 31, 1957.
- § 1.1250-3 Exceptions and limitations.
- § 1.1398-3 Treatment of section 121 exclusion in individuals' title 11 cases.
- § 1.1411-4 Definition of net investment income.
- § 1.1445-2 Situations in which withholding is not required under section 1445(a).
- § 1.1445-3 Adjustments to amount required to be withheld pursuant to withholding certificate.
- § 1.6012-1 Individuals required to make returns of income.
- § 1.6045-4 Information reporting on real estate transactions.
- § 1.9300-1 Reduction in taxable income for housing displaced individuals.
- § 301.6334-1 Property exempt from levy.
- § 301.9100-8 Time and manner of making certain elections under the Technical and Miscellaneous Revenue Act of 1988.
Amendment history
From the source credit and the official notes, newest first.
- Amended by Pub. L. 115–97Parts changed in 2017: (d)(3)(B) (d)(3)(C)
- Amended by Pub. L. 113–295Parts changed in 2014: (b)(3) (b)(4) (d)(12)(B)
- Amended by Pub. L. 111–312Parts changed in 2010: (d)(11)
- Amended by Pub. L. 110–289Parts changed in 2008: (b)(4) (d)(9)(C)(vi) (d)(9)(E) (d)(12)
- Amended by Pub. L. 110–245
- Amended by Pub. L. 110–172Parts changed in 2007: (b)(4) (d)(9)(E)
- Amended by Pub. L. 110–142
- Amended by Pub. L. 109–432Parts changed in 2006: (d)(9) (d)(9)(A) (d)(9)(C)(iv) (d)(9)(C)(vi)
- Amended by Pub. L. 109–135Parts changed in 2005: (d)(10) (d)(11) (g)
- Amended by Pub. L. 108–357Parts changed in 2004: (d)(10)
- Amended by Pub. L. 108–121Parts changed in 2003: (d)(9)
- Amended by Pub. L. 107–16Parts changed in 2001: (d)(9)
- Amended by Pub. L. 105–206Parts changed in 1998: (b)(2) (c)(1)
- Amended by Pub. L. 105–34
- Amended by Pub. L. 100–647Parts changed in 1988: (d)(9)
- Amended by Pub. L. 97–34Parts changed in 1981: (b)(1)
- Amended by Pub. L. 95–600Parts changed in 1978: (a) (b) (d)(2) (d)(5) (d)(8)
- Amended by Pub. L. 94–455Parts changed in 1976: (b)(1) (c)
- Added by Pub. L. 88–272
Where it sits in the Code
- Subtitle A Income Taxes
- Chapter 1 NORMAL TAXES AND SURTAXES
- Subchapter B Computation of Taxable Income
- Part III ITEMS SPECIFICALLY EXCLUDED FROM GROSS INCOME
Nearby sections
- § 117 Qualified scholarships
- § 118 Contributions to the capital of a corporation
- § 119 Meals or lodging furnished for the convenience of the employer
- § 120 Repealed
- § 121 Exclusion of gain from sale of principal residence
- § 122 Certain reduced uniformed services retirement pay
- § 123 Amounts received under insurance contracts for certain living expenses
- § 124 Repealed
- § 125 Cafeteria plans
Official notes
The Law Revision Counsel's notes for this section (amendments, effective dates and related laws) are long, so they have their own page.