Taxes on sale of business S corp — what actually gets taxed and where does it show up?

We're in the middle of selling our S corp and I'm trying to get ahead of the taxes on sale of business s corp before we close. The buyer wants to do an asset purchase, which our attorney says is pretty standard, but our CPA mentioned something about ordinary income vs. capital gain treatment and I got lost. We've been the only two shareholders since we formed in 2018, equal 50/50. The business has some equipment that's been depreciated down significantly, accounts receivable, and goodwill the buyer is paying a premium for. I pulled up Form 8594 on the IRS site and I understand there are asset classes but I don't know how each piece gets taxed in my hands. Is this all going to flow through my K-1 for the year of the sale? What am I actually looking at here?

33 comments

Form 8594 is the right starting point. Both you and the buyer file it to allocate the purchase price across the asset classes — Class I through Class VII. The allocation determines how each asset is taxed, which is the key thing your CPA is flagging. The short version for your situation: the depreciated equipment will likely produce Section 1245 recapture, taxed as ordinary income up to the depreciation you took. Amounts above your adjusted basis go to capital gain. Goodwill typically lands in Class VII and gets capital gain treatment. AR in Class III is ordinary income. All of this flows through the 1120-S and then your K-1 for the year of sale — the 1245 recapture is folded into your share of ordinary business income in box 1, while your share of 1231 gain and capital gain shows up as separately stated items.

Priya D.

Author

Thank you, this is helpful. So the K-1 for the year of sale is going to have several different line items rather than one lump sum gain number?

Exactly. Expect separately stated items for Section 1231 gain and possibly capital gain depending on how the allocation lands, while Section 1245 recapture (ordinary income) is included in ordinary business income in box 1. Each separately stated item has its own line on Schedule K-1.

Something worth asking your attorney: was 338(h)(10) discussed at all? In a stock deal with an S corp, buyers sometimes push for that election because it lets them get stepped-up basis while the sale is treated as an asset sale for tax purposes. The economics are different and it changes what you're looking at considerably. Not saying it applies here, just that "asset purchase" can mean more than one thing tax-wise with an S corp.

Priya D.

Author

They haven't mentioned that. I'll ask. Our attorney is a business attorney not a tax attorney so I might need to loop in someone else.

If a 338(h)(10) election is on the table, definitely get a tax attorney or CPA who handles M&A involved before you sign anything. The election has to be made jointly and there are deadlines tied to the transaction date.

Your basis in the S corp stock matters a lot here. If this is an asset sale at the entity level, the gain flows through the 1120-S and you pay tax on your K-1 share regardless of what your stock basis is — basis doesn't shelter you the way it would in a stock sale. But you'd want to know your stock basis anyway because you need it for Form 7203 and to confirm you can deduct any losses that come through.

Priya D.

Author

We've been tracking basis every year on Form 7203. So that part I think we have covered.

Form 7203 is the right tool to have current going into this. I uploaded my 1120-S and all three years of K-1s to taxr.ai before our sale closed and it mapped out exactly which line items would affect my basis calculation and flagged that my debt basis schedule didn't tie to the numbers on the return. Caught that before my CPA filed, which would have been a mess to unwind. On the 1245 recapture question — the instructions for Form 4797 walk through the recapture calculation line by line. Part III is where equipment recapture lives. That recapture amount goes back to the 1120-S as ordinary income and flows to your K-1 box 1 or as a separately stated item depending on the asset.

Priya D.

Author

Good to know about Form 4797 Part III specifically. I'll pull that up. And I hadn't thought about the debt basis schedule tying to the return — I'll double-check ours.

The goodwill piece can get complicated if there's personal goodwill involved. If the buyer is paying for relationships that are genuinely yours personally and not the corporation's, some practitioners structure part of the sale as a direct payment to you for personal goodwill — taxed at capital gain rates, and it doesn't flow through the S corp at all. That changes both your tax picture and the buyer's deduction schedule. Worth a conversation with a CPA who does business sales specifically.

Priya D.

Author

I've heard this come up but didn't know if it was realistic. We do have strong customer relationships that are tied to us personally. Something to explore.

Personal goodwill is a real planning tool but it needs to be substantiated — it can't just be an allocation on paper. The buyer has to actually be paying for it and it should be defensible if the IRS looks at it. Courts have upheld it in cases where the individuals had non-compete agreements running to them personally, not to the corp.

Don't forget estimated taxes. If you're expecting a large gain in the year of sale, your regular quarterly estimated payments might not cover it. You'd want to bump those up for the quarter the sale closes or you'll owe underpayment penalties on top of the tax. Check the Form 1040-ES instructions for how to calculate safe harbor based on prior year tax.

Priya D.

Author

This is the kind of thing I would have completely missed. We don't usually make big estimated payments. I'll talk to our CPA about this before closing.

