Strategy Snapshot
Section 121 lets most homeowners exclude a large chunk of gain on the sale of a primary residence, but the full exclusion depends on passing the ownership and use tests and on how the home was used. Former rentals, second homes, and quick sales are where the tax shows up.
Exclude up to $250,000 of gain if single, or $500,000 if married filing jointly, on the sale of a home you owned and lived in for 2 of the last 5 years.
If you move for work, health, or another unforeseen reason before hitting two years, you may still get a prorated exclusion rather than losing it entirely.
Depreciation from prior rental or home-office use is never excludable, and periods of non-qualified use can permanently reduce the exclusion on a converted rental.
When you sell your main home at a profit, your first question is usually whether the IRS gets a cut. For most people, the answer is a relief: Section 121 lets you exclude a large amount of gain entirely. But the exclusion is not automatic, and the situations where people lose part of it, former rentals, second homes, and sales that come too soon, are common enough that it is worth understanding the rules before you list.
A married couple who owned and lived in their home for at least two years can walk away from up to $500,000 of gain without paying a dollar of federal tax on it.The core benefit
The Exclusion Amount
Under Section 121, you can exclude gain from the sale of your primary residence up to:
- $250,000 if you are single or married filing separately
- $500,000 if you are married filing jointly
This is an exclusion of gain, not of the sale price. Gain is your net sale proceeds minus your adjusted basis (what you paid, plus improvements, minus any depreciation). Only the gain above your exclusion amount is taxable, and it is taxed at favorable long-term capital gains rates.
The Two Tests You Must Pass
To claim the full exclusion, you must satisfy both an ownership test and a use test during the 5-year period ending on the date of sale:
- Ownership test: you owned the home for at least 2 years
- Use test: you lived in it as your main home for at least 2 years
The two-year periods do not have to be the same two years, and they do not have to be continuous. Short, temporary absences (vacations, for example) still count as time used. For married couples claiming the $500,000 amount, both spouses must meet the use test, at least one must meet the ownership test, and neither can have used the exclusion on another home in the prior two years.
When You Move Too Soon: The Partial Exclusion
If you sell before meeting the two-year tests, you are not always out of luck. A partial exclusion is available when the primary reason for the sale is:
- A change in place of employment
- Health reasons
- Certain unforeseen circumstances (such as divorce, multiple births from a single pregnancy, or job loss)
The partial exclusion is prorated by the fraction of the two years you actually met. For example, a married couple forced to sell after living in the home for 12 months because of a job relocation could exclude up to half of the $500,000, or $250,000, rather than nothing.
Basis: The Number That Quietly Decides Your Gain
Because the tax is on gain, your adjusted basis matters as much as the sale price. Basis starts at your purchase price and increases for capital improvements, the kind that add value or prolong the home’s life, not routine repairs.
| Increases basis (reduces gain) | Does not increase basis |
|---|---|
| Additions, new roof, renovated kitchen | Painting, minor repairs, routine maintenance |
| New HVAC, windows, permanent landscaping | Utility bills and ordinary upkeep |
| Assessments for local improvements | Mortgage interest and property taxes |
Keeping receipts for improvements over the years is one of the simplest ways to reduce a future taxable gain. On a long-held home in an appreciated market, good records can be worth tens of thousands of dollars.
Former Rentals and Home Offices: Where the Tax Lives
The exclusion is most likely to break down when the home was not always a personal residence.
- Depreciation recapture: any depreciation you claimed for rental or home-office use (for periods after May 6, 1997) is never excludable. That portion of gain is taxed as unrecaptured Section 1250 gain, at a maximum rate of
25%. - Non-qualified use: for a home converted from a rental to a residence, periods of non-qualified use after 2008 reduce the share of gain you can exclude, in proportion to non-qualified time over total ownership.
A Note for People Relocating to Florida
Selling a home in a high-tax state and moving to Florida is a common moment to think about Section 121. The federal exclusion works the same everywhere, but the state tax on any gain above the exclusion depends on where you were a resident at the time of sale. Sorting out the timing of your move and your sale, and your change of domicile, can affect whether a large gain is exposed to a former state’s income tax.
When to Seek Help
A clean sale of a long-held primary residence, where the gain is comfortably under the exclusion, usually needs no special help beyond keeping your improvement records. The time to get advice is when the gain is large, when the home was ever a rental or had a home office, when you are selling before two years, or when a move between states is in play. Those are the cases where the difference between a correct return and a costly one comes down to details that are easy to miss.
Last updated: 2026