Skip to main content

Selling an S-Corp: Asset Sale vs. Stock Sale

Asset vs. stock sale in an S-corp exit: the buyer-seller standoff, 338(h)(10) election, built-in gains tax exposure, and Form 8594 allocation, explained.

Jump to section
  1. #Why buyers and sellers start every deal in different corners
  2. #The asset sale: what it costs you as the seller
  3. #The stock sale: why you prefer it and what the buyer risks
  4. #The 338(h)(10) election: one election, two happy parties
  5. #The 336(e) option: when the buyer will not consent
  6. #Built-in gains tax: the C-corp conversion trap
  7. #Allocating purchase price with Form 8594
  8. #Common questions

TLDR

When you sell an S-corp, buyers want an asset sale (they get a stepped-up basis, more depreciation, and a clean break from your liabilities). Sellers want a stock sale (one level of tax, long-term capital gain rates, simpler exit). On a $5M deal, that disagreement can swing $200K to $400K in after-tax proceeds for the seller. The bridge is the §338(h)(10) election: the deal closes as a legal stock sale, but both parties elect to treat it as a deemed asset sale for tax purposes. One level of tax. Buyer gets the step-up. Two traps to check first: (1) if your S-corp converted from a C-corp within the last 5 years, built-in gains tax under IRC §1374 can add a 21% entity-level tax on appreciated assets before gain reaches you; and (2) the purchase-price allocation on Form 8594 must match between buyer and seller exactly, because IRS computers cross-check both filings.

In this guide, you’ll learn:

  • Understand why buyers and sellers want different deal structures, and what each costs in real dollars on a typical exit
  • See how the §338(h)(10) election turns a stock sale into a deemed asset sale, giving the buyer the step-up while you pay one layer of tax
  • Learn when §336(e) gives you the same result even when the buyer will not consent to the joint election
  • Calculate whether built-in gains tax will reduce your exit proceeds, and by how much
  • Allocate purchase price correctly on Form 8594 so both parties file consistent numbers and avoid audit flags

#Why buyers and sellers start every deal in different corners

Every S-corp exit starts the same way: the buyer’s counsel and your counsel walk into the letter-of-intent stage with completely different structures in mind. This is not stubbornness. It is economics.

#The buyer’s case for an asset sale

Buyers want an asset purchase. When a buyer acquires a business’s assets, they get to “step up” the tax basis of every asset to the purchase price. That means the buyer can depreciate equipment at the new higher value, amortize goodwill and intangibles over 15 years under IRC §197, and potentially accelerate deductions through bonus depreciation under §168(k). On a deal with $4M of goodwill and intangibles, a buyer with a 21% corporate rate captures $840,000 of future tax deductions from the step-up alone. That is real money, and it affects what they are willing to pay.

An asset purchase also gives the buyer a clean break from the seller’s history. Unknown tax exposures, pending litigation, prior-year audit risk, and undisclosed payables all stay with the seller’s legal entity, not the buyer. For buyers, the logic is simple: pay for what you want, leave behind what you do not.

#The seller’s case for a stock sale

You want a stock sale. Your S-corp shares are capital assets under IRC §1221. When you sell, the entire gain is taxed once at long-term capital gain rates (0%, 15%, or 20% federal depending on your income level) plus the 3.8% Net Investment Income Tax (NIIT) once income exceeds the threshold. One level of tax, capital gain character, clean exit.

An asset sale is far messier for you. The S-corp sells its assets, the gain flows through on your Schedule K-1, and the character of the gain depends on what you sold. Accounts receivable and inventory? Ordinary income, taxed at up to 37% federal. Equipment with accumulated depreciation history? §1245 recapture converts those prior deductions back into ordinary income. Only goodwill and going concern produce capital gain. You end up with a patchwork of ordinary and capital income on the same exit — and you pay more overall.

#The dollar gap on a real deal

Just so you know, this gap is not theoretical. On a $5M exit with $500K of net asset tax basis, assume $2M of gain characterized as ordinary income (from recapture and receivables) and $2.5M as capital gain:

  • Asset sale federal tax: roughly $740K ordinary income tax + $595K capital gains tax = $1.335M total
  • Stock sale federal tax: $4.5M all at capital gain rates = roughly $1.071M total
  • Difference: $264K more in your pocket from a stock sale, before state taxes

