Can selling my company to an ESOP defer the capital gain?
Check whether the rules fit your situation, then review the worked example, requirements and records.
Available to qualifying C corporation shareholders
Reviewed by Ebot Mbi, CPA, EA · Last reviewed · Law and figures current as of September 17, 2026
How it works
Check eligibility
Match the strategy to your facts, entity, timing, and the rules that apply.
Work through the numbers
Use the stated assumptions and compare the tax result with the cost and trade-offs.
Document and file
Keep contemporaneous records. Your external tax preparer handles return preparation and filing; this is not a tax-preparation service.
Which sounds like you?
Terms used in this guide
A deduction reduces taxable income; a credit reduces calculated tax; deferral changes when tax is due.
The Internal Revenue Code (IRC) is federal tax law; Treasury regulations explain its rules; IRS publications explain the agency's guidance.
- basis:
- the tax amount used to measure gain, loss or allowable deductions.
- S corporation:
- a corporation with an election generally passing tax items to shareholders.
- NIIT:
- net investment income tax, an additional tax that applies under specified conditions.
In brief
Yes, if you qualify. IRC §1042 lets a shareholder who sells qualified securities of a domestic C corporation to an employee stock ownership plan (ESOP) defer long-term capital gain. The ESOP must own at least 30% after the sale, you must have held the stock at least three years, and you must buy qualified replacement property within the replacement period and make a timely election.
Gain is deferred only to the extent you reinvest.
Key takeaways
- Only stock of a domestic C corporation with no readily tradable stock qualifies; S corporation stock does not.
- The ESOP must own at least 30% of each class of stock or of total value immediately after the sale.
- You must have held the stock at least three years and must buy replacement property from 3 months before to 12 months after the sale.
- The election is made on a timely filed return, including extensions, with the employer's written consent, and it is irrevocable.
- Deferred gain reduces the basis of the replacement property; property held until death generally receives a new basis under §1014.
What it is
An employee stock ownership plan is a qualified retirement plan that invests primarily in the employer's stock. Selling to an ESOP can provide a buyer for a closely held company while keeping the business independent and giving employees an ownership stake.
For owners of C corporations, §1042 adds a tax benefit: the capital gain on the sale can be deferred if the proceeds are reinvested in qualified replacement property, generally securities of domestic operating corporations.
What the law says
IRC §1042(a) provides that, if the taxpayer elects, buys qualified replacement property within the replacement period, and meets the requirements of §1042(b), long-term capital gain on the sale is recognized only to the extent the amount realized exceeds the cost of the replacement property.
Section 1042(b) requires that the sale be to an ESOP or eligible worker-owned cooperative; that the plan own at least 30% of each class of outstanding stock or of the total value of all outstanding stock immediately after the sale; that the taxpayer file a verified written statement of the employer consenting to the related excise tax rules; and that the taxpayer's holding period be at least three years at the time of sale. Section 1042(c) limits qualified securities to employer securities of a domestic C corporation that has no readily tradable stock, and defines the replacement period as beginning 3 months before and ending 12 months after the sale.
Treas. Reg. §1.1042-1T explains that the election is made by a statement attached to the return for the year of sale, filed by the due date including extensions, with notarized statements of purchase of the replacement property, and that the election, once made, is irrevocable.
Requirements and tests
All of the following must be met:
- The corporation is a domestic C corporation with no stock readily tradable on an established securities market.
- The securities were not received as a distribution from a qualified plan or through certain compensatory options or transfers.
- You held the stock at least three years at the time of sale.
- The ESOP owns at least 30% of each class of outstanding stock, or of total value, immediately after the sale, after applying the option attribution rule of §318(a)(4).
- The employer signs a written consent to the excise tax provisions.
- You buy qualified replacement property from 3 months before to 12 months after the sale.
- You make the election on a timely filed return, including extensions, with the required statements.
How it works
The ESOP trustee, advised by an independent appraiser, negotiates the purchase price, which cannot exceed fair market value. The ESOP often borrows to fund the purchase, and the company repays the loan through contributions to the plan.
You reinvest the proceeds in qualified replacement property: stocks and bonds of domestic operating corporations that meet the passive income limits, not securities of the company you sold. Gain is deferred to the extent of the reinvestment, and the replacement property takes a reduced basis equal to its cost minus the deferred gain.
When you later sell replacement property, the deferred gain attached to it is recognized. If you hold the replacement property until death, your heirs generally receive a basis equal to its fair market value under §1014, which means the deferred gain is not taxed to them.
State tax treatment may differ, so check your state's conformity. Texas has no individual income tax.
Assumptions: Tax year 2026; the seller is married filing jointly, lives in Texas, and sells stock with a $500,000 basis, held for more than three years, to the ESOP for $5,000,000.; All §1042 requirements are met; the ESOP owns at least 30% after the sale.; The seller's other income already exceeds the $613,700 top of the 2026 joint 15% band and the $250,000 NIIT threshold, so recognized gain is taxed at 20% plus the 3.8% net investment income tax (23.8%).
| Gain realized ($5,000,000 − $500,000) | $4,500,000 |
|---|---|
| No election: tax at 23.8% | $1,071,000 |
| Full reinvestment of $5,000,000: gain recognized | $0 |
| Full reinvestment: basis in replacement property ($5,000,000 − $4,500,000) | $500,000 |
| Partial reinvestment of $3,000,000: gain recognized ($5,000,000 − $3,000,000) | $2,000,000 |
| Partial reinvestment: tax at 23.8% | $476,000 |
| Partial reinvestment: basis in replacement property ($3,000,000 − $2,500,000) | $500,000 |
Full reinvestment defers all $4,500,000 of gain, while reinvesting $3,000,000 defers $2,500,000; in both cases the deferred gain stays attached to the replacement property.
Illustration only; not a projection of your results.
Risks and IRS scrutiny
ESOP transactions are regulated by both the IRS and the Department of Labor. Valuation is the most scrutinized issue, because an ESOP cannot pay more than fair market value. On the §1042 side, common errors include missing the replacement period, buying ineligible replacement property, failing to attach the notarized statements, and missing the 30% test.
After the sale, allocations of the sold stock to certain family members and 25% shareholders are prohibited, with excise taxes under §4979A.
Who it is not for
The §1042 deferral is not available to S corporation shareholders or to owners of publicly traded companies. It is not for a seller who needs the proceeds in cash, because selling the replacement property triggers the deferred gain. It is not for a seller who has held the stock less than three years.
And an ESOP sale is not for a company that cannot support the plan's repurchase obligations and ongoing administration.
How ebotCPA helps
We test the §1042 requirements, model the deferral against a taxable sale, coordinate the replacement property purchases and timeline, and prepare the election and statements. We work alongside the ESOP trustee, the appraiser, and ERISA counsel. We coordinate with your attorney, who drafts the legal documents.
Book a $497 Case Analysis to have Ebot Mbi, CPA, EA review your facts before you act.
Frequently asked questions
Can S corporation owners use the 1042 rollover?
Not for sales in 2026 or 2027. IRC §1042(c)(1) currently limits qualified securities to stock of a domestic C corporation with no readily tradable stock. For sales after December 31, 2027, SECURE 2.0 lets S corporation shareholders elect to defer gain on up to 10% of the amount realized.
Some S corporations revoke their election before an ESOP sale to get the full deferral; that decision needs careful modeling.
What counts as qualified replacement property?
Securities of domestic operating corporations that meet the statute's passive income limits, other than securities of the corporation that issued the sold stock.
When must I reinvest?
Within the replacement period, which begins 3 months before the sale and ends 12 months after it.
Is the deferred gain ever eliminated?
If you hold the replacement property until death, your heirs generally take a fair market value basis under §1014. If you sell it, the deferred gain attached to it is taxed.
