Selling a Business: Capital-Gains Tax Options

By Timothy LeGendre, CPA · Florida License #AC62625 · Published 2026-08-31

How entity type and asset-versus-stock structure decide the tax on a business sale, from personal goodwill to the built-in-gains trap for S corporations.

How it works

Selling a business is not one tax event with a single rate. What happens is governed almost entirely by two facts I ask before naming any planning tool: what kind of entity is being sold, and whether the deal is a sale of assets or of stock or an equity interest. Those two facts decide how many layers of tax apply, how much of the gain is capital rather than ordinary, and whether the buyer gets to step up its basis. This page works the seller's side; the buyer's mirror image is covered in Buying a Business.

The starting arithmetic is simple even when the rest is not: gain equals the amount realized minus basis, and getting that number right is usually where a business-sale return goes wrong first, covered under what it requires below.

Entity type sets how many times the gain is taxed. A C corporation that sells its assets pays a flat 21% corporate rate on the gain, and its shareholders pay again once the proceeds reach them, taking the combined federal share into the high thirties. An S corporation, a partnership or multi-member LLC, and a sole proprietorship are all single-layer: the gain is taxed once, on the owner's own return, which is why the S corporation sale is the case this page spends the most time on.

Asset-versus-stock decides character and the buyer's basis. In an asset sale, the price is allocated across classes of property and part of the gain is often ordinary recapture, while the buyer gets a fresh, stepped-up basis it can depreciate right away, worth more now that the One Big Beautiful Bill Act made 100% bonus depreciation permanent for property acquired after January 19, 2025. A stock or equity sale skips the allocation: the seller has one gain against basis in the shares or interest. On corporate stock the buyer inherits the corporation's carryover basis with no step-up, a real gap in value and why the deal's form gets negotiated rather than assumed. A partnership or multi-member LLC interest is the exception to that half of it, covered in the partnership branch below.

The Florida side of it

For a Florida resident, the state layer is close to a non-issue: Florida has no individual income tax and does not tax pass-through income at the personal level, so the federal number is the whole number for an individual seller. The one exception is a C corporation's own asset-sale gain, taxed at Florida's 5.5% corporate rate before anything reaches the shareholders.

Who this applies to

Anyone approaching, or already inside, a sale of their business. The entity you operate through gates everything else.

  • C corporation. An asset sale means two layers of tax; a stock sale means one, and it is the only entity whose shares can carry the qualified small business stock exclusion, locked in years before a sale, never at the closing table.
  • S corporation. The usual case: one layer of tax, flowing through to the shareholders' own returns. A shadow follows one that spent time as a C corporation, covered below. This is the branch the rest of this page focuses on.
  • Partnership or multi-member LLC. Selling the interest is generally capital gain, but a slice tied to unrealized receivables, which includes depreciation recapture, and inventory, is carved out as ordinary income regardless of how the sale is papered. It also carries a structural advantage over an S corporation on the buyer's side: where a Section 754 election is in effect, the buyer of an interest gets a Section 743(b) step-up in inside basis, so an equity purchase can reach an asset purchase's result for the buyer while the seller keeps mostly-capital treatment under Section 741.
  • Sole proprietorship or single-member LLC. There is no equity to sell; every sale is a sale of the underlying assets, with no stock-versus-asset choice and no second tax layer. Personally built goodwill is a capital asset, often the largest capital piece of a service business's price.

Whether an S corporation is even the right structure to be in is a separate question, covered in my Florida S-corp guide.

Timing changes who this helps. Almost everything below, especially the entity and gifting moves, is only available before a letter of intent is signed; the highest-leverage moves belong years earlier still, since the qualified small business stock clock, pre-sale gifting at a pre-deal valuation, and personal-goodwill positioning all have to be set well before a deal is in motion. The exit planned for before anyone is selling is its own subject, covered in Buy-Sell Agreement Tax Design.

What it requires

  • An accurate basis. Understating it is the most common way a business-sale gain gets overstated. S corporation stock basis is usually higher than assumed once pass-through income, debt basis, and the final year's K-1 are captured.
  • The entity's history. An S corporation that was ever a C corporation within the last five years carries a built-in-gains shadow into any asset or deemed-asset sale; one that never was carries none of it.
  • The holding period. Long-term treatment needs more than one year; a sale at exactly twelve months is short-term, taxed at ordinary rates up to 37%.

The purchase-price allocation, in an asset sale

Every asset sale, and every deal turned into a deemed asset sale by an election below, allocates the price across seven classes at fair market value, from cash and securities at the top, through receivables, inventory, and tangible property, down to intangibles other than goodwill, with goodwill and going-concern value as the residual class. The fight is not abstract: a buyer wants value in the tangible-property and amortizable-intangible classes it can write off quickly; a seller wants it in goodwill, a clean capital gain rather than ordinary recapture. Both sides file Form 8594 with matching numbers, and a party is generally held to its own contract's allocation, the Danielson rule, which makes this a price term to negotiate before signing, not a number worked out at filing season.