That gap is why every deal involves a structural negotiation, and why the §338(h)(10) election was created.

  • $264K

    Seller's advantage in stock sale

    Illustrative $5M deal at 37% ordinary / 23.8% LTCG federal rates

  • 21%

    Buyer's step-up benefit rate

    Future deductions at current C-corp rate, §168(k) eligible assets

  • 5 yrs

    Built-in gains recognition window

    C-corp to S-corp conversions, per IRC §1374

Illustrative only. State taxes vary. Assumes no phase-outs, no QSBS exclusion. Not a substitute for deal-specific analysis.

#The asset sale: what it costs you as the seller

In a straight asset sale, the S-corp sells each category of asset separately. Tax character depends on the asset class.

#Ordinary income assets

  • Accounts receivable that arose in the ordinary course of business: ordinary income
  • Inventory held primarily for sale to customers: ordinary income
  • Equipment and machinery with accumulated depreciation: §1245 recapture converts prior deductions back into ordinary income up to the amount previously claimed

These categories often represent a large share of deal value for service businesses and product companies. If your business has $1M of accounts receivable and $500K of depreciated equipment, that is $1.5M of ordinary income right there before any goodwill.

#Capital gain assets

  • Goodwill (Class VII in Form 8594 allocation): long-term capital gain, taxed at preferential rates
  • Going concern value: long-term capital gain
  • Customer lists and certain §197 intangibles held more than one year: generally capital gain, though specific facts can shift some to ordinary income

#When sellers accept asset sales anyway

Asset sales do happen and are sometimes the right call. They tend to work when:

  • The business has minimal depreciable assets and most value is in goodwill (software companies, consultancies)
  • The buyer is offering a price premium of 5 to 15% to compensate for the seller’s tax inefficiency
  • The seller’s basis in S-corp stock is already close to the purchase price, so the ordinary vs. capital distinction matters less on a small overall gain

Know your number before you sit down at the table.

#The stock sale: why you prefer it and what the buyer risks

In a stock sale, you sell your S-corp shares directly to the buyer. The buyer steps into your shoes as the S-corp’s shareholder.

#What you get as the seller

Your gain is long-term capital gain, assuming you have held the shares more than one year. The character question (ordinary vs. capital) disappears. Federal rates top out at 20% plus 3.8% NIIT for high earners. The entire deal is simpler to report and model.

One thing to track carefully: your outside basis in the S-corp shares determines the total gain on the sale. If you have operated the S-corp for years with retained earnings, allocated losses, or contributed property, your basis may be substantially different from your original investment. Calculating it correctly before you agree to a sale price matters. If you are not sure where your basis stands, read our guide to S-corp shareholder basis tracking before you get to the closing table.

One more item worth checking: if your S-corp qualifies as a qualified small business corporation (QSBC), gain on a stock sale may partially or fully qualify for the §1202 exclusion on up to $10M of gain. The qualification rules are strict (C-corp shares, issued after August 10, 1993, held for more than 5 years). Most S-corp stock will not qualify because §1202 requires C-corp shares, not S-corp shares. But if your S-corp has ever been a C-corp and the stock was structured to preserve §1202 eligibility, it is worth checking. See QSBS and the §1202 exclusion for the details.

#What the buyer inherits and why they push back

The buyer acquires the stock and now owns the S-corp as-is:

  • Carryover tax basis in all underlying assets — no step-up anywhere
  • Historical tax liabilities and any open prior-year audit periods
  • Unknown or contingent liabilities that may surface months after close
  • Potential built-in gains tax exposure if the S-corp previously converted from a C-corp

Because of this risk package, most sophisticated buyers will not accept a pure stock deal without heavy due diligence, representations-and-warranties insurance, escrow holdbacks, or a meaningful price reduction. Stock sales happen, but they require a buyer who is comfortable holding the entity’s history.

#The 338(h)(10) election: one election, two happy parties

IRC §338(h)(10) was designed for exactly this situation: buyers who want asset economics, sellers who want stock economics.

#How it works

The transaction closes as a legal stock sale. Both the buyer and seller jointly elect on Form 8023 to treat the deal as a deemed asset sale for tax purposes. Under this election, the target S-corp is treated as if it sold all its assets at fair market value to a hypothetical unrelated buyer, then liquidated and distributed the proceeds to shareholders.

