How to reduce taxes when selling an S corp business in California

We're in the final stages of selling our S corp — California-based, been operating about 11 years. The buyer wants to do an asset sale. Our CPA mentioned something about the structure affecting our tax bill but then got pulled away and I never got a full answer. We have three shareholders. One has a pretty low stock basis because she missed a couple of profitable years where she took distributions but didn't track basis carefully. The other two of us are in decent shape basis-wise. I've been reading about how S corp shareholders each report gain on their own 1040s through the K-1, and California taxes that gain too, but I'm not clear on what levers actually exist to reduce what we owe. Are there real strategies here or is it mostly just "you owe what you owe"? We filed Form 7203 last year for the first time so at least basis tracking is on our radar now.

39 comments

What's the purchase price structure — is it a lump sum or are you getting any payments spread over time? That changes things meaningfully.

Beth D.

Author

Lump sum at close. No earnout, no seller financing. Buyer wanted a clean deal.

Asset sale versus stock sale is the first big lever. In an asset sale each asset class gets allocated a purchase price under Section 1060, and those allocations drive whether you're looking at ordinary income, Section 1231 gain, or capital gain. Goodwill held more than a year is typically long-term capital gain at the shareholder level — that's usually the best outcome. But equipment with depreciation taken hits you with recapture as ordinary income first. I ran my own deal documents through taxr.ai last spring when we sold a small S corp practice. It read through the asset purchase agreement and laid out each asset class with what character the gain would likely be — that worksheet saved a few hours of back-and-forth with our CPA. Worth doing before you finalize the allocation with the buyer.

Beth D.

Author

How locked in is the allocation usually? Buyer sent us a draft Form 8594 but we haven't signed anything yet.

Negotiate it now, before closing. Once both parties sign the purchase agreement with the allocation attached, you're both bound to it and you each file Form 8594 consistently. Getting more into goodwill and less into equipment or covenants can shift ordinary income to capital gain — worth a conversation with your CPA before that document is final.

Does your low-basis shareholder have suspended losses sitting in the S corp? Because a sale triggers the ability to use those if basis allows.

Beth D.

Author

She might. She had some loss years we never dug into. How do we surface those?

They'd be on her prior-year Form 7203, in the section tracking suspended losses. If her basis is low, the sale proceeds create basis that can free those up. Your CPA needs to reconcile all of her K-1s going back to when she became a shareholder — it's not a quick lookup but it matters a lot to her net gain.

California is its own layer of pain here. The state taxes S corp income at the shareholder level but also charges the S corp an entity-level tax. On a sale, California generally follows federal character rules but doesn't have preferential long-term capital gains rates the way federal does — gain is taxed as ordinary income at the state level regardless. So the federal vs. California bill can look really different.

Is that actually true for all California residents or just for income sourced in California? Asking because one of the shareholders might not be a CA resident at this point.

Good catch. A nonresident shareholder's California tax exposure on the sale depends on where the income is sourced. For an asset sale, California generally sources gain based on where the assets are located. That shareholder needs a California nonresident CPA or tax attorney to look at their specific situation — it's genuinely complicated.

Installment sale is off the table since you said lump sum, but just for anyone following along: spreading payments over time lets you defer recognition of gain across tax years, which can help if your income varies year to year. Doesn't help you here but worth knowing for structure.

Are any of the assets being sold eligible for Section 1202 exclusion? That's for qualified small business stock — but that's a stock sale concept and doesn't apply to an asset sale. Mentioning it because sometimes people hear about it and think it applies broadly. It doesn't here.

Beth D.

Author

We did get asked about QSBS at one point. Good to know it's off the table for an asset sale.

What's the shareholder agreement say about how sale proceeds are split? If it's not strictly pro-rata with ownership percentages something could get complicated at the K-1 level.

Beth D.

Author

It's pro-rata. We kept it simple on that front at least.

One structure question worth raising with your CPA: did the S corp ever have a C corp period? If so, there could be built-in gains tax at the entity level on appreciated assets that were on hand when you converted. That's a corporate-level tax that runs through the S corp return before anything flows to shareholders on the K-1. I asked Taxr to compare the asset list in my purchase agreement against the BIG rules when we sold a converted entity a couple of years back — it walked me through which assets would be in the recognition period and flagged the ones where we might owe entity-level tax. Helped me know which questions to actually bring to the CPA.

Beth D.

Author

