121 Home sale exclusion: Rules, requirements, and expat considerations in 2026
The 121 home sale exclusion allows you to exclude up to $250,000 of capital gain – or $500,000 if married filing jointly – when you sell your principal residence. The exclusion is permanent: unlike a deferral, the excluded gain is never taxed. To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale date under IRC § 121.
This guide covers Section 121 exclusion requirements, how much you can exclude, how nonqualified use and depreciation recapture reduce your benefit, and the specific rules that apply to American expats selling a home while living abroad.
It is prepared by Taxes for Expats, a US tax firm working with Americans abroad since 1991.
What is the 121 home sale exclusion? (Quick answer)
The Section 121 home sale exclusion permanently eliminates federal capital gains tax on up to $250,000 of profit from selling your main home – or up to $500,000 for qualifying married couples filing jointly – with no requirement to reinvest the proceeds.
The exclusion applies under IRC § 121 and is the single largest tax break most homeowners will ever use. It covers houses, condos, co-ops, mobile homes, and houseboats, and it works for properties located in the US or abroad.
The following four points summarize how the 121 home sale exclusion works:
- You must have owned the home for at least two of the five years before the sale (ownership test).
- You must have lived in the home as your principal residence for at least two of the five years before the sale (use test).
- You cannot have used the exclusion on another home sale within the prior two years (frequency limit).
- The maximum exclusion is $250,000 for single filers and $500,000 for married couples filing jointly. These amounts are statutory and not adjusted for inflation.
The home sale capital gains exemption under Section 121 is not automatic. You must meet all four conditions above, and you must file correctly to claim it. IRS Publication 523 is the authoritative source for the ownership and use tests, partial exclusion rules, and reporting requirements.
For a broader look at how capital gains work when selling property as a US citizen, see our guide to capital gains tax on the sale of your primary residence in the US and abroad.
Section 121 exclusion requirements: Who qualifies?
To qualify for the Section 121 exclusion, you must have owned and used the home as your principal residence for at least two of the five years immediately before the sale date.
121 exclusion eligibility depends on meeting all four of the following requirements:
- Ownership test. You must have owned the property for at least 24 months during the five-year period ending on the date of sale. For married couples, only one spouse needs to meet this test.
- Use test. You must have used the property as your principal residence for at least 24 months during the same five-year window. For the $500,000 joint exclusion, both spouses must meet this test.
- Frequency limit. You cannot have excluded gain from another home sale within the two years preceding the current sale. The exclusion is available once every two years, with no lifetime limit.
- Principal residence definition. The IRS defines your principal residence as the home where you live most of the time. If you own more than one home, only the one you occupy as your primary residence qualifies. The IRS looks at factors such as where you work, where your family lives, your mailing address, voter registration, and driver’s license address.
The IRS rules for the Section 121 primary residence exclusion are set out in Publication 523 and Treasury Regulation § 1.121-1.
For expat-specific capital gains rules, see our article on capital gains for expats.
Ownership and use test explained
The two-year ownership and two-year use periods do not need to be continuous or concurrent. The IRS counts total time, not consecutive time, within the five-year look-back window.
The following four rules clarify how the tests work in practice:
- The 24 months of ownership and 24 months of use can occur at different times within the five-year window. For example, you could rent a home as a tenant, later purchase it, and count the earlier rental period toward the residence test. You would still need to own the home for at least two years during the five-year period before the sale.
- Certain temporary absences, such as vacations or other short absences, may still count as periods of use if you maintain the home as your principal residence. Whether a rental during an absence affects the use test depends on the specific facts and the IRS rules in Publication 523.
- The ownership period and the use period can overlap but do not need to. A tenant who buys the home they have been renting, for example, can count the rental period toward the use test even though they did not own the property during that time.
- The five-year look-back window is measured from the date of sale, not from the date you listed the property or moved out.
How much can you exclude? Exclusion amounts for 2025
Married couples filing jointly can exclude up to $500,000 of capital gains from a home sale, provided both spouses meet the use test, and at least one meets the ownership test.
The exclusion amounts are set by statute under IRC § 121 and have not changed since the provision was enacted in 1997. They are not adjusted for inflation.
The following table compares the home sale exclusion for a married couple and other filing statuses against the maximum exclusion and the test each must pass.
| Filing status | Maximum exclusion | Ownership test | Use test |
|---|---|---|---|
| Single | $250,000 | Taxpayer must own for 2 of 5 years | Taxpayer must use for 2 of 5 years |
| Married filing jointly | $500,000 | At least one spouse must own for 2 of 5 years | Both spouses must use for 2 of 5 years |
| Married filing separately | $250,000 per spouse | Each spouse who claims must own for 2 of 5 years | Each spouse who claims must use for 2 of 5 years |
If only one spouse meets the use test on a joint return, the couple cannot claim the full $500,000 exclusion. The available exclusion may be less than $500,000, although special rules under IRC § 121(b)(2) can allow more than $250,000 in limited circumstances.
The IRS Section 121 primary residence exclusion amount for married filing jointly generally requires both spouses to pass the use test – not just the spouse whose name is on the deed. Special rules may apply when one spouse is disqualified only by the two-year frequency limit.
For guidance on filing status decisions when one spouse is a nonresident alien, see our guide to filing jointly or separately with an NRA spouse.
Nonqualified use: How rental periods reduce your exclusion
Certain periods of nonqualified use can reduce the amount of gain eligible for your Section 121 exclusion on a pro-rata basis, subject to statutory exceptions.
Under IRC § 121(b)(5), gain allocated to periods of nonqualified use under Section 121 is not eligible for the exclusion.
A nonqualified use period generally refers to time during your ownership when the property was not used as your principal residence. There are important statutory exceptions: rental periods before January 1, 2009, are grandfathered, and periods after the last date the home was used as your principal residence are generally excluded as well, even if the property is rented during that time.
The formula is:
Gain allocated to nonqualified use = (nonqualified use days ÷ total ownership days) × total gain
The remaining gain is eligible for the $250,000 or $500,000 exclusion.
First, subtract the gain attributable to depreciation allowed or allowable after May 6, 1997. Then calculate nonqualified-use gain as: nonqualified-use days ÷ total ownership days × the remaining gain. Depreciation-related gain is handled separately and is not included in the nonqualified-use allocation.
TFX client scenario
A US homeowner buys a property in 2020, rents it for two years, then moves in as a primary residence in 2022, and sells in 2025 with a $400,000 gain.
- Total ownership: five years (1,825 days)
- Nonqualified use (rental period): two years (730 days)
- Gain allocated to nonqualified use: (730 ÷ 1,825) × $400,000 = $160,000 – taxable as long-term capital gain
- Remaining gain eligible for exclusion: $240,000 – fully covered by the $250,000 single-filer cap
This assumes the rental occurred before the property became the principal residence. The rule differs if the rental follows the final period of principal-residence use.
Converting a 121 exclusion rental property to a primary residence and living there for at least 24 months can create partial eligibility, but a post-2008 rental period before conversion generally counts against the exclusion, unless it falls under a statutory exception
For more on the tax treatment of selling foreign rental property, see our guide to capital gains tax on foreign property.
Depreciation recapture on your primary residence
Even if the Section 121 exclusion eliminates your capital gains tax, depreciation recapture on the sale of a primary residence under Section 121 is taxed separately. Any depreciation you claimed – or could have claimed – during a rental period is recaptured and taxed at a maximum federal rate of 25% under IRC § 1250 as unrecaptured Section 1250 gain.
The Section 121 exclusion does not shelter depreciation recapture. This amount is always taxable, regardless of whether the rest of your gain falls within the $250,000 or $500,000 cap.
For related reading on tax-deferred exchanges of investment property, see our guide to like-kind exchanges under IRC Section 1031.
Special rules: Partial exclusion and reduced maximum
The IRS allows a partial Section 121 exclusion if you sell your home early due to a job change, health issue, or other unforeseen circumstances.
If you do not meet the full two-year ownership or use test, you may still qualify for a reduced exclusion under IRC § 121(c) if the primary reason for the sale falls into one of three categories:
- Change in place of employment. Your new workplace must be at least 50 miles farther from the home than your previous workplace was. This includes a new job, a transfer, or the start of self-employment.
- Health reasons. A physician recommends the move to obtain, provide, or facilitate medical care for you, your spouse, or a qualifying family member.
- Unforeseen circumstances. The IRS defines specific safe harbors including death of a resident, divorce or legal separation, involuntary conversion of the property, natural or man-made disaster, and multiple births from the same pregnancy.
The partial exclusion formula is:
Partial exclusion = (qualifying use months ÷ 24) × maximum exclusion
TFX client scenario
A single filer buys a home and lives there for 12 months before selling due to a job relocation 60 miles away. Partial exclusion = (12 ÷ 24) × $250,000 = $125,000. If the gain is $100,000, the entire gain is excluded. If the gain is $200,000, only $125,000 is excluded, and the remaining $75,000 is taxable at long-term capital gains rates.
Section 121 exclusion for expats: Selling a home while living abroad
American expats can claim the full $250,000 or $500,000 Section 121 exclusion on a US home sale even while living abroad, as long as they meet the two-of-five-year ownership and use tests.
US citizens are subject to US tax law regardless of where they live. If you owned and lived in a US home for at least 24 months within the five-year window, then moved abroad and sold the property within the remaining look-back period, you can still claim the full home sale exclusion for expats.
The capital gains exclusion on a primary residence works the same way for expats as it does for US-based filers.
Two points are worth flagging for expats:
- The Foreign Earned Income Exclusion does not apply to capital gains from a home sale. FEIE covers earned income only – wages and self-employment income. A home sale tax exclusion claim runs through Section 121, not Form 2555.
- Expats who sell a US home while living abroad and have a gain exceeding the exclusion can claim the Foreign Tax Credit on Form 1116 if they also paid foreign tax on the same gain, though this is uncommon for US-located property.
For a comparison of the FEIE and FTC and how they interact with home sale gains, see our guide to FEIE vs. FTC.
Selling a foreign property: Does Section 121 apply?
Section 121 can apply to a foreign property if you used it as your principal residence and met the ownership and use tests. The exclusion is not limited to US-located homes – it covers any property that qualifies as your main home, anywhere in the world.
Selling a foreign primary residence adds complexity in three areas:
- Currency exchange gain. Your gain is calculated in US dollars. You must convert the purchase price, improvement costs, and sale price into USD using the exchange rates on the relevant dates. A favorable currency shift can create a US-dollar gain even when the local-currency price barely changes.
- Foreign tax credits. If the country where the property is located taxes the sale, you may be able to claim a credit on Form 1116 to offset US tax on any gain exceeding the Section 121 exclusion.
- FBAR and FATCA. Foreign bank accounts that receive sale proceeds may trigger FBAR filing if aggregate foreign accounts exceed $10,000, and Form 8938 may apply if specified foreign financial asset thresholds are exceeded.
For UK-specific rules, see our guide to capital gains tax on UK property.
Section 121 exclusion and the foreign tax credit
Expats who sell a foreign primary residence for a gain exceeding $250,000 can apply the Foreign Tax Credit against US tax owed on the excess gain, potentially reducing their US tax liability to zero.
The 121 exclusion and the Foreign Earned Income Exclusion serve different purposes and cover different income types. The FEIE cannot shelter home sale gains. The Foreign Tax Credit on Form 1116 is the tool that prevents double taxation when a foreign country also taxes the sale.
The mechanics work as follows: apply the Section 121 exclusion to eliminate the first $250,000 (or $500,000) of gain. Any gain above the exclusion is reported on Form 8949 and Schedule D. If you paid foreign capital gains tax on the full sale, the portion of foreign tax attributable to the gain above the exclusion can be credited on Form 1116, subject to the foreign tax credit limitation.
Section 121 exclusion: Divorce, military, and other special situations
Active-duty military members can suspend the five-year look-back period for up to 10 years, preserving their Section 121 exclusion eligibility even after extended deployments.
The following four special situations modify how the 121 home sale exclusion rules apply:
- Divorce. Under IRC § 121(d)(3), a spouse who receives the home in a divorce settlement can count the transferor spouse’s period of ownership toward the two-year ownership test. If the divorce decree grants one spouse the right to live in the home, the other spouse can count that period toward the use test as well.
- Military. Under IRC § 121(d)(9), active-duty military members serving at a qualified official extended-duty station at least 50 miles from the home can elect to suspend the five-year look-back period for up to 10 years. This extends the effective window to 15 years, giving service members more time to meet the two-year use test. The Section 121 exclusion for military families is one of the most valuable provisions for frequently relocated personnel.
- Widowed taxpayers. Under IRC § 121(b)(4), a surviving spouse may claim up to $500,000 if the sale occurs within two years of the spouse’s death, the couple would have qualified for the joint exclusion before the death, and the surviving spouse has not remarried before the sale.
-
Multiple homes. Only one home can be designated as your principal residence at a time. If you own a second home or vacation property, that property does not qualify for the Section 121 exclusion for multiple homes unless you convert it to your principal residence and meet the ownership and use tests. The 121 exclusion for a second home is not available while you maintain another principal residence.
FREESelling under unusual circumstances – divorce, military move, or a partial exclusion?Let’s talk it through.Schedule my free call
How to calculate your Section 121 exclusion: Step-by-step
The 121 exclusion calculation follows six steps, from determining your basis to reporting any taxable gain.
- Determine your adjusted basis. Start with the original purchase price. Add the cost of capital improvements such as a new roof, kitchen remodel, or room addition. Subtract any depreciation you claimed or could have claimed during rental periods. The result is your adjusted basis.
- Calculate your amount realized. Take the sale price and subtract selling costs such as real estate commissions, transfer taxes, title insurance, and legal fees. The result is your amount realized.
- Compute total gain. Subtract your adjusted basis from your amount realized. If the result is positive, you have a gain. If negative, you have a loss – and losses on personal-use property are not deductible.
- Identify any nonqualified use period. If the home was rented or used for non-residential purposes during your ownership after 2008, and that period doesn’t fall under a statutory exception such as the one for time after you last used the home as your principal residence, calculate the gain allocated to nonqualified use using the formula above. That portion is not eligible for the exclusion.
- Apply the $250,000 or $500,000 exclusion cap. The excludable gain is the lesser of your eligible gain or the applicable cap for your filing status.
- Report any remaining taxable gain on Form 8949 and Schedule D. If you have gain above the exclusion, it is reported as a long-term capital gain. Any depreciation recapture is reported separately at the 25% maximum rate.
TFX client scenario (121 home sale exclusion example)
A single-filer US homeowner sells for $750,000. Purchase price was $280,000, capital improvements totaled $20,000, and no rental use occurred. Adjusted basis: $300,000. Amount realized after $45,000 in selling costs: $705,000. Total gain: $405,000. No nonqualified use. Exclusion applied: $250,000. Taxable gain reported on Schedule D: $155,000, taxed at the applicable long-term capital gains rate.
For a deeper explanation of capital gains and losses on your US return, see our capital gains and losses guide.
How to report a home sale on your tax return
Most home sellers whose gain is fully covered by the Section 121 exclusion do not need to report the sale – but receiving a Form 1099-S changes that rule.
How to claim the home sale exclusion depends on whether a Form 1099-S was issued and whether any gain exceeds the exclusion.
- No Form 1099-S and gain is fully excluded. You generally do not need to report the sale on your tax return. No form is required.
- Form 1099-S was issued. You must report the sale on Form 8949 for the home sale and carry the result to Schedule D of Form 1040, even if the entire gain is excluded. Enter the full sale price on Form 8949, then enter the exclusion as an adjustment using code H.
- Gain exceeds the exclusion. Report the full sale on Form 8949 and Schedule D. The excluded amount reduces the taxable gain. The remaining gain is taxed at long-term capital gains rates. Any depreciation recapture is taxed at the 25% maximum rate.
There is no standalone IRS form for the 121 exclusion – you will not find a separate election or application. The IRS Section 121 home sale exclusion is claimed through the reporting on Form 8949 and Schedule D.
For more on how Form 8949 and Schedule D work on your return, see our guide to Form 1040 Schedule 1,
Common mistakes that cost taxpayers the Section 121 exclusion
One of the most expensive mistakes expat homeowners make is assuming the Foreign Earned Income Exclusion shelters capital gains from a home sale – it does not.
The following five errors account for most lost or reduced Section 121 exclusions on returns that TFX reviews:
- Failing to track the two-of-five-year use period precisely. The IRS can audit home sale exclusion claims for up to three years after filing. Without records showing exactly when you lived in the home, you risk losing the exclusion entirely.
- Ignoring nonqualified use periods from prior rental use. Post-2008 rental periods before you convert to a primary residence reduce the excludable gain proportionally. Skipping this calculation overstates the exclusion and creates an underpayment.
- Forgetting to recapture depreciation from rental periods. Depreciation claimed during rental use is taxed at up to 25% regardless of the Section 121 exclusion. Overlooking this creates a separate underpayment.
- Claiming the exclusion more than once every two years. The frequency limit is strict. If you sold another home and claimed the exclusion within the prior 24 months, you are ineligible.
- Expats assuming the FEIE covers home sale gains. The FEIE covers wages and self-employment income only under IRC § 911(d)(2). Capital gains from a home sale must be excluded under Section 121 or taxed – FEIE does not apply.
For a case study on what happens when the FEIE is improperly applied, see our Foreign Earned Income Exclusion guide.
Section 121 exclusion vs. 1031 exchange: Which is better?
Unlike a 1031 exchange, the Section 121 exclusion permanently eliminates up to $500,000 of capital gains tax with no reinvestment requirement.
The two strategies serve different purposes and apply to different property types. The Section 121 exclusion applies to your principal residence and permanently excludes gain. A 1031 exchange applies to investment or business property and defers gain – the tax is owed when you eventually sell the replacement property without exchanging again.
The following table compares the two strategies to help you decide how to avoid capital gains tax on a home sale.
| Section 121 exclusion | 1031 exchange | |
|---|---|---|
| Tax treatment | Permanent exclusion – gain is never taxed | Deferral – gain is taxed when replacement property is sold |
| Property type | Principal residence only | Investment or business property only |
| Reinvestment requirement | None | Must identify replacement property within 45 days and close within 180 days |
| Maximum benefit | $250,000 single / $500,000 MFJ | No dollar cap – entire gain can be deferred |
In limited situations, a property that has been used both as an investment property and as a principal residence may qualify for benefits under both IRC §121 and IRC §1031. The interaction is subject to detailed allocation and holding-period rules, so professional tax advice is usually appropriate.
The Section 121 exclusion can cover the gain attributable to the residence period, while a 1031 exchange can defer the gain attributable to the investment period.
For more on 1031 exchanges, see our guide to like-kind exchanges of rental property under IRC Section 1031.
For strategies to reduce capital gains tax on inherited property, see our inherited property capital gains guide.
Frequently asked questions
The Section 121 exclusion under IRC § 121 lets you exclude up to $250,000 of capital gain ($500,000 for married filing jointly) when you sell your principal residence. You must have owned and used the home for at least two of the five years before the sale. The exclusion is available once every two years – no 121 home sale exclusion taxes are owed on gain within the cap.
Yes. The two-year use test looks at the total time you lived in the home during the five-year window, not at where you lived afterward. If you met the 24-month use requirement before moving abroad and sell within the remaining look-back period, you can claim the full exclusion from overseas.
Gain is allocated to post-2008 nonqualified use periods on a pro-rata basis using the formula: (nonqualified days ÷ total ownership days) × total gain. That portion is not eligible for the exclusion. There are exceptions, though — rentals before January 1, 2009 are grandfathered, and time after you last used the home as your principal residence generally doesn’t count as nonqualified use either.
Generally, no. For the full $500,000 exclusion, both spouses must meet the two-year use test and at least one must meet the ownership test. If those requirements are not met, the available exclusion may be reduced – although special rules under IRC § 121(b)(2) can allow more than $250,000 in limited circumstances, such as when one spouse is disqualified only by the two-year frequency limit. See IRS Publication 523 for details.
Not directly. The exclusion covers your principal residence only. If you convert a vacation property into your primary residence and live there for at least 24 months, you may qualify – but any post-2008 period when the property was not your main home counts as nonqualified use and reduces the excludable gain.
A loss on the sale of a personal-use home is not deductible and generally does not need to be reported. If you received a Form 1099-S, you should still report the sale on Form 8949 and Schedule D to match the IRS records, with the loss shown as $0 deductible loss.
Once every two years. There is no lifetime limit. You can use the exclusion on as many home sales as you qualify for, as long as each sale is at least two years apart from the prior excluded sale.
Generally no – if you did not receive a Form 1099-S and the entire gain is within the exclusion cap. If you did receive a Form 1099-S, you must report the sale on Form 8949 with code H to show the excluded gain, even though no tax is owed.
The Section 121 exclusion is a US domestic-law provision, not a treaty benefit. It applies independently of any tax treaty. If you sell a UK home that qualifies as your principal residence and also owe UK capital gains tax, you can use the Foreign Tax Credit on Form 1116 to offset US tax on any gain above the exclusion – the treaty and the exclusion work together, not as alternatives.
Yes, in limited circumstances. If you converted an investment property into your primary residence and lived there for at least 24 months, you can potentially claim the Section 121 exclusion on the residence portion of the gain. A special five-year holding period applies to properties acquired through a 1031 exchange before the Section 121 exclusion becomes available.