Section 121 Exclusion
The Section 121 exclusion permits homeowners to exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains when selling a primary residence, provided they meet ownership and use tests. It is one of the most valuable tax shelters available to individuals, though its conditions are strict and often misunderstood.
The basic math: how much you save
A homeowner buys a house for $400,000, lives in it for seven years, and sells for $850,000—a $450,000 gain. Under Section 121, a single filer excludes $250,000, leaving $200,000 of taxable gain. At a 15% long-term capital gains tax rate, the federal bill is $30,000. Without the exclusion, the tax would be $67,500—a saving of $37,500 just from meeting the statutory test.
Married couples filing jointly can exclude up to $500,000, which means a couple with the same scenario pays federal tax on only $0 (since their gain of $450,000 falls entirely within the exclusion). State taxes and net investment income tax may still apply, but the federal impact evaporates.
The exclusion applies once every two years per person, not per property. A married couple can sell one home and exclude gains, then two years later sell another, and claim the exclusion again. But if a single person sells in year one and again in year three, the second sale does not qualify—they must wait until year three is complete before the two-year window resets.
The two tests: ownership and use
To qualify, a taxpayer must satisfy both a strict ownership test and a use test, applied in the two years before sale.
The ownership test requires holding legal title for at least 24 months during the five-year lookback period. Non-consecutive ownership counts; a person can own 14 months, sell it away, buy it back, and own another 14 months—and the periods aggregate. Some life events reset or extend the test: a widow inheriting a spouse’s home steps into the spouse’s holding period, treating the couple’s joint holding period as hers for purposes of the two-year window after his death.
The use test requires living in the home as a principal residence for at least 24 months during the same five-year window. Here “principal residence” means the taxpayer’s primary dwelling—the place where they spend most of their time. Renting it out for one year and living in it for two other years (non-contiguous) satisfies the test; the IRS does not require the 24 months to be consecutive.
Periods of absence for medical care, work, education, or military service are treated generously—up to one year of continuous absence can be counted as use for purposes of the test, even if the home stood vacant.
When the exclusion fails: common disqualifications
The exclusion is lost entirely if the taxpayer sold another home and claimed the exclusion within the preceding two years. This “once every two years” rule is unforgiving; even by one day, the sale is ineligible.
A home converted from rental to personal use (or vice versa) complicates the timeline. If a taxpayer rents out a vacation home for three years, then moves in for two years and sells, the ownership and use tests are met, but gains allocable to the rental period are not eligible for exclusion. The home must be divided pro-rata: 3/5 of gain is taxable; 2/5 is shielded.
Any use of the 1031 exchange rule—deferring tax by swapping one property for another—forfeits the exclusion on the original property if that exchange occurred within five years before sale. The exclusion is unavailable to married couples filing separately who have not lived together during the use period. And a taxpayer who is not a U.S. citizen or resident alien during the relevant period cannot claim it.
For real estate investors, the distinction between a personal residence and an investment property is critical. A rental unit—regardless of how many times the owner visits—does not qualify. The test is occupation and principal use, not ownership intent.
State and local layer
Section 121 is a federal-only exclusion; it has no bearing on state capital gains taxes. States like California, New York, and others may impose their own capital gains taxes on the same gain. A few states—including Hawaii and some others—have enacted parallel exclusions mirroring Section 121, but most have not. A homeowner should verify state rules before assuming full shelter from the gain.
The two-year wait and partial exclusions
Life disruptions—job relocation, divorce, death in the family, unforeseen medical issues—sometimes force a sale before the two-year mark. The IRS offers a partial exclusion: if a taxpayer meets the ownership and use tests for at least one year (not two), and the sale is due to an unforeseen circumstance, the maximum exclusion is reduced pro-rata. A sale after 18 months of qualifying use gets 75% of the full exclusion; at 12 months, 50%.
The list of “unforeseen circumstances” is tightly defined: change of job location, death, divorce or legal separation, settlement from a casualty or theft loss, multiple births or adoptions, or medical conditions requiring a change of residence. The IRS publishes guidance on what qualifies; a simple desire to upgrade or downsize does not.
See also
Closely related
- Capital Gains Tax (Investor) — how primary residence gains are taxed and excluded
- Real Estate Professional Status — when real estate activity is classified as a trade or business
- Vacation Home Tax Rules — the personal-use test that affects rental deduction eligibility
- Form 8949 — the IRS form for reporting gain exclusions and cost basis adjustments
Wider context
- Residential Real Estate — ownership structures and mortgage mechanics
- Tax-Deferred Exchange (Section 1031) — when deferring gains via property swaps can conflict with the exclusion
- Long-Term Capital Gain Tax — the federal rates applied to gains
- Marginal Tax Rate (Investor) — how gains are stacked and taxed