Should I sell ESPP shares now or wait for long-term capital gains?

Trying to figure out whether to sell ESPP shares now or wait for long-term capital gains treatment. I bought in through my company's plan at a 15% discount, offering period started about 11 months ago. The shares have gone up another 22% since the purchase date on top of the discount. If I sell now it's all ordinary income plus short-term gains, right? But if I wait a few more weeks past the 1-year mark I get long-term rates on part of it. I looked at my 1099-B from last year when I sold a different lot and the box 2 short-term/long-term checkbox threw me off because the broker marked it short-term even though I thought I'd held it longer. Not sure if the ESPP holding period clock starts at purchase or at the beginning of the offering period. What actually changes on the tax form side when I cross that 1-year line?

38 comments

Are you talking about a qualified ESPP under section 423? Because the rules are pretty different depending on that. For a 423 plan there are actually two thresholds that matter, not just the one-year mark. The offering period start date matters too, not only when you actually bought the shares.

Megan S.

Author

Yes, it's a 423 plan. The offering period was 24 months and I'm past the two-year mark from the offering date actually, I just wasn't sure which clock was the one that mattered for long-term on Schedule D.

the holding period question for ESPP trips everyone up. For a qualifying disposition under a 423 plan you need to hold the shares more than 2 years from the offering date AND more than 1 year from the purchase date. Both tests. Miss either one and you're in disqualifying disposition territory, which hits your W-2 and Form 8949 differently.

Megan S.

Author

So if I'm past the 2-year offering date mark but only at 11 months from purchase date, I haven't cleared both tests yet and selling now would still be a disqualifying disposition?

Exactly. 11 months from purchase means you haven't cleared the 1-year-from-purchase test. Wait until you're past 12 months from the actual purchase date and you should be in qualifying territory assuming the offering date test is already met.

What broker are you using? I ask because last year I had a messy ESPP lot with multiple purchase dates and I uploaded my 1099-B and my ESPP purchase confirmation to taxr.ai and it mapped out which lots were qualifying vs disqualifying and what the ordinary income piece vs the capital gain piece would look like for each. Helped me see which lots to sell first. It read through the cost basis entries the broker had pre-filled and flagged where the compensatory element was missing from box 1e.

Megan S.

Author

That's really useful to know. My broker's supplemental statement has the purchase price and FMV at purchase but I was not sure how those two numbers flow into Form 8949 vs what shows up on my W-2.

Are you accounting for the fact that the 1-year holding period for capital gains purposes on securities runs from the day after the trade date you bought, not the settlement date? Publication 550 is clear that for securities traded on an established market the holding period begins the day after the trade date.

Good catch. So if the ESPP purchase date shown on the confirmation is day zero, day one is the next calendar day, and you need to sell on day 366 or later to clear the one-year bar.

Megan S.

Author

Counting from the wrong date is the mistake I was about to make. I was counting from the settlement date on the confirmation, not the trade date.

Has anyone here actually looked at what Form 8949 ends up looking like for a qualifying disposition? Curious whether the compensatory piece ever flows through column (g) or if it stays entirely off the form.

For a qualifying disposition the ordinary income piece — the lesser of the actual discount at sale vs the discount at grant — shows up on your W-2 and your broker may or may not adjust box 1e on the 1099-B to reflect it. The capital gain on 8949 is just proceeds minus your adjusted basis, which should include that compensatory piece once your W-2 picks it up.

So the risk is that the broker reports a basis in box 1e that doesn't include the W-2 income piece, and then you'd look like you have a bigger gain on 8949 than you really do?

Yes. That's the classic ESPP double-count trap. You'd check box A or D on Form 8949, enter the broker's basis in column (e) anyway, then use code B in column (f) and put a negative adjustment in column (g) to reflect the correct higher basis. The instructions for Form 8949 at irs.gov cover the code B adjustment mechanic specifically.

Timing question back to the original poster: do you have any capital loss carryforwards from prior years? Because if you do, selling now as a disqualifying disposition might be less painful than the numbers suggest at first. I ran my own ESPP situation through Taxr last spring — pasted in the 1099-B and the equity summary from my broker — and it drafted a comparison showing my effective tax difference between selling now vs waiting, using my actual carryforward balance. Helped me decide to hold the extra weeks.

Megan S.

Author

No carryforwards for me, so the full short-term rate would hit. That makes the wait more valuable in my case.