Form 8594 has to match between buyer and seller. If you agree on an allocation in the purchase agreement, that number is what both sides file. If you file something different you'll get a mismatch that can trigger IRS scrutiny on both parties. Make sure the APA has the allocation spelled out in a schedule that you've actually reviewed — don't let the buyer's attorney set it without your input.

State taxes are a separate headache. Some states don't conform to federal S corp treatment, and a few tax the gain at the entity level regardless of the pass-through election. Depending on where you're incorporated and where you operate, you might have state-level tax coming out of the S corp before anything hits your personal return. Worth checking your specific states.

Priya D.

Author

We're in one state, same state for formation and operations, so at least I don't have a multi-state issue. But I didn't know some states tax at the entity level — I'll ask about that.

Section 1231 gain is what most of the sale proceeds will likely land in after recapture is stripped out. Net 1231 gain gets capital gain treatment at the federal level, but watch for the 1231 lookback rule — if you had net 1231 losses in the prior five years, those convert some of the current year gain back to ordinary income. Your K-1 history will tell you if that's an issue.

Priya D.

Author

We had a rough year in 2020 and I think we did have a 1231 loss. So this could actually affect us. I need to pull those K-1s.

Schedule D and Form 4797 both come into play on your personal 1040 when the K-1 items flow through. The capital gain items from the K-1 go to Schedule D and the 1231 items route through Form 4797 on your 1040, while the 1245 recapture is already in the box 1 ordinary income that goes to Schedule E. It can look confusing because the same sale produces entries on multiple forms. I had Taxr go through my K-1 from the year we sold our S corp interest and it traced each line item to where it landed on my 1040 — showed me which amounts were hitting Form 4797 Part I versus Part II and what was going to Schedule D. Helped me verify my preparer had the routing right before I signed.

Priya D.

Author

That's actually exactly the confusion I'm anticipating. Good to know what to watch for when I get the K-1 from this.

The 1120-S filing deadline is March 15 for a calendar-year S corp, with a six-month extension available on Form 7004. If you're closing late in the year and your CPA needs time to finalize the asset allocation and 4797 calculations, the extension buys time to file accurately rather than rushing. Extensions are common in sale years.

Important to note the extension is for filing only — if tax is owed at the entity level (like in a state that taxes at entity level), payment is still due by the original deadline. The 1120-S itself can generate federal entity-level tax in some cases, like built-in gains tax, and state rules vary.

Net investment income tax can apply to S corp gain flowing to shareholders who don't materially participate. If either of you is passive with respect to the business under the Section 469 rules, the gain on sale could be subject to the 3.8% NIIT on top of regular capital gain rates. Material participation in an S corp for NIIT purposes follows the same standard as for passive loss rules, so it's worth confirming your status with your CPA.

Installment sale is worth raising if the buyer is open to it. If you receive payments over multiple years, you can spread the gain recognition using Form 6252 — but Section 1245 recapture has to be recognized in full in the year of sale regardless of when you actually collect the money. So installment treatment only defers the 1231 and capital gain portions. I fed the draft purchase agreement and our prior two 1120-S returns to Taxr and it built out a side-by-side showing what gain would be recognized in year one versus spread forward under an installment structure. Made it easy to show our CPA what we were thinking and ask if the numbers looked right.

Priya D.

Author

The installment sale option was actually mentioned briefly. I didn't know the recapture piece had to come in year one no matter what. That changes the planning conversation.

That's one of the most commonly misunderstood parts of installment sales involving depreciable assets. The recapture is front-loaded by statute. Form 6252 instructions walk through the ordering — recapture in year of sale, then remaining gain deferred to collection years.

Don't overlook the shareholder agreement when you're structuring the sale. Some agreements have transfer restrictions, rights of first refusal, or required consent from both shareholders for a sale. If you're 50/50, the other shareholder's cooperation is obviously necessary, but the mechanics of how proceeds are distributed and how you file the final 1120-S should be addressed before closing, not after.

Priya D.

Author

We're aligned, thankfully. But the point about how the final 1120-S gets filed and who handles that is a good one to nail down now.

If you end up doing a full asset sale and winding down the S corp after closing, there's a formal process to revoke the S election or dissolve the corporation depending on what your state requires. The final 1120-S return has a "final return" checkbox. Loose ends like that can create problems if a future K-1 or 1099 comes in after people assume everything is closed.

The allocation negotiation between you and the buyer is real give and take. Buyers want more in Class V (equipment, furniture) for faster depreciation; sellers generally prefer more in Class VII (goodwill) for capital gain treatment. The purchase price is fixed but the allocation affects both sides' taxes differently, which is why each party should have their own tax advisor review the allocation before it goes into the APA.

Priya D.

Author

This reframes the negotiation for me. I thought the allocation was just paperwork — I didn't realize each side has their own interest in where the money lands. Worth getting our CPA to look at the draft allocation before we agree to it.