Skip to content
A BlackForge Ventures company
OZ Data Centers™

Guides by role

Selling a Business? How to Put the Gain in an Opportunity Zone Fund

A business owner who sells a company can defer federal tax on the capital gain by investing that gain, not the full price, in a Qualified Opportunity Fund within 180 days of closing.1 Each installment payment gets its own 180-day window.13 A stock sale usually gives more eligible gain than an asset sale, where part of the price is ordinary income.2,5 For gains invested on or after January 1, 2027, the gain is taxed after five years with a 10% or 30% basis increase, and later growth can be tax-free after 10 years.8

Last updated
First published
Reading time
8 min
Figures
3
Sources
15 cited

Key takeaways

  • Only the capital gain needs to be invested; your basis and any cash needed for tax on ordinary income are free to use.
  • The 180-day window starts on the closing date for a direct sale, and on each payment date (or the last day of the tax year, if you elect) for an installment sale.
  • In an asset sale, amounts taxed as ordinary income, such as depreciation recapture and inventory, are not eligible; goodwill and other capital or section 1231 gain are.
  • If an S corporation or partnership sells its assets, owners who receive the gain on a K-1 can start their 180 days at the entity's year-end, the sale date or the entity return's unextended due date.
  • On $8.5 million of eligible gain, the year-5 federal tax is $1,820,700 in a standard fund and $1,416,100 in a rural fund, compared with $2,023,000 if paid at the sale.

What does an Opportunity Zone mean for an owner selling a business?

For an owner selling a company, an Opportunity Zone fund is a place to put the capital gain from the sale within 180 days, so the tax is deferred for five years, cut by 10% (30% in a rural fund), and the money can then grow free of federal tax after 10 years.1,8 A Qualified Opportunity Fund is a partnership or corporation set up to invest in Opportunity Zones, which are designated low-income census tracts.

These are the seller's steps, in order:

  1. 1.Before you sign a letter of intent, compare a stock sale with an asset sale for after-tax proceeds and eligible gain.
  2. 2.Have your tax adviser estimate the eligible gain and list every 180-day start date, including installment payments.
  3. 3.Choose a fund and finish your review of it before closing; see the fund due diligence checklist.
  4. 4.Invest cash for an equity interest in the fund within each window, and keep proof of the investment date.
  5. 5.Elect deferral on Form 8949 for the year of the gain, and file Form 8997 every year you hold the investment.10
  6. 6.Set aside cash for the year-5 tax and check your state's rules.

The full investing process is in how to invest in an Opportunity Zone fund, step by step.

Can the gain from selling a business go into an Opportunity Zone fund?

Yes, to the extent the sale produces capital gain or section 1231 gain that is taxed now, and the buyer is not a related person. The statute lets a taxpayer defer gain invested in a Qualified Opportunity Fund within 180 days.1 The final regulations confirm that both capital gain and the full section 1231 gain qualify, while ordinary income does not.2 Section 1231 gain is gain on business property, such as buildings and equipment, held more than a year.

You only need to invest the gain. If you sell a company for $12 million and your stock basis is $2 million, the gain is $10 million. Basis is the amount the tax law treats as what you paid. Investing $10 million defers all of the gain, and you can also invest less and defer less.

Gain excluded from income under section 1202, the qualified small business stock rule, bears no federal tax, so there is nothing to defer. Practitioners generally treat only the taxable remainder as eligible gain, so confirm the split with your adviser. See which capital gains qualify.

When does the 180-day window start after a business sale?

For a direct sale, the window starts on the closing date, when the gain is taxed. For an installment sale, each payment can start its own 180-day window. For gain passed through a partnership or S corporation, the owner can choose among three start dates.2,12

Fig. 1Key dates after a business sale

  1. Closing

    Gain is taxed

    Day 1 of the 180-day window

  2. Day 180

    Last day to invest

    Cash for fund equity

  3. Tax return

    Elect deferral

    Form 8949; Form 8997 every year

  4. Year 5

    Deferred gain taxed

    90%, or 70% in a rural fund

  5. Year 10

    Growth can be tax-free

    Basis election on sale

Review the fund before closing. A wire on day 181 does not qualify.1,8

Escrows and holdbacks, which are parts of the price paid later, raise a timing question. Amounts held back are often reported under the installment method when they are paid, which gives them their own windows. Confirm the treatment of each piece of the price with your tax adviser. See the 180-day rule.

