CrowdfundedWealth

ESOP Sale and Section 1042 Rollover: Rules, Costs, 6,505 Plans

ResearchBy Jorge24 min read

Some links pay us a referral fee; each one says so. Disclosure

Quick answer

Section 1042 lets the seller of stock in a C corporation with no publicly traded stock defer the federal tax on the gain when the stock is sold to an ESOP, if the ESOP owns at least 30% of the company right after the sale, the seller held the stock at least 3 years, and the seller buys qualified replacement property within the window that starts 3 months before and ends 12 months after the sale (26 U.S.C. 1042(a), (b)(2), (b)(4) and (c)(3)). In our example, a sale of $10,000,000 of stock with $1,000,000 of basis owes $2,142,000 of federal tax in the year of sale at 20% plus the 3.8% net investment income tax (our arithmetic); with the full $10,000,000 put into replacement property the tax in the year of sale is $0 and the $9,000,000 of gain sits in a replacement basis of $1,000,000. That gain comes back if the replacement property is sold (1042(e)(1)) but not on a transfer by reason of death (1042(e)(3)(B)), where the heirs take the fair market value as basis (1014(a)(1)). S corporations are outside the rule for sales through December 31, 2027; for sales after that date, section 1042(h) caps the election at 10% of the amount realized (Pub. L. 117-328, div. T, sec. 114). The Department of Labor’s Form 5500 file for plan year 2024 holds 6,505 plans coded as ESOPs, and 4,148 of them, 63.8%, carry the code for an S corporation sponsor (our arithmetic). As of November 30, 2026.

Key takeaways

  • The statute says what is deferred: “the gain (if any) on such sale which would be recognized as long-term capital gain shall be recognized only to the extent that the amount realized on such sale exceeds the cost to the taxpayer of such qualified replacement property” (26 U.S.C. 1042(a)). Reinvest all of the price and no gain is recognized; reinvest part and the rest is taxed in the year of sale.
  • Five tests have to be met together: the ESOP owns at least 30% of each class of stock or of total value right after the sale (1042(b)(2)), the seller held the stock at least 3 years (1042(b)(4)), the company is a domestic C corporation with no stock readily tradable on an established securities market (1042(c)(1)(A)), the seller buys qualified replacement property from 3 months before to 12 months after the sale (1042(c)(3)), and the employer gives a verified written statement consenting to sections 4978 and 4979A (1042(b)(3)).
  • The temporary regulation, 26 CFR 1.1042-1T, still says the securities must have been “held by the taxpayer for more than 1 year” (Q&A-1(b)(3)); the statute now says at least 3 years (1042(b)(4)). The election goes in a statement attached to the return for the year of sale, and “an election once made is irrevocable” (Q&A-3(a)).
  • Our worked example, $10,000,000 of stock with $1,000,000 of basis, ignoring state tax: a taxable sale owes $1,800,000 at 20% plus $342,000 of net investment income tax, $2,142,000 in all. A section 1042 sale with $10,000,000 of replacement property owes $0 that year and leaves a replacement basis of $1,000,000. With $7,000,000 of replacement property the seller recognizes $3,000,000 and owes $714,000 (our arithmetic).
  • The deferral has a price list in the Code: no ESOP allocation of the purchased shares to the seller, related individuals or 25% holders for the nonallocation period of at least 10 years (409(n)), a 50% excise tax on a prohibited allocation (4979A(a)), a 10% tax on the amount realized if the plan sells down within 3 years (4978), and recapture of the deferred gain when the replacement property is disposed of (1042(e)(1)).
  • The Department of Labor’s 2024 Form 5500 file lists 6,505 plans with the ESOP feature code 2O or 2P covering 15,513,381 participants. 4,148 of them (63.8%) carry code 2Q, the S corporation flag, so section 1042 does not reach them today. Of the 2,357 without that code, 359 hold $250 million or more and include the plans of listed companies; 1,997 hold under $250 million (our arithmetic from the DOL file).
  • For sales after December 31, 2027, the Secure 2.0 amendment replaces “domestic C corporation” with “domestic corporation” and adds section 1042(h), which limits the election on an S corporation sale to “not more than 10 percent of the amount realized.” The statute text on the Cornell Legal Information Institute site shows no amendment after Pub. L. 117-328 as of November 30, 2026.

