The tax rules for an ESPP stock transfer turn on one question: how long you held the shares between the grant date, the purchase date, and the day you sold, gifted, or otherwise moved them. Meet both holding periods and most of your profit is taxed at long-term capital gains rates. Miss either one and a bigger slice becomes ordinary income. And whatever you do, check the cost basis on your broker’s 1099-B before you file, because it is almost always wrong in a way that costs you money.
The Two Holding Periods That Decide Your Tax Rate
For shares bought under a qualified Section 423 plan, the IRS looks at two clocks. You have to beat both for the favorable treatment:1Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans
- More than two years after the grant date (the day your offering period began).
- More than one year after the purchase date (the day the shares were actually bought).
Clear both and the sale is a qualifying disposition. Fall short on either one and it is a disqualifying disposition. A “disposition” isn’t just a market sale. Gifting shares, transferring them in an exchange, or otherwise giving up ownership all count.
The two categories use different formulas, different reference prices, and produce different amounts of ordinary income. The mechanics are worth walking through with numbers.
Disqualifying Disposition: Selling Before the Clock Runs
Sell before you satisfy both holding periods and the discount you got at purchase is taxed as ordinary income. That income equals the fair market value on the purchase date minus what you paid.2Internal Revenue Service. Stocks, Options, Splits, Traders Anything on top of the purchase-date FMV is a separate capital gain.
Say you bought 100 shares at $80 when the market price was $100, then sold a month later at $110:
- Ordinary income: $20 × 100 = $2,000 (the purchase-date discount).
- Short-term capital gain: $10 × 100 = $1,000 (appreciation from $100 to $110).
Your adjusted basis for the capital gain isn’t the $80 you paid. It’s $100, the purchase-date FMV. Recognizing the ordinary income effectively steps the basis up, so the discount isn’t taxed a second time as capital gain. Because you held for only a month, the $1,000 gain is short-term and taxed at ordinary rates.
If the stock dropped and you sold below the purchase-date FMV, the ordinary income is capped at your actual profit. Sell below what you paid and there is no ordinary income at all, only a capital loss.
Qualifying Disposition: Selling After Both Deadlines
Hold long enough and you still owe some ordinary income, but the formula changes and the number is usually smaller. On a qualifying disposition, ordinary income is the lesser of:2Internal Revenue Service. Stocks, Options, Splits, Traders
- The grant-date FMV minus what you paid.
- The sale price minus what you paid.
The reference price switches from the purchase date to the grant date. When a plan’s lookback provision let you buy at a discount off an earlier, lower price, the grant-date figure is typically lower than the purchase-date figure, which shrinks the ordinary income number.
Example: grant-date FMV of $90, purchase-date FMV of $100, you paid $80, and you sell two years later at $120.
- Grant-date discount: $90 − $80 = $10 per share.
- Total gain: $120 − $80 = $40 per share.
- Ordinary income: the lesser figure, $10 per share.
- Long-term capital gain: $120 − $90 adjusted basis = $30 per share.
The remaining $30 per share gets long-term capital gains rates, which for 2026 are 0%, 15%, or 20% depending on taxable income. For a single filer the 0% bracket runs to $49,450, the 15% bracket to $545,500, and 20% applies above that.3Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
If the stock fell below your purchase price by the time you sold, there is no ordinary income (the total gain is less than the discount) and you simply report a long-term capital loss.
Fix the Cost Basis on Your 1099-B
This is where ESPP filers lose money. Your broker issues Form 1099-B for the sale and reports a cost basis in Box 1e. That basis is almost always just the discounted price you paid. It does not include the ordinary income already reported as wages on your W-2.4Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets
File the 1099-B numbers as-is and you pay capital gains tax on income that was already taxed as wages. The discount gets taxed twice. The fix goes on Form 8949:
- Enter the proceeds and cost basis exactly as the 1099-B shows them.
- In column (f), enter adjustment Code B, which flags the reported basis as incorrect.5Internal Revenue Service. Instructions for Form 8949
- In column (g), enter a negative number equal to the ordinary income you already recognized. That shrinks the reported gain by the amount already captured on your W-2.
Using the disqualifying example above, your broker reported basis of $80 per share and you recognized $20 per share as ordinary income. Correct basis: $100. In column (g) you would enter −$2,000. The Form 8949 totals then flow to Schedule D, where your final gain or loss lands.
Form 3922 and the Paperwork You Need to Keep
Several forms travel together when you dispose of ESPP shares, and losing any of them makes the basis calculation harder than it needs to be.
Form 3922 is the one most people ignore. Your employer or its stock plan administrator must file it for every ESPP share transfer under Section 423.6Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan It reports the grant date, purchase date, fair market value on both dates, the price you paid, and the number of shares transferred.7Internal Revenue Service. Instructions for Forms 3921 and 3922 Those are the exact inputs you need to compute ordinary income and adjusted basis whenever you eventually sell. Keep every 3922 even if a sale is years away.
Form W-2 is where the ordinary income shows up. Employers report the compensation portion in Box 1 whether the disposition is qualifying or disqualifying, and they are required to do so even if you left the company before selling.7Internal Revenue Service. Instructions for Forms 3921 and 3922 Some employers are inconsistent about including qualifying disposition income on the W-2, so you are still responsible for reporting the ordinary income amount if it does not appear there.
Form 1099-B from your broker reports the sale proceeds and the (usually wrong) cost basis. Form 8949 and Schedule D are where you reconcile everything, apply the Code B adjustment, and produce your final capital gain or loss.4Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets Hold onto trade confirmations, every Form 3922, and the W-2 so you can rebuild your basis if the IRS asks.
Gifts, Donations, and Inherited Shares
A sale isn’t the only kind of transfer, and the tax treatment splits three ways.
Gifting Shares to an Individual
If you have already met both holding periods, gifting the shares does not trigger a disqualifying disposition. You still owe ordinary income tax on the discount component, calculated the same way as a qualifying sale, and the recipient inherits your adjusted basis. Any future appreciation above that basis is theirs to deal with at long-term capital gains rates.
Gifting before both holding periods are satisfied is riskier. The transfer itself can be a disqualifying disposition, which means you owe ordinary income on the full purchase-date discount as if you had sold the shares yourself.
Donating to Charity
Donating appreciated ESPP shares held more than one year to a qualified charity lets you deduct the fair market value of the stock without paying capital gains tax on the appreciation. The one-year clock for this purpose starts the day after purchase. Report the noncash contribution on IRS Form 8283. The deduction for appreciated stock given to a public charity is capped at 30% of your adjusted gross income, with a five-year carryforward for any excess.
Inherited Shares
When ESPP shares pass at death, the heir generally gets a stepped-up basis equal to the fair market value on the date of death. Both the built-up ordinary income component and any unrealized capital gain up to that date are wiped out. The heir’s future tax exposure covers only what happens to the stock price after the date of death.
If Your Plan Isn’t a Section 423 Plan
Everything above assumes a qualified Section 423 plan. Non-qualified ESPPs work differently: you owe ordinary income tax on the discount at the time of purchase, with income tax, Social Security, and Medicare withheld then and there. After purchase, any change in the stock price is simply a capital gain or loss, short-term or long-term depending on how long you held. There is no qualifying-versus-disqualifying distinction because the discount was already taxed upfront.
Signs your plan may be non-qualified: it is offered only to selected employees, the discount exceeds 15%, or you never receive a Form 3922 after a purchase, since that form is filed only for Section 423 transfers.6Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan Your plan document or HR department can confirm which type you have.