Section 121 of the tax code is the reason most Tampa homeowners never think twice about capital gains tax when they sell. It allows a single filer to exclude up to $250,000 of gain, and a married couple filing jointly up to $500,000, on the sale of a primary residence - no reinvestment required, no qualified intermediary, no deadline to buy a replacement home. It's a straightforward exclusion, but the qualifying rules trip up more sellers than the number itself.
The Two-Out-of-Five-Year Rule
To qualify, a seller must have owned the home and used it as a primary residence for a combined total of at least 24 months out of the 60 months immediately preceding the sale. Those months don't need to be consecutive - someone who lived in a home for a year, moved away for two years, then moved back for another year before selling would generally still meet the 24-month threshold. What matters is the cumulative time, tracked against the specific five-year window ending on the sale date.
Married Filing Jointly Doesn't Automatically Mean $500,000
To claim the full $500,000 exclusion, both spouses generally need to meet the use test individually - each having lived in the home for the required period - even though only one spouse needs to be on title for ownership purposes. A couple where one spouse owned and lived in the home for years before the marriage, and the other moved in only recently, might only qualify for the $250,000 single-filer exclusion rather than the full $500,000 if the newer spouse hasn't met the two-year use requirement yet.
What Happens to Gain Above the Exclusion
Any gain above the applicable exclusion amount is taxed as ordinary long-term capital gains, at the standard federal rates, the same as an investment property sale would be. There's no partial exemption mechanism beyond the flat dollar thresholds - a couple with $600,000 of gain excludes $500,000 and pays capital gains tax on the remaining $100,000, calculated normally. Sellers with unusually large gains, often from long ownership in an appreciating Tampa neighborhood, sometimes look at timing the sale around other income events to manage the bracket the excess gain falls into, which is a conversation worth having with a CPA in advance rather than after the closing has already happened.
The Exclusion Doesn't Follow the Property Into Investment Use
Once a home stops being a primary residence - converted to a rental, for instance - continued ownership doesn't extend the exclusion indefinitely. The two-out-of-five-year window keeps moving forward from the sale date, so an owner who moves out and rents the property for more than three years before selling generally loses eligibility for the exclusion entirely, since they'd no longer have two qualifying years within the relevant five-year lookback. At that point, the sale is taxed as an investment property disposition, and if deferral is still the goal, tools built for investment real estate - like a 1031 exchange - come into play instead, though a personal residence itself never qualifies as 1031 property regardless of how long it's held afterward as a rental.
Documenting the Exclusion at Closing
The exclusion isn't something a seller applies for in advance - it's claimed on the tax return for the year of sale, and the closing itself usually generates a Form 1099-S unless the settlement agent has a signed certification that the full gain qualifies for exclusion. Keeping records of the ownership and use timeline, along with receipts for any capital improvements that raised basis, makes filing straightforward even years after the sale, particularly if a return is ever questioned.
Common 1031 Exchange Questions
Do you have to be living in the home at the time you sell it to claim the exclusion?
No, you just need to have used it as your primary residence for a total of two of the five years before the sale date, so you can move out, rent it briefly, and still qualify as long as the timing works out within that window.
What if you sell before living in the home for two full years?
There are partial exclusions available for sales triggered by specific circumstances such as a job relocation, health issue, or other qualifying unforeseen event, calculated proportionally based on how much of the two-year period was actually met.
Does divorce affect who can claim the exclusion?
It can. A spouse who moves out due to divorce may still count the other spouse's continued use of the home toward their own use requirement under certain circumstances, which is worth reviewing with a divorce attorney and CPA together since the details matter.
Can you claim the exclusion on a home you owned but rented out the whole time?
No, the exclusion requires actual use as your primary residence, not just ownership. A property that was purely a rental the entire time you owned it doesn't qualify for any portion of the Section 121 exclusion.
Is the $250,000/$500,000 amount adjusted for inflation?
No, unlike many tax provisions, these thresholds haven't been indexed for inflation since they were set, which is part of why more sellers in appreciating markets are running into gain above the exclusion amount than in past decades.