CSV · 136 rows

Selling a company to an ESOP under section 1042: the statute, the temporary regulation, the Form 5500 census of ESOP plans for plan year 2024 and a $10 million worked example

136 rows: literal text of 26 U.S.C. 1042, 409(n), 4978, 4979A, 1014 and 1411, the temporary regulation, the Form 5500 feature codes, our census of ESOP plans from the DOL file for plan year 2024 by sponsor type, leverage and size, the DOL rate-of-return table, and our arithmetic for the $10 million example.

What section 1042 requires, line by line

The rule is a nonrecognition election. The seller does not escape the tax on the gain; the statute moves it into the replacement property. Each requirement below is in the Code text we read on November 30, 2026.

RequirementWhat the text saysSection
Who sellsSection 1042(a) applies to “the taxpayer or executor”; it “shall not apply to any gain on the sale of any qualified securities which is includible in the gross income of any C corporation.” A company cannot use it for its own gain.1042(a), (c)(7)
Who buysAn employee stock ownership plan (as defined in section 4975(e)(7)) or an eligible worker-owned cooperative.1042(b)(1)
30% testThe plan owns, “immediately after the sale, at least 30 percent of” each class of outstanding stock or of the total value of all outstanding stock, other than the section 1504(a)(4) preferred.1042(b)(2)
Holding period“The taxpayer’s holding period with respect to the qualified securities is at least 3 years (determined as of the time of the sale).”1042(b)(4)
CompanyEmployer securities “issued by a domestic C corporation that has no stock outstanding that is readily tradable on an established securities market,” and not received from a section 401(a) plan or through an option to which section 83, 422 or 423 applied.1042(c)(1)
Replacement windowBegins 3 months before the date of the sale and ends 12 months after it.1042(c)(3)
Replacement propertyAny security issued by a domestic operating corporation whose passive investment income was not more than 25% of its gross receipts for the preceding year and that is not the corporation that issued the sold securities or in its controlled group; a corporation is an operating corporation if more than 50% of its assets are used in the active conduct of a trade or business. “Security” has the section 165(g)(2) meaning, which covers stock and bonds, debentures and notes in registered form or with coupons, but not government securities.1042(c)(4), 165(g)(2)
Employer statementA verified written statement of the employer consenting to the application of sections 4978 and 4979A.1042(b)(3)
Election deadlineNo later than the last day, including extensions, for filing the return for the year of the sale.1042(c)(6)
BasisThe basis of the replacement property is reduced by the gain not recognized, split by cost if there is more than one item.1042(d)
RecaptureIf the taxpayer disposes of any replacement property, gain is recognized to the extent of the gain not recognized; the rule does not apply to a transfer by reason of death, by gift, in a section 368 reorganization that meets the statute’s conditions or in another section 1042 transaction.1042(e)(1), (e)(3)
Assessment periodStays open for 3 years from the date the IRS is notified of the cost of replacement property, of an intention not to buy any, or of a failure to buy within the window.1042(f)

Two points are easy to miss. The deferral is limited to gain that “would be recognized as long-term capital gain,” so any part of a payment that is not long-term capital gain is outside it. And the 3-year holding period is a statute requirement even though the temporary regulation has not been updated, as the next section shows.

What the temporary regulation adds, and where it is out of date

The only regulation on the rule is 26 CFR 1.1042-1T, a question-and-answer temporary regulation. Its mechanics are still the working instructions for the election.