The result for each party:

  • Buyer: receives a full stepped-up basis in all target assets, allocated across Classes I through VII via Form 8883 (the asset allocation statement that accompanies Form 8023)
  • Seller: pays one level of tax, with gain character determined by the deemed asset allocation (negotiated in the purchase agreement)
  • Legal structure: remains a stock transfer, which keeps the seller’s liability profile closer to a stock deal

For S-corps (which already avoid double tax as pass-through entities), the §338(h)(10) election is primarily about giving the buyer the step-up while keeping the legal transaction clean. Both parties benefit.

#Who qualifies

For an S-corp target, three conditions must be met:

  • The buyer must be a corporation (individuals, partnerships, and PE funds buying directly do not qualify)
  • The buyer must make a qualified stock purchase (QSP): at least 80% of the target’s stock by vote and value, within a 12-month period
  • Every S-corp shareholder must consent to the election, not just those who are selling (because it affects the final pass-through K-1s that all shareholders receive)

#The deadline: do not miss it

The §338(h)(10) election must be filed no later than the 15th day of the 9th month after the month in which the acquisition date falls. The acquisition date is the first day the buyer’s ownership reaches 80%, which is not always the closing date. Miss this deadline and the election is gone permanently.

#Character still matters inside the election

Even with a §338(h)(10) election, the deemed asset sale produces ordinary income on recapture assets, receivables, and inventory. The seller does not escape ordinary income treatment entirely. The advantage is one level of tax and a negotiated allocation. Sellers should push for more of the purchase price to be allocated to Class VII goodwill (capital gain) and less to Class V equipment (recapture) or Class VI non-compete agreements (ordinary income). That negotiation lives in the purchase agreement, not in the tax filing.

Asset sale vs. stock sale vs. 338(h)(10) election: what each structure means for you
Asset SaleStock Sale338(h)(10) Election
Legal structure S-corp sells assets; entity survives or dissolves after closingShareholders sell stock; entity and all assets transfer to buyerShareholders sell stock; treated as deemed asset sale for tax only
Seller's tax character Mixed: ordinary income + capital gain (recapture on equipment, ordinary on AR and inventory, capital on goodwill)Long-term capital gain on entire proceeds (cleanest exit for seller)Mixed: ordinary income + capital gain (same as asset sale, determined by the agreed Form 8883 allocation)
Buyer gets basis step-up? Yes — full step-up to purchase price on all acquired assetsNo — inherits seller's historical (often low) carryover basisYes — full step-up via Form 8883 allocation, same as asset sale
Buyer must be a corporation? No — any buyer structure works for an asset purchaseNo — any buyer can buy stockYes — §338(h)(10) requires a corporate buyer making a QSP
Historical liabilities stay with seller? Yes — buyer starts with clean slate on entity historyNo — buyer inherits entity and all its prior-year baggagePartially — legal stock sale, but reps and warranties typically protect the buyer on pre-close issues
Best for Buyers who need maximum depreciation benefit and clean liability separationSellers with minimal recapture exposure who want a pure capital gain exitDeals where the buyer needs the step-up and the seller needs one level of tax

The §338(h)(10) election requires both parties to agree. What if the buyer is a PE fund, a family office, or an individual? Or what if the buyer simply refuses to make the joint election?

IRC §336(e) (finalized in Treasury Regulations published May 15, 2013) extends similar treatment to situations where the buyer’s consent is not available or not feasible.

#How 336(e) differs from 338(h)(10)

Three key differences:

  • The buyer does not need to be a corporation. Any buyer structure can receive 336(e) treatment.
  • Multiple dispositions aggregate. You can sell to multiple buyers over 12 months and combine the sales to reach the 80% threshold.
  • The seller makes the election unilaterally. Buyer consent is not required. The seller and the target entity enter a binding election agreement and attach a §336(e) election statement to the relevant tax return.

The tax result is economically identical to §338(h)(10): deemed asset sale, step-up basis for the buyer, one level of tax for the seller. There is no standalone IRS form yet for §336(e) elections; practitioners use a modified Form 8883 to document the deemed asset disposition.

Look: if your deal structure rules out §338(h)(10) because your buyer is a PE fund or individual, ask your advisor whether §336(e) applies before you accept that asset sale terms are the only option.

