Key takeaways
- Only the capital gain needs to be invested; the return of your basis and any cash for taxes 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 year-end, if elected) 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 §1231 gain are.
- If an S corporation or partnership sells assets, owners who receive the gain on a K-1 can choose a 180-day window starting at year-end, the sale date, or the entity return's unextended due date.
- A sale closing in the second half of 2026 can still be invested on or after January 1, 2027 within its window, which gets the five-year rolling deferral and step-up.
Can the gain from selling a business go into an Opportunity Zone fund?
Yes, to the extent the sale produces capital gain or §1231 gain that is recognized for federal tax, and the buyer is not a related person. The statute lets a taxpayer defer gain invested in a Qualified Opportunity Fund (QOF) within 180 days1, and the final regulations confirm that both capital gain and gross §1231 gain qualify while ordinary income does not2.
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, and investing $10 million defers all of it. You can also invest less and defer less. Gain excluded from income under §1202 (qualified small business stock) bears no federal tax, so there is nothing to defer; practitioners generally treat only the taxable remainder as eligible gain. 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 recognized. 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 dates2,12.
Fig. 1Key dates after a business sale
Closing
Gain recognized
Day 1 of the 180-day window
Day 180
Last day to invest
Cash for QOF equity
Tax return
Elect deferral
Form 8949; Form 8997 yearly
Year 5
Deferred gain taxed
90%, or 70% in a rural fund
Year 10
Growth excludable
Basis election on sale
Escrows and holdbacks add a timing question. Amounts held back are often reported under the installment method when paid, giving them their own windows. Confirm the treatment of each piece of consideration 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 produces more eligible gain, because the seller's gain on shares held more than a year is generally all long-term capital gain4. An asset sale splits the price among the assets sold: inventory and receivables produce ordinary income, depreciation recapture on equipment is ordinary income under §1245, and goodwill and other capital assets produce capital or §1231 gain5. Only the capital and §1231 parts can be deferred2.
Fig. 2Stock sale vs. asset sale for an Opportunity Zone investor
More eligible gain
Stock sale
- Seller's gain on shares is generally capital gain
- 180-day window from closing for the shareholder
- No recapture at the seller level
- Buyer inherits the company's tax basis
Mixed character
Asset sale
- Price allocated across assets; recapture and inventory are ordinary
- Goodwill and capital assets give eligible gain
- C corporation sells: the corporation can invest its own gain
- S corporation or partnership sells: owners can elect on K-1 gain
If a C corporation sells its assets, the gain belongs to the corporation, which can make its own QOF investment within 180 days. If an S corporation or partnership sells, the entity can elect, or each owner can elect with a window starting on the entity's year-end, the sale date, or the unextended due date of the entity's return2. See partnership and K-1 gains and section 1231 gains.
How much gain can a seller defer, in numbers?
In an asset sale, start with the price, subtract basis, then subtract the ordinary income pieces; 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
| Choice | Gain taxed | Federal tax | When paid |
|---|---|---|---|
| Pay tax at sale | $8,500,000 | $2,023,000 | Year of sale |
| Invest in a standard QOF in 2027 | $7,650,000 | $1,820,700 | Year 5 |
| Invest in a Qualified Rural Opportunity Fund | $5,950,000 | $1,416,100 | Year 5 |
Growth on the QOF interest after a 10-year hold can then be excluded. The rural figures assume the fund holds at least 90% of its assets in zones made up entirely of rural area15. The step-up rules for investments after 2026 are summarized by RSM8. 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.
How do installment sales and earnouts work with Opportunity Zones?
Each installment payment's gain can be invested within 180 days of receipt, or the seller can elect a single window starting at the end of the tax year13,14. An installment sale is one where at least one payment arrives after the year of sale; gain is reported as payments are received on Form 6252, but any depreciation recapture is reported in the year of sale, and interest is ordinary income3.
- Seller note: invest the gain portion of each principal payment as it arrives; interest is not eligible.
- Earnout: contingent payments are typically installment payments, each with its own window.
- Escrow release: confirm whether the release is a payment for installment purposes.
- Election out: if you elect out of the installment method, all gain is recognized 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 steps should a selling owner take, and what are the pitfalls?
- 1.Before signing the LOI, model stock versus asset structures for after-tax proceeds and eligible gain.
- 2.Have your adviser estimate the eligible gain and list every 180-day start date.
- 3.Choose a fund and complete diligence before closing; see the fund due diligence checklist.
- 4.Invest cash for QOF equity within each window and keep proof of the investment date.
- 5.Elect on Form 8949 for the year of the gain and file Form 8997 every year10.
- 6.Set aside cash for the year-five tax and check state conformity.
- Rolling equity into the buyer is not a QOF investment and may be a related-party issue.
- Selling to a related person (20% or more common ownership) makes the gain ineligible1.
- California does not conform to federal deferral or exclusion11; see state tax treatment.
- The year-five tax is due even though the fund interest is illiquid.
- Sponsor quality 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 depth9. Data center funds are one long-hold option for a large business-sale gain; see how a data center Opportunity Zone fund works.
Common questions
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?
On the closing date for a direct sale. For an installment sale, on each payment date or the end of the tax year if elected. For gain on a K-1, at 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 §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 recognizes the gain, it can invest in a QOF 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 QSBS-excluded gain eligible?
Gain excluded from income under §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.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.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
- 3.Internal Revenue Service, “Topic no. 705, Installment Sales,” n.d. irs.gov
- 4.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” n.d. irs.gov
- 5.Internal Revenue Service, “Publication 544, Sales and Other Dispositions of Assets,” 2025. irs.gov
- 6.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
- 7.Spidell, “New Qualified Opportunity Zone guidance clarifies gain recognition rules,” 2026. spidell.com
- 8.RSM US, “The OBBBA rekindles opportunity zones: What it means for real estate,” 2025. rsmus.com
- 9.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
- 10.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund Investments,” 2024. irs.gov
- 11.California Franchise Tax Board, “2023 Instructions for Schedule D (541) Capital Gain or Loss,” 2023. ftb.ca.gov
- 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.Akerman, “Treasury and IRS Issue Final Opportunity Zone Tax Regulations,” 2020. akerman.com
- 14.Goulston & Storrs, “Qualified Opportunity Zones: Final Regulations Provide Clarity,” 2020. goulstonstorrs.com
- 15.Internal Revenue Service, “Enhanced tax incentives for Qualified Opportunity Zone investments in rural areas,” 2025. irs.gov
This website is for general information only. It is not an offer to sell, or a solicitation of an offer to buy, any security. Any offering will be made only through confidential offering documents, to eligible investors, where permitted by law. Opportunity Zone tax benefits depend on each investor's circumstances and on rules that can change; consult your own tax and legal advisers.
Continue reading
Selling a business or property · 1 of 11
← Previous: Opportunity Zones for economic developers and communities·All 90 guides