Skip to main content

Section 121 Home Sale Exclusion: How Homeowners Can Skip Up to $500,000 in Capital Gains Taxes

· 10 min read
Mike Thrift
Mike Thrift
Marketing Manager

Imagine selling your home for a $400,000 profit and writing the IRS a check for exactly $0 in federal capital gains tax. Sounds too good to be true—but for millions of American homeowners, this is the everyday magic of Section 121 of the Internal Revenue Code.

Even better, this exclusion isn't a once-in-a-lifetime perk. With careful planning, you can use it again and again throughout your life, sheltering hundreds of thousands of dollars from tax each time you sell. The catch? The rules are surprisingly nuanced, and the dollar limits ($250,000 for singles, $500,000 for married couples) haven't been adjusted for inflation since they were enacted in 1997. As home prices have climbed, more sellers are bumping up against the ceiling—and getting it wrong can cost tens of thousands of dollars.

2026-05-07-section-121-home-sale-exclusion-250k-500k-capital-gains-homeowners-guide

This guide walks through how the exclusion works, who qualifies, the traps that catch unsuspecting sellers, and how to plan ahead to keep more of your equity in your pocket.

What Is the Section 121 Home Sale Exclusion?

Section 121 lets you exclude from federal income tax up to:

  • $250,000 of gain if you file as single, head of household, or married filing separately
  • $500,000 of gain if you file a joint return as a married couple

That gain is the difference between your adjusted sale price (sale proceeds minus selling costs like commissions and closing fees) and your adjusted basis (your original purchase price plus capital improvements, minus any depreciation).

Crucially, the excluded gain is also exempt from the 3.8% Net Investment Income Tax (NIIT), making it one of the most powerful tax breaks available to ordinary households.

A Simple Example

Suppose Maria and her husband bought a home in 2014 for $400,000. They spent $50,000 over the years on a kitchen remodel and a new roof (capital improvements). In 2026 they sell for $920,000 and pay $55,000 in commissions and closing costs.

  • Adjusted sale price: $920,000 − $55,000 = $865,000
  • Adjusted basis: $400,000 + $50,000 = $450,000
  • Realized gain: $865,000 − $450,000 = $415,000

Because they're married filing jointly and meet the qualifying tests, they can exclude the entire $415,000. Their federal capital gains tax bill on the sale: $0.

The Two Tests You Must Pass

To claim the full Section 121 exclusion, you must satisfy both of these requirements during the 5-year period ending on the date of the sale:

1. The Ownership Test

You (or your spouse, if filing jointly) must have owned the home for at least 24 months (730 days) within the 5-year window. The months don't need to be consecutive.

2. The Use Test

You must have used the home as your principal residence for at least 24 months within the same 5-year window. Again, the months don't need to be consecutive—and they don't need to overlap with the ownership months.

For married couples filing jointly to claim the full $500,000, both spouses must meet the use test, but only one spouse must meet the ownership test.

What Counts as a Principal Residence?

The IRS looks at where you actually live, not just where you claim to live. Key factors include:

  • The address on your driver's license, voter registration, and tax returns
  • Where your bank, vehicles, and mail are registered
  • Where your family lives and your social ties are
  • The amount of time you spend at the property each year

If you own multiple homes, only one can be your principal residence at any given time.

The Two-Year Frequency Rule

Here's a rule that surprises many sellers: you can only claim the full Section 121 exclusion once every two years. Specifically, you cannot claim it if you used the exclusion for another home sale within the two years prior to the current sale.

This frequency limit applies to the full exclusion. With a qualifying reason, a partial exclusion is still possible (more on that below).

Partial Exclusion: When Life Doesn't Cooperate

If you sell before satisfying both tests, you may still qualify for a reduced exclusion—but only if the sale is due to a qualifying reason. The IRS recognizes three categories:

1. Change in Place of Employment

If you (or your spouse, co-owner, or another household member) take a new job that's at least 50 miles farther from your old home than the previous job was, you generally qualify.

2. Health

A move recommended by a doctor for diagnosis, treatment, or care of a disease, illness, or injury qualifies. The patient can be you, a family member, or another household member.

3. Unforeseen Circumstances

This catch-all category includes:

  • Natural or man-made disasters affecting the home
  • Acts of war or terrorism
  • Death of a spouse, co-owner, or qualifying relative
  • Divorce or legal separation
  • Becoming eligible for unemployment compensation
  • Multiple births from the same pregnancy
  • A change in employment leaving you unable to pay basic living expenses

How the Partial Exclusion Is Calculated

The reduced exclusion equals your full exclusion limit multiplied by the shorter of:

  • Days you owned the home during the 5-year period, or
  • Days you used the home as your principal residence during the 5-year period

…divided by 730 days (24 months).

Example: A single homeowner takes a new job 200 miles away after living in her home for only 12 months. Her reduced exclusion is:

$250,000 × (365 / 730) = $125,000

Even with the partial exclusion, that's a meaningful tax break.

The Hidden Trap: Depreciation Recapture

If you ever rented out part of your home, used a home office, or claimed depreciation on a portion of the property, you cannot exclude the depreciation portion of your gain, no matter how long you lived there. That portion is taxed as unrecaptured Section 1250 gain at a maximum federal rate of 25%.

