This article is provided for educational and informational purposes only. It does not constitute legal, financial, or tax advice, and no attorney-client relationship is formed by reading it. Laws, regulations, official guidance, and related information vary by jurisdiction, change frequently, and may have changed or become outdated since the publication date. Always verify current information with authoritative sources and consult a qualified professional about your specific circumstances. The author and publisher assume no liability for actions taken based on this information.
- Tax applies to gain, not the sale price
- Section 121 supplies the principal-residence exclusion
- Ownership and use have a two-of-five-year test
- The exclusion is generally limited to once every two years
- An early sale may receive a reduced exclusion
- Rental, business, and nonqualified use require separate calculations
- Reporting depends on the result and information documents
- Planning is mainly a records exercise
- Sources
Key Facts
- Federal level: Section 121 can exclude up to $250,000 of qualifying gain, or up to $500,000 on a qualifying joint return, from the sale of a principal residence.
- Federal level: The basic rule requires ownership and use as a principal residence for at least two years during the five-year period ending on the sale date.
- Federal level: A taxpayer generally cannot use the exclusion if another home sale received the exclusion during the preceding two years.
- Federal level: A reduced exclusion may apply when an early sale is primarily caused by employment, health, or qualifying unforeseen circumstances.
- Federal level: Gain attributable to depreciation allowed or allowable for business or rental use after May 6, 1997 cannot be excluded under section 121.
- Federal level: A loss on the sale of a home used only as a personal residence is generally not deductible.
Tax applies to gain, not the sale price
Federal tax starts with the amount realized from the sale and the home’s adjusted basis. Selling expenses reduce the amount realized, while purchase costs and qualifying capital improvements can increase basis.
Routine repairs generally do not increase basis unless they are part of a larger qualifying improvement. Accurate purchase, improvement, casualty, depreciation, and closing records can therefore change the taxable-gain calculation substantially.
Section 121 supplies the principal-residence exclusion
Section 121 generally excludes up to $250,000 of gain when the taxpayer meets its requirements. A qualifying married couple filing jointly can exclude up to $500,000 if either spouse meets the ownership test, both meet the use test, and neither is barred by the prior-sale rule.
The exclusion applies to gain rather than sale proceeds. Gain above the available exclusion remains potentially taxable, and the exclusion cannot turn a nondeductible personal loss into a deduction.
Ownership and use have a two-of-five-year test
The taxpayer generally must own and use the property as a principal residence for periods totaling at least two years during the five years ending on the sale date. The ownership and use periods need not be continuous or occur at the same time, but both tests must be satisfied within that window.
Facts such as the address used on tax returns, voter registration, licensing, mailing, employment, and family residence can help identify the principal home when a taxpayer owns or occupies more than one property. A vacation home or second home does not become a principal residence merely because it was personally used.
The exclusion is generally limited to once every two years
Section 121 generally denies the full exclusion when the taxpayer used it for another sale during the two-year period ending on the current sale date. Couples must consider each spouse’s prior use of the exclusion when testing the $500,000 joint-return limit.
A surviving spouse may qualify for a $500,000 limit on a sale within two years after the spouse’s death if the statutory joint-return conditions were satisfied immediately before death. Special rules can also count certain ownership or use by a deceased spouse or a spouse or former spouse.
An early sale may receive a reduced exclusion
A taxpayer who misses the two-year tests or prior-sale interval may still qualify for a reduced maximum exclusion when the sale is primarily because of a change in employment, health, or unforeseen circumstances. Treasury regulations contain safe harbors and a facts-and-circumstances standard for that determination.
The reduced ceiling is generally the normal $250,000 or $500,000 limit multiplied by a fraction based on the shortest qualifying ownership, use, or no-prior-exclusion period over two years. The actual excludable amount cannot exceed the qualifying gain.
Rental, business, and nonqualified use require separate calculations
Section 121 does not exclude gain attributable to depreciation allowed or allowable for business or rental use after May 6, 1997. A home-office deduction or rental period can therefore leave taxable depreciation-related gain even when the remaining gain qualifies.
Periods of nonqualified use after 2008 may also allocate part of the gain outside the exclusion, subject to statutory exceptions. Moving out and renting the home after the last date it served as the principal residence is treated differently from some earlier rental periods, so the timeline matters.
Reporting depends on the result and information documents
A seller who receives Form 1099-S generally must report the sale even if the gain is fully excludable. Reporting is also required when any gain is taxable or when the taxpayer elects not to claim the exclusion.
Form 8949 supplies transaction detail when required, and Schedule D summarizes capital gains and losses. Publication 523 includes worksheets for adjusted basis, gain, eligibility, and the amount reportable on the federal return.
Planning is mainly a records exercise
Before closing, assemble the original closing statement, invoices for capital improvements, prior casualty or energy-credit adjustments, depreciation records, and the expected selling expenses. Then map every period of ownership, principal-residence use, rental use, and absence on a single calendar.
The related guide to a 1031 exchange involving a primary residence explains why section 1031 and the home-sale exclusion require separate analysis. State income-tax treatment and property-tax programs are separate questions and may not follow the federal result.