Part of an ESPP gain is taxed as salary and part as capital gain, and the split depends on when you sold. Worse, the form your broker sends the IRS usually shows the wrong cost basis — which means people pay tax twice on the same money without noticing.
From your ESPP statement. The offering date is when the purchase period started — not the day the shares landed.
General guidance only, not tax or legal advice. This covers a tax-qualified ESPP under Section 423 with a lookback, which is the common arrangement at US tech employers. Non-qualified plans, plans without a lookback, shares sold in more than one lot, AMT, the net investment income tax and state-specific rules are not modelled here. Nothing you type leaves this browser.