Key takeaways
- A sale before the fifth anniversary taxes the full deferred gain in that year, capped at the investment's value, with no 10% (or 30% rural) basis increase.
- The amount included is the lesser of the remaining deferred gain or the fair market value of what you sell, minus your basis in it.
- A sale between years five and ten taxes only the growth, because 90% of the gain (70% in a rural fund) was already taxed at year five.
- After ten years you can elect a fair market value basis, which makes the growth tax-free up to the value on the 30th anniversary.
- A partial sale includes a matching share of the remaining deferred gain, and the rest stays deferred.
What happens if you sell an Opportunity Zone investment early?
Selling early ends the deferral and gives up the benefits you have not reached yet. Under section 1400Z-2(b)(1), a gain invested in a Qualified Opportunity Fund after December 31, 2026 is taxed in the year that includes the earlier of two dates: the date you sell the investment, or five years after you made it.1,6 A Qualified Opportunity Fund is a partnership or corporation set up to invest in Opportunity Zones. A sale is one kind of inclusion event, the term the regulations use for anything that ends deferral.2
What you lose depends on when you sell. The two dates that matter are the fifth anniversary, when basis (the amount the tax law treats as what you paid) rises by 10% of the deferred gain, and the tenth anniversary, when the growth can become tax-free.1
Fig. 1What a sale triggers at each stage, for an investment made in 2027
Day 1
Investment made
Basis starts at zero
Before year 5
Sale taxes all the deferred gain
No basis increase; growth taxed
Year 5
90% of the gain taxed
10% basis increase; 70% taxed in a rural fund
Years 5 to 10
Sale taxes the growth only
Deferred gain already taxed
Year 10 and later
Growth can be tax-free
Elect fair market value basis
Year 30
Value is fixed for the election
Growth after year 30 is taxable
| When you sell | Deferred gain | Growth in the fund | Benefits kept |
|---|---|---|---|
| Before year 5 | Taxed in the year of the sale, capped at value2 | Taxed in the year of the sale | None |
| Between years 5 and 10 | Already taxed in the year of the fifth anniversary | Taxed in the year of the sale | 10% (or 30%) of the gain never taxed |
| After year 10 | Already taxed at year 5 | Tax-free if you elect fair market value basis4 | Both the basis increase and the exclusion |
What is taxed if you sell before five years?
Before five years, the whole deferred gain comes back into income in the year of the sale, and any growth is taxed as well. Your basis in the investment starts at zero, and the 10% increase applies only to an investment held at least five years.1 With no increase yet, the amount included is the full deferred gain, or the value of the investment if that is lower.2
The sale then works like any other sale. Your basis rises by the gain just included, and the price above that basis is new gain.1,2 The included gain keeps the character it had when you deferred it. A short-term gain is still short-term and a long-term gain is still long-term, taxed at that year's rates.3 The growth is long-term if you held the fund interest more than one year.10
Selling shortly before the fifth anniversary is the costliest timing. One extra day of holding can turn on the 10% increase, which on a $1,000,000 gain removes $100,000 of gain from tax. In a Qualified Rural Opportunity Fund the increase is 30%, or $300,000 on the same gain.1,6 See the Opportunity Zone basis increase.
If the fund has lost value, the cap helps. The amount included cannot exceed the fair market value of what you sell, minus your basis.2 An investor who deferred $1,000,000 and sells for $700,000 includes $700,000, and the sale itself then produces no further gain.
What is taxed if you sell between years five and ten?
Between years five and ten, only the growth is taxed, because the deferred gain was already taxed at the five-year mark. In the tax year that includes the fifth anniversary, your basis rises by 10% of the deferred gain, and the amount included is the lesser of the deferred gain or the investment's value, minus that 10%.1 On a $1,000,000 gain in a fund worth more than that, $900,000 is taxed.
Your basis then rises by the $900,000 included, so it equals the full $1,000,000.1,2 When you sell in year seven or eight, the gain is the sale price minus that basis. It is long-term capital gain, taxed at the rates for that year.10
What you give up is the 10-year exclusion. If the fund grew from $1,000,000 to $1,800,000, the $800,000 of growth is taxed on a sale in year seven and would be tax-free on a sale after year ten. The cost of selling in this window is therefore the tax on the growth, not the deferred gain.
The year-five tax is due whether or not you sell, and the fund may not pay a distribution to cover it. Plan cash for it from the start. See how the five-year deferral works.
What happens when you sell after ten years?
After ten years, you can elect to make your basis equal to the investment's fair market value on the date of the sale, so the growth is not taxed.1,4 The regulations make the election available to an investor whose qualifying investment has been held at least ten years, on its sale or exchange.4 The deferred gain was taxed at year five, so a sale after year ten usually adds no federal income tax on the fund interest.
For gains invested after December 31, 2026, the statute adds a 30-year limit. If you sell before the 30th anniversary, basis equals fair market value on the sale date. In any other case, basis equals fair market value on the 30th anniversary, so growth after year 30 is taxable.1,6 See the 30-year limit.
Funds organized as partnerships or S corporations have a second route. After ten years, the investor can elect to exclude gains from the fund's own asset sales, other than ordinary sales of inventory.4 Sale proceeds not distributed within 90 days are treated as reinvested in a non-qualifying interest.4 The details are in the 10-year hold and exit strategies after 10 years.
How are partial sales of an Opportunity Zone investment taxed?
A partial sale includes a matching share of the remaining deferred gain, capped by value, and the rest stays deferred. The regulations set the share differently for the two kinds of fund.2
- Fund organized as a corporation: the included amount is the lesser of a share of the remaining deferred gain, in the ratio of the value sold to the value of your whole qualifying investment, or the value of the part sold, minus your basis in that part.2
- Fund organized as a partnership or S corporation: the included amount is the lesser of the percentage of the qualifying investment sold times the remaining deferred gain, or the gain a fully taxable sale of that part at fair market value would produce.2
Total inclusions can never exceed the gain you deferred, reduced by any basis increase.2 The part you keep holds its original dates. The later 10% increase is figured on the deferred gain that remains.2
Suppose an investor deferred $1,000,000 in a partnership fund and sells 25% of the interest in year three for $325,000. The included amount is $250,000, which is 25% of $1,000,000 and less than the $325,000 a fully taxable sale would produce. The rest of the price, $75,000, is new gain. The other $750,000 stays deferred. At year five, basis rises by $75,000 (10% of $750,000), and $675,000 is taxed if the remaining interest is worth at least $750,000.
If you hold identical shares in a fund organized as a corporation, bought on different dates, and do not identify which shares you sold, the regulations use a first-in, first-out rule. That rule treats the earliest shares as sold first.3 Identify the shares in writing when you sell.
Worked example: selling a $1 million investment at different times
This illustrative example follows one investor who defers a $1,000,000 long-term capital gain by investing it in a standard fund on February 1, 2027. It uses a 23.8% federal rate (the 20% top capital gains rate plus the 3.8% net investment income tax) for every gain and no state tax.10 It also assumes the investment is worth at least $1,000,000 on the fifth anniversary. Each row is a separate choice.
| Scenario | Total federal tax | How it is worked out |
|---|---|---|
| Sell in year 3 for $1,300,000 | $309,400 | Included: lesser of $1,000,000 or $1,300,000, minus $0 basis = $1,000,000, tax $238,000; new gain $1,300,000 minus $1,000,000 basis = $300,000, tax $71,400 |
| Sell in year 3 for $700,000 | $166,600 | Included: lesser of $1,000,000 or $700,000 = $700,000, tax $166,600; basis becomes $700,000, so the sale adds no gain |
| Hold to year 5, sell in year 7 for $1,800,000 | $404,600 | Year 5: $1,000,000 minus $100,000 increase = $900,000 included, tax $214,200; year 7: $1,800,000 minus $1,000,000 basis = $800,000, tax $190,400 |
| Hold past year 10, sell for $2,500,000 and elect fair market value basis | $214,200 | Year 5 tax of $214,200 only; basis equals the $2,500,000 sale price, so no gain on the sale |
| No fund: pay tax on the gain in 2027 | $238,000 | $1,000,000 × 23.8%, before any tax on later growth of the remaining money |
Fig. 2Total federal tax by when the investor sells
Illustrative- Sell in year 3 for $1.3M$309,400
- Sell in year 7 for $1.8M$404,600
- Sell after year 10 for $2.5M$214,200
- No fund, tax paid in 2027$238,000
The year-seven sale carries the most tax because its $800,000 of growth is taxed. The sale after year ten has more growth, $1,500,000, and pays tax only on the year-five inclusion. Compare the cases with your own numbers in the Opportunity Zone tax calculator.
What should you check before selling early?
Check the reinvestment option, the reporting and whether a transfer that is not a sale changes the answer. Gain that comes back into income because of an inclusion event can be eligible gain again if you meet all the deferral rules.3 Its 180 days begin on the date of the inclusion event, and partial sales count.3 Notice 2026-55 asked whether that rule should apply only when the inclusion event is a sale or exchange, so check for new guidance before relying on it.9
- Report the sale and the deferred gain on Form 8949. The deferred gain goes on its own row with the fund's employer identification number and code Y, and keeps its short-term or long-term character.7
- Complete Form 8997, which reports the fund investments you held at the start and end of the year and any you disposed of.11 Its Part III lists inclusion events and certain other transfers during the year. File it with your timely filed return each year you hold an investment.8
- A gift of the interest, a transfer to a spouse or in a divorce, and a partnership fund's distribution above your basis are also inclusion events. A transfer to your estate or heirs at death is not, though the heir's later sale is.2 See Opportunity Zone inclusion events.
- Read the fund agreement. Many funds restrict transfers, and a sale may need the fund manager's consent.
The IRS describes an inclusion event as an event that reduces or ends your qualifying investment in a fund.5 If you need cash before year ten, ask the fund manager whether a partial sale, a loan secured by the interest or a planned distribution would cost less tax. A practical starting point is Opportunity Zone tax savings: a worked example.
Common questions
Can I sell my Opportunity Zone investment early?
Yes, subject to the fund's transfer rules, but you lose benefits. A sale before five years taxes the whole deferred gain that year with no basis increase. A sale before ten years taxes the growth.
What happens if I sell an Opportunity Zone investment after 5 years but before 10?
Only the growth is taxed. The deferred gain was already taxed in the year of the fifth anniversary, less the 10% (or 30% rural) basis increase. You give up the tax-free treatment of the growth that a 10-year hold provides.
Do I lose the 10% basis increase if I sell before 5 years?
Yes. The increase applies only to an investment held at least five years. On a $1,000,000 gain, selling one day early adds $100,000 of taxable gain.
What if my Opportunity Zone investment lost money when I sell?
The deferred gain included is capped at the value of what you sell, minus your basis. If you deferred $1,000,000 and sell for $700,000 before year five, $700,000 is included and no further gain arises.
Can I sell part of my Opportunity Zone fund interest?
Yes. A partial sale includes a matching share of the remaining deferred gain, capped by value. The rest stays deferred and keeps its five-year and ten-year dates.
Can I reinvest the gain from an early sale in another Opportunity Zone fund?
Generally yes, under the current regulations. Gain from an inclusion event can be eligible gain if you invest it within 180 days of the event. Notice 2026-55 asked for comments on limiting this rule, so confirm the current position first.
Sources
Every numbered note in this guide links to the source below.
- 1.Legal Information Institute, Cornell Law School, “26 U.S. Code § 1400Z-2: Special rules for capital gains invested in opportunity zones,” n.d. law.cornell.edu
- 2.Legal Information Institute, Cornell Law School, “26 CFR § 1.1400Z2(b)-1: Inclusion of gains that have been deferred under section 1400Z-2(a),” n.d. law.cornell.edu
- 3.Legal Information Institute, Cornell Law School, “26 CFR § 1.1400Z2(a)-1: Deferring tax on capital gains by investing in opportunity zones,” n.d. law.cornell.edu
- 4.Legal Information Institute, Cornell Law School, “26 CFR § 1.1400Z2(c)-1: Investments held for at least 10 years,” n.d. law.cornell.edu
- 5.Internal Revenue Service, “Opportunity zones frequently asked questions,” 2026. irs.gov
- 6.RSM US, “The OBBBA rekindles opportunity zones: What it means for real estate,” 2025. rsmus.com
- 7.Internal Revenue Service, “Instructions for Form 8949 (2025),” 2026. irs.gov
- 8.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments (2024),” 2024. irs.gov
- 9.Internal Revenue Service, “Notice 2026-55, Request for Additional Comments on Issues under § 1400Z-2,” 2026. irs.gov
- 10.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” 2026. irs.gov
- 11.Internal Revenue Service, “About Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” n.d. irs.gov
Terms in this guide
OZ Data Centers and its affiliates may sponsor, manage and invest in the Opportunity Zone funds and data center projects described here, and have a financial interest in them. This information is for general purposes only. It is not an offer to sell, or a solicitation of an offer to buy, any security, and it is not investment, tax or legal advice. Any offering will be made only through a fund's confidential offering documents, to investors who qualify (generally accredited investors), where permitted by law. Investments in private funds and data center projects are speculative and illiquid and involve a high degree of risk, including the possible loss of the entire investment. They are suitable only for investors who can bear that risk and hold the investment for ten years or longer. Opportunity Zone tax benefits are not guaranteed. They depend on each investor's circumstances, on the fund and its businesses continuing to meet the requirements of the law, and on rules that can change. Statements about future projects, timing or results are forward-looking and may not occur. Consult your own tax, legal and financial advisers.
Continue reading
← Previous: What Disqualifies a Capital Gain From Opportunity Zone Deferral?·All 114 guides