Selling a home in the United States can create a taxable gain, but many sellers can exclude it under Section 121. If you qualify, the gain on sale of main home doesnโt go into income; if you donโt, you must report the sale on Form 8949, which flows to Schedule D (Form 1040). This guide gives a clear checklist of who qualifies, what documents to keep, how to file, and practical tips for newcomers, immigrants, and crossโborder families.
Core Eligibility: Ownership and Use Tests

To claim the exclusion, you must meet both tests during the fiveโyear period ending on your sale date:
- Ownership test: You owned the home for at least two years.
- Use test: You lived in the home as your main home for at least two years (730 days). The days do not need to be consecutive, and they donโt need to begin on purchase or end on sale.
Shortfalls may still qualify for a reduced exclusion when the move is due to work changes, health needs, or other unforeseen events.
- Certain public servants (service members, intelligence employees, and Peace Corps volunteers) can suspend the fiveโyear lookback by up to 10 years while on qualified extended duty at least 50 miles from the home or in government quarters.
- Extended duty means more than 90 days or a period with no set end date.
Special Rules: Care Needs and a Deceased Spouse
- If you become physically or mentally unable to care for yourself, and you owned and lived in the home for at least one year during the five years before the sale, youโre treated as living in the home while you lived in a care facility. You still must meet the twoโoutโofโfiveโyear ownership test.
- If your spouse dies and you sell within two years without remarrying, you may count your spouseโs ownership and residence time as your own when applying the tests.
What Counts as a Main Home and Key Limits
- Your main home is where you live most of the time. It can be a house, condo, coโop, houseboat, or mobile home.
- If only part of a property is used as your main home, the exclusion applies only to gain on that part.
- You cannot use the exclusion if you acquired the home in a likeโkind exchange within the past five years.
Maximum exclusion limits:
– $250,000 for single filers
– $500,000 for married couples filing jointly
Conditions: ownership and use tests met and neither spouse used the exclusion on another home in the prior two years.
Nonqualified Use: When Part of Your Gain Is Taxed
- nonqualified use = periods you owned the home but didnโt use it as your main home after December 31, 2008.
- The portion of gain attributable to nonqualified use cannot be excluded. You split the gain between qualified and nonqualified periods based on time held.
Exceptions where nonqualified use does not apply:
– Days in the final fiveโyear window after you stop using the home as your main home.
– Up to 10 years while you or your spouse serve on qualified official extended duty as a member of the uniformed services, the U.S. Foreign Service, or the intelligence community.
– Temporary absences due to work changes, health conditions, or other unforeseen events up to two years total.
Computation formula:
Portion of gain allocated to nonqualified use = (Gain on sale ร Total nonqualified use after 2008) รท (Total period of ownership)
Worked Example: Time Split Affects the Result
- Liam bought a home on January 1, 2006 for $250,000.
- He made it his main home from 2012 through 2018, rented it in 2019โ2020, and sold on December 31, 2020 for $450,000.
- His nonqualified use after 2008 was 1,095 days (2009โ2011). He owned the home 5,475 days total.
- Calculation: 1,095 รท 5,475 = 0.2, so 20% of the gain is nonqualified and not excludable.
Documents to Keep and Where to Find Forms
Keep records that show ownership and use:
- Purchase and sale agreements, closing disclosures, settlement statements
- Proof of residence: utility bills, school records, bank mail
- Leases (if rented), duty orders (for extended duty), medical or careโfacility records
- Proof of a spouseโs death if you rely on that rule
If you must report a sale:
– File Form 8949 (Sales and Other Dispositions of Capital Assets) and carry the totals to Schedule D (Form 1040).
– Find Form 8949: https://www.irs.gov/forms-pubs/about-form-8949
– Find Schedule D: https://www.irs.gov/forms-pubs/about-schedule-d-form-1040
How to Apply the Rules When You Sell
Follow these steps to apply the rules before and during sale:
- Confirm which property is your main home and list all homes you owned in the fiveโyear window.
- Count ownership days and residence days; aim for at least 730 days of each within those five years.
- Check bars and pauses: a likeโkind exchange within five years blocks the exclusion; qualified extended duty can pause the fiveโyear lookback for up to 10 years.
- Review exceptions for work, health, or unforeseen events if you moved before two years. Consider the careโfacility rule where it applies.
- Measure any nonqualified use after 2008 that isnโt within the final fiveโyear window or another listed exception.
- Compute gain, split it using the formula above, and apply the $250,000 or $500,000 limit as your filing status allows.
- If any gain remains taxableโor if you must reportโcomplete Form 8949 and Schedule D (Form 1040) with your return.
Official IRS Reference
For detailed IRS rules, read Publication 523, โSelling Your Homeโ: https://www.irs.gov/publications/p523.
According to analysis by VisaVerge.com, Publication 523 is a helpful check for the tests, the special exceptions, and nonqualified use.
Practical Tips for Immigrants and CrossโBorder Families
- Plan your sale date with a calendar. If youโre close to 730 days, waiting a few months may preserve the full exclusion.
- Keep simple proof of residence: utility bills, school letters, bank mail, or a doctorโs bill tied to the address.
- If you rent the home, map the timing. Rental time within the last five years after leaving the home may or may not count as nonqualified useโcheck exceptions.
- Mind the twoโyear lookback. If you used the exclusion on another home in the prior two years, you canโt claim it again yet.
- Service members and certain officials should keep duty orders to support the 10โyear pause on the fiveโyear window.
- If your spouse died, note the twoโyear window to sell without remarrying so you can count your spouseโs time.
- For mixedโuse property, track the portion used as your main home so the exclusion applies to that share of the gain.
Human Impact: Why Timing Matters
Timing can change the tax outcome significantly. For example, a family on a threeโyear assignment who buys a small condo and lives there for at least two years within the fiveโyear window may exclude the full gain. If they rent for a year before selling, the tax effect depends on whether that rental falls inside the final fiveโyear window and on any other applicable exceptions.
If You Canโt Exclude the Full Gain
If you donโt meet the tests and no exception fits, you must report the sale:
- Fill out Form 8949, carry totals to Schedule D (Form 1040), and pay any tax due.
- Splitting the gain between qualified and nonqualified use may still reduce the taxable portion.
Quick Checklist Before Closing
Use this short list to avoid surprises and make filing smoother:
- Confirm you havenโt claimed a home sale exclusion in the last two years.
- Review whether any period after 2008 was nonqualified use and calculate the fraction early.
- Match documents to your timelineโownership, residence, rentals, extended duty orders, health or care recordsโso you can prove each requirement.
- Keep copies with your filed return.
Important: Retain good records and review Publication 523 for specifics. If in doubt, consult a tax professional to apply these rules to your unique situation.
This Article in a Nutshell
Selling your main home may be taxโfree under Section 121. Meet both twoโyear ownership and use tests within five years. Exceptions include work, health, or extended duty pauses. Nonqualified use after 2008 reduces the exclusion. Keep records, compute any taxable portion, and file Form 8949 with Schedule D when required.