Most owners have a rough idea of what a buyer might pay for their company. Far fewer know what they would keep. The tax on selling a business isn't one rate applied to one number. It's several taxes applied to different pieces of the price, and the structure of the deal decides which piece lands where.
For an owner of an equipment-heavy company, the gap between the headline price and the after-tax proceeds can be wider than expected, and much of it is decided in the letter of intent, months before anyone files a return. This guide walks through how the bill is figured, where the surprises usually come from, and what to settle while you still have room to negotiate.
One note first. This article explains the mechanics. It isn't tax advice. Your result depends on facts only your CPA and tax counsel can check: how your company is organized, how its assets were depreciated, where you live, and how the deal is structured. Bring them in early. The goal here is to help you ask them the right questions.
How the Tax on Selling a Business Is Figured
Start with gain, not price. Your taxable gain is generally what you receive, in cash and anything else of value, minus your tax basis and the costs of the sale. Basis is the tax system's record of your investment: what you paid for your stock or put into the company, adjusted over the years. In an S corporation or an LLC, basis generally rises with income you've already paid tax on and falls with distributions. For an owner who started the company, basis is often small next to the price, so most of the price is gain.
Then the gain gets sorted by character, and character sets the rate:
- Long-term capital gain. Gain on assets held more than a year, including company stock and most goodwill, is generally taxed at federal rates of 0, 15, or 20 percent, depending on your income. In the sale of a whole company, most of an owner's gain usually falls in the 20 percent bracket.
- Ordinary income. Some pieces of a sale are taxed like wages or business profit, at ordinary rates that run well above capital gains rates at the top of the scale. The usual sources are depreciation recapture, payments for a noncompete or a consulting agreement, gain on inventory, and, for a cash-method company, receivables.
- The 3.8 percent tax on investment income. Above certain income thresholds, Section 1411 adds the net investment income tax on investment income, which includes many capital gains. Owners who materially participate in the business are generally outside it for gain on the business's operating assets, whether they sell S corporation stock, an LLC interest, or the assets themselves. Gain on C corporation stock, and gain on a business you're passive in, generally aren't. Your CPA can tell you which side of that line you're on.
State tax comes on top, and it varies more than most owners expect. We'll come back to it, because for owners in Oklahoma and Texas the state picture is unusual.
Asset Sale vs. Stock Sale: Who Pays What
How a sale is taxed depends heavily on what is being sold. In a stock sale, the buyer buys your shares or membership interests, and the company changes owners with everything in it. In an asset sale, the company sells its equipment, contracts, name, and goodwill, and the proceeds flow to the owners afterward. Buyers generally prefer asset purchases, because they can depreciate and amortize what they paid, which lowers their taxes for years after closing. Sellers generally prefer stock sales, because more of the gain is capital gain. How much that difference matters depends on how your company is taxed:
- C corporation. An asset sale is generally taxed twice: the corporation pays tax on its gain at the 21 percent corporate rate, and you pay tax again when the proceeds are distributed to you. That double layer is why C corporation owners usually push hard for a stock sale, and why a buyer asking for assets should expect the difference to come up in price.
- S corporation. A pass-through entity, so an asset sale is generally taxed once, on the owners' personal returns. The two kinds of sale are closer, which is why buyers of S corporations often ask for asset treatment through a structure such as an F reorganization. Closer isn't the same as equal: recapture and the allocation, both below, still move money. And if the company converted from a C corporation within the past five years, Section 1374 can add a corporate-level tax on built-in gain.
- LLC taxed as a partnership. Also a pass-through. Gain on selling your membership interest is generally capital gain, except for the part tied to items such as depreciation recapture, inventory, and receivables, which the partnership rules treat as ordinary income. A buyer of the whole LLC is often treated as buying its assets for tax purposes anyway, so the structure fight is usually less sharp.
The practical point: the same headline price can produce noticeably different after-tax proceeds depending on structure. Ask your CPA for a side-by-side before you compare offers, not after you've picked one.
Depreciation Recapture: The Tax on Equipment You Already Wrote Off
If your company runs on equipment, this is usually the biggest surprise. Over the years you've likely deducted the cost of trucks, loaders, pavers, cranes, and machine tools through regular depreciation, bonus depreciation, or Section 179 expensing. Those deductions lowered your taxes when you bought the equipment. They also lowered its tax basis, often to near zero.
When that equipment is sold for more than its basis, as it is in an asset sale or any deal taxed like one, the gain up to the depreciation already taken is generally taxed as ordinary income under Section 1245, not as capital gain. If you own an LLC taxed as a partnership, the same is generally true when you sell your membership interest, because the partnership rules pass the recapture through to you. That's depreciation recapture, and in practice it means part of a deduction you took years ago comes back as income in the year you sell. Buildings work differently: gain on a building that reflects earlier straight-line depreciation is generally taxed at a federal rate of up to 25 percent rather than 20. Paving and other yard improvements written off through bonus depreciation or Section 179 are a different matter, and can be recaptured as ordinary income.
A hypothetical shows the shape. The numbers are round and unitless on purpose. Say a buyer pays 100 for the assets of your S corporation, and the parties allocate 25 of that price to equipment that cost at least that much new and has been depreciated to almost nothing. If, for illustration, your ordinary rate on that gain runs 17 points above your capital gains rate (about the gap at the top federal brackets, before any qualified business income deduction, which can narrow it), the recapture on that equipment costs about 4 more than the same gain taxed as capital gain, or roughly 4 percent of the price. In a stock sale of the same company, that piece would generally have been capital gain. Your real figures depend on your rates, your basis, and the allocation, but the direction holds: for an S corporation owner, the more equipment you've written off, the more an asset-style sale can cost you.
Two things follow. First, recapture is one reason a buyer's request for asset treatment is a price conversation, not a formality. Second, recapture can't be pushed into later years. Even in an installment sale, it's generally recognized in the year of the sale, whether or not you've been paid yet.
How the Purchase Price Allocation Changes the Bill
In an asset sale, or a deal taxed like one, the buyer and seller divide the price among classes of assets and report the split to the IRS. The rules are in Section 1060, and the split is usually reported on Form 8594. The classes run from cash and receivables through inventory and equipment to other intangible assets and, last, goodwill. Each carries its own tax character for you and its own deduction schedule for the buyer.
That's why the purchase price allocation is a negotiation. More of the price on equipment generally means more recapture for you and faster deductions for the buyer. More on goodwill generally means more capital gain for you and a 15-year amortization schedule for the buyer. A few other lines matter:
- Noncompete payments. Money allocated to your agreement not to compete is generally ordinary income to you, while the buyer amortizes it over 15 years, the same as goodwill. Because the buyer's deduction is about the same either way, there's usually room to keep that number modest.
- Consulting or employment agreements. Pay for staying on after closing is compensation, taxed as ordinary income and generally subject to payroll or self-employment tax. It's a real part of what you're paid, so weigh it on an after-tax basis, and watch that price doesn't drift into it without anyone saying so.
- Real estate. If you own the yard or shop personally, or in a separate entity, selling it is its own transaction with its own gain. Leasing it to the buyer instead is a common alternative. Each choice changes both your tax and your income after the sale.
Agree on the allocation method early, ideally in the letter of intent and in any case before the purchase agreement is final, and have your CPA model the result. Equipment appraisals tend to anchor the conversation, so it helps to know what yours would say before the buyer's appraiser tells you.
State Taxes: Oklahoma's Capital Gain Deduction and Texas
Federal tax works the same everywhere. State tax doesn't, and for owners in our part of the country it can work in your favor if the details line up.
Oklahoma. Oklahoma taxes personal income at a top rate of 4.5 percent starting in 2026, but it also offers a deduction that can take much of a business sale out of state tax. Under 68 O.S. § 2358, as the Oklahoma Tax Commission's instructions for Form 561 describe it, a resident can generally deduct qualifying capital gain from:
- the sale of stock or an ownership interest in an Oklahoma company, LLC, or partnership that you've owned for at least two uninterrupted years;
- the sale of real or tangible personal property located in Oklahoma that has been owned for at least five uninterrupted years; or
- property located in Oklahoma that is sold as part of a sale of all or substantially all of an Oklahoma company's assets, where the company has held it for at least two uninterrupted years.
An Oklahoma company, for this purpose, is one whose primary headquarters has been in Oklahoma for at least three uninterrupted years before the sale. When the gain comes through a pass-through entity, such as an S corporation or an LLC, you also need to have been an owner for the same two or five uninterrupted years. A few details decide whether the Oklahoma capital gain deduction works for you:
- Only capital gain qualifies. The deduction covers gain treated as capital gain on your federal return. Depreciation recapture is ordinary income, so it generally stays taxable in Oklahoma. That makes the allocation matter at the state level too.
- The years have to be unbroken. If you moved the headquarters, reorganized, or bought out a partner recently, ask your CPA how the clock applies to your interest.
- An entity-level election changes where it's claimed. If your company has made Oklahoma's pass-through entity tax election, gain covered by the election goes on the entity's Form 561-PTE rather than your own return.
- In an asset sale, only Oklahoma property counts. Gain from property located outside Oklahoma doesn't qualify, and other states where the company works may tax their share of that gain. In a sale of stock or an ownership interest, the test is where the company is headquartered, not where its assets sit.
Texas. Texas has no personal income tax, so a Texas resident generally owes no state income tax on gain from selling a business. The company may still need to account for the sale in its Texas franchise tax, which is a separate calculation your CPA should run. And if the company operates in other states, those states can tax their share of an asset sale's gain no matter where you live. If it's an Oklahoma company, Oklahoma's capital gain deduction is also available to nonresidents, so ask your CPA whether it covers the Oklahoma share.
Owners sometimes ask about moving before a sale. A change of residence has to be real and well documented, and the state you leave can still tax gain it considers sourced there, so raise it with tax counsel well before you sign anything.
Ways to Defer or Reduce Capital Gains Tax on a Sale
Few tools erase a large gain outright, and the ones that can, such as Section 1202, have strict tests. More often the realistic aim is to defer tax or reduce it, and each way of doing that has conditions and tradeoffs. The ones that come up most in our work:
- Getting paid over time. When part of the price is paid later through a seller note, gain on that part is generally taxed as you're paid, under the installment method. Recapture and gain on inventory are still taxed in the year of the sale, interest on the note is ordinary income, and on larger notes an interest charge on the deferred tax can apply. You also carry the risk that the buyer doesn't pay. Our guide to seller financing covers the tradeoffs. Earnout payments are often taxed in a similar way as they're received, with part treated as interest, though an earnout tied to your staying employed can be treated as pay. Like a note, an earnout is only worth what the buyer actually pays.
- Rolling over equity. If a private equity buyer asks you to keep a stake, the rolled portion can generally be structured so tax on it is deferred until that equity is sold. The rolled stake is usually a minority position you can't sell on your own schedule, and its value depends on how the buyer runs the company, so it can end up worth less than when you rolled it. The structure and the terms both matter, as our rollover equity guide explains.
- For C corporations: Section 1042 and Section 1202. Section 1042 can let an owner of a closely held C corporation defer gain on a sale of stock to an employee stock ownership plan, if the plan owns at least 30 percent of the company after the sale, the stock meets a holding period, and the proceeds are reinvested in qualified replacement property within a set window. For sales after 2027, S corporation owners can use it for a small part of a sale. Our Section 1042 guide walks through it. Separately, Section 1202 can exclude some or all of the gain on qualified small business stock: C corporation stock acquired at original issue that meets a holding period and other tests. Many companies don't qualify, including engineering firms, farms, and oil, gas, and mineral producers, so treat it as a question for your CPA, not an assumption.
- Getting the deal terms right. Deal terms can matter as much as any of these tools: a stock sale where you can get one, a gross-up when a buyer wants asset treatment, a reasonable allocation, and, in Oklahoma, a structure your CPA has checked against the state deduction's tests. Our KOCO feature has more on how deal terms and taxes interact.
What to Settle Before You Sign the Letter of Intent
Most of what decides your tax bill gets settled early, in the letter of intent and the weeks around it, while you can still compare competing offers. Before you sign a letter of intent, get answers to these:
- What do you keep under each structure? Ask your CPA for your after-tax proceeds under a stock sale and an asset sale, using your actual depreciation schedules and your state.
- Who covers the cost of asset treatment? If the buyer wants it, a gross-up or price adjustment is a fair request. Before exclusivity, it's a price term. After, it's a favor.
- How will the price be allocated? Agree on the method, or at least the principles, up front.
- How much of the price is deferred, and on what terms? Seller notes, earnouts, escrows, and rollover equity each change when you're taxed and how much of the price you actually receive.
- What happens to the real estate? Sell it, lease it to the buyer, or keep it, and know the tax result of each.
- Does the state deduction apply? In Oklahoma, confirm the headquarters and holding periods before you count on it.
- Is the company's tax history clean? A broken S election, a recent C-to-S conversion, or unfiled state returns will turn up in the buyer's diligence. It's better that your CPA finds them first, the same logic as commissioning a quality of earnings report before going to market.
None of these is an exotic tax strategy. They're ordinary deal terms that happen to carry tax consequences, and because they're negotiated, the number of buyers at the table when you raise them matters.
That part is our job. We run a competitive sale process, lay each offer's structure next to your CPA's after-tax analysis, and negotiate the economic terms alongside your deal counsel. If you're starting to think about a sale, talk with our team before the first letter of intent arrives, or start with a directional look at what your business might be worth.
Sources
- 26 U.S.C. § 1042, Sales of stock to employee stock ownership plans. Cornell Legal Information Institute.
- 26 U.S.C. § 1202, Partial exclusion for gain from certain small business stock. Cornell Legal Information Institute.
- 26 U.S.C. § 1245, Gain from dispositions of certain depreciable property. Cornell Legal Information Institute.
- 26 U.S.C. § 1411, Net investment income tax. Cornell Legal Information Institute.
- Form 561, Oklahoma Capital Gain Deduction for Residents. Oklahoma Tax Commission.