What's the spread between your ordinary income rate and what long-term rates would be for you? That spread is basically the dollar value of waiting. If it's a small lot it might not be worth the market risk of holding another month.

Disqualifying disposition means the bargain element — FMV at purchase minus your purchase price — gets reported as ordinary income on your W-2 for the year you sell. The rest of any gain above FMV at purchase date is a separate capital gain, short or long depending on whether you've held more than a year from purchase. Worth keeping those two pieces distinct when you're modeling the numbers.

Megan S.

Author

So even in a disqualifying disposition there could be a capital gain piece on top of the W-2 ordinary income piece if the stock went up after the purchase date?

Right. The W-2 piece is based on the spread at purchase. Any appreciation from purchase date to sale date is a separate capital gain, and its character (short vs long) is based on your holding period from the purchase date.

Is the 15% discount you mentioned the maximum allowed, or is your plan at a lower discount? For a 423 plan the discount can be up to 15% and the tax treatment of the qualifying disposition hinges on a comparison between the actual gain and the discount at grant. If your gain from grant to sale is less than the discount, the ordinary income piece is capped at the actual gain.

Megan S.

Author

15% is the full discount our plan offers. And the shares are up well above the original grant price so I think the full discount amount will be the ordinary income piece in a qualifying disposition, not a smaller number.

Don't forget your state. Some states don't conform to federal long-term capital gains rates and the spread between short and long term is basically zero at the state level. Depending on where you live that could change the math on whether the extra weeks are worth it.

This is a real consideration. California, for example, taxes all capital gains as ordinary income at the state level regardless of holding period. If you're in a high-income-tax state the federal long-term benefit gets partially offset.

Exactly. Run the numbers with both federal and state before deciding. The wait might be worth it purely on federal, but the total picture is what matters.

Have you checked whether your employer adjusts the W-2 box 1 amount when you have a disqualifying disposition? Not all payroll departments do it correctly and if the ordinary income isn't on your W-2, you're supposed to include it yourself. Publication 525 covers this for ESPP income.

Megan S.

Author

Good point. Last year my employer did add it to my W-2 in box 14 with a label but I didn't notice until my preparer flagged it.

Waiting the extra weeks also protects you from accidentally triggering a wash sale if you rebuy. If you sell at a loss and repurchase within 30 days before or after, the loss gets disallowed and added to the basis of the new shares under the wash sale rules. With ESPP you can end up rebuying through the next offering period automatically.

That's a scenario worth thinking about. If the ESPP auto-enrolls you in the next period, the new shares acquired through the plan could potentially be substantially identical. The wash sale rules cover acquisitions in the 30-day window on either side of the sale.

Where does the final number actually land on your 1040? Schedule D pulls from Form 8949 and the net long-term gain flows to Schedule D Part II. The ordinary income piece from a disqualifying disposition or qualifying disposition goes through W-2 wages on line 1a of Form 1040, not through Schedule D at all.

So the W-2 piece doesn't show up on Schedule D at all, only the capital gain piece does. That's the part a lot of people miss when they're trying to reconcile their broker statement to their return.

How long are you planning to hold the shares after you clear the qualifying disposition tests? If the company's stock is a big chunk of your portfolio, the market concentration risk of holding extra weeks is one thing, but holding for years after is a different conversation about diversification.

Megan S.

Author

Planning to sell shortly after I clear both tests. This particular lot is a larger-than-comfortable concentration and I want to diversify. The tax question is really just about the right timing within the next couple of months.

Straight from Publication 550: for securities traded on an established market, the holding period begins the day after the trade date you bought and ends on the trade date you sold. So your purchase confirmation date is effectively day zero and you need to reach day 366 as your sale trade date, not settlement date.

Megan S.

Author

That matches what was said earlier. I need to count from trade date plus one, and the sale trade date is what closes the period. Good to have that confirmed from the actual publication.

Has your broker already sent a corrected 1099-B for the lot you mentioned from last year where the holding period looked wrong? If the box 2 short-term/long-term indicator was wrong you can still report the correct holding period on Form 8949 by using the right Part (I or II) regardless of what the 1099-B says, and noting the adjustment.

Megan S.

Author

I ended up filing it short-term because that's what the broker had, but I'm going to double-check whether the trade date vs settlement date issue explains the discrepancy. Might matter for an amended return.

If the broker marked it short-term based on settlement date instead of trade date it would be worth reviewing against your actual trade confirmation. A corrected basis or period can be reported on 8949 with the appropriate code even if the 1099-B wasn't amended.