TopicWhat the regulation saysReference
The election“The election … shall be made in a statement of election attached to the taxpayer’s income tax return filed on or before the due date (including extensions of time) for the taxable year in which the sale occurs.” A late election cannot be made on an amended return, and “an election once made is irrevocable.”Q&A-3(a)
What the statement containsA description of the securities and shares, the date of the sale, the adjusted basis, the amount realized, the identity of the ESOP, and, if the sale was part of a prearranged single transaction with other sellers, their names and taxpayer identification numbers.Q&A-3(b)(1) to (6)
Statement of purchaseIf replacement property has been bought, the seller attaches a statement describing it, the date and the cost, which “must be notarized by the later of thirty days after the purchase or March 6, 1986,” plus the employer’s verified consent statement.Q&A-3(b)
Purchase not yet madeIf no replacement property has been bought when the return is filed, the election is not considered made unless the notarized statement of purchase is attached to the return for the following year.Q&A-3(c)
What counts as a purchaseReplacement property counts only if its basis is determined by reference to its cost; property taken with a carryover or exchanged basis does not.Q&A-1(e)
Several sellersSales by two or more taxpayers may be treated as a single sale for the 30% test if they are part of a single, integrated transaction under a prearranged agreement.Q&A-2(b)
Holding periodThe temporary text says the securities must have been held “for more than 1 year” at the time of the sale. Section 1042(b)(4) says at least 3 years. We rely on the statute, which is later in time.Q&A-1(b)(3); 1042(b)(4)

S corporations: out today, a 10% election from 2028

Because section 1042(c)(1)(A) requires a “domestic C corporation,” a shareholder of an S corporation cannot make the election on a sale of S corporation stock to an ESOP made through December 31, 2027. Congress changed that in the Secure 2.0 Act of 2022. Pub. L. 117-328, div. T, title I, sec. 114, provides that, “applicable to sales after Dec. 31, 2027,” section 1042(c)(1)(A) is amended to read “domestic corporation” and a new subsection (h) is added:

“In the case of the sale of qualified securities of an S corporation, the election under subsection (a) may be made with respect to not more than 10 percent of the amount realized on such sale for purposes of determining the amount of gain not recognized and the extent to which (if at all) the amount realized on such sale exceeds the cost of qualified replacement property.”

In our arithmetic, a $10,000,000 sale of S corporation stock after December 31, 2027 could therefore put at most $1,000,000 of the amount realized under the election. The Cornell Legal Information Institute text of section 1042 that we read on November 30, 2026 lists no amendment after Pub. L. 117-328, and the amendment is shown as a pending change to the section, not as current law. Many ESOP companies are S corporations, as the next section shows, which is why this date matters to the owners who ask about it.

The ESOP census: 6,505 plans in the Department of Labor’s 2024 file

The Form 5500 instructions for 2024 define the feature codes on line 8a: code 2O is an “ESOP other than a leveraged ESOP,” code 2P is a “Leveraged ESOP,” described as “An ESOP that acquires employer securities with borrowed money or other debt-financing techniques,” and code 2Q means “The employer maintaining this ESOP is an S corporation.” We read the Department of Labor’s Form 5500 data file for plan year 2024 (227,009 rows, the file the Department labels “latest”) and its Schedule H and Schedule I files for year-end assets, and counted every plan whose pension feature codes include 2O or 2P. A plan with 2O or 2P is counted once; 49 plans carry both and are counted as leveraged. We also found 78 plans with 2Q and neither 2O nor 2P, which we did not count, and 109 plans with an ESOP code whose plan year does not begin in 2024, also not counted.

Group (plan year 2024)PlansParticipants at start of yearTotal assets at year end
All plans coded 2O or 2P6,50515,513,381$2,287,236,674,276
Code 2Q present (S corporation sponsor)4,1481,276,466$233,431,816,711
of which leveraged (2P)2,906799,066$138,990,067,433
Code 2Q absent2,35714,236,915$2,053,804,857,565
of which leveraged (2P)949976,547$195,728,301,740
of which not leveraged (2O only)1,40813,260,368$1,858,076,555,825

All figures in the table are our arithmetic from the DOL file. Two readings follow. First, 63.8% of the ESOP plans in the file are at S corporations, but they hold 8.2% of the participants, because the largest plans are at big employers. Second, “code 2Q absent” is not a certificate that the sponsor is a C corporation; it only means the filer did not tick the S corporation code. And code 2O is used by plans of listed companies that hold employer stock, not only by closely held companies: the five largest plans without code 2Q, by year-end total assets, are those of Boeing, Microsoft, Bank of America, IBM and RTX, with $58 billion to $74 billion each. Those are not the companies a section 1042 sale looks like.

The size split shows where the small and midsize ESOP companies sit.

