Talk to an Advisor
1-800-USA-1031
GET STARTED

Capital Gains Tax Strategies for Real Estate Investors

Capital Gains Tax Planning for Real Estate Sales

When you sell investment real estate at a profit, the IRS takes a meaningful cut. Depending on how long you held the property and the specifics of your situation, capital gains tax rates can range from 15 to 23.8 percent at the federal level alone, with state taxes stacked on top. For a $1,000,000 gain, that can mean $200,000 to $300,000 leaving your account on the way to other investments.

The good news is that the tax code provides multiple paths to defer, reduce, or offset capital gains on real estate. The right strategy depends on your goals, the type of property, and what you plan to do with the proceeds. This page walks through the most effective options, when each applies, and how to combine them when one tool is not enough on its own.

How Capital Gains Tax on Real Estate Works

Before comparing strategies, it helps to understand exactly what you are taxed on when you sell an investment property. The total tax owed at the federal level breaks down into three distinct components:

Long-Term Capital Gains

Property held longer than one year qualifies for long-term capital gains treatment. Federal rates are 0, 15, or 20 percent depending on your taxable income. Most real estate investors fall into the 15 or 20 percent bracket.

Depreciation Recapture

Any depreciation you took (or were entitled to take) on the property during ownership is “recaptured” at sale and taxed at a maximum federal rate of 25 percent. This is a separate calculation from the underlying capital gain, and many investors are surprised by how much depreciation recapture adds to their tax bill. For more detail, see our page on depreciation recapture strategies.

Net Investment Income Tax

High earners (single filers over $200,000 MAGI, married filing jointly over $250,000) pay an additional 3.8 percent Net Investment Income Tax on capital gains and depreciation recapture from investment real estate.

State Capital Gains Tax

Most states also tax capital gains, often at rates between 5 and 13 percent. Some states have no income tax (Florida, Texas, Nevada, Tennessee, Washington, Wyoming, South Dakota, Alaska), but for investors in California, New York, Oregon, Hawaii, New Jersey, or Minnesota, state tax alone can rival the federal rate.

The combined federal and state effective tax rate on real estate gains can easily exceed 35 to 40 percent for high earners. This is why thoughtful planning makes such a meaningful difference.

The Five Main Strategies for Reducing Capital Gains on Real Estate

There are five major approaches to managing capital gains tax on investment property. Each works in different situations, and many clients use a combination.

Strategy 1. The 1031 Exchange (Tax Deferral)

A 1031 exchange defers the capital gains tax indefinitely when the proceeds from one investment property are reinvested into like-kind replacement property within strict timeframes. Done correctly, you pay no capital gains tax at the time of sale, and the deferred basis carries over to the replacement property.

Best for: Investors who want to stay in real estate and roll their equity into larger or better-performing properties.

Key requirements:

  • The relinquished and replacement properties must be held for investment or business use
  • Replacement property must be identified within 45 days of sale
  • Replacement property must close within 180 days of sale
  • The replacement property’s value must equal or exceed the relinquished property’s value to fully defer the gain
  • All proceeds must flow through a Qualified Intermediary (cannot be received by the seller)

Limitations: A 1031 only works if you reinvest in like-kind real estate. If you want to step out of real estate, or if the replacement property is worth less than the relinquished property, other tools become necessary.

Strategy 2. Installment Sale (Tax Spreading)

An installment sale under IRC Section 453 allows the seller to receive payments from the buyer over time and pay capital gains tax proportionally as each payment is received, rather than paying the full tax in the year of sale. This spreads the gain (and the tax) across multiple years.

Best for: Sellers who do not need the full proceeds immediately, who are willing to act as the lender, and who want to smooth their tax exposure over multiple years.

Key requirements:

  • The buyer pays at least one installment in a year after the sale
  • Each payment is split between return of basis, capital gain, and interest income
  • Depreciation recapture is generally taxed in full in the year of sale, even if the cash arrives later

Limitations: The seller takes on lender risk if the buyer defaults. Depreciation recapture cannot be spread out the same way the capital gain can.

