S corp capital gain vs personal capital gain — does it matter which entity sells the asset?

Trying to work out whether it makes a difference if the s corp capital gain vs personal capital gain question changes my tax situation. Here is my setup: I hold some appreciated stock in my S corp brokerage account and I also hold shares directly in my personal account. Both lots have roughly the same gain. My accountant is out until next month and I need to decide before then whether to sell inside the corp or just sell the personal shares instead. I know the S corp is a pass-through but I am not sure if the character of the gain stays long-term when it flows to my Schedule K-1 and then onto my personal return, or if something changes. Already read IRS Topic 409 and it did not answer the specific entity question. What am I missing?

31 comments

The character does pass through. A long-term capital gain recognized inside the S corp keeps its long-term character when it flows to you on Schedule K-1, box 8a (net long-term capital gain). That amount goes to Schedule D of your personal 1040, Part II, same as if you sold the stock personally. The S corp does not pay entity-level tax on it in most states — it flows straight to you.

Emily L.

Author

Thanks, that is helpful. So the rate I pay should be the same either way if both lots are long-term?

Had this exact question last year. One thing people miss is the built-in gains tax. If your S corp converted from a C corp within the last five years and the asset was held at the time of conversion, the corp itself can owe a corporate-level tax on that gain. If your S corp was always an S corp from day one, that does not apply and you are right that it is just a pass-through.

Emily L.

Author

Mine was always an S corp, never a C, so sounds like I do not need to worry about the BIG tax. Good catch though.

Worth noting the BIG recognition period is set by statute and can change — the instructions for Form 1120-S spell out the current period. Always worth checking those instructions for the year of sale.

My situation was messier because I had gains in both places and I could not figure out which K-1 boxes mapped to which Schedule D lines. I uploaded the K-1 and my draft Schedule D to taxr.ai and it read through every box, matched box 8a and box 7 to Part II and Part I of Schedule D respectively, and flagged that I had a box 9 amount I had not placed anywhere. That alone probably saved me from under-reporting. If your K-1 has anything beyond the basic long-term gain in box 8a it is worth checking each box carefully.

Emily L.

Author

Didn't realize there were that many K-1 boxes that could feed into Schedule D. I will check box 9 on mine.

The other thing that changes the comparison is state tax. Some states tax S corp income at the entity level even though the feds do not. If you sell personally you avoid that layer. Depends entirely on which state you are in.

This is true and it matters a lot. I am in a state with a composite return requirement for S corps and the rate is higher than what I would owe filing personally.

Emily L.

Author

I should check my state rules then. I assumed state treatment mirrored federal pass-through but clearly that is not always so.

Holding period question: does the S corp stock holding period matter, or is it the underlying asset's holding period that determines long vs short-term on the K-1?

It is the holding period of the asset inside the S corp, not how long you have held your S corp shares. The corp's holding period on the stock it sells is what determines the character of the gain that passes to you on the K-1.

I sold appreciated ETF shares out of my S corp a couple years ago. The process was: S corp sells, gain appears on Form 1120-S, flows to me on Schedule K-1 box 8a, I carry it to Schedule D Part II line 12 on my 1040. My basis in the S corp shares also increased by the amount of the gain under the stock basis ordering rules, which matters if you ever sell your S corp shares later.

Emily L.

Author

The stock basis increase is something I had not thought about at all. Good to know selling inside the corp raises my outside basis.

One wrinkle: if the S corp has accumulated losses or prior suspended losses from earlier years, selling a gain asset inside the corp could free up those suspended losses to flow through to you that year, which you would not get if you sold the same asset personally. Basis and at-risk rules control whether those losses release.

My accountant pointed me to look at this myself and I uploaded my Form 1120-S and the K-1 side by side to Taxr. It listed every line that had a capital-related entry, showed me where each one was supposed to land on my Schedule D and flagged one amount in box 7 that I had accidentally put in Part II instead of Part I. Useful for a sanity check before filing. The situation you are describing — s corp capital gain vs personal capital gain — really does come down to character pass-through plus any entity-level taxes in your state.

Emily L.

Author

Thanks — the box 7 vs Part II mistake is exactly the kind of thing I would have made. I will do that check.

Nobody mentioned wash sales yet. If you have been trading inside the S corp and also trading the same or substantially identical securities in your personal account, the wash sale rules can interact across accounts in a complicated way. The IRS wash sale rules cover purchases by a corporation you control, so that is a real issue if you are on both sides.

Good point. Publication 550 spells out that the wash sale rules apply when a corporation you control buys substantially identical stock within the 30-day window around your personal sale at a loss. Worth reading that section if any of your positions have unrealized losses.

Emily L.

Author

I do not have losses in either account right now so probably not an issue, but I will keep that in mind for future trades.

The pass-through character rule is in Publication 550 and confirmed in the Schedule K-1 instructions for Form 1120-S — box 8a is net long-term capital gain, box 8b is collectibles (28%) gain, box 8c is unrecaptured section 1250 gain, and box 9 is net section 1231 gain. Each goes to a different place on your Schedule D or Form 4797. Getting those placements right matters for the rate that applies.

Practical point: if the asset inside the S corp is real property, part of the gain might be section 1250 recapture showing in K-1 box 8c (unrecaptured 1250 gain), which is taxed at a higher rate than regular long-term gain even though it is still long-term. That does not happen when you sell stock, only with depreciable real property.

Emily L.

Author

Mine is stock, not property, so recapture should not apply here. Still useful to know for the future.

Sold my S corp shares outright once — that is a completely different analysis. When you sell your S corp shares you have a capital gain on the outside, but the buyer may want an asset sale for the step-up. A 338(h)(10) election can convert it. That is a tax attorney situation, not a DIY one.

Coming back to your original question about timing: if you sell personal shares you report the gain directly on Form 8949 and Schedule D. If the S corp sells you get the K-1 after the corp's tax year ends and you cannot file your personal return until you have it. That timing difference can matter if you file early.

Emily L.

Author

That is a real practical issue I hadn't thought about. If the K-1 is late it delays my whole return.

The IRS instructions for Schedule K-1 (Form 1120-S) walk through each box and tell you exactly where on Form 1040 or its schedules each amount lands. That is probably the most direct answer to the character question for any specific box you are unsure about.

If the gains are truly equivalent in character and size, and your state does not add an entity-level layer, the net federal result should be the same either way on your 1040. The difference shows up in state tax, timing of the K-1, interaction with suspended losses, and wash sale exposure across accounts. Those are the four things to run through before you decide.

Clean summary. The character pass-through means the federal rate question is a wash, and everything else is the tie-breaker.

If the numbers are large enough that this decision meaningfully changes your tax picture, the right move is to get a CPA or enrolled agent to run the actual numbers before you sell. The pass-through mechanics are straightforward but state rules, suspended losses, and basis implications together can shift the answer.

Emily L.

Author

Agreed — I am going to wait for my accountant and in the meantime use what everyone here said to frame the right questions for that conversation.