Section 121 Exclusion: Selling Your Primary Residence Tax-Free

Sell almost any other appreciated asset, and the IRS wants its share of the gain. Sell your primary residence, and the tax code offers something unusually generous: a hard exclusion of up to 250,000 dollars of gain, 500,000 dollars for married couples, with no requirement to buy another home or roll the money into anything. This is Section 121, and for most homeowners it's the single largest tax break they'll ever use. Here's how it actually works.

 
 

The Two Tests You Have to Meet

To qualify, you need to pass two separate tests, both measured within the five years leading up to the sale. The ownership test requires that you owned the home for at least two years during that five-year window. The use test requires that you actually lived in it as your principal residence for at least two years during that same window. These are measured in calendar days, not tax years, 730 days of qualifying use satisfies the test, and the two years don't have to be consecutive or the same two years for both tests. Short temporary absences, vacations, brief work assignments, generally still count as use, as long as you intended to return and weren't renting the home out during that time.

 

The Exclusion Amount

Single filers, and married people filing separately, can exclude up to 250,000 dollars of gain. Married couples filing jointly can exclude up to 500,000 dollars, though the requirements for that full amount are slightly different for each spouse. For the full 500,000 dollar exclusion, only one spouse needs to meet the ownership test, but both spouses need to independently meet the use test. If one spouse hasn't lived in the home long enough, say they moved in after a recent marriage, the couple can still claim a combined 250,000 dollars, just using the qualifying spouse's individual exclusion, rather than losing the benefit entirely.


These dollar amounts are fixed by statute and have not been adjusted for inflation since they were set. In many high-appreciation markets, including much of Orange County, a long-held home's gain can now exceed even the full exclusion amount, which is worth planning around rather than assuming the cap will always fully cover the sale.

 

The Two-Year Frequency Limit

You generally can't use this exclusion more than once every two years. If you sold a different primary residence and claimed the exclusion within the two years before your current sale, you typically can't claim it again yet, regardless of how long you've owned or lived in the new home.

 

Partial Exclusion If You Don't Fully Qualify

If you sell before meeting the full two-year ownership and use tests, you may still qualify for a reduced exclusion if the primary reason for the sale falls into specific categories: a change in employment location, health reasons, or certain other unforeseeable circumstances. The reduced exclusion is prorated based on how much of the two-year requirement you actually met. For example, a single filer who owned and lived in a home for 12 months before an employment-related move could potentially exclude up to 125,000 dollars, half of the full 250,000 dollar limit, reflecting the 12 out of 24 months completed.

 

The Non-Qualified Use Trap

Here's a nuance that catches a lot of people who convert a rental into their primary residence, hoping two years of residence washes the whole gain. Since 2009, any period of non-qualified use, generally time the property was used as something other than your principal residence, like a rental, after you owned it, but before you moved in and started using it as your home, reduces the exclusion proportionally, based on the ratio of non-qualified use to your total ownership period. Rental or non-residence use that happened before 2009 is grandfathered and doesn't count against you, but rental periods after that date do. Simply moving into a former rental for two years before selling no longer washes 100 percent of the gain the way it might have prior to 2009.

 

Depreciation Recapture Is Never Excluded

This is worth stating clearly since it surprises people: any depreciation you claimed on the property, whether from a home office deduction or a period when part or all of the home was rented, gets recaptured at the time of sale regardless of Section 121. That recaptured amount is taxed at up to 25 percent under the unrecaptured Section 1250 rules we cover in our depreciation recapture guide, and it sits entirely outside the 250,000 or 500,000 dollar exclusion. The exclusion shelters the appreciation gain, not the portion of gain tied to depreciation you already benefited from.

 

Frequently Asked Questions

Section 121 is one of the most valuable provisions in the tax code, but the non-qualified use rules and depreciation recapture can meaningfully change what you actually owe. A tax professional can help you calculate your real number before you sell.

Next
Next

California Franchise Tax for Single-Member LLCs Explained