Total assets at year endCode 2Q absent: plansCode 2Q absent: participantsCode 2Q absent and 2P: plansCode 2Q present: plansCode 2Q present: participants
Under $1 million425293,98916646250,694
$1 million to under $10 million905105,5244201,545166,303
$10 million to under $50 million487183,8022531,465355,351
$50 million to under $250 million180252,43869540328,292
$250 million and over35913,401,13241135375,826

Among plans without code 2Q, 1,997 hold under $250 million and 908 of them are leveraged. Those 908 leveraged plans have a median of 76 participants and a median of $5,060,230 in total assets (our arithmetic). That is the nearest thing in the data to the size of company the reader of this page owns: a leveraged plan, that is a plan with debt behind it, at a company with a few dozen to a few hundred employees. The Form 5500 does not say which of them came from a section 1042 sale, so the census gives the size of the field, not the number of rollovers. Two plans in the file have no assets reported in the schedules and are left out of the asset columns.

What the plans earned

The Department of Labor’s Private Pension Plan Bulletin Historical Tables (September 2025), Table E22, compares the aggregate rate of return of ESOPs and 401(k)-type plans with 100 or more participants. The figures are the plans’ returns, which are a different thing from what a seller receives for the stock.

Year401(k)-type plansESOPs, totalESOPs, nonleveragedESOPs, leveraged
201920.1%19.9%20.1%18.9%
202014.1%12.0%12.6%8.9%
202114.9%16.7%16.4%18.9%
2022-15.0%-10.8%-12.1%-3.5%
202316.5%15.3%15.5%14.2%
Geometric mean 2009-20238.6%9.2%9.1%9.4%
Geometric mean 2014-20237.1%7.8%7.7%8.4%

A $10 million sale taxed two ways (our arithmetic)

Take an owner of a C corporation with no publicly traded stock who has held the shares for more than 3 years and sells $10,000,000 of stock with a basis of $1,000,000. The gain is $9,000,000. We apply the top federal long-term rate of 20% (26 U.S.C. 1(h)(1)(D)) and the 3.8% net investment income tax (1411(a)(1)) to the whole gain, which assumes the income is high enough for both and ignores the lower brackets and state tax. For the ESOP to own 30% afterwards, the company would be worth $33,333,333 or less if this $10,000,000 were the only block sold (our arithmetic).

CaseGain recognized nowFederal tax nowGain still deferredBasis in replacement property
A. Taxable sale, no election$9,000,000$2,142,000 ($1,800,000 + $342,000)$0Not applicable
B. Section 1042, $10,000,000 of replacement property$0$0$9,000,000$1,000,000
C. Section 1042, $7,000,000 of replacement property$3,000,000$714,000$6,000,000$1,000,000

In case C the amount realized exceeds the cost of replacement property by $3,000,000, which is the part 1042(a) leaves taxable; the deferred $6,000,000 reduces the basis of the $7,000,000 of property to $1,000,000 under 1042(d). After the sale the three paths for case B look like this.

What the seller does with the replacement propertyGain recognizedFederal tax at 23.8%Authority
Sells it for $10,000,000$9,000,000$2,142,0001042(e)(1)
Holds it until death, value $10,000,000 at death$0 on the deferred gain; the heirs’ basis is $10,000,000$01042(e)(3)(B); 1014(a)(1)
Gives it awayNo recapture on the transfer by gift$0 at the transfer1042(e)(3)(C)

The sale of the replacement property is taxed on the deferred gain, so the deferral is a timing difference unless the property is held until death or transferred in one of the ways 1042(e)(3) lists. The step-up rule is the general one: “the basis of property in the hands of a person acquiring the property from a decedent or to whom the property passed from a decedent shall … be the fair market value of the property at the date of the decedent’s death.” Whether a particular estate gets that result, and what estate tax does to the same property, are questions for the estate’s own advisers; our pages on stepped-up basis for inherited real estate and the tax on inheritance by asset show how the basis rule works elsewhere. For how the 3.8% tax works on a sale, see our page on the net investment income tax.

What the deferral costs after the sale

The Code attaches conditions to the shares the ESOP buys and to the replacement property. These are the ones in the text we read.

