Guides

Opportunity Zones: How the Capital Gains Tax Break Works

Opportunity Zones: How the Capital Gains Tax Break Works

Opportunity Zones let you defer, and partly avoid, capital gains tax by reinvesting a realized gain into a Qualified Opportunity Fund (QOF). Roll the gain into a QOF within 180 days, and federal tax on it is postponed. Hold the QOF investment for at least 10 years, and any appreciation inside the fund comes out completely tax-free. A permanent, redesigned version of the program (often called OZ 2.0) takes effect January 1, 2027 under the One Big Beautiful Bill Act (OBBBA).

The program has two moving parts that people conflate. The first is deferral of the gain you bring in. The second is the tax-free exclusion of new gains the fund itself generates. Both matter, and they run on different clocks.

How the Opportunity Zone tax break works

The Opportunity Zone break works in three moves: realize a capital gain, reinvest that gain into a QOF within 180 days, and hold. Reinvesting defers tax on the original gain. Holding the QOF interest for 10 or more years erases tax on the fund’s own appreciation. Only the gain amount needs to be reinvested, not the full sale proceeds.

A capital gain is the starting point. If you sell stock, a business, or property and book a gain, that gain is the eligible dollar amount. Qualified Section 1231 gains from business property also qualify. The rest of your basis, the money you originally put in, stays outside the program and is not required to move into the fund.

The two benefits are separate. Deferral applies to the gain you carried in. The 10-year exclusion applies only to growth that happens inside the QOF after you invest. You can get one without the other, depending on how long you hold.

What a Qualified Opportunity Fund (QOF) is

A Qualified Opportunity Fund is the investment vehicle that channels capital into a designated zone. It files a partnership or corporate federal return and self-certifies each year by attaching Form 8996. The fund must keep at least 90% of its assets in qualified Opportunity Zone property, tested twice a year.

You cannot invest in a zone directly and claim the break. The gain has to flow through a QOF. The fund then deploys the money into zone property: commercial real estate, housing, infrastructure, or an operating business located in the zone.

The 90% asset test is the compliance backbone. A QOF that falls below the 90% threshold at a testing date can owe a monthly penalty until it corrects, unless it shows reasonable cause. Fund managers track this closely because a sustained miss can disqualify the vehicle.

Capital gains deferral: the 180-day window

You have 180 days from the date a gain is recognized to move it into a QOF and elect deferral. The clock generally starts on the sale date. Partnerships, S corporations, and trusts get flexible start dates, so an individual partner may begin counting from the entity’s year-end instead.

Under the current (OZ 1.0) rules, the deferred gain is included back in income on the earlier of two events: an inclusion event (selling or gifting the QOF interest) or December 31, 2026. That fixed 2026 backstop is a feature of the original 2017 program, and it is one reason the rules are changing for later investments.

You make the deferral election on Form 8949 when you file the return for the year of the gain. You can defer all of the eligible gain or only part of it. Gains from sales to related parties do not qualify.

OZ 2.0: the permanent program under OBBBA

OBBBA, signed July 4, 2025, made Opportunity Zones permanent and reset the map. Starting January 1, 2027, a new set of designated zones takes effect, and the program redesignates tracts every 10 years instead of expiring. The current zones remain usable through December 31, 2028, creating a two-year overlap.

The deferral mechanism changes for investments made after December 31, 2026. Instead of the single December 31, 2026 recognition date, OZ 2.0 uses a rolling five-year deferral. The gain you bring in is recognized on the earlier of an inclusion event or the fifth anniversary of your first QOF contribution, so the clock now resets for each new investor rather than counting down to a fixed calendar date.

OZ 2.0 also reintroduces a basis step-up on the deferred gain. Hold the QOF investment for five years, and you reduce the taxable amount of the original gain by 10%. The 10-year exclusion on the fund’s appreciation continues, but OBBBA adds a 30-year cap: at year 30, basis is marked to fair market value, which limits how long the exclusion can run.

Eligibility for zone designation tightens. A tract now generally needs median family income below 70% of the state or metro median, down from 80%, or a poverty rate of at least 20% with an income cap. Governors nominate tracts, and Treasury certifies the new map.

Standard OZ vs rural OZ: side-by-side

The rural bonus is the headline enhancement in OZ 2.0. A Qualified Rural Opportunity Fund (QROF), which invests at least 90% of its assets in rural zone tracts, gets a 30% basis step-up on the deferred gain after five years, triple the standard rate. Rural projects also face a lighter renovation rule.

Feature Standard OZ (2027+) Rural OZ (QROF)
5-year basis step-up on deferred gain 10% 30%
Deferral period Rolling 5 years from first contribution Rolling 5 years from first contribution
10-year exclusion on fund appreciation Yes Yes
Substantial improvement threshold 100% of building basis 50% of building basis
Rural definition N/A Not in, or adjacent to, a town of 50,000+
Asset test 90% in zone property 90% in rural zone property

