The Section 121 Home-Sale Exclusion Explained

How the $250,000 and $500,000 Section 121 exclusion works for Miami homeowners, who qualifies, and where the rule stops applying.

The $250,000 and $500,000 figures attached to a home sale come from Section 121 of the tax code, and it is the reason most Miami homeowners who sell their primary residence never think twice about capital gains tax. The exclusion lets a single filer shelter up to $250,000 of gain and a married couple filing jointly shelter up to $500,000, without needing to reinvest the proceeds into another home or file any special election beyond claiming it on the return.

It is one of the more generous provisions in the tax code, and it is also one of the most misunderstood, particularly by owners who assume it applies to any property they have lived in at some point, which is not quite the rule.

The Two-of-Five-Year Rule

To qualify, you need to have owned the home and used it as your primary residence for at least two of the five years immediately before the sale. The two years do not need to be consecutive, and short absences, such as vacations or temporary work assignments, generally do not break the use test. What does not count is a home you rented out the entire time, a vacation property you visited occasionally, or a house you owned but never actually lived in as your main residence.

How Often You Can Use the Exclusion

Section 121 generally cannot be used more than once every two years. That limit matters for anyone selling multiple homes in a short window, such as someone relocating twice within a couple of years for work, since the second sale within that period would not qualify for the exclusion even if the ownership and use tests were otherwise met.

Married Couples and Partial-Year Ownership

Reaching the full $500,000 exclusion as a married couple filing jointly requires that both spouses meet the ownership test, but only one spouse needs to meet the use test, and both need to be on the sale. A couple that does not meet both tests together can still often claim the $250,000 individual exclusion, so it is worth confirming exactly which test each spouse satisfies rather than assuming the full amount automatically applies or does not.

Where the Exclusion Stops Applying

Investment property, vacation homes without primary-residence history, and inherited property that was never occupied by the heir as a main home all fall outside Section 121. For those categories, the relevant tax question shifts to standard capital gains treatment and, for anyone staying invested in real estate, whether a 1031 exchange can defer the tax by rolling proceeds into a new investment property. The two tools do not overlap: Section 121 is for a primary residence, a 1031 exchange is for investment or business property, and a single property generally cannot claim both benefits on the same sale.

A Home That Was Also Rented Out

A house that served as your primary residence for part of its history and a rental for another part requires allocating the gain between the two uses, with the exclusion applying only to the portion tied to qualifying primary-residence years and any depreciation from the rental years subject to separate recapture. This kind of mixed-use history is common enough in Miami, where owners move out of a starter home and rent it before eventually selling, that it is worth reviewing the exact dates of occupancy versus rental with a CPA rather than assuming the full exclusion automatically applies to the entire gain.

Common 1031 Exchange Questions

Can I use Section 121 on a home I own but have never lived in?

No. The exclusion requires the home to have been used as your primary residence for at least two of the five years before the sale, not just owned during that period.

How often can I claim the Section 121 exclusion?

Generally no more than once every two years, which matters for anyone selling multiple primary residences in a short window.

Do both spouses need to meet the use test to claim $500,000?

Both spouses need to meet the ownership test and be listed on the sale, but only one needs to meet the two-year use test to reach the full married exclusion amount.

Can I combine Section 121 with a 1031 exchange on the same property?

Generally no on the same sale, since Section 121 applies to a primary residence and a 1031 exchange applies to investment or business property, though a property with mixed history can sometimes involve both in an allocated way.

What happens to gain above the $250,000 or $500,000 threshold?

The excess gain above the exclusion amount is taxed at standard long-term capital gains rates, assuming the home was owned more than a year.

Ready to organize the exchange file?

Share the dates, property details, and open questions for your Miami exchange.

Start Exchange Review