The short answer
The capital gain on goodwill, corporate stock or a partnership interest (less any ordinary slice under section 751) is gain that section 1031 cannot touch, and the only deferral built for it is a qualified opportunity fund: invest an amount equal to the gain within 180 days and the gain leaves this year's return. If the gain reaches you through a partnership or S corporation, you have three possible start dates, the entity's sale date, the last day of its tax year or the unextended due date of its return, which for a calendar-year partnership is March 15. Equipment recapture is ordinary income and stays taxable. If the business sat in a building you own, that building is a separate sale of real property that can run a 1031 exchange on its own clock, with the entity gain going to the fund.
At a glance
| Goodwill and equity | Capital gain, not real property; no 1031 exchange |
|---|---|
| Fund eligibility | Capital gain and qualified section 1231 gain from a sale to an unrelated person |
| Direct sale clock | 180 days from the closing |
| K-1 clock | Entity sale date, last day of its tax year, or its return due date without extensions |
| Partnership due date | March 15 for a calendar-year partnership |
| Asset split | Section 1060 residual method on Form 8594; a written allocation binds both sides |
| Equipment | Section 1245 recapture is ordinary income and not eligible gain |
| Post-2026 inclusion | Earlier of a sale or five years from the investment, less a 10% step-up |
Why the exchange you used for real estate does not reach the business
Section 1031(a)(1) applies to real property exchanged for real property. Goodwill, customer lists, a membership interest in an LLC and shares in a corporation are not real property, and the Form 8824 instructions list stock and partnership interests among the property that never qualifies.
The fund route is the mirror image. Section 1400Z-2(a) covers gain from the sale to, or exchange with, an unrelated person of any property, and Reg. section 1.1400Z2(a)-1 defines eligible gain as gain treated as capital gain or as qualified section 1231 gain. Goodwill gain is capital gain; gain on an entity interest is capital gain; the building's gain, if the building was used in the business, is section 1231 gain. All three qualify.
What does not qualify is ordinary income. Depreciation recapture on equipment and vehicles under section 1245, and inventory profit, are taxed in the year of sale whatever you do with the proceeds.
The asset split on Form 8594 decides which dollars can go where
In an asset sale, section 1060 allocates the price among the assets using the residual method, and if you and the buyer agree in writing on the allocation or on an asset's value, the agreement binds both of you unless the IRS determines it is not appropriate. Both sides report the split on Form 8594, whose instructions place buildings, land, furniture and equipment in Class V, other section 197 intangibles in Class VI and goodwill and going concern value in Class VII.
That split is your map. The Class V real property share can go to a qualified intermediary and into an exchange. The Class VII goodwill share is capital gain for a fund. The equipment share inside Class V produces recapture that neither tool defers. If you sell a business with its building, can you exchange only the real estate covers how to keep the two closings and the two streams of money apart.
A stock or membership-interest sale has no Form 8594 and no real property component in your hands: the whole gain is on the equity, and the whole deferrable amount belongs to the fund. If you personally own the building outside the entity and lease it to the business, that building is still yours to exchange.
The K-1 clock: three start dates, and why March 15 matters
When the entity sells and the gain passes to you on a Schedule K-1, Reg. section 1.1400Z2(a)-1(c)(8) gives you a choice. By default your 180 days begin on the last day of the partnership's taxable year; you may instead elect to use the partnership's own 180-day period, which begins on its sale date, or the 180-day period beginning on the due date of the partnership's return without extensions. Section 6072(b) sets that due date at March 15 for a calendar-year partnership, so a K-1 gain from a sale in any month of 2027 can be invested as late as September 2028.
The IRS's opportunity zone FAQs add that the date you receive the K-1 is irrelevant; the three statutory dates control. The same rules apply to S corporation shareholders by analogy under paragraph (c)(9).
A direct sale of an entity interest you hold personally has no such flexibility: the 180 days begin on the closing date. What date starts the 180-day window sets out the installment-sale and other variations.
Hypothetical: a $5,000,000 asset sale with a building, goodwill and equipment
Round, hypothetical numbers for a sale that closes on June 1, 2027, by an S corporation you own, with the building held in your own name outside the company. The agreed allocation is $2,000,000 to your building, $2,500,000 to goodwill and $500,000 to fully depreciated equipment.
Building: $2,000,000 of real property with a $600,000 basis. Sold through a qualified intermediary, it runs an ordinary exchange, identification by July 16 and closing by November 28, into replacement real property or trust interests, deferring $1,400,000. Equipment: $500,000 of section 1245 recapture, ordinary income on the 2027 return, no deferral available.
Goodwill: $2,500,000 of capital gain reported on your K-1. You may start the 180 days on June 1, on December 31, or on March 15, 2028, and invest $2,500,000 in a qualified opportunity fund by the end of whichever window you choose. The gain leaves the 2027 return; at year five, 90% of it returns to income; and the fund's own growth is excluded if the interest is held ten years. Have your CPA model the year-five tax at your expected bracket, because the fund will not necessarily distribute cash to pay it.
Choosing between the fund, an exchange on the building and simply paying
The building usually belongs in an exchange, because an exchange defers the entire gain with no scheduled end date and a trust interest can close inside the window when a replacement building cannot. 1031 versus opportunity zone funds versus paying the tax compares the three on a large gain, and the fund's five-year inclusion is the main reason the comparison is not one-sided.
The goodwill gain has two homes. The fund defers it; a bonus depreciation fund does not defer it but can generate a passive loss against passive income in the same year, which matters only if the business gain is itself passive to you, and gain from a company you ran is usually not. Paying is the honest answer for an owner who needs the money now or whose gain is modest.
The replacement structures for this situation are therefore an opportunity zone fund for the goodwill or equity gain and, for the building, a traditional DST, a direct title security or a building you choose. Fund interests and trust interests are private, illiquid and can lose value, and the fund's year-five tax arrives whether or not the fund has paid you anything.
What to do in the first thirty days after closing
Confirm the allocation on the signed agreement and the draft Form 8594, because the dollar amounts in Classes V and VII are the ceilings on what each tool can take. Ask the entity's accountant which of the three K-1 start dates the entity will support in its own return, and write the latest safe date in your calendar as well as the earliest.
Separate the money. Real property proceeds go to the intermediary at closing; goodwill proceeds can sit in your own account until the fund subscription, since the fund rules have no intermediary requirement. Then read opportunity zones after the 2025 tax act for the five-year, ten-year and new-map dates before choosing a fund, and QOF due diligence for what the offering documents should show.
Related questions
I sold the stock of my corporation. Can any of that gain go through a 1031?
No. Stock is excluded from section 1031 regardless of what the corporation owns. The whole gain is capital gain that a qualified opportunity fund can take within 180 days of the closing.
Is section 1231 gain on the building eligible for the fund as well as for an exchange?
Yes. Qualified section 1231 gain is eligible gain, so a seller who chooses not to exchange the building can put its gain into the fund; the two tools can also be split across the price.
The buyer is paying me over four years. When do my 180 days start?
Under the regulation an installment seller may treat the date each payment is received as the start of a 180-day period for the gain in that payment, so each instalment can be deferred on its own schedule.
Can the fund investment be made by my LLC rather than by me?
A partnership can make its own deferral election for gain it recognizes, or leave the election to its partners. Which entity invests decides whose return carries Form 8997, so settle it with the entity's accountant before the first window closes.
Does my state defer the gain too?
Not always. Several states do not follow the federal opportunity zone deferral, so the state tax on the business gain may be due in the sale year even when the federal tax is deferred.
Sources
Checked against these publications on October 8, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.
- 26 U.S.C. section 1031, Exchange of real property held for productive use or investment
- IRS, Instructions for Form 8824, Like-Kind Exchanges
- 26 U.S.C. section 1400Z-2, Special rules for capital gains invested in opportunity zones (as amended by Public Law 119-21)
- Treas. Reg. section 1.1400Z2(a)-1, Deferring tax on capital gains by investing in opportunity zones
- 26 U.S.C. section 1060, Special allocation rules for certain asset acquisitions
- IRS, Instructions for Form 8594, Asset Acquisition Statement Under Section 1060
- 26 U.S.C. section 6072, Time for filing income tax returns
- IRS, Opportunity zones frequently asked questions
- IRS, Notice 2026-40, Transitional guidance on qualified opportunity zones
- Public Law 119-21 (July 4, 2025), section 70421, Permanent renewal and enhancement of opportunity zones
