ESPP long term capital gains — when does the clock actually start?

Trying to figure out if my ESPP shares qualify for long term capital gains treatment. I sold shares this past spring that I bought through my company's plan over the past few years. The 1099-B from my broker shows the proceeds and a cost basis but I'm not sure if the basis is right or if the holding periods are correct. My company's plan has a 24-month offering period with a 15% discount off the lower of the opening or closing price. I know there's a "qualifying disposition" concept somewhere but I can't find a straight answer on whether the clock starts at the offering date or the purchase date. Some of the lots I sold I held more than a year from purchase but maybe not two years from the offering date. Does that change whether it's long term capital gains on my ESPP shares?

32 comments

Form 3922 is the starting point here. Your employer should have sent one for each year shares were purchased under the plan — it lists the offering date, the purchase date, the fair market value on both dates, and the actual purchase price. Those dates are what determine whether you have a qualifying or disqualifying disposition, which completely changes what goes on your W-2 versus Schedule D.

Eric N.

Author

I did get Form 3922s but honestly didn't know what to do with them. So the offering date on the 3922 is what I need to compare against my sale date, not just the purchase date?

The holding period rules for a qualifying disposition under a section 423 plan require you to hold the shares more than two years from the offering date AND more than one year from the purchase date — both tests must pass. If you clear both, only part of the gain is ordinary income (the discount element capped at a formula) and the rest is long-term capital gain. Miss either one and the whole spread at purchase date goes on your W-2 as ordinary income.

Eric N.

Author

So some of my lots could be qualifying and others disqualifying depending on which offering period they came from? That would explain why the 1099-B basis looks off on a few of them.

Worth noting: even on a qualifying disposition, the ordinary income piece usually doesn't show up on the 1099-B cost basis — the broker's basis is typically just what you paid, not what you paid plus the compensation element. So if your Form W-2 includes extra income for a qualifying disposition, you need to add that amount to your basis on Form 8949 or you'll pay tax on it twice.

Exactly right. The adjustment goes in column (g) of Form 8949 with a negative number (in parentheses) if the correct basis is higher than what the 1099-B shows. If the 1099-B box shows basis reported to the IRS, check box A or D and still show the 1099-B basis in column (e), then adjust in column (g).

I uploaded my 3922s, the 1099-B, and my W-2 to taxr.ai and it compared the offering dates and purchase dates across each lot, flagged which ones cleared both holding period tests and which didn't, and drafted the Form 8949 adjustments for the lots where my broker's basis was missing the compensation element. Saved me a lot of cross-referencing spreadsheet work. The rule on when ordinary income is capped versus when the full spread is ordinary — that part I confirmed with the Form 3922 instructions and pub 525.

Eric N.

Author

That's really useful. Did it handle lots from different offering periods separately or just lump them together?

Separate line by line, matched to the 3922 dates. Each lot got its own holding period conclusion and its own 8949 adjustment amount.

Publication 525 covers the ESPP qualifying disposition rules in detail under Statutory Stock Options. The income inclusion formula for a qualifying disposition uses the lower of: (1) the FMV at sale minus your purchase price, or (2) the FMV at the offering date times the discount percentage. That cap on ordinary income is why qualifying dispositions are so valuable — the rest of your gain above that is long-term capital gain taxed at preferential rates.

