You avoid capital gains tax on real estate by qualifying for one of the exemptions or deferrals already written into federal law: the $250,000 (single) or $500,000 (married filing jointly) primary-residence exclusion under Section 121, a 1031 like-kind exchange for investment property, a higher cost basis built from documented improvements, a sale timed into the 0% long-term rate, or a stepped-up basis when heirs inherit. Most home sellers wipe out the tax with one of these, and none of them is a loophole. Florida charges no state capital gains tax, so the only bill in play is the federal one.

I list houses where the owner bought during the first Bush administration and never left, a Centre Street Victorian here, a cottage backing onto the salt marsh there, and the paper gain looks alarming until we sort out which exemption does the work. The code treats home sellers far better than most people expect. I sell real estate for a living and I am not your CPA, so take what follows as the map, then let an accountant drive on your actual numbers.

What is the best way to avoid capital gains tax on real estate?

For a home you actually live in, the primary-residence exclusion is the best tool: own the place and use it as your main home for at least two of the five years before you sell, and the IRS lets you exclude $250,000 of gain if you file single, $500,000 if you file jointly. For a rental or investment property, the 1031 exchange does the heavy lifting instead. Which one fits depends entirely on how you used the property.

Most people only need the exclusion. A couple who bought a three-bedroom in the historic district for $190,000 and sells for $640,000 has a $450,000 gain, and the full $500,000 joint exclusion swallows it whole. They owe nothing. The mechanics of the two-of-five-year test and how to pin down your cost basis from the closing statement fill their own post, and our piece on capital gains taxes on selling a house walks through them line by line. Here I want to widen the lens past that one exemption, because plenty of island sellers blow right past it.

That happens more than you would think on a barrier island where someone paid $80,000 for an oceanview lot in 1994. When the gain runs past the exclusion, or when the property was never your home, the other strategies start to matter.

Do I have to buy another house to avoid capital gains?

No. The primary-residence exclusion has no reinvestment requirement at all. You can sell your home, take up to $500,000 of gain tax-free, rent an apartment, sail to the Bahamas, or buy nothing, and the exclusion still applies. The old rule that forced you to roll proceeds into a more expensive house was repealed in 1997, so anyone still planning around it is working from a thirty-year-old playbook.

The "buy another house" idea has a kernel of truth, and it comes from the investment side. A 1031 exchange does require you to reinvest, because deferral is the whole point: you are rolling the gain forward into the next property, not cashing out. So the answer splits cleanly. Selling your home, no replacement needed. Deferring tax on a rental through a 1031, replacement required.

If you are downsizing later in life and worried about the tax on a long-held home, the exclusion is almost always your answer, and we cover that case in our post on the one-time capital gains exemption for seniors, including why the old over-55 rule no longer exists.

How does a 1031 exchange work on an investment property?

A 1031 exchange lets you sell investment or business real estate and defer 100% of the capital gains tax by reinvesting the proceeds into another like-kind property. The rules are strict: you have 45 days from closing to identify replacement candidates in writing and 180 days to close on one, and the money has to pass through a qualified intermediary, never your own bank account. Done right, the gain rolls forward indefinitely.

This is the strategy for the island's investor class, the owners of the short-term rentals stacked along Fletcher Avenue and the duplexes in Yulee that filled up as Nassau County grew. Say you bought a beach condo as a rental for $300,000 and it is now worth $700,000. Sell it outright and the $400,000 gain is taxable. Run a 1031 into a larger rental, a small commercial building, even raw land held for investment, and you defer the entire bill while trading up.

"Like-kind" is broader than it sounds for real estate. Almost any investment property swaps for almost any other. What does not qualify is your primary residence or a quick flip you bought to resell. And since the 2017 tax law, only real property qualifies; equipment and personal property were cut out. A 1031 is paperwork-heavy and the 45-day clock is unforgiving, so investors here usually line up the intermediary and a short list of targets before the for-sale sign ever goes up.

Who qualifies for the 0% capital gains rate?

Long-term capital gains are taxed at 0% when your total taxable income for the year falls under the IRS threshold, which for 2025 is $48,350 for single filers and $96,700 for married couples filing jointly. The gain itself counts toward that income, so this favors sellers with modest other earnings: retirees and anyone riding out a low-income year. Hold the property more than one year first, or the gain is taxed as ordinary income instead.

Two numbers decide your federal rate on a long-term gain: how long you held the asset, and your taxable income the year you sell. Hold longer than twelve months and you are in the long-term system, where the rates are 0%, 15%, or 20% rather than your regular income-tax rate. The 0% band exists and gets overlooked. A retired couple with $70,000 of taxable income can realize a chunk of long-term gain and pay nothing federal on the part that stays under the $96,700 line.

Timing is the lever. Selling in a low-income year, or splitting a sale across December and January, can keep more of the gain in the 0% or 15% band. Run the timing past an accountant before you sign, because the gain stacks on top of your other income and can push part of itself into a higher band.

How do home improvements lower the tax? (raising your cost basis)