Strategy 3. Qualified Opportunity Zone Investment

Capital gains reinvested into a Qualified Opportunity Fund within 180 days of the sale can defer the original gain until the end of 2026 (under current law), with additional benefits if the QOF investment is held for at least 10 years (potential elimination of gain on the QOF investment itself).

Best for: Investors with significant capital gains who are comfortable with a 10-year hold horizon and the specific investment profile of QOF projects.

Key requirements:

  • Reinvest the gain (not the full proceeds) within 180 days
  • Hold the QOF investment for at least 10 years to receive maximum benefit
  • The underlying QOF must comply with strict location and use requirements

Limitations: The 10-year hold is significant. The underlying QOF investments may not align with every investor’s risk tolerance. The original deferred gain still becomes taxable at the deferral end date.

Strategy 4. Primary Residence Exclusion

Under IRC Section 121, single filers can exclude up to $250,000 of gain on the sale of a primary residence, and married couples filing jointly can exclude up to $500,000, provided they have owned and used the property as a primary residence for at least two of the five years preceding the sale.

Best for: Homeowners selling a personal residence (not an investment property).

Key requirements:

  • Property must have been your primary residence for at least two of the past five years
  • You generally cannot have claimed the exclusion on another property in the past two years
  • Investment-use periods during ownership reduce the available exclusion proportionally

Limitations: This applies to primary residences, not investment property. However, investors who convert a rental property to a primary residence (or vice versa) can sometimes use a combination of strategies.

Strategy 5. Advanced Tax Mitigation Strategies

When the situations above do not fully fit, or when capital gains stack with other taxable events in the same year, advanced tax mitigation strategies become relevant. These include structured loss recognition, accelerated depreciation strategies using other assets, coordinated charitable giving, and timing strategies that smooth tax exposure across years.

Best for: Investors with gains that cannot be fully addressed by a 1031, with taxable boot from a partial exchange, with depreciation recapture exposure, or with multiple coordinated tax events in the same year.

Key requirements:

  • Generally requires $300,000 or more in AGI for the strategies to be cost-effective
  • Requires planning ahead of the taxable event
  • Documentation and coordination with your CPA and attorney are essential

To see whether advanced strategies fit your situation, review our page on who qualifies for advanced tax mitigation.

Comparing the Five Strategies at a Glance

Each strategy has trade-offs around timing, control, complexity, and the type of gain it can address. Use this overview to identify which approaches deserve a closer look:

1031 Exchange: Best when you want to stay in real estate. Defers tax indefinitely. Strict 45-day and 180-day deadlines.

Installment Sale: Best when you can act as the lender and want to spread the tax across years. Carries credit risk on the buyer.

Opportunity Zone: Best for long hold horizons (10+ years) and gains you are willing to lock into a QOF structure. Deferral expires end of 2026 under current law.

Primary Residence Exclusion: Best for homeowners. Caps at $250k or $500k.

Advanced Tax Mitigation: Best when other strategies do not fully cover the gain, or when multiple tax events occur in the same year. Requires AGI threshold and advance planning.

Common Scenarios and Recommended Approaches

Most real estate investors fit into one of a handful of common scenarios. Here is how the strategies typically apply:

“I am selling a rental property and want to buy a larger one.”

A 1031 exchange is almost always the right starting point. If the replacement property is worth less than the relinquished property, the difference is taxable boot. Advanced strategies can offset that boot if needed.

“I am selling a rental property and want to retire from being a landlord.”

A 1031 exchange may still work if you exchange into a passive vehicle like a DST (Delaware Statutory Trust) or a triple-net leased property. If you want to fully exit real estate and recognize the gain, advanced tax mitigation strategies become the primary tool.

“I am selling a property along with my business.”

This is a combined transaction. The real estate piece may qualify for a 1031, but the operating business gain does not. The two halves require different tools used in coordination. See tax planning when selling a business and real estate for more detail.

“My 1031 exchange failed and the gain became taxable.”