Turning a stock sale into an asset sale for tax purposes

A buyer of S corporation stock still wants an asset deal's step-up, so a nominal stock sale is often recast into a deemed asset sale under one of two elections: one for an S corporation, with every shareholder's consent, bought by a corporation completing an at-least-80% stock purchase within twelve months; the other, under Section 336(e), is a seller-side election for any other kind of buyer. Either usually costs the seller more, surfacing the same recapture and built-in-gains exposure a clean sale would have left inside the corporation, so I agree only for a gross-up covering the incremental tax, confirmed before signing.

When the buyer also wants the seller to roll part of its equity into the buyer's own structure tax-free, with clean diligence on the target's S-election history, neither election delivers all of that. The standard move is a pre-sale F-reorganization under Section 368(a)(1)(F): the shareholders drop the S corporation under a new holding company that keeps the S election, the operating business becomes a disregarded entity, and the buyer purchases interests in it as an asset purchase, while the seller's retained slice rolls over tax-free under Section 721, the rollover-equity question I work through in Earnouts and Rollover Equity. It must happen before a letter of intent to count as independent of the sale.

Personal goodwill, on a forced asset deal

Goodwill built on an owner's own relationships, reputation, and skill, rather than the corporation's, can be sold directly by that individual as a personal long-term capital gain, apart from whatever the entity sells. On a C corporation forced into an asset sale, this is the best way to pull value out of the double tax; on a formerly-C S corporation, it sits outside the built-in-gains tax entirely, since it was never the corporation's asset. It depends on the owner being free of any agreement binding that goodwill to the company: recognized as personal where no employment or non-compete exists, and treated as the corporation's own the moment one is signed instead, the trap in Howard v. United States. It must be structured before the deal, under a separate agreement valuing the personal-versus-enterprise split.

The S corporation stock sale: what drops off the table, and what still works

A pure S corporation stock sale is a single long-term capital gain against stock basis that years of taxed income have often pushed up, with no partnership hot-asset rule, no recapture to the seller, and no built-in-gains tax, which reaches an asset sale or a deemed asset sale and never a pure sale of stock, whatever the corporation's history. Three tools still fall away: the qualified small business stock exclusion, since an S corporation cannot issue qualifying stock; the Section 1042 ESOP gain deferral, covered in the ESOP sale and Section 1042 rollover, closed without first revoking the S election and reintroducing the double tax it avoids; and a pre-sale charitable contribution of the stock, clean for C corporation stock but a trap here, since a charitable remainder trust is not an eligible S corporation shareholder, and even a donor-advised fund must treat the gain as unrelated business taxable income.

What still works: an installment sale under Section 453, since only publicly traded stock is barred and the whole gain rides the note as capital with no election, covered further in Installment Sales; and, for a materially participating shareholder, dropping the 3.8% net investment income tax under Section 1411(c)(4) off the gain tied to active business assets. That subsection takes the gain into account only to the extent of the net gain the shareholder would have taken into account had the corporation sold all its property at fair market value immediately before the sale. Gain on assets the shareholder materially participates in would not have counted as net investment income on that deemed sale, so it falls outside the tax; what remains inside is the rest. I flag this carefully: the statute is settled, but its computation regulation was never finalized, so it needs contemporaneous records, not an assumption.

What you need to document

The gain calculation and every election here live or die on paper that exists before the return is filed, often before the deal even closes.

Basis records, reconstructed shareholder by shareholder
Form 7203 for each shareholder, the K-1 history behind it, any direct loans that created debt basis, and a final-year K-1 through the closing date.
The entity's C corporation history, or the lack of one
Whether, and when, an S corporation ever operated as a C corporation, since that date starts the five-year built-in-gains window.
A signed purchase-price allocation
The allocation language in the purchase agreement itself, matching Form 8594 on both sides, negotiated as a price term rather than reconstructed later.
A separate personal-goodwill agreement, where that applies
A pre-deal agreement and valuation splitting personal from entity goodwill, signed before the sale agreement and free of any non-compete tying it to the corporation.
Material-participation records, for the net investment income tax position
Contemporaneous logs of the owner's hours, and a schedule distinguishing active business assets from anything closer to a passive investment.

Where it goes wrong

Most of what goes wrong sits at a handful of predictable points, not because the law is unclear but because a deadline or an assumption gets missed.