Capital improvements raise your cost basis, and a higher basis means a smaller taxable gain. Your basis starts at what you paid, then grows with every permanent improvement: a new roof, an addition, a renovated kitchen, a bulkhead on the marsh, the cost of elevating the house above flood level. Routine repairs like repainting or fixing a leak do not count. Keep the receipts, because on a long-held home they can be worth tens of thousands at sale.

This matters more on the coast than almost anywhere. The work owners pour into a barrier-island house, raising it on pilings after the flood maps changed, rebuilding a roof the year after Matthew came through in 2016, armoring a seawall against Egans Creek, is largely capital improvement that lifts your basis. A storm-driven roof replacement is an improvement; patching shingles is a repair. That distinction decides whether the cost shrinks your future tax bill.

Pulling your true basis together from decades of closing statements, permits, and contractor invoices is its own small project, and our guide to capital gains taxes on selling a house covers how to reconstruct it from the paperwork. The short version: every documented improvement is gain you will never be taxed on.

Is there any way around capital gains tax on property?

Yes, several beyond the exclusion and the 1031, depending on your situation. You can spread a gain over years with an installment sale, defer storm-loss gains under Section 1033, fold gains into a Qualified Opportunity Fund, offset gains with capital losses, or let heirs inherit at a stepped-up basis that erases the gain entirely. None of it requires a trick. Each fits a specific seller.

The main ones:

Installment sale. If you finance the buyer and collect the price over several years, you report the gain as payments arrive instead of all at once. That can keep you out of the 20% band and inside 15% or 0% year to year.

Step-up in basis. When property passes at death, the heir's basis resets to its fair-market value on that date. A marsh-front home bought for $60,000 in 1985 and worth $700,000 can pass to children who could turn around and sell it with almost no taxable gain. This is the quiet reason some long-time owners hold rather than sell.

Section 1033 (involuntary conversion). If a hurricane destroys your property or the state condemns it, the gain from an insurance or condemnation payout that exceeds your basis can be deferred when you reinvest in similar property, generally within two years. After a bad season this is overlooked relief for island owners.

Opportunity Zones. Roll a capital gain into a Qualified Opportunity Fund within 180 days and you defer it; hold the fund stake ten years and the fund's own appreciation comes out tax-free. It is a long commitment, but it is on the menu.

Capital losses. A loss on other investments offsets a real-estate gain dollar for dollar in the same year. Harvesting a losing position in December can quietly cut the tax on a property you sold in June.

A quick map of the strategies

StrategyBest forWhat it doesKey requirement
Section 121 exclusionPrimary-residence sellersExcludes up to $250k single / $500k married of gainOwned and lived there 2 of the last 5 years
1031 exchangeRental / investment ownersDefers the full gain into the next propertyIdentify in 45 days, close in 180, like-kind
Raise cost basisAnyone who improved the homeShrinks the taxable gainDocumented capital improvements, not repairs
0% long-term rateLower-income or retired sellersTaxes the long-term gain at 0%Taxable income under the year's threshold
Installment saleSellers financing the buyerSpreads the gain across yearsPayments collected over 2+ years
Step-up in basisHeirsResets basis to date-of-death valueProperty passes at death
Section 1033Storm or condemnation lossesDefers gain on the payoutReinvest in similar property, ~2 years

Where a real estate agent fits (and where they don't)

The exemptions are federal tax law, so your accountant runs the numbers, not your agent. But how a sale is structured, the timing, whether it is set up as a 1031, how improvements are documented in the file, is decided before the listing goes live, and that is where we earn our keep. When we take a long-held place in Old Town, the first call at Salt Harbor is often to the seller's CPA, so the closing is built around the tax answer instead of fighting it afterward. Set the strategy early, and the gain mostly takes care of itself.

Frequently asked questions

What is the best way to avoid capital gains tax on real estate?

For a home you live in, the Section 121 primary-residence exclusion is the strongest tool: it erases up to $250,000 of gain for single filers and $500,000 for married couples filing jointly, as long as you owned and lived in the home two of the last five years. For investment or rental property, a 1031 exchange defers the entire gain instead by reinvesting into another like-kind property.

Who qualifies for 0% capital gains?

You qualify for the 0% long-term capital gains rate when your total taxable income falls under the IRS threshold for the year, which for 2025 is $48,350 for single filers and $96,700 for married couples filing jointly. You also must have held the property more than one year. The gain counts toward that income, so the 0% rate favors sellers with modest other earnings.

Do I have to buy another house to avoid capital gains?

No. The primary-residence exclusion has no reinvestment requirement, so you can sell, take up to $500,000 of gain tax-free, and buy nothing. The old rule that forced you to roll proceeds into a new home was repealed in 1997. Reinvesting in a replacement property is only required for a 1031 exchange on investment property.

Is there any way around capital gains tax on property?

Yes. Beyond the primary-residence exclusion and the 1031 exchange, you can spread a gain with an installment sale, defer storm or condemnation gains under Section 1033, invest through a Qualified Opportunity Fund, offset the gain with capital losses, or let heirs inherit at a stepped-up basis that wipes out the gain. Each fits a specific situation, and an accountant should confirm which applies to you.