Selling a primary home lets married couples exclude up to $500,000 of capital gains from federal tax — but the property must have been owned and lived in for 2 of the last 5 years

Frustrated young husband and wife doing paperwork together, calculating their expenses, managing bills, using laptop computer and calculator in modern kitchen

A married couple in Austin sells the house they bought in 2018 for $350,000. The closing price in 2026: $825,000. Their gain on paper is $475,000, and under federal tax law, every dollar of it can be excluded from income tax. A single neighbor with the same numbers would owe federal tax on $225,000 of that profit. The difference comes down to one provision in the tax code that rewards long-term homeownership, but only for sellers who clear two strict timing tests.

The Section 121 Exclusion, Explained

Under Internal Revenue Code Section 121, a taxpayer who sells a principal residence can exclude up to $250,000 of capital gain from federal income tax. Married couples filing jointly can exclude up to $500,000, provided both spouses meet certain conditions.

To qualify, the seller must pass two tests during the five-year window ending on the date of sale:

  • Ownership test: The taxpayer must have owned the home for at least two of those five years.
  • Use test: The taxpayer must have lived in the home as a principal residence for at least two of those five years.

The two years do not need to be consecutive. A homeowner who lived in the property during 2022 and 2024 but rented it out during 2023 still satisfies the use test, as long as total occupancy reaches 24 months within the lookback window. The IRS confirms this in its Topic No. 701 guidance, which also notes that the ownership and use periods can overlap but do not have to.

How the $500,000 Joint Exclusion Works

The larger exclusion for married couples is not simply doubled by filing jointly. Under 26 CFR Section 1.121-2, three conditions must all be satisfied:

  1. At least one spouse must meet the ownership test.
  2. Both spouses must individually meet the use test, meaning each must have lived in the home for two of the last five years.
  3. Neither spouse can have used the Section 121 exclusion on a different home sale within the two years before the current sale.

If only one spouse meets the use test, the couple’s exclusion drops to $250,000. If either spouse claimed the exclusion on another property within the prior two years, the full $500,000 is off the table. These requirements are designed to catch couples who marry and quickly sell one partner’s home expecting the higher cap.

Calculating the Gain That Actually Gets Taxed

The exclusion applies to capital gain, not to the gross sale price. Gain equals the selling price (minus selling costs such as agent commissions) less the property’s adjusted basis. Basis starts with the original purchase price and increases with qualifying capital improvements: a new roof, a kitchen renovation, an added bathroom. Routine maintenance and cosmetic repairs do not count.

The IRS notes in its real estate tax tips that keeping records of improvements is essential because they directly reduce the taxable gain. Consider a couple who bought for $300,000, spent $60,000 on a permitted addition, and sold for $850,000. Their adjusted gain would be $490,000, which falls entirely within the $500,000 exclusion.

One wrinkle that surprises many sellers: if you claimed a home-office deduction and took depreciation on part of the property, the depreciated portion is subject to recapture under Section 1250. That slice of gain is taxed at a maximum rate of 25%, and it cannot be sheltered by the Section 121 exclusion regardless of the total amount.

What Happens to Gain Above the Exclusion

When a sale produces gain that exceeds the exclusion, the overage is taxed as a long-term capital gain (assuming the home was held for more than one year). Under current federal rates for the 2026 tax year, that means 0%, 15%, or 20% depending on the seller’s taxable income. High earners may also owe the 3.8% net investment income tax under IRC Section 1411.

For the single neighbor in the Austin example, the $225,000 of taxable gain could generate a federal bill of roughly $33,750 at the 15% rate, or more if their income pushes them into the 20% bracket plus the surtax. That is a meaningful number, and it is why sellers approaching the exclusion ceiling pay close attention to basis adjustments and closing-cost deductions.

Partial Exclusions for Early Moves

Sellers who fall short of the two-year marks are not necessarily shut out. The law provides a reduced exclusion when the sale is driven by specific qualifying events, including:

  • A change in place of employment (generally at least 50 miles farther from the home).
  • A health condition that requires the taxpayer to move.
  • Unforeseen circumstances defined in 26 CFR Section 1.121-3, such as divorce, death of a spouse, or natural disaster damage to the home.

The partial exclusion is prorated based on the fraction of the two-year requirement the seller actually completed. A single filer who lived in the home for one year before a qualifying job relocation could exclude up to $125,000, which is half of the $250,000 maximum.

Special Rule for Homeowners in Care Facilities

Under 26 CFR Section 1.121-1, a taxpayer who becomes physically or mentally unable to care for themselves can count time spent in a licensed care facility toward the use test, as long as they owned and lived in the home for at least one year of the five-year period. This rule protects older homeowners who move into assisted living before reaching the full two-year occupancy threshold, and it applies regardless of the taxpayer’s age.

What the Exclusion Does Not Cover

Several common assumptions about the exclusion turn out to be wrong:

  • It does not apply to investment or rental properties. The home must be the seller’s principal residence. A vacation house or a property rented full-time does not qualify unless the seller converts it to a primary residence and satisfies the timing tests from that point forward.
  • It does not eliminate state taxes. Many states impose their own capital gains taxes on home sales. California, for instance, taxes capital gains as ordinary income, with a top marginal rate of 13.3% for the highest earners under current state law. The federal exclusion has no effect on state liability.
  • It cannot be used more than once every two years. A seller who claimed the exclusion in 2024 cannot claim it again on a sale closing before 2026.
  • It does not cover gain from periods of nonqualified use after December 31, 2008, under rules added by the Housing Assistance Tax Act of 2008. If a homeowner rented the property for three years and then lived in it for two, the gain allocated to the rental period is not excludable. The allocation is proportional: nonqualified-use years divided by total years of ownership, applied to the overall gain. Periods before January 1, 2009, are not counted as nonqualified use.

Split Residency and Remote Work: A Growing Gray Area

The expansion of remote work since 2020 has created situations where homeowners split time between two addresses, raising questions about which property qualifies as a principal residence. The IRS uses a facts-and-circumstances test that weighs where the taxpayer works, banks, receives mail, votes, and maintains community ties. No single factor is decisive.

There is no recent IRS guidance addressing remote-work residency patterns specifically. The Treasury Department’s 2002 release on Section 121 regulations predates the remote-work era entirely. Until updated rules or enforcement data appear, homeowners who divide their time between properties should build a clear paper trail: utility bills showing regular usage, voter registration at the claimed primary address, and consistent mailing records all help establish the factual case if the IRS questions a claim.

Timing the Sale in Mid-2026

For homeowners approaching a sale this summer, the timing tests are not abstract. A couple who moved into a newly purchased home in August 2024 would not satisfy the two-year use test until August 2026. Closing before that date means either forfeiting the exclusion entirely or qualifying for a partial one only if a recognized exception applies.

Sellers should also verify that capital improvements are documented with receipts and permits, confirm that neither spouse has used the exclusion within the prior two years, and consult a tax professional if any period of rental use or home-office depreciation complicates the basis calculation. The statute and regulations are well defined, but the math is personal to every property and every seller’s history. A few weeks of patience, or a few hours with a CPA, can be worth tens of thousands of dollars in tax savings.

Leave a Reply

Your email address will not be published. Required fields are marked *