The substantial improvement rule matters for real estate. To count as qualified property, a purchased building generally must be improved by more than its acquisition basis (a 100% test) within 30 months. Rural funds only need to improve by 50%, which makes many rehab projects that would fail elsewhere eligible.

The 10-year exclusion: the biggest benefit

Holding a QOF investment for at least 10 years is what turns on tax-free growth. At sale, you elect to step the investment’s basis up to fair market value, so the appreciation the fund earned is never taxed at the federal level. This exclusion applies whether you invest under the current rules or OZ 2.0.

This is distinct from deferral. Deferral only postpones tax on the gain you brought in; you eventually pay it (reduced by any step-up). The 10-year exclusion, by contrast, permanently removes tax on the fund’s new gains, which for a successful project can dwarf the original deferred amount.

State treatment varies. Not every state conforms to the federal Opportunity Zone rules, so a gain that is federally excluded may still be taxable at the state level depending on where you live and where the fund operates. Confirm conformity before modeling an after-tax return.

Opportunity Zones vs a 1031 exchange

Both defer capital gains, but they are not interchangeable. A Section 1031 like-kind exchange applies only to real property held for business or investment and requires you to roll the entire proceeds into replacement real estate. Opportunity Zones accept gains from any asset class, including stock and business sales, and only the gain has to be reinvested.

The bigger structural difference is the exit. A 1031 exchange defers gain indefinitely as long as you keep exchanging, but the deferred gain is never forgiven and heirs rely on a step-up at death. Opportunity Zones cap deferral at a set date or five-year window, yet offer the 10-year exclusion on new appreciation, which a 1031 exchange does not provide.

Investors sometimes weigh both against a straight sale where they pay tax now. For a broader view of realized gains and current rates across the country, see our capital gains tax data report.

How to report an Opportunity Zone investment

Reporting runs on a small set of forms. The QOF files Form 8996 to certify. You, the investor, report the deferral election and later inclusion on Form 8949, which feeds Schedule D. You also attach Form 8997 each year you hold a qualifying investment, listing your deferred gains.

Track your two basis figures carefully. Your QOF interest starts with a basis of zero for the deferred gain, then steps up at the five-year mark and again to fair market value at 10 years. Understanding how cost basis is calculated is essential to reporting the right amount when you eventually sell.

Watch the 3.8% surtax too. Excluded 10-year gains generally escape the net investment income tax, but deferred gains recognized at the trigger date can be exposed. The interaction depends on your income and the year of recognition.

Frequently asked questions

What is an Opportunity Zone?

An Opportunity Zone is a low-income census tract designated by a state governor and certified by the U.S. Treasury for preferential tax treatment. Investors who reinvest capital gains into a Qualified Opportunity Fund operating in the zone can defer tax on that gain and, after a 10-year hold, exclude tax on the fund’s appreciation. A new set of zones takes effect January 1, 2027 under OBBBA.

How much do I have to invest to get the tax break?

Only the amount of your eligible capital gain must be reinvested, not the full sale proceeds. If you sell an asset for $500,000 with a $200,000 gain, you can roll just the $200,000 into a Qualified Opportunity Fund and keep the $300,000 of return-of-basis outside the program. Deferral applies only to the gain dollars you actually contribute.

When is the deferred gain taxed?

Under the current rules, the deferred gain is recognized on the earlier of an inclusion event or December 31, 2026. Under OZ 2.0, for investments after December 31, 2026, gain is recognized on the earlier of an inclusion event or five years from your first contribution. A five-year hold reduces the taxable amount by 10% (30% for rural funds).

What is the difference between the deferral and the 10-year exclusion?

Deferral postpones tax on the gain you bring into the fund; you pay it later, reduced by any basis step-up. The 10-year exclusion is separate: after holding the Qualified Opportunity Fund investment for at least 10 years, you step basis up to fair market value, so appreciation the fund earned is never federally taxed. One delays tax, the other eliminates it.

What is a Qualified Rural Opportunity Fund?

A Qualified Rural Opportunity Fund (QROF) is a QOF that invests at least 90% of its assets in rural Opportunity Zone tracts, meaning areas not in or adjacent to a town of 50,000 or more. QROFs get a 30% basis step-up after five years instead of 10%, and rural projects only need to improve a purchased building by 50% of its basis rather than 100% to qualify.

Do Opportunity Zones work for stock gains, not just real estate?

Yes. Unlike a 1031 exchange, which is limited to real property, Opportunity Zones accept eligible capital gains from any asset, including publicly traded stock, private business sales, and collectibles, plus qualified Section 1231 gains. The gain must be reinvested into a Qualified Opportunity Fund within 180 days of recognition to claim deferral.

Are Opportunity Zone gains taxed by my state?

Sometimes. Federal exclusion of a 10-year gain does not automatically flow to your state return. Some states fully conform to the federal Opportunity Zone rules, others decouple in whole or in part, so a federally tax-free gain may still be taxable where you live. Check your state’s conformity before relying on the after-tax numbers.

Reviewed by The Ledgerism Editorial Team. Last reviewed: July 2026.

Related guides