#Built-in gains tax: the C-corp conversion trap

If your S-corp was ever a C-corp, or if it acquired assets in a carryover-basis transaction from a C-corp, there is one more layer to check: built-in gains (BIG) tax under IRC §1374.

#What it is and when it applies

When a C-corp converts to S-corp status, the IRS identifies any assets with net unrealized built-in gains at the date of conversion. If the S-corp sells those tainted assets within the 5-year recognition period (starting from the first day of the first S-corp tax year), the S-corp pays a 21% entity-level tax on the recognized built-in gain. This tax is paid at the entity level before any income passes through to you.

S-corps that were always S-corps from day one have zero BIG tax exposure. This is a trap only for converted C-corps.

#The math on a real example

Your company converts from C-corp to S-corp in January 2023. At the conversion date, the business holds commercial real estate with a tax basis of $800,000 and a fair market value of $2,300,000. Built-in gain at conversion: $1,500,000.

The business is acquired in 2026 (Year 3 of the 5-year recognition period). The real estate sells for $2,300,000.

  • BIG tax at entity level: 21% x $1,500,000 = $315,000 paid by the S-corp
  • The $315,000 BIG tax reduces the net income flowing through to your K-1
  • You still pay individual-level tax on the remaining pass-through gain

If the same sale happened in 2029 (Year 6, outside the 5-year window), BIG tax is zero. The entire gain flows through at capital gain rates. Timing the exit correctly relative to the BIG window can easily swing hundreds of thousands of dollars on a mid-size deal.

#Planning around BIG tax

Three approaches work:

  • Wait out the window. If the recognition period expires in the next one to two years and you have flexibility on closing timeline, waiting is often the right move.
  • Allocate purchase price away from tainted assets. On a §338(h)(10) deemed sale, negotiating more of the purchase price to non-tainted assets reduces the BIG tax base (though the buyer may push back since those are often the assets they value most).
  • Net unrealized built-in loss offsets. BIG tax is computed on the net unrealized built-in gain across all assets. If some assets had unrealized losses at conversion, they reduce the BIG tax base.

For the full decision analysis on whether to convert from C-corp to S-corp and how the BIG recognition period affects that choice, see C-corp to S-corp conversion and built-in gains.

#Allocating purchase price with Form 8594

Whether you close an asset deal, a §338(h)(10) deemed sale, or a §336(e) transaction, both buyer and seller must file Form 8594 (or Form 8883 for §338 elections) with their federal tax returns for the year of the sale.

#The 7 asset classes in allocation order

Under IRC §1060, purchase price is allocated to these classes in order, exhausting each before moving to the next:

  • Class I: Cash and general deposit accounts
  • Class II: Actively traded personal property and government securities
  • Class III: Accounts receivable and credit card receivables from ordinary business
  • Class IV: Inventory and property held primarily for sale to customers
  • Class V: All other tangible assets (equipment, furniture, vehicles, real estate)
  • Class VI: Section 197 intangibles other than goodwill (customer lists, non-compete agreements, patents, licenses, trade names)
  • Class VII: Goodwill and going concern value (absorbs whatever purchase price remains after all other classes)

Why this matters for your after-tax proceeds: allocation directly determines your gain character. More price to Class VI non-compete agreements means more ordinary income to you as the seller. More to Class VII goodwill means more capital gain. The allocation is a negotiation point inside the deal, and sellers should push for as much of the residual as possible to land in Class VII.

#The matching requirement and what happens when it breaks

Both buyer and seller file Form 8594 with their annual returns. The IRS cross-checks both filings automatically. When the two allocations do not match:

  • Both returns get flagged, materially increasing audit probability for both parties
  • The IRS has authority to substitute its own valuation and allocation under §1060
  • Both parties face potential substantial valuation misstatement penalties under §6662 (20% to 40% of additional tax owed, depending on the degree of misstatement)

The fix is simple: agree on the exact allocation in the purchase agreement before closing, reduce it to writing, and make sure your tax preparer files numbers identical to the buyer’s. We don’t do surprises on this — get the allocation locked in the contract, not reconstructed after closing.

#A note on §338(h)(10) and Form 8883

For §338(h)(10) elections, the buyer files Form 8023 (the election itself) and both parties use Form 8883 (Asset Allocation Statement Under §338) to document the deemed purchase price and its allocation across Classes I through VII. Form 8883 applies the same framework as Form 8594 and carries the same matching requirement.