We've been an S corp since formation, never converted. So built-in gains shouldn't be an issue — right?

Correct — built-in gains tax applies only when a C corp elects S status and there were appreciated assets at the time of election. If you were an S corp from day one you're clear on that front.

The Form 8594 allocation is really doing a lot of work in an asset sale. Class I through Class VII assets each get their own treatment. Goodwill and going concern value land in Class VII and get capital gain treatment. Covenants not to compete land in Class VI — ordinary income and they're amortizable for the buyer. Buyers love loading value into covenants because of the deduction; sellers hate it for the same reason.

Beth D.

Author

So our interests and the buyer's are basically opposite on that line item.

Exactly. Buyer wants the covenant high; you want it low. This is a real negotiation point and both sides should understand their after-tax economics before agreeing to any number. Sometimes a higher total purchase price with a lower covenant allocation is better for the seller than a lower price with a high covenant.

How long have the main business assets been held? The 1231 gain treatment that gives you capital gain character on business property requires more than a year of holding — if any assets were added recently they might not qualify.

California's lack of preferential capital gain rates is a real hit. One thing that sometimes helps is charitable structures — a charitable remainder trust receiving appreciated assets before sale can defer gain and generate an income stream, and there's a charitable deduction for the remainder interest. But that's a planning tool that takes months to set up properly and needs an estate planning attorney and a CPA who works in this space. I used Taxr to read through a summary my CPA prepared on CRT mechanics for a prior business sale — it picked out two items in the summary that were inconsistent with each other so I could ask the CPA to clarify before we moved forward. Not a substitute for the attorney but helpful for checking my own comprehension.

Beth D.

Author

We're probably too close to close for a CRT now. But good to know that existed.

Yeah, months of lead time needed. Flag it for next time if you're ever in a position earlier in the process.

Does anyone know if the S corp has accumulated E&P from a prior C corp period? If not — and if you've been S from day one — then distributions before close are just return of basis or gain, not dividends. Some sellers take a distribution of cash sitting in the company before close to separate that from sale proceeds, but the tax character follows the basis math either way.

Beth D.

Author

No C corp history so no E&P. We do have some cash in the business — hadn't thought about whether to distribute it before or at close.

Worth asking your CPA whether distributing excess cash before close simplifies anything. It won't necessarily reduce tax but it can make the closing statement cleaner and keep the allocation focused on operating assets.

Going back to the low-basis shareholder — has she filed Form 7203 in prior years? Because if basis was never formally computed those earlier K-1 numbers might need reconstruction all the way back to when she joined. That's not quick and it could affect her recognized gain on the sale significantly.

Beth D.

Author

She hasn't filed it before last year. We know the K-1s exist going back to year one. Is that enough to reconstruct?

The K-1s are the starting point. You'd work through Form 7203 logic year by year — contributions in, income and loss allocations, distributions, debt basis if any. It's tedious but doable with all the K-1s in hand. A CPA or enrolled agent who handles S corp returns is the right person for that reconstruction.

Are you closing this calendar year or next? The year of sale is when gain flows through to each shareholder's 1040. If you're on the edge of a year boundary and one of you has a significant income change coming — retirement, another business winding down — timing the close can matter.

Beth D.

Author

Planning to close before year end. One of our shareholders is actually planning to retire next year so lower income then. Hadn't thought about whether delaying close by a few weeks could matter.

It could matter a lot depending on the size of the gain and that shareholder's marginal rate. Closing in January versus December means the gain hits a totally different tax year. Talk to your CPA about running the numbers both ways before you lock the closing date.

The nonresident question I raised earlier is actually pretty important. If one of your shareholders moved out of California before the sale closes, there's a whole sourcing analysis for the state return. California FTB is not shy about asserting tax on nonresidents in S corp sales. That shareholder should have their own California tax professional, separate from the company's CPA.

For the basis reconstruction your CPA is going to want records of any loans the low-basis shareholder made directly to the S corp — not loans the bank made to the company, but loans she personally made. Those create debt basis which is tracked separately on Form 7203 Part II. Easy to miss if no one was tracking carefully.

Beth D.

Author

She did loan the company money back in year three. We have the note. Does that still count after all this time?

Yes, as long as the loan was genuine — documented, arm's length terms, actual transfer of funds. The original note plus records of repayments (if any) are what you'd bring to the CPA. That debt basis could reduce her recognized gain meaningfully if it was never accounted for before.