Published November 24, 2026 | Last reviewed November 2026
Short answer: for a Sacramento rental sale, a 1031 exchange defers both federal and California tax on the whole gain if you buy more real estate, while an Opportunity Zone investment defers only federal tax, and only on the gain you put into a qualified fund. California does not conform to the Opportunity Zone rules, so a California resident still owes state tax on the gain in the year of the sale. That single difference settles the question for many local owners, but not all of them.
Two Different Tools
A 1031 exchange and an Opportunity Zone investment both postpone tax on a gain. They work in different ways.
- 1031 exchange: under 26 U.S.C. 1031(a), you trade real property held for investment or business use for like-kind real property. You identify replacement property within 45 days and close within 180 days. You keep owning real estate.
- Opportunity Zone: under 26 U.S.C. 1400Z-2, you elect to exclude gain from income to the extent you invest that gain in a qualified opportunity fund within the 180-day period that begins on the date of the sale. You own an equity interest in a fund, not the building you sold or a replacement you pick yourself.
The statute defines a qualified opportunity fund as an investment vehicle organized as a corporation or partnership to invest in qualified opportunity zone property, holding at least 90 percent of its assets in that property.
What You Have to Reinvest
This is the biggest practical difference for a landlord.
- 1031: to defer all of the gain, the whole value moves into replacement real estate. Cash you keep and debt you do not replace are taxable boot. See the partial exchange guide for how boot is figured.
- Opportunity Zone: the deferral applies to the amount of gain you invest. The IRS FAQ says that if you invest only part of your eligible gain, you can elect to defer only that part. Your original basis, the part of the sale price that is not gain, is not required to go into the fund.
For an owner who wants cash out of real estate, that difference is the main draw of the Opportunity Zone route.
Which Gains Qualify
The IRS Opportunity Zones FAQ says eligible gains include capital gains and qualified section 1231 gains, generally the gains reported in Part I of Form 4797. For 1231 gain, the 180-day window begins on the day the gain was realized. The gain cannot come from a sale to a related person, and section 1400Z-2 tests relationship at 20 percent rather than the usual 50 percent.
A rental sale often produces more than one kind of gain. Ask your CPA which part of your gain is eligible before you size an investment. The depreciation recapture guide explains why a rental gain is not all one type.
The Rules Change for Investments After 2026
Public Law 119-21, enacted July 4, 2025, rewrote key parts of section 1400Z-2 for amounts invested in qualified opportunity funds after December 31, 2026. The two versions, as printed in the current code:
Investments made through December 31, 2026
- Deferred gain is included in income at the earlier of the date the fund investment is sold or December 31, 2026.
- No election may be made for a sale or exchange after December 31, 2026.
- If the investment is held at least 10 years, an election sets its basis at fair market value when sold.
Investments made after December 31, 2026
- Deferred gain is included at the earlier of the date the investment is sold or 5 years after the investment was made.
- After 5 years, basis rises by 10 percent of the deferred gain, or 30 percent for a qualified rural opportunity fund.
- After 10 years, an election sets basis at fair market value on the date of sale, or at fair market value 30 years after the investment if it is held longer.
The same law also sets a new cycle of zone designations. Section 1400Z-1 now uses a decennial determination date of July 1, 2026, and every tenth July 1 after that, with each designation running 10 years from its start date. Whether a particular Sacramento census tract is in a zone, and in which round, is something to confirm before you commit.
A sale late in 2026 sits on the seam between the two versions of the rules. Have a CPA confirm which version applies to your sale and your investment date before relying on either.
The California Problem
Franchise Tax Board Publication 1001 for 2025 lists the deferral and exclusion of capital gains in qualified opportunity zone funds among the federal provisions where California does not conform. For a Sacramento owner, that means:
- A 1031 exchange can defer the federal and the California tax on the gain. The FTB says California law generally conforms to the federal code and limits like-kind exchanges to real property.
- An Opportunity Zone investment can defer only the federal tax. The California tax on the gain is due for the year of the sale.
State tax should be part of every comparison. For the state side of a sale, see California taxes when selling a rental.
Side by Side
- What you buy: 1031, like-kind real property you choose | OZ, equity in a qualified fund
- What must be reinvested: 1031, the full value for full deferral | OZ, only the gain you want to defer
- Deadline: 1031, 45 days to identify and 180 days to close | OZ, 180 days to invest
- California tax: 1031, deferred | OZ, not deferred
- Management: 1031, you or your manager run the replacement | OZ, the fund runs the investment
When Each One Tends to Fit
A 1031 exchange tends to fit when you want to stay in real estate, the California tax on the gain is material, and you can find replacement property in time. If you are ready to stop managing tenants, a fractional option such as a Delaware Statutory Trust keeps the exchange and the state deferral.
An Opportunity Zone investment tends to be worth a look when you want to take your basis out as cash, you are comfortable with a fund investment and its holding period, and the federal benefit still justifies paying California tax now. The tax rules say nothing about whether a given fund is a good investment.
Some owners also look at simply selling. The keep or sell guide and selling a rental without capital gains tax now cover the wider set of options.
Questions to Bring to Your CPA
- How much of my gain is capital or qualified 1231 gain, and how much is not eligible?
- Given my sale date, which version of section 1400Z-2 applies to me?
- What is my California tax on the gain if I choose the fund route?
- Would a 1031 exchange with some cash kept as boot cost less than a fund investment overall?
To compare the two routes with a team that knows both, request a referral.
Common questions
Does California allow Opportunity Zone deferral?
No. FTB Publication 1001 for 2025 lists the deferral and exclusion of capital gains in qualified opportunity zone funds as a federal provision California does not conform to, so the state tax on the gain is due for the year of the sale.
Do I have to reinvest my whole sale price in an Opportunity Zone fund?
No. The deferral applies to the amount of eligible gain you invest within 180 days. The IRS FAQ says you can defer only the part of the gain you invest.
Can rental property gain go into an Opportunity Zone fund?
Eligible gains include capital gains and qualified section 1231 gains, according to the IRS FAQ. A rental sale can include other types of gain, so a CPA should confirm which part is eligible.
What changes for Opportunity Zone investments after 2026?
For amounts invested after December 31, 2026, Public Law 119-21 sets deferral to end at the earlier of sale or 5 years after the investment, adds a 10 percent basis increase after 5 years (30 percent for qualified rural funds), and allows a fair market value basis election after 10 years.
Which defers more tax for a Sacramento owner?
A 1031 exchange can defer both federal and California tax on the full gain if all value is reinvested in real property. An Opportunity Zone investment defers only federal tax on the gain invested. Which costs less overall depends on your numbers and goals.
Sources
- 26 U.S. Code 1400Z-2, Special rules for capital gains invested in opportunity zones (Cornell LII)
- 26 U.S. Code 1400Z-1, Designation of qualified opportunity zones (Cornell LII)
- IRS, Opportunity Zones frequently asked questions
- California Franchise Tax Board, Publication 1001 (2025), Supplemental Guidelines to California Adjustments
- California Franchise Tax Board, Reporting like-kind exchanges: IRC 1031 and FTB 3840
- 26 U.S. Code 1031, Exchange of real property held for productive use or investment (Cornell LII)
Sources checked November 24, 2026. Last reviewed November 2026.
General information only, not tax or legal advice. Consult a CPA or tax attorney.