This is one of the most painful tax surprises a real estate investor can face. Advanced strategies built around loss recognition and timing can substantially reduce the impact, especially if implemented before year-end. See failed 1031 exchange options for the full discussion.

“I have appreciated property and significant charitable intent.”

Coordinated charitable giving strategies (charitable remainder trusts, donor-advised funds, structured giving) can convert appreciated real estate into income for the donor while delivering a tax deduction and benefiting charity. See charitable giving tax strategies for more.

“I have a portfolio of properties I want to gradually unwind.”

A combination of 1031 exchanges, installment sales, and advanced mitigation strategies typically works best. The plan is built around the timing of each property sale and the broader tax picture across multiple years.

Mistakes to Avoid

A few common mistakes can cost real estate investors significant tax savings:

Waiting until after the sale to start planning. Most strategies require setup before the closing date. Once the wire hits your account, your options shrink dramatically.

Assuming a 1031 is automatic. A 1031 exchange has strict procedural requirements. The proceeds must flow through a Qualified Intermediary, the timelines must be met, and the replacement property must qualify. Missing any single element can disqualify the entire exchange.

Ignoring depreciation recapture. Many investors plan only for capital gains tax and forget that recapture is taxed at a higher rate and cannot be fully addressed by every strategy. A 1031 defers it. An installment sale generally does not.

Underestimating state tax exposure. Federal planning is only half the picture. For investors in high-tax states, state tax planning needs to be part of the strategy from the start.

Treating capital gains in isolation. A property sale rarely happens in a vacuum. If you have other income, other gains, or other deductions in the same year, the strategy needs to account for the full tax picture, not just the property sale.

Frequently Asked Questions About Capital Gains Tax on Real Estate

How long do I need to hold a property to qualify for long-term capital gains rates?

More than one year. If you hold for one year or less, the gain is taxed at ordinary income rates, which can be significantly higher. Long-term capital gains treatment requires a holding period of at least one year and one day.

Can I avoid capital gains tax on rental property by moving into it?

Partially, and the rules have tightened. Under current law, the Section 121 primary residence exclusion is reduced proportionally for any period the property was used as a rental or for non-qualified purposes after January 1, 2009. You cannot fully avoid the tax by converting a long-held rental into a primary residence shortly before selling.

What is the difference between capital gains tax and depreciation recapture?

Capital gains tax applies to the appreciation in the property’s value above your adjusted basis. Depreciation recapture applies to the amount of depreciation you took (or were entitled to take) during ownership. They are calculated separately and often taxed at different rates. Both are owed on the same sale.

Can I do a 1031 exchange on a property I have used as both a rental and a personal residence?

It is possible but complex. The property must be held primarily for investment or business use at the time of the exchange, and the IRS has specific safe-harbor rules around mixed-use property. A property used predominantly as a personal residence generally does not qualify for a 1031.

Is the capital gains tax rate going up?

Tax rates are set by Congress and can change. Several legislative proposals over recent years have aimed to raise capital gains rates for high earners, though most have not become law. Net Investment Income Tax thresholds are also not indexed for inflation, which means more taxpayers are pulled into the 3.8 percent surtax over time. Planning around current law while monitoring potential changes is the prudent approach.

Can I combine multiple strategies on one sale?

Yes, and many of our clients do. A 1031 exchange might handle the real property gain while other strategies address taxable boot, depreciation recapture, or coordinated tax events in the same year. The right combination depends on your full tax picture, not just the property sale.

What is “boot” in a 1031 exchange and how is it taxed?

Boot is any non-like-kind value received in a 1031 exchange. The most common forms are cash taken at closing and reduction in mortgage debt. Boot is taxable in the year of the exchange. Advanced strategies can offset the tax on boot in many situations.

Before You List, Sell, or Sign

The right capital gains strategy depends on the size of the gain, the type of property, your reinvestment plans, and your broader tax picture. The fastest way to determine which approach fits your situation is a brief qualification conversation:

The most expensive mistake on a property sale is not asking the question. The second most expensive is asking it too late.