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.
- How home-sale gain is calculated
- The ownership and use tests
- The exclusion limits and two-year look-back
- Reduced exclusions for certain earlier sales
- Nonqualified use can make part of the gain taxable
- Business use, rental use, and depreciation
- Why a Form 1099-S does not determine the tax
- When a main-home loss is not deductible
- Special rules can change the five-year analysis
- The federal and state tax layers are separate
- A record-based way to understand the result
- Sources
Key Facts
- Federal level: Section 121 can exclude up to $250,000 of qualifying gain from a principal-residence sale, or up to $500,000 for qualifying spouses filing jointly.
- Federal level: The basic rule requires two years of ownership and two years of use as a principal residence during the five-year period ending on the sale date.
- Federal level: The exclusion generally cannot be used when the taxpayer excluded gain from another home sale during the preceding two years.
- Federal level: Gain equals the amount realized minus adjusted basis; the home’s purchase price alone is not the complete calculation.
- Federal level: A loss on the sale of a personal main home is generally not deductible.
- Federal level: Business or rental use, depreciation, and periods of nonqualified use can leave part of the gain taxable.
Federal capital gains tax on the sale of a home begins with a calculation, then applies a possible exclusion. The sale price is reduced by qualifying selling expenses to determine the amount realized. That amount is compared with the home’s adjusted basis to determine gain or loss.
Section 121 can exclude a substantial amount of gain when the property was the taxpayer’s principal residence and the statutory tests are met. The exclusion is not automatic for every house, and it does not turn a personal-residence loss into a deduction.
How home-sale gain is calculated
The amount realized generally starts with the selling price and subtracts selling expenses such as commissions and specified closing costs. Adjusted basis generally starts with the acquisition cost and changes for later events.
Capital improvements can increase basis when they add value, prolong useful life, or adapt the property to a new use. Ordinary repairs and maintenance generally do not increase basis unless they are part of a larger qualifying improvement.
Insurance reimbursements, casualty adjustments, depreciation, certain credits, and other events can reduce or otherwise change basis. Records matter because a larger supportable basis reduces the calculated gain.
A simplified example shows the structure. If a home’s amount realized is $700,000 and adjusted basis is $430,000, the calculated gain is $270,000 before considering section 121. The exclusion analysis then determines how much of that gain remains in gross income.
The ownership and use tests
The basic section 121 rule looks at the five-year period ending on the sale date. During that window, the taxpayer generally must have owned the property for periods totaling at least two years and used it as a principal residence for periods totaling at least two years.
The ownership and use periods do not have to be continuous or identical. A taxpayer can satisfy them during different parts of the five-year window.
Only one property can be the principal residence at a time. When a person has multiple homes, the analysis considers all facts and circumstances, with time spent at each property carrying particular importance.
For spouses filing jointly, the full $500,000 limit generally requires either spouse to satisfy ownership, both spouses to satisfy use, and neither spouse to be disqualified by a recent prior exclusion. Otherwise, a different maximum can apply.
The exclusion limits and two-year look-back
The general exclusion limit is $250,000 for an individual taxpayer. Qualifying spouses filing jointly can reach $500,000.
Section 121 generally allows the exclusion for only one sale or exchange during a two-year period. A prior sale that used the exclusion can therefore affect a later home sale even when the later property independently meets the ownership and use tests.
A surviving spouse can qualify for the $500,000 limit on a sale within two years after a spouse’s death when the statutory joint-return conditions were satisfied immediately before death and other requirements are met.
Reduced exclusions for certain earlier sales
A sale that fails the full ownership, use, or look-back test can sometimes qualify for a reduced exclusion. Section 121 provides this route when the primary reason for the sale is a change in place of employment, health, or an unforeseen circumstance recognized by statute or regulation.
The reduced amount is proportional rather than automatically $250,000 or $500,000. It generally reflects the fraction of the two-year requirement that was satisfied.
Not every move, preference, or financial advantage qualifies as an unforeseen circumstance. The reason for the sale and the applicable federal definition control.
Nonqualified use can make part of the gain taxable
Periods of nonqualified use after 2008 can require allocating part of the gain outside the exclusion. Broadly, nonqualified use is a period when the property was not used as the taxpayer’s principal residence, subject to statutory exceptions.
Not every absence creates nonqualified use. The statute contains exceptions for certain temporary absences, qualified official extended duty, and periods after the last principal-residence use within the five-year window.
The allocation is based on the relationship between nonqualified-use periods and total ownership. Publication 523 provides worksheets and detailed exceptions.
Business use, rental use, and depreciation
A home can have both personal and business or rental history. The federal result depends on whether the business portion was within the dwelling, physically separate, or involved the entire property at different times.
Gain attributable to depreciation deductions allowed or allowable for periods after May 6, 1997, cannot be excluded under section 121. This depreciation-related gain can remain taxable even when the ownership and use tests are otherwise met.
A physically separate business or rental portion that was never used as a principal residence may require allocation and Form 4797 reporting. Mixed-use facts therefore can affect both character and reporting location.
Why a Form 1099-S does not determine the tax
Form 1099-S reports proceeds from a real-estate transaction. It can be issued even when a principal-residence exclusion ultimately shelters all gain.
The gross proceeds on Form 1099-S are not the same as gain. The form does not supply every selling expense, basis adjustment, improvement, depreciation item, or exclusion fact.
Receipt of Form 1099-S can affect the reporting requirement. A sale also generally must be reported when taxable gain remains after the exclusion or when the taxpayer elects not to claim the exclusion.
When a main-home loss is not deductible
A personal main home is personal-use property. Federal law generally does not allow a deduction when it sells for less than adjusted basis.
This rule differs from loss treatment for qualifying business or investment property. A mixed-use property may require separating the personal and business portions rather than treating the entire loss one way.
Special rules can change the five-year analysis
Qualified members of the uniformed services, Foreign Service, intelligence community, and Peace Corps can elect to suspend the five-year test period during specified extended duty. The suspension is limited by detailed conditions and a maximum period.
Divorce transfers, a spouse’s death, inherited property, like-kind exchanges, expatriation, vacant land adjacent to a home, and installment sales can also alter the ordinary analysis. Each exception has its own boundaries.
The federal and state tax layers are separate
Section 121 governs the federal exclusion. It does not establish how any particular state computes taxable gain, conforms to the federal exclusion, handles basis adjustments, or requires reporting.
State treatment can differ from the federal result. The federal authorities cited here support only the federal layer.
A record-based way to understand the result
The home-sale calculation depends on dates, use, ownership, selling costs, purchase records, improvements, depreciation, prior exclusions, and special events. A closing statement alone rarely contains the full history.
The most useful mental model is sequential: calculate gain, test section 121 eligibility, determine the applicable limit, allocate nonqualified or depreciation-related gain, and identify the required federal forms. That sequence explains why two homes with the same sale price can produce very different federal tax results.