The recurring mistakes

  • Understating basis. Usually because suspended losses or debt basis were never tracked.
  • Signing an employment or non-compete agreement before personal goodwill is locked down. Once it exists, the goodwill belongs to the corporation, not the individual, and there is no undoing it.
  • Contributing S corporation stock to a charity without checking first. It can end the S election outright, and in a charitable remainder trust, the resulting unrelated business income does real damage to the trust itself.
  • Making a gift of the interest after a deal is effectively locked in. Rauenhorst v. Commissioner treated a similar gift as safe because the sale was still genuinely contingent when made; Ferguson v. Commissioner treated the opposite as a completed sale followed by a gift of the proceeds, since the deal was, in substance, already done. Revenue Ruling 78-197 is the IRS stated position on the same point.
  • Agreeing to a deemed-asset-sale election without a gross-up. It converts a clean stock sale into one carrying recapture and built-in-gains exposure never priced into the deal.
  • Treating the net investment income tax carve-out as settled law. The statute is sound, but its computation regulation was never finalized, and a position without contemporaneous participation records is not one I would defend on its own.

A situation where this comes up

The situation I see most often is an S corporation that has never been a C corporation, approached by a buyer who wants a stock purchase's simplicity but also an asset purchase's step-up. Those two preferences do not fit together, so the conversation turns to a deemed-asset-sale election or a pre-sale F-reorganization, and my first question back is what the buyer is offering to cover the extra tax that creates for my client.

Because the corporation was never a C corporation, there is no built-in-gains shadow. What takes the most work is usually the ownership side: confirming every shareholder's stock basis independently, since one shareholder's loans or distribution history often differs from another's, and confirming whoever is materially participating has the contemporaneous record needed to keep part of the gain outside the net investment income tax.

Where a private equity buyer wants the seller to keep equity going forward instead of cashing out, the F-reorganization tends to come up early, the one path that gets the buyer its step-up without forcing the seller out all at once. It has to be in place before anything is signed, the detail missed when I am brought in only after a letter of intent already exists.

The version that worries me is the well-meaning owner who, wanting to shrink a taxable estate, gifts stock to a family trust after terms are already substantially agreed with a buyer. By that point the gift is not moving an asset out of the estate; it is moving already-earned income to someone else's return, and it does not work.

Authority

The primary sources behind this page. Where a citation has no link, the reporter citation is itself the locator.

Please read: This page explains how a tax provision works in general terms. It is not advice about your situation, and reading it does not make you my client. Tax outcomes turn on facts I would need to review. Before acting on anything here, talk it through with your own CPA or attorney.

Ready to get started?

Tell me about your business. You'll leave the call knowing where you stand and what I'd do about it.

Book a Discovery Call

Pick a time on my calendar. No obligation.

Frequently asked questions

Is it better to sell my business as an asset sale or a stock sale?
It depends on your entity and what the buyer needs. An asset sale gives the buyer a stepped-up basis to depreciate, but often turns part of the gain into ordinary recapture instead of capital gain. A stock or equity sale keeps the gain as one capital number for the seller, but on corporate stock the buyer inherits the corporation's carryover basis with no step-up, which is why buyers often ask for an election that reaches the asset-sale result inside a stock deal. A partnership or multi-member LLC interest is the exception: where a Section 754 election is in effect, the buyer of an interest gets a Section 743(b) step-up in inside basis, with no deemed-asset-sale election needed.
How is selling an S corporation taxed?
A pure stock sale is a single long-term capital gain measured against your stock basis, with no partnership hot-asset rule and no built-in-gains tax, which reaches an asset sale or a deemed asset sale rather than a sale of stock. Buyers usually still want a stepped-up basis, so the deal is often recast into a deemed asset sale, which can turn part of that clean capital gain into ordinary recapture unless you negotiate a gross-up to cover the extra tax.
What is personal goodwill when selling a business?
Goodwill built on an individual owner's own relationships, reputation, and skill, rather than the corporation's. It can be sold directly by that owner as a personal long-term capital gain, separate from the entity's own sale, and matters most on a forced asset sale, where it pulls value out of double taxation for a C corporation. It only holds up if no employment or non-compete agreement already ties that goodwill to the company.
What is the built-in-gains tax on an S corporation sale?
A corporate-level tax that follows an S corporation which was previously a C corporation, if the sale happens within five years of the conversion and involves an asset sale, or an election that turns a stock sale into a deemed asset sale. A pure stock sale triggers none of it, whatever the corporation's history: the tax falls on the corporation's own disposition of its assets, and a shareholder selling stock is not one. That is one reason that structure is preferred whenever it is available.
Can I use an installment sale when selling S corporation stock?
Yes. Only publicly traded stock is barred from the installment method, so a private S corporation stock sale qualifies. With no special election, the entire gain stays capital and is reported as payments come in across years, which can help manage tax brackets. That treatment changes if the deal is later recast into a deemed asset sale, so confirm the structure before relying on it.
Do I owe Florida tax when I sell my business?
Usually not on your own return. Florida has no individual income tax and does not tax pass-through income at the personal level, so an individual seller's federal number is the whole number. The one exception is a C corporation itself, which pays Florida's 5.5% corporate income tax on an asset-sale gain before anything reaches the shareholders.

Timothy LeGendre CPA LLC | Florida CPA License #AC62625 (firm #AD72267) | Mount Dora, FL | (407) 417-1064 | Contact