#Common questions

Is the §338(h)(10) election always better for the seller than a straight asset sale? Not always. The character of gain in a §338(h)(10) deemed sale is the same as in a real asset sale — ordinary income on recapture assets, capital gain on goodwill. The election’s value to the seller is eliminating double tax and keeping the legal structure as a stock sale. On a deal with heavy ordinary income character (lots of equipment recapture, large AR balance), the seller’s after-tax result may be similar to a plain asset sale. The election is most valuable when the buyer offers a price premium for the step-up and the seller wants to avoid the liability carryover of a pure stock deal.

What if one of my S-corp shareholders refuses to sign the 338(h)(10) election? The election fails. Every S-corp shareholder must consent to a §338(h)(10) election because it affects the final K-1 allocations for all shareholders, not just those who are selling. This is a real issue in multi-owner S-corps where shareholders have different cost bases or tax situations. If unanimous consent is not achievable, ask whether §336(e) is available as an alternative.

Does the 338(h)(10) election affect my S-corp’s final tax return? Yes. When a §338(h)(10) election is made, the target S-corp files a final Form 1120-S reporting the deemed asset sale. All gain flows through to shareholders on final K-1s, and the S-corp terminates after the deemed liquidation. This is separate from the legal stock transfer. See S-corp termination and revocation mechanics for how the final return and entity wind-down work.

Can I time the deal to avoid built-in gains tax? Yes, if you have flexibility on the closing date. The BIG recognition period is exactly 5 years from the first day of the first S-corp tax year. If the window expires in 8 months, waiting can save you a 21% entity-level tax on millions of dollars of built-in gain. This planning needs to happen well before you sign a letter of intent, not after. Build your BIG expiration date into your exit timeline from day one.

What assets are excluded from the built-in gains calculation? Only assets with unrealized appreciation that existed at the date of C-corp to S-corp conversion carry BIG taint. Assets acquired by the S-corp after the election date are clean. The BIG calculation uses the “net unrealized built-in gain” determined at conversion, which requires a snapshot valuation as of the election date. Many converted S-corps do not have a formal appraisal from the conversion date and face challenges establishing the baseline at exit. If you are approaching a sale and you converted years ago, reconstructing that baseline is worth doing now.

Does the buyer need to know about built-in gains exposure? Yes, and thorough buyers will ask. A typical due diligence package includes review of the company’s S-corp election history. If your S-corp converted from a C-corp, the buyer’s advisors will ask for the conversion date, conversion-date valuations, and the recognition period calculation. BIG tax reduces your effective exit proceeds and affects deal pricing. Failing to disclose it creates post-closing indemnification exposure.

Is Form 8594 required if we use a 338(h)(10) election? In a §338(h)(10) transaction, the allocation is reported on Form 8883, not Form 8594. Form 8594 covers direct asset acquisitions under §1060. Form 8883 covers the deemed asset sale under §338. Both use the same Class I through VII framework and both carry the same IRS matching requirement between buyer and seller. Your deal structure determines which form applies — make sure your advisor files the right one.

What if the deal involves an installment sale or earnout? Installment sales (purchase price paid over multiple years) add complexity. Under IRC §453, the seller reports gain as payments are received. The gain character on each installment is prorated across the Form 8594 (or 8883) classes. Critical: certain asset classes — particularly ordinary income items like accounts receivable and inventory — cannot be deferred using the installment method. That income must be recognized in Year 1 of the sale. If your deal includes a seller note or earnout, structure and model the installment treatment before you sign.


Selling an S-corp is one of the highest-stakes financial events you will go through. The structure decision — asset sale, stock sale, or §338(h)(10) — needs to happen before you sign the LOI, not after. We have worked with S-corp owners on exits across a range of deal sizes, and we know where sellers leave money on the table. Book a 15-minute Tax Discovery and bring the term sheet if you have one. We will review the structure, flag the BIG exposure, and show you what the different allocations actually cost you. Visit tax planning and advisory services to see how we support S-corp owners through exits. Free advice either way.

Search the whole site.

Articles, services, segment pages, tech stack. Start typing — or jump to a topic.

Tip: to navigate · Enter to open · Esc to close