ConditionWhat the text saysSection
No allocation to the seller and related personsThe plan must provide that no assets attributable to the purchased employer securities “may accrue (or be allocated directly or indirectly under any plan of the employer meeting the requirements of section 401(a))” during the nonallocation period for the electing taxpayer or for an individual related to the taxpayer under section 267(b).409(n)(1)(A)
25% holdersThe same bar applies, and subparagraph (B) does not repeat the nonallocation period, to any other person who owns, after section 318(a) attribution, more than 25% of any class of stock or of the total value of any class of the company or its controlled group.409(n)(1)(B)
Lineal descendantsThe bar for related individuals does not apply to lineal descendants if the total allocated to all of them during the nonallocation period stays within 5% of the employer securities attributable to a related seller’s sale.409(n)(3)(A)
Length of the period“The later of” 10 years after the date of the sale or the date of the plan allocation attributable to the final payment of acquisition debt for the sale.409(n)(3)(C)
Penalty for an allocationA 50% tax on the allocation or ownership involved; the plan is treated as having distributed the amount to the person concerned.4979A(a); 409(n)(2)
Selling down within 3 yearsIf the plan disposes of qualified securities within 3 years and then holds fewer shares than right after the sale or less than 30% of the value, a tax of 10% of the amount realized on the disposition applies.4978(a), (b)(1)
Selling the replacement propertyGain is recognized up to the gain not recognized; the replacement basis was cut by that gain when it was bought.1042(d), (e)(1)

Read together with the table above, the tax cost is a deferral of $2,142,000 in our example against a set of conditions that run for 10 years or more: the seller and family cannot be allocated those ESOP shares, and the replacement property either stays invested in securities of operating corporations or the tax comes due. The documents we saved do not give transaction costs, such as valuation, trustee or legal fees, or the prices ESOPs pay compared with private equity bids, and we do not estimate them. The same is true of the tax result of a sale to a private equity buyer or a competitor; our page on selling a business, asset sale against stock sale sets out the ordinary rules, the page on earn-outs, escrows and seller notes covers deferred payments, and the page on the QSBS exclusion covers a different way to reduce tax on C corporation stock.

What this page cannot tell you

The Form 5500 file records plans, not deals. It does not say how many owners made the section 1042 election, what replacement property they bought or what price the ESOP paid. The instructions for the form say what the feature codes mean; they do not verify that every filer ticked them correctly. We did not read plan documents, valuations, trustee reports or IRS rulings on individual elections, and the temporary regulation has not been updated for the changes made since 1986. State tax treatment of a section 1042 election varies and is not covered.

What a reader can do with this

  • Check whether the company is a domestic C corporation with no publicly traded stock today, since an S corporation sale falls outside the rule until 2028 and then under a 10% cap.
  • Count backward from the planned closing date: the stock needs a 3-year holding period, and the replacement window runs from 3 months before the sale to 12 months after it.
  • Ask whether any holder who would be barred from allocations under section 409(n) is also a seller, a family member or an owner of more than 25%.
  • Compare the tax in the year of sale with the later recapture, and with the basis rule at death, using the figures of the actual sale rather than our example.
  • Keep the deadlines in one list: the election goes on the return for the year of sale, and the temporary regulation asks for a notarized statement of purchase.

Update alert · free

An email when the employee stock ownership plan sale taxes numbers change

When a rate, rule or filing behind this page changes: what changed, the one number that matters, and the source to check it yourself.

FAQ

Sources: 26 U.S.C. 1042, 409, 1014, 1411, 165, 1, 4978 and 4979A (Cornell Legal Information Institute, read November 30, 2026); Pub. L. 117-328, div. T, title I, sec. 114, as noted in the Cornell text of section 1042; 26 CFR 1.1042-1T (Cornell LII, read November 30, 2026); Instructions for Form 5500 (2024), line 8a plan characteristic codes, Department of Labor; Form 5500, Schedule H and Schedule I data files for plan year 2024 (“latest” files, Department of Labor, EBSA); Private Pension Plan Bulletin Historical Tables and Graphs 1975-2023, Table E22 (Department of Labor, September 2025). The census and the worked examples are our arithmetic from those documents. This is analysis of public documents, not investment, legal or tax advice.

Affiliate Disclosure: Some links are affiliate links. We may earn a commission at no extra cost to you. This does not affect our ratings. Learn more.