If your company started as a C corporation and later elected S status, selling it may not be taxed just once. A sale inside a set window after the election can trigger a corporate-level tax called the built-in gains tax, on top of the tax your shareholders pay on the gain. This post explains who can be reached, how the window works and how deal structure changes the outcome.
You will get the conditions, the dates, the trade-offs between an asset sale, a stock sale and a section 338(h)(10) election, and a checklist to bring to a tax adviser before you list. It is a planning guide, not tax advice. Your election history and facts decide what applies to you, so confirm the details with a tax adviser or attorney.
Why an S corporation sale is not always taxed once
Most owners learn that an S corporation is a pass-through entity: income and gain flow to the shareholders and are taxed on their personal returns, not at the corporate level. For a company that has been an S corporation since the day it was formed, that is generally the whole story.
The built-in gains tax is the exception. Under Internal Revenue Code section 1374, if an S corporation has a net recognized built-in gain in a taxable year that begins within the recognition period, a tax is imposed on the corporation’s income for that year. You can read the statute at the Office of the Law Revision Counsel’s page for 26 U.S.C. 1374. The rule exists so that a C corporation cannot switch to S status just before selling appreciated assets and escape the corporate-level tax on that appreciation.
S corporations are a large part of the filing population, so this question comes up often. The IRS received 6,080,370 S corporation income tax returns in 2024, up from 5,882,030 in 2023, compared with 2,252,027 C corporation income tax returns in 2024 and 2,464,836 in 2023, according to the IRS Data Book as summarized by Barbara Weltman at Big Ideas for Small Business. Those are return counts, not a count of converted companies, but they show how many owners may need to ask whether C corporation history is in their past.