This catches many small business owners and former landlords off guard. The depreciation rule applies to deductions taken after May 6, 1997.

The Nonqualified Use Rule (For Sales After 2009)

Another wrinkle: if you used the property as a rental, vacation home, or for any non-residential purpose before moving in as your primary residence, the gain attributable to that "nonqualified use" period generally cannot be excluded. You must allocate gain proportionally between qualified and nonqualified periods.

Important nuance: Nonqualified use after you've established the property as a principal residence (such as renting it out before sale) does not count against you under this rule, though the depreciation recapture rule still applies. This asymmetry creates planning opportunities.

Special Situations Worth Knowing

Death of a Spouse

A surviving spouse can still claim the full $500,000 exclusion if the sale occurs within two years of the spouse's death and they were eligible for the joint exclusion just before the death. After two years, the surviving spouse drops to the single-filer $250,000 limit.

Divorce

If you receive the home as part of a divorce or separation agreement, you can include your former spouse's ownership and use period when calculating your own qualifying time. This is called tacking.

Military Service

Qualifying service members on extended duty (over 90 days or indefinite) at a station at least 50 miles from the home, or living in government quarters, can suspend the 5-year test for up to 10 years. This is a major benefit for military families who move frequently.

Vacant Land Adjacent to Your Home

If you sell vacant land used as part of your principal residence within two years before or after selling the home, the land sale generally qualifies under Section 121—but only when combined with the home sale.

Reporting Requirements

You generally don't have to report the home sale on your tax return if:

  • The entire gain is excludable, and
  • You did not receive a Form 1099-S

If you receive a Form 1099-S (which often happens at closing) or your gain exceeds the exclusion, you must report the sale on Form 8949 and Schedule D of Form 1040, even if no tax is ultimately owed.

Planning Strategies for Bigger Tax Savings

Track Every Capital Improvement

Receipts for improvements like new roofs, HVAC systems, kitchens, additions, and landscaping can be added to your basis—reducing your taxable gain dollar-for-dollar. Routine repairs (painting, fixing leaks) don't count, but improvements do. Most homeowners drastically underestimate this number because they didn't track it.

Accurate bookkeeping from the day you buy your home can save you thousands when you eventually sell. Maintain a digital folder, spreadsheet, or ledger with dates, amounts, vendors, and descriptions for every improvement.

Time Your Sale Around the 24-Month Threshold

If you're approaching the two-year ownership and use mark, even a few extra weeks of patience can mean the difference between a fully excluded gain and a six-figure tax bill.

Consider the "Nonqualified Use" Sequence

If you're contemplating moving into a former rental, remember that pre-residence rental periods reduce your exclusion, but post-residence rental periods generally don't (other than depreciation recapture). Sequence matters.

Spousal Death Window

A surviving spouse should consider whether selling within two years of a spouse's death is advantageous to preserve the $500,000 exclusion, especially in markets with significant appreciation.

Stack the Exclusion with the Step-Up in Basis

If a spouse passes away, the surviving spouse generally receives a step-up in basis on the deceased spouse's share of the home. Combined with the Section 121 exclusion, this can wipe out essentially all of the gain on long-held homes in many states.

Factor in State Taxes

Most states follow federal Section 121 treatment, but a few don't. Check your state's rules—especially if you're moving across state lines as part of the sale.

Common Mistakes That Cost Real Money

  1. Forgetting to track home improvements. Without documentation, you may end up reporting a much larger gain than necessary.
  2. Selling too early to qualify. Waiting just a few extra months can dramatically change your tax outcome.
  3. Misunderstanding the depreciation rule. Even minimal home-office depreciation creates a recapture obligation that the exclusion doesn't cover.
  4. Using the exclusion twice within two years. The frequency limit is strict.
  5. Failing to allocate basis when only part of the property qualifies (e.g., a duplex where one unit is rented).
  6. Ignoring NIIT planning. While excluded gain isn't subject to the 3.8% surtax, the non-excluded portion can be—and pushes other investment income into a higher effective tax bracket.

Looking Ahead: Will the Limits Increase?

The $250,000 / $500,000 thresholds were set in 1997 and have never been indexed to inflation. In real terms, the exclusion has lost more than half its purchasing power. Several legislative proposals over the years have sought to raise or index the limits, but none has been enacted. Until that changes, sellers in high-cost markets like California, New York, Massachusetts, and parts of Florida should plan carefully—a $500,000 gain on a long-held home is no longer unusual.

Keep Your Home's Financial Records Organized from Day One

Whether you're a first-time buyer or selling your fifth home, proper recordkeeping is the difference between maximizing your Section 121 exclusion and overpaying the IRS. Every improvement receipt, basis adjustment, and depreciation entry needs to be tracked accurately—often for decades.

Beancount.io provides plain-text accounting that gives you complete transparency and version control over your financial records, including home basis tracking, improvement logs, and capital gain calculations. Your data lives in human-readable files you actually own—no black boxes, no vendor lock-in. Get started for free and bring the same rigor to your personal finances that the best CPAs bring to their clients' tax planning.