Does a stock sale or an asset sale work better with Opportunity Zones?

A stock sale usually gives more eligible gain, because a seller's gain on shares held more than a year is generally all long-term capital gain.4 An asset sale splits the price among the assets sold. Inventory and receivables produce ordinary income, depreciation recapture on equipment is ordinary income under section 1245, and goodwill and other capital assets produce capital or section 1231 gain.5 Only the capital and section 1231 parts can be deferred.2

Fig. 2Stock sale vs. asset sale for an Opportunity Zone investor

More eligible gain

Stock sale

  • The seller's gain on shares is generally capital gain
  • The 180-day window runs from closing for the shareholder
  • No recapture at the seller's level
  • The buyer takes over the company's tax basis

Mixed types of income

Asset sale

  • The price is split across assets; recapture and inventory are ordinary income
  • Goodwill and capital assets give eligible gain
  • If a C corporation sells, the corporation can invest its own gain
  • If an S corporation or partnership sells, owners can elect on their K-1 gain
Buyers often prefer asset deals because they get a higher basis in the assets. Sellers using Opportunity Zones usually prefer stock deals for the type of gain.4,5

If a C corporation sells its assets, the gain belongs to the corporation, which can make its own fund investment within 180 days. If an S corporation or partnership sells, the entity can elect, or each owner can elect. The owner's window can start on the entity's year-end, the sale date, or the due date of the entity's return without extensions.2 See partnership and K-1 gains and section 1231 gains. If the company's real estate is sold separately, a 1031 exchange may suit that part; see can you 1031 into an Opportunity Zone.

How much tax can a business seller defer? A worked example

In an asset sale, start with the price, subtract your basis, then subtract the parts taxed as ordinary income. What remains is the eligible gain.

Fig. 3From sale price to eligible gain in an asset sale

Illustrative
  • Sale price$12,000,000
  • Asset basis returned−$2,000,000
  • Equipment recapture (ordinary)−$1,000,000
  • Inventory and receivables (ordinary)−$500,000
  • Eligible gain: $8,500,000$8,500,000
Illustrative. A $12,000,000 asset sale with $2,000,000 of total asset basis, $1,000,000 of equipment recapture and $500,000 of inventory and receivables income taxed as ordinary income.
Illustrative: federal tax on the $8,500,000 of eligible gain (23.8% rate, which is 20% plus the 3.8% net investment income tax; no state tax)
ChoiceGain taxedFederal taxWhen paidHow it is worked out
Pay tax at the sale$8,500,000$2,023,000Year of sale$8,500,000 × 23.8%
Invest in a standard fund in 2027$7,650,000$1,820,700Year 5($8,500,000 − 10% basis increase of $850,000) × 23.8%
Invest in a Qualified Rural Opportunity Fund$5,950,000$1,416,100Year 5($8,500,000 − 30% basis increase of $2,550,000) × 23.8%

Growth on the fund interest after a 10-year hold can then be excluded from federal tax. The rural figures assume the fund holds at least 90% of its assets in zones made up entirely of rural area.15 RSM summarizes the basis increase rules for investments after 2026.8 The $1,500,000 of ordinary income is taxed at ordinary rates in the year of sale either way. For a full model, see the tax savings example, or run your own numbers in the Opportunity Zone tax calculator.

How do installment sales and earnouts work with Opportunity Zones?

You can invest the gain in each installment payment within 180 days of receiving it, or elect one window that starts on the last day of the tax year.13,14 An installment sale is one where at least one payment arrives after the year of sale. Gain is reported on Form 6252 as payments are received, but any depreciation recapture is reported in the year of sale, and interest is ordinary income.3

  • Seller note: invest the gain part of each principal payment as it arrives; the interest is not eligible.
  • Earnout, meaning extra payments if the business hits targets: these are typically installment payments, each with its own window.
  • Escrow release: confirm whether the release counts as a payment for installment purposes.
  • Electing out: if you elect out of the installment method, all the gain is taxed at closing and one window applies.
  • Each investment date starts its own five-year clock for gains invested on or after January 1, 2027.

What mistakes should an owner selling a business avoid?

