Capital Gains When Selling a House

What Miami homeowners actually owe in capital gains when selling a house, how the exclusion works, and when the rules shift toward investment property treatment.

Most people selling the house they live in never owe a dollar of capital gains tax on it, and that surprises them, because the headlines about real estate taxes tend to focus on investors and rarely mention that a straightforward home sale usually has its own carve-out. The question of capital gains when selling a house comes down almost entirely to whether Section 121 applies, and for most owner-occupants in Miami, it does.

Where it gets less simple is anyone whose situation does not fit the clean owner-occupant pattern: a house that was rented out for a stretch, inherited, or owned for less than two years before the sale.

The Ownership and Use Tests

To exclude gain under Section 121, you need to have owned and used the home as your primary residence for at least two of the five years before the sale, and those two years do not need to be consecutive. A single filer can exclude up to $250,000 of gain, and a married couple filing jointly can exclude up to $500,000. Miami home values have appreciated enough over the past decade that plenty of longtime owners are sitting on gains near or above those thresholds without having thought much about it until they list.

What Happens Above the Exclusion Amount

Gain above the $250,000 or $500,000 threshold is taxed at standard long-term capital gains rates, assuming you owned the home more than a year, which almost every seller has. Florida adds no state-level tax on top of that, which is one advantage of selling here versus a state with its own capital gains tax. For sellers with gain well above the exclusion, it is worth talking to a CPA about timing the sale, tracking capital improvements that raise your basis, and confirming whether the Net Investment Income Tax applies at your income level.

When the House Was Also a Rental

A house that was your primary residence for part of its life and a rental for another part gets split tax treatment. The portion of gain attributable to the years it was a rental, plus any depreciation you claimed during that period, generally does not qualify for the Section 121 exclusion, and the depreciation itself is subject to recapture. This is common in Miami with owners who moved out of a starter home and rented it before eventually selling, and it is specific enough to the facts that a CPA needs to walk through the allocation with actual dates and numbers.

If the Home Never Qualified as a Primary Residence

A second home, a property purchased purely as a rental, or a house you inherited and never lived in does not get the Section 121 exclusion at all, and falls under investment property tax rules instead. For an owner in that position who wants to stay invested in real estate rather than pay the full tax bill, a 1031 exchange is the relevant deferral tool, though it requires the sold property to have been held for investment or business use, not personal use, which rules it out for a true primary residence.

Common 1031 Exchange Questions

How much capital gains exclusion do I get selling my Miami home?

Up to $250,000 for a single filer or $500,000 for a married couple filing jointly, provided you owned and used the home as your primary residence for at least two of the five years before the sale.

Do the two years of primary-residence use need to be consecutive?

No. The two years within the five-year window before the sale can be broken up, as long as they add up to at least 24 months of ownership and use as your main home.

What if my gain is larger than the exclusion amount?

The excess gain above $250,000 or $500,000 is taxed at standard long-term capital gains rates, and tracking capital improvements that raised your basis can reduce that taxable amount.

Does renting my house out before selling it affect the exclusion?

It can. The portion of gain and any depreciation tied to the rental period generally does not qualify for the Section 121 exclusion and may be subject to separate recapture rules.

Can I use a 1031 exchange on the sale of my primary residence?

No. A 1031 exchange applies to property held for investment or business use, not a personal residence, though it can apply to a second home or rental that never served as your primary home.

Ready to organize the exchange file?

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

Start Exchange Review