IRC 121 (Internal Revenue Code 121)
Glossary Deep Dive
IRC 121: The Home Sale Tax Exclusion, Explained
IRC 121 lets a homeowner exclude up to $250,000 ($500,000 for qualifying joint filers) of gain from taxes when selling a primary residence — a permanent exclusion, not a deferral like a 1031 exchange.
Why it matters
This is a personal residence tax rule, not a business or investment property rule — its tie-in to business acquisition is limited. It matters most to a business owner in one specific scenario: someone who's lived above or beside their business (common with owner-occupied Main Street properties like a bar with an upstairs apartment) and needs to untangle which portion of a sale qualifies as "primary residence" versus "business property" when the two are sold together. Outside that edge case, this is standard personal tax planning, not deal structuring.
To qualify
The home must have been the taxpayer's primary residence for at least 2 of the 5 years before sale.
Converting a residence to a rental: If a former primary residence becomes a rental, the owner generally has a 3-year window to sell and still claim the exclusion, or must move back in for 2 years to requalify.
What counts as a primary residence: where you work, where your family lives, the address on your tax return, driver's license, vehicle registration, voter registration, and where your bills and bank accounts are tied.
Exceptions to the 2-of-5 rule exist for job relocation (50+ miles), health reasons (including caring for a sick family member), and other "unforeseen circumstances" — death, divorce, job loss, a pay-affecting employment change, multiple births from one pregnancy, disaster damage, or condemnation/seizure.
Example: An owner sells a bar with a two-bedroom apartment upstairs where they've lived for the past six years. At closing, the sale price gets allocated between the business (goodwill, equipment, inventory — taxed under standard business-sale rules) and the residential portion, which may separately qualify for the IRC 121 exclusion on gain attributable to the apartment, up to $250,000 for a single filer. Getting that allocation right — and defensible if questioned — is a job for a CPA, not a DIY split.
This entry describes the general IRC 121 framework; specific thresholds and qualifying rules can change. Confirm current rules with a tax professional before relying on this for a real transaction.
Example
A small business owner lived in an apartment above their retail shop for six of the last eight years, then moved out and rented the apartment to a tenant for two years before selling the whole building along with the business. Because they lived there at least 2 of the last 5 years, the residential portion of the sale may still qualify for the IRC 121 exclusion — a detail worth flagging to a tax professional before the sale closes, not after.
Related terms: 1031 Exchange, 2 Out of 5 Year Rule, Depreciation Recapture