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.
- What is the home sale exclusion?
- The ownership and use tests
- How the $500,000 joint-return limit works
- Calculate adjusted basis and gain
- Business, rental, and depreciation use
- Nonqualified use
- Reduced exclusion after an early sale
- Special ownership situations
- Reporting the sale
- State tax and recordkeeping
- Sources
Key Facts
- Federal level: Section 121 can exclude up to $250,000 of gain from a qualifying principal-residence sale, or up to $500,000 on certain joint returns.
- Federal level: The taxpayer generally must own and use the home as a principal residence for at least two years during the five-year period ending on the sale date.
- Federal level: The exclusion generally cannot be used if the taxpayer excluded gain from another home sale during the prior two years.
- Federal level: The exclusion applies to gain, not gross proceeds, and a personal loss on a main-home sale is not deductible.
- Federal level: Gain attributable to depreciation allowed or allowable after May 6, 1997 cannot be excluded.
- Federal level: Form 1099-S can require reporting on Form 8949 even when all gain is excluded.
What is the home sale exclusion?
Internal Revenue Code section 121 can exclude gain from selling or exchanging a principal residence. The maximum is generally $250,000 for one qualifying taxpayer and $500,000 for certain married couples filing jointly.
The exclusion does not apply to the sales price or cash received at closing. Gain is generally the amount realized after selling expenses minus adjusted basis. A seller must calculate gain before deciding how much section 121 can exclude.
The ownership and use tests
During the five-year period ending on the sale date, a taxpayer generally must own the property for periods totaling at least two years and use it as the principal residence for periods totaling at least two years. The ownership and use periods need not be continuous or identical.
Short temporary absences can count as use, while a long absence generally does not. Only one property is the main home at a time, determined from facts such as time spent there, address used on returns and licenses, voter registration, and family and community connections.
The taxpayer also generally must not have claimed a section 121 exclusion on another sale during the two-year period ending on the current sale date. This frequency test is distinct from the ownership and use tests.
How the $500,000 joint-return limit works
A married couple filing jointly can generally use up to $500,000 when either spouse satisfies the ownership test, both spouses satisfy the use test, and neither spouse is disqualified by a prior exclusion within two years. If those conditions are not all met, one or both spouses may still qualify for separate $250,000 limits based on individual facts.
Marriage at the time of sale does not automatically double the exclusion. Conversely, ownership by only one spouse does not necessarily prevent the joint $500,000 limit when the statutory conditions are otherwise satisfied.
Calculate adjusted basis and gain
Adjusted basis usually begins with purchase cost, including qualifying settlement charges. Capital improvements can increase basis. Depreciation, casualty adjustments, certain credits, insurance reimbursements, and other recoveries can reduce basis.
Selling expenses such as commissions, advertising, legal fees, and qualifying transfer charges generally reduce the amount realized. Paying off a mortgage does not reduce gain; it affects cash received, not adjusted basis or amount realized.
For example, a home sold for $700,000 with $40,000 of selling expenses has an amount realized of $660,000. If adjusted basis is $420,000, gain is $240,000. A qualifying single seller could exclude that gain because it is below the $250,000 maximum.
Business, rental, and depreciation use
Using part or all of a home for business or rental can make part of the gain taxable. Section 121 does not exclude gain attributable to depreciation deductions allowed or allowable for periods after May 6, 1997, even when the ownership and use tests are satisfied.
When business space is within the dwelling unit, allocation rules can differ from a separate structure. A detached office, converted unit, or separately sold portion may require allocation of basis, proceeds, and gain. Forms 4797 and 8949 can both be relevant.
Nonqualified use
Gain allocable to certain periods of nonqualified use after 2008 cannot be excluded. Nonqualified use generally means a period when neither the taxpayer nor spouse or former spouse used the property as a principal residence.
Important exceptions include certain absences after the last date the home was used as the principal residence within the five-year lookback, qualified official extended duty, and temporary absences not exceeding two years because of employment, health, or unforeseen circumstances. Publication 523 supplies the allocation worksheet.
Reduced exclusion after an early sale
A taxpayer failing the ownership, use, or two-year frequency requirement may qualify for a reduced maximum exclusion when the primary reason for sale is a change in place of employment, health, or unforeseen circumstances. Regulations provide safe harbors and a facts-and-circumstances route.
The reduced maximum is generally the full limit multiplied by the shortest qualifying fraction of two years based on ownership, use, or time since a prior exclusion. The seller must still compute actual gain; the reduced figure is a ceiling, not an automatic credit.
Safe-harbor events can include qualifying job-location changes, health-related moves, death, unemployment, certain inability to pay living expenses after an employment change, divorce or legal separation, multiple births from one pregnancy, casualty, condemnation, or disaster. A preference for a different home or improved finances is not enough by itself.
Special ownership situations
Separated or divorced taxpayers can sometimes count a former spouse’s ownership, and use by a former spouse under a divorce instrument can count for the ownership spouse. Transfers between spouses or incident to divorce generally have special nonrecognition and basis rules.
For inherited property, basis is generally determined under inherited-property rules, which can materially reduce or eliminate gain. A surviving spouse may have a $500,000 maximum for a sale within two years after the spouse’s death if statutory conditions are met and the survivor has not remarried.
Members of the uniformed services, Foreign Service, intelligence community, and Peace Corps can elect to suspend the five-year testing period during qualified official extended duty, subject to statutory limits.
Reporting the sale
A seller generally reports the sale on Form 8949 and Schedule D when gain exceeds the exclusion, the seller elects not to claim the exclusion, or Form 1099-S was received. An excluded transaction can therefore remain reportable.
Form 1099-S reports gross proceeds, not taxable gain. The seller supplies basis, selling expenses, excluded gain, depreciation, and other adjustments. A closing agent’s decision not to issue Form 1099-S does not determine eligibility.
A loss on the sale of a personal main home is generally nondeductible. A business or rental portion can have different treatment based on allocation and use.
State tax and recordkeeping
Section 121 is a federal exclusion. States can conform, modify, or require separate adjustments, so the state return must be reviewed independently.
Keep purchase and closing statements, improvement invoices, depreciation schedules, prior rental returns, sale documents, Form 1099-S, and proof of occupancy. The related guide to taxes on the sale of a primary residence places the exclusion within the broader gain calculation.