The tax applies only to S corporations with C corporation history. A corporation that has been an S corporation since formation is not subject to it. So the first job is simple: find out which kind of S corporation you own.
Who the built-in gains tax can reach
Two situations commonly put an S corporation in range.
- Former C corporations. You formed the company as a C corporation, or inherited one, and later filed an S election. The assets you held on the day the election took effect may carry appreciation that was never taxed at the corporate level.
- Carryover-basis assets. An S corporation can also receive assets from a C corporation in a transaction where the S corporation takes over the C corporation’s tax basis, such as certain mergers or reorganizations. Those assets may carry their own built-in gain, and the clock for them may start on a different date than your election date. Ask your adviser to trace it.
If you formed an LLC, a partnership or a sole proprietorship and later elected S status, the answer depends on how the entity was taxed before the election. Do not assume. Pull the entity history: formation documents, every tax election, and the first tax return filed as an S corporation.
The statute also sets the burden of proof. Recognized built-in gain means gain recognized during the recognition period on the disposition of any asset, except to the extent the S corporation establishes that the gain falls outside the rule. The burden of showing this is on the corporation. That is why records from the conversion date matter, and we come back to this in the checklist below.
The recognition period: when it starts and when it ends
The statute defines the recognition period as the 5-year period beginning with the first day of the first taxable year for which the corporation was an S corporation. Two practical points follow.
- The clock starts on the first day of your first S year, not the day you signed the election or the day your accountant filed it. Confirm the effective date from the IRS acceptance of your election.
- It ends five years after that start. A sale just inside the end of the period can be treated very differently from a sale just outside it. Have your adviser calculate the exact last day rather than counting on your fingers.
Only gain recognized during the period is recognized built-in gain. Gain recognized after the period closes falls outside this tax, which is why timing is one of the biggest levers owners have.
Older conversions may have had a longer period
The five-year period has not always been the rule. The recognition period was originally 10 years. It was cut to 7 years for 2009 and 2010 and to 5 years for 2011 through 2014. The PATH Act of 2015 made the 5-year period permanent for tax years beginning after December 31, 2014. These dates are covered in guides such as Elevated Tax Strategies’ overview of the 5-year window.
If you converted long ago, confirm which period applied to your conversion date. Do not assume the current rule governs a conversion from a different era. Your tax adviser can tell you whether any older period still matters for your company.
How the tax is measured and what can reduce it
The built-in gains tax is computed by applying the highest corporate rate under section 11(b) to the net recognized built-in gain for the year. A May 2026 explainer on section 1374 puts that rate at 21% currently. Because the corporation pays the tax, it is a cost the company bears before the remaining gain reaches your personal return. Ask your adviser to model how the corporate-level tax and your personal-level tax fit together on the actual deal.
Several things shape the size of the bill:
- Net recognized built-in gain, not total gain. The tax reaches the built-in appreciation that existed when the company became an S corporation, and the rules generally look at the value of the assets at that time. Appreciation that happened after conversion is a different matter. This is where a valuation from the conversion date can matter. The corporation carries the burden of showing which part of the gain is outside the rule, so a documented record can be worth real money.
- Net operating loss carryforwards. Net operating loss carryforwards from C corporation years that exist on the conversion date can offset built-in gains recognized during the recognition period. If your company had losses in its C years, ask whether any carried over.
- Other limits and credits. The statute has additional limits and adjustments that go beyond what this post covers. Your adviser should run the full computation instead of estimating from the headline rate.
Do not estimate your bill from a rule of thumb. A sale price that looks the same on paper can produce very different tax results depending on what was sold, when, and in what form.
Asset sale, stock sale and the 338(h)(10) election: what changes for you
Buyers and sellers often want different structures. Buyers frequently prefer to buy assets, partly for the stepped-up tax basis. Sellers often prefer to sell stock for simplicity. When the company has C corporation history inside the recognition period, the choice also decides whether the built-in gains tax is in play. For a broader look at how structure affects your take-home, see Which Sale Structure Maximizes Your After Tax Proceeds?
Asset sale
In an asset sale, the corporation sells its assets, and the corporation recognizes the gain. That is the kind of disposition the built-in gains rule is written for. If the sale closes inside the recognition period, some or all of the gain may be recognized built-in gain taxed at the corporate level, in addition to what passes through to you. The purchase price also has to be allocated across asset classes, which affects the character of the gain; see Form 8594 Purchase Price Allocation: A Seller’s Guide. Equipment you have depreciated can also produce ordinary income; our post on depreciation recapture when you sell a business explains that piece.
Stock sale
In a straight stock sale, the shareholders sell their shares and the corporation does not sell its assets. Because the corporation is not the one disposing of assets, a plain stock sale is generally not the kind of event that triggers the corporate-level tax. Confirm this with your adviser for your facts, since related steps in a deal, such as a pre-closing restructuring, can change the picture. The trade-off is on the buyer’s side: a buyer who purchases stock generally does not get the stepped-up basis that an asset purchase provides, and may push back on price or terms because of it.
The 338(h)(10) election
The election exists to bridge those two preferences. A section 338(h)(10) election lets a buyer and seller treat a qualifying stock purchase of an S corporation as a deemed asset sale for federal tax purposes. The buyer gets asset-purchase tax treatment, and you still sign a stock purchase agreement.
The catch for former C corporations is the one this post is about. An S corporation that converted from a C corporation may also owe section 1374 built-in gains tax on the deemed sale. In other words, the election can bring back the very tax a plain stock sale might have avoided. In a 338(h)(10) transaction the S shareholders are treated as selling interests in assets, and they may recognize ordinary income on recapture and capital gain on the balance, as explained in Cummings Law’s guide to executing the election.
So if a buyer asks for this election and your company is inside the recognition period, price the corporate-level tax into the negotiation before you agree.
The 338(h)(10) conditions
This election has strict conditions. If any one is missing, it is not available. Here is what a seller needs to confirm:
- Buyer percentage. It is available only if the buyer acquires at least 80% of the target’s stock by vote and value in a qualified stock purchase, as of the publication of The Tax Adviser’s September 2026 article on 338(h)(10) elections. The election is made jointly by buyer and seller on Form 8023.
- Corporate buyer. The buyer must be a corporation, because individuals and partnerships cannot make a qualified stock purchase. An individual buyer or a buyer that is a partnership cannot make this election directly, so some buyers use a corporate acquisition vehicle. That is a structuring question for their advisers.
- Every shareholder signs. For an S corporation target, every shareholder must consent to the election, including shareholders who are not selling. A refusal to sign defeats the election, and the sellers cannot force a minority holder to consent. If you have family members, former partners or inherited shares on the cap table, find out early whether each of them will cooperate.
- The Form 8023 deadline. The election must be filed on Form 8023 by the 15th day of the ninth month after the month in which the qualified stock purchase occurs, as laid out in Ebot CPA’s overview of section 338(h)(10) elections. Put the date on the closing calendar as soon as the closing date is set.
- It is irrevocable. Once made, the election cannot be undone. Settle the tax modeling before anyone signs Form 8023, not after.
Each shareholder’s signature is also a negotiation point. If one shareholder can block the election, the buyer may ask you to deliver all signatures as a closing condition, or may reprice the deal if you cannot. Build that into the schedule.
Timing and structure questions to settle before you list
Most of the leverage in this area comes from asking questions before you go to market, when you still have choices. Work through these with your tax adviser or attorney:
- Did we ever have C corporation history? Check formation records, prior entity types and any mergers or reorganizations that brought in assets from a C corporation.
- What is our exact recognition period? Get the effective date of the S election and the date the period ends, and confirm which version of the rule applies to your conversion date.
- Where does a realistic closing date fall? If the period is close to ending, a closing date a few weeks earlier or later can change which side of the line the sale lands on. Do not move dates for tax reasons alone without checking the business and deal risks of waiting, such as buyer financing, seasonality and your own readiness.
- How much of the gain is built-in? Ask whether a valuation as of the conversion date exists. If not, whether one can still be built from the records you have.
- Do we have any carried-over losses? Net operating loss carryforwards from C corporation years that exist on the conversion date can offset built-in gains, so find out whether any exist and whether they have been used.
- Which structures will we accept? Decide whether you will entertain an asset sale, a stock sale or a 338(h)(10) election, and what price difference makes each one worthwhile. A buyer who wants asset treatment may be willing to adjust price to cover the corporate-level tax, but that is a negotiation, not a given.
- Can we deliver every shareholder’s signature? If a 338(h)(10) election is on the table, identify any holder who might refuse.
- Will we take part of the price over time? Seller financing and installment treatment interact with these rules in ways your adviser should check. Our post on what tax you can defer in an installment sale is a good starting point.
Bring the answers into your first conversation with prospective buyers. A seller who can explain the structure options clearly tends to have a smoother negotiation than one who discovers the tax issue after a letter of intent is signed.
Confidential, organized sale prep: what to gather for your tax adviser and buyers
A tax question like this one is also a records question. The same folder helps with your adviser, with buyer due diligence and with proving the facts the statute puts on you. Assemble it before you list, and share it only under a confidentiality agreement with qualified parties.
- Entity history. Articles of incorporation, any conversions or mergers, the S election filing and the IRS acceptance letter showing the effective date.
- Conversion-date records. The balance sheet and fixed asset register as of the day the S election took effect, plus any appraisal or valuation from that period. These are the documents that help show what part of a later gain is outside the rule.
- Loss history. Prior-year C corporation returns showing any net operating loss carryforwards and how they were used.
- Cap table. A current list of every shareholder, including non-selling and minority holders, with contact details and any shareholder agreement terms on consent or drag-along rights.
- Depreciation schedules. These help your adviser estimate recapture on an asset sale or a deemed asset sale.
- Draft allocation thinking. A first view of how price might be split across asset classes if the deal is treated as an asset sale.
Keep the tax analysis out of the marketing materials. Buyers need financials and operating information to make an offer, while the details of your tax position are for you, your adviser and, later, the deal team. Our guides on documents needed to sell and keeping the process private will help you decide what to share and when.
Next steps: confirm your S election history with a tax adviser or attorney
Here is a short path you can start this week:
- Confirm whether your company was ever a C corporation, or ever acquired assets from one in a carryover-basis transaction.
- Pin down the effective date of your S election and the exact end of the recognition period, and ask which version of the rule applies to your conversion date.
- Ask your adviser to estimate the corporate-level tax under an asset sale and under a 338(h)(10) election, using your own numbers and the current rate.
- Decide which structures you will entertain, and what you need from every shareholder if an election is on the table.
- Build the records folder, then start your sale process with the answers in hand.
The rules above are general descriptions, and your outcome depends on your entity history, your assets, your shareholders and the closing date. A tax adviser or attorney who has seen your election paperwork can turn this into a real number.
If you are planning a sale and want a modern way to run it, Unbroker combines expert advisors, AI-driven buyer matching and national marketing in a confidential process. Our Full Service Business Sale charges a 6% success fee, paid when the business sells, and it is built to work alongside the tax adviser who knows your S corporation history.