Most mistakes involve the buyer, the type of gain, state tax and the year-5 cash.

  • Rolling equity into the buyer, meaning taking buyer shares as part of the price, is not a fund investment and may raise a related-party issue.
  • Selling to a related person makes the gain ineligible. Related means more than 20% common ownership, counting ownership through entities and by family members: brothers and sisters, a spouse, ancestors and lineal descendants.1
  • California does not follow the federal deferral or exclusion;11 see state tax treatment.
  • The year-5 tax is due even though the fund interest is hard to sell.
  • The quality of the fund manager matters more than the tax benefit; see the risks of Opportunity Zone investing.

Steptoe's summary of the final regulations covers the eligible-gain rules in more depth.9 Data center funds are one long-hold option for a large gain from a business sale; see how a data center Opportunity Zone fund works.

Common questions

Can I put the money from selling my business into an Opportunity Zone fund?

Yes, you can invest the capital gain from the sale within 180 days to defer the tax on it. Only the gain gets the benefits, and amounts taxed as ordinary income cannot be deferred.

Do I need to reinvest the entire sale price?

No, only the capital gain you want to defer needs to be invested. Your basis and any amounts taxed as ordinary income are not part of the investment.

When does my 180-day window start if I sell my company?

It starts on the closing date for a direct sale. For an installment sale, it starts on each payment date, or the last day of the tax year if you elect. For gain on a K-1, it can start at the entity's year-end, the sale date or the entity's unextended return due date.

Is depreciation recapture eligible for Opportunity Zone deferral?

No. Recapture taxed as ordinary income under section 1245 or 1250 is not eligible gain, and on an installment sale it is reported in the year of sale.

Can my C corporation invest the gain itself?

Yes. If the corporation sells assets and has the gain, it can invest in a fund within 180 days and elect deferral on its own return.

Can I invest earnout payments as they come in?

Generally yes. Earnout payments reported under the installment method can each be invested within 180 days of receipt.

Is gain excluded under the qualified small business stock rule eligible?

Gain excluded from income under section 1202 bears no federal tax, so there is nothing to defer. Any taxable capital gain above the exclusion can generally be invested; confirm with your adviser.

Sources

Every numbered note in this guide links to the source below.

  1. 1.U.S. Government Publishing Office (GovInfo), “26 U.S.C. 1400Z-2, Special rules for capital gains invested in opportunity zones,” n.d. govinfo.gov
  2. 2.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
  3. 3.Internal Revenue Service, “Topic no. 705, Installment Sales,” n.d. irs.gov
  4. 4.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” n.d. irs.gov
  5. 5.Internal Revenue Service, “Publication 544, Sales and Other Dispositions of Assets,” 2025. irs.gov
  6. 6.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
  7. 7.Spidell, “New Qualified Opportunity Zone guidance clarifies gain recognition rules,” 2026. spidell.com
  8. 8.RSM US, “The OBBBA rekindles opportunity zones: What it means for real estate,” 2025. rsmus.com
  9. 9.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
  10. 10.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund Investments,” 2024. irs.gov
  11. 11.California Franchise Tax Board, “2023 Instructions for Schedule D (541) Capital Gain or Loss,” 2023. ftb.ca.gov
  12. 12.EY Tax News, “Final regulations on Opportunity Zones retain same approach as proposed regulations, with a few big changes,” 2020. taxnews.ey.com
  13. 13.Akerman, “Treasury and IRS Issue Final Opportunity Zone Tax Regulations,” 2020. akerman.com
  14. 14.Goulston & Storrs, “Qualified Opportunity Zones: Final Regulations Provide Clarity,” 2020. goulstonstorrs.com
  15. 15.Internal Revenue Service, “Enhanced tax incentives for Qualified Opportunity Zone investments in rural areas,” 2025. irs.gov

Terms in this guide

Full glossary →·All guides on Guides by role →

Selling your company?

Plan for the gain before the deal closes.

A business sale can produce a large gain with a fixed timeline. Tell us your expected closing date and we will discuss how an OZ investment could fit.

About a minute · Confidential

Prefer email? info@ozdatacenters.com

Confidential. Submitting this form is not an offer to buy or sell securities, and our fund offerings are generally limited to accredited investors. See our Privacy Policy.

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

Selling a business or property · 1 of 11

Up next · Guides by roleSelling Real Estate? How an Opportunity Zone Fund Works for Your Gain →Sold rental property? Invest the section 1231 gain in an Opportunity Zone fund within 180 days; ordinary recapture does not qualify. How it compares with a 1031.9 min read

← Previous: What Opportunity Zones Mean for Communities and Economic Developers·All 114 guides