Sitonce
Country: HK
Show exams for United States Hong Kong
Sign in

Section 121: Eligibility for the Main-Home Gain Exclusion

Updated 6 min read
Key takeaway

Section 121 can exclude some or all gain from the sale of a taxpayer’s main home.

More key points
  • The maximum exclusion generally depends on separate ownership and use tests within the five-year period ending on the sale date, along with prior-sale and other restrictions.
  • A partial exclusion may be available for specified changes in circumstances, while depreciation-related gain can remain taxable.
On this page7 sections
  1. Identify the main home and sale date
  2. Ownership and residence are separate tests
  3. Prior exclusion and other disqualifications
  4. Full exclusion and the cap
  5. Partial exclusion for certain life events
  6. Rental use and depreciation
  7. Reporting and documentation

Selling a home can create a large capital gain, but Section 121 may exclude some or all of that gain when the property was the taxpayer’s principal residence. The exclusion is not automatic. The taxpayer must identify the main home, determine the sale date, calculate adjusted basis and gain, and apply separate ownership and use requirements. Joint filers, prior home sales, rental use, and depreciation can change the result.

Identify the main home and sale date

A taxpayer generally has one main home at a time. When the person owns or uses multiple properties, the facts show which home was the principal residence. Time spent living in a home is important, along with the address used for tax returns, driver licensing, voter registration, employment, banking, and family life. Calling a vacation property a primary residence in a purchase document does not decide the tax test.

The sale date is generally when title transfers or when the economic benefits and burdens shift to the buyer, whichever happens first under the IRS guidance. That date defines the five-year testing window and may determine which tax year reports the gain. A delayed closing or special contract can make the date less obvious, so review the transaction documents rather than relying only on when the seller received funds.

Ownership and residence are separate tests

The owner generally must have owned the home for at least two years during the five years before the sale. The taxpayer also generally must have used the home as a principal residence for at least two years in that same period. The periods do not need to be continuous, and the ownership and residence periods can occur at different times. Track each day or qualifying period carefully when the person moved, rented the property, or owned it jointly.

For spouses filing jointly, the ownership test may be met by either spouse, but both spouses generally must meet the use test to claim the full joint exclusion. Special rules can apply for a surviving spouse, a transfer between spouses, or a spouse who lived in a home before marriage. Do not assume that one spouse’s ownership and residence automatically satisfy all requirements for both taxpayers.

Prior exclusion and other disqualifications

The taxpayer generally cannot have claimed the exclusion for another home sale during the two years before the current sale. A recent prior exclusion can limit eligibility even when ownership and residence tests are otherwise met. There are additional automatic disqualifications, including certain expatriate tax situations and property acquired in a like-kind exchange within the lookback period specified by the IRS.

The rule applies to gain, not sale proceeds. Calculate amount realized after selling costs and subtract adjusted basis, including qualifying improvements and basis adjustments. A loss on a personal residence is generally nondeductible. A seller should keep purchase documents, improvement receipts, records of casualty adjustments, and sales costs. A Form 1099-S may report gross proceeds even if the full gain is excludable.

Full exclusion and the cap

If the taxpayer meets the eligibility requirements, the exclusion is capped by the statutory maximum. A joint return may qualify for a larger cap when the statutory requirements are met, while an unmarried taxpayer uses the individual maximum. The exclusion cannot exceed the actual gain. Any gain above the applicable cap remains taxable, subject to the ordinary character and rate rules.

A gain exclusion is not the same as a deduction. It removes qualifying gain from gross income up to the permitted amount. It does not create a tax loss when the home sells for less than its adjusted basis. It also does not automatically shelter depreciation recapture or every gain from a mixed personal and rental property.

Partial exclusion for certain life events

A taxpayer who fails the full two-year test may still qualify for a partial exclusion when the sale is primarily because of a work-related move, health issue, or an unforeseen circumstance described in the rules. The permitted amount is generally prorated based on the period the taxpayer owned and used the home compared with the required period. The event must be the primary reason for the sale; a convenient timing choice alone is not enough.

Work-related situations can include a change in the place of employment when distance requirements are met. Health circumstances have their own standards and documentation. Unforeseen events include specified categories and facts-and-circumstances analysis. Keep relocation letters, medical records where appropriate, sale timing records, and evidence that the event drove the decision. A partial exclusion is not an open-ended hardship waiver.

Rental use and depreciation

A home that was rented or used for business may have depreciation deductions that affect the sale. Depreciation allowed or allowable after the relevant effective date generally cannot be excluded under Section 121, even when the rest of the gain qualifies. The taxpayer must report the portion attributable to depreciation under the applicable rules. Failing to claim depreciation in prior years does not necessarily eliminate the “allowable” amount from the sale calculation.

Nonqualified use can also restrict the exclusion for certain periods when the property was not used as the principal residence after the statutory date. The rules include exceptions, such as certain periods after the final use as a main home and temporary absences. A property that moves from home to rental and back again requires a chronology: acquisition, residence periods, rental or business periods, and sale.

Reporting and documentation

A seller may receive Form 1099-S and may have to report the transaction even when the gain is fully excludable. The return instructions determine whether to report on Form 8949 and how to show the excluded amount. Retain the settlement statement, basis records, period-of-use calendar, prior-sale information, and depreciation schedules. A return should reconcile the reported gross proceeds with the exclusion computation.

  • Determine the main home and exact sale date.
  • Calculate amount realized, adjusted basis, and total gain.
  • Test ownership and principal-residence use separately over the lookback period.
  • Check joint-return rules, prior exclusion use, and automatic disqualifications.
  • Separate depreciation-related gain and analyze periods of nonqualified use.
  • If the full test fails, assess whether a qualifying event permits a partial exclusion.
  • Report the sale as required and preserve supporting records.

A good exam answer does not jump from “sold a home” to “gain is tax-free.” It walks through the date, principal residence, ownership, use, prior-sale limitation, joint-return rules, gain computation, and exceptions. The facts may support a full exclusion, a partial exclusion, or taxable gain, and depreciation can remain taxable even when the residence test is met.

Common questions

Do ownership and residence periods have to be continuous?

No. The required periods can be accumulated within the five-year lookback, though other conditions still apply.

Can a taxpayer get a partial exclusion after moving for work?

Potentially. The move must meet the applicable work-related conditions and be the primary reason for the sale.

Is depreciation gain from a rental period excluded?

Generally, gain attributable to depreciation allowed or allowable is not excluded under Section 121.