The cap only applies if the sale price is above the FMV at offering date. If you sell below that, the ordinary income piece is just your sale price minus your actual purchase price (if that's positive), and there's no long-term gain on top.

One thing my broker got wrong: they used the settlement date instead of the trade date to figure my holding period. Per Publication 550, for securities traded on an established market the holding period starts the day after the trade date you bought and ends on the trade date you sold — not settlement dates. Worth checking your confirms.

Good catch. Though for ESPP the purchase date on Form 3922 is the actual purchase date (not a trade-date vs. settlement-date issue), so the main clock to watch is purchase date vs. offering date from the 3922 itself.

Schedule D is where the net capital gain or loss lands after you complete Form 8949. Short-term lots feed into Part I of Schedule D and long-term into Part II. If you have a mix of qualifying and disqualifying dispositions across different lots, you may have entries in both parts.

The disqualifying disposition ordinary income your employer puts on your W-2 — does that change my state taxes too? My state doesn't conform to all federal capital gain rules.

State treatment varies and state conformity to federal capital gain rates is not guaranteed. You'd need to check your specific state's instructions or talk to a preparer who knows that state.

Form 8949, column (f) is where the adjustment codes go. I ran my 1099-B and 3922s through Taxr and it listed every lot with the code B adjustment flagged for the lots where my broker's basis didn't include the W-2 compensation amount. It also drafted a note explaining each adjustment in case I get a letter. Useful for keeping the documentation straight when you have a dozen different purchase periods.

Eric N.

Author

Does code B apply even when it's an ESPP basis adjustment and not strictly an "incorrect" basis situation? Or is there a different code?

Code B means the basis shown on the 1099-B is incorrect. If your broker left out the compensation element, the basis is in fact incorrect, so B is right. You'd enter the 1099-B basis in column (e) and the upward adjustment as a negative number in column (g) since the correct basis is higher.

If you have a lot of lots across multiple offering periods and your numbers are significant, an enrolled agent or CPA who works with equity compensation is worth the conversation. ESPP basis adjustments are one of the most common places people accidentally double-pay tax, and also one of the most common audit flags when the Schedule D proceeds don't match the 1099-B totals.

Eric N.

Author

I think I may have been double-paying for the last two years without realizing. Is there a way to go back and fix that?

Form 1040-X is how you amend prior year returns. Bring your 3922s and original W-2s for those years to a CPA or EA — they can rebuild the correct basis for each lot and file the amended returns if the numbers warrant it.

1099-B box 1e is where the broker puts your cost basis. Box 1g is for wash sale loss disallowed — not relevant to ESPP gains, but some people confuse the two boxes when they're reconciling. The box you care about for basis corrections is 1e.

There's a worksheet for column (g) basis adjustments in the Form 8949 instructions at irs.gov/instructions/i8949 that walks through exactly the ESPP situation. Worth printing that before you fill in the form.

Agreed — the instructions also confirm that when box A or D is checked (basis reported to the IRS), you still enter the broker's basis in column (e) even if it's wrong, and then correct it in column (g). Don't skip putting the 1099-B number in column (e) even when you know it's off.

Another thing that trips up ESPP reporting: people assume all their shares are covered securities with basis reported to the IRS, but older lots (purchased before the coverage rules applied) may come through on the 1099-B with no basis at all. In that case you'd check box B or E on Form 8949 and enter your correct basis in column (e) directly.

Form 3922 instruction note worth knowing: the form is for informational purposes and you don't attach it to your return, but keep it with your records because it has every date and price you need to do the qualifying disposition math and to support any 8949 adjustment if the IRS questions it.

Correct. Same with Form 3921 for ISOs — informational only, don't attach, but critical to keep. The 3922 is the ESPP equivalent.

Publication 550 on the IRS site covers the basic capital gain holding period rules. More than one year from the date you acquired the asset for long-term. For ESPP that means more than one year from your actual purchase date — but as others noted you also need to clear the two-year offering date test for a qualifying disposition. Both tests are separate requirements.

Worth clarifying: the long-term vs. short-term holding period for capital gains purposes is the one-year test from purchase date per Publication 550. The two-year offering date test is a separate ESPP-specific rule that determines how much of your gain is ordinary income vs. capital gain. You can have a long-term capital gain that is still a disqualifying disposition if you didn't hold two years from offering.

Eric N.

Author

That's the clearest way I've seen it put. So long-term capital gain rate and qualifying disposition are two different questions and I need to pass both tests for the best tax treatment.

To recap for the original question: ESPP long term capital gains requires clearing the one-year test from purchase for long-term rates, and the two-year offering date plus one-year purchase date tests for qualifying disposition treatment. Miss the qualifying disposition tests and your W-2 picks up the spread at purchase as ordinary income regardless of how long you held after that. The Form 3922 dates and your actual sale date are what you need to do the analysis lot by lot.