You can sell ESPP shares as soon as they settle in your brokerage account after a purchase date, which usually takes about a week once the plan administrator transfers them. Whether you should sell that soon is a different question. Two federal holding-period clocks decide whether your profit is taxed at long-term capital gains rates or at ordinary income rates, and your employer’s insider-trading policy may block sales during certain windows no matter what the tax code allows.
When the Shares Are Actually Yours to Sell
During the offering period, you don’t own anything. Payroll deductions accumulate in a plan account, and shares are purchased on your behalf only on the designated purchase date at the end of that period. After the purchase, the plan administrator moves shares into your brokerage account, which typically takes about a week or slightly longer depending on how the plan is set up. Until those shares appear as settled holdings, you can’t place a sell order.
The price you paid reflects the plan’s discount. Most plans use a look-back that sets your purchase price at 85% of the fair market value on either the offering date or the purchase date, whichever is lower.1eCFR. 26 CFR 1.423-2 – Employee Stock Purchase Plan Defined That built-in discount of up to 15% is the reason people participate, and it’s the amount that draws the most tax scrutiny once you sell.
Trading Windows and Blackout Periods
Settlement is only the first gate. Most public companies designate specific trading windows, usually opening a day or two after quarterly earnings and closing well before the next earnings date. Outside those windows, employees face blackout periods during which all trading in company stock is prohibited.
These restrictions keep employees from trading on material nonpublic information, and breaking them can bring disciplinary action, termination, or SEC enforcement. The blackout calendar can also shift on short notice around mergers, restatements, or other corporate events. If you’re planning to sell on a particular date, check your company’s compliance portal first. Getting locked out of a sale you were counting on for a down payment or a tax bill is a mistake people make once.
The Two Holding Periods That Decide Your Tax Rate
Federal tax law runs two clocks on every ESPP lot at once. For the sale to qualify for favorable tax treatment, you must hold the shares at least two years after the offering date (when the option was granted) and more than one year after the actual purchase date.2Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Both must be satisfied. Miss either one and the sale is a disqualifying disposition, with materially different tax consequences.
In practice, the two-year-from-offering clock usually controls. With a six-month offering period, the one-year-from-purchase clock expires six months before the offering-date clock, so the offering-date requirement is the one you actually wait for. With a longer offering period (some run up to 27 months), the purchase-date clock can become the binding constraint. Track both dates for each lot. Your brokerage may show them, but many don’t display the offering date at all.
Qualifying Dispositions
Meet both holding periods and the ordinary income you recognize is capped at the lesser of the discount you received at the grant date (typically 15% of the offering-date fair market value) or your actual gain on the sale.3Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Everything above that amount is a long-term capital gain, taxed at 0%, 15%, or 20% depending on your total taxable income.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses Most ESPP participants land at 15%.
A concrete example. The stock was $20 on the offering date. You paid $17 per share and later sold at $30 after meeting both holding periods. Your ordinary income is the lesser of $3 (the grant-date discount) or $13 (total gain), so $3 per share is ordinary income and the remaining $10 is a long-term capital gain. On 100 shares, that’s $300 taxed as ordinary income and $1,000 as long-term capital gain.
Disqualifying Dispositions
Sell before the holding periods expire and the math flips. The entire spread between your discounted purchase price and the stock’s fair market value on the purchase date is ordinary income, regardless of what the stock is worth when you sell.2Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans Your employer reports that amount on your Form W-2 as compensation.3Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Any additional gain above the purchase-date fair market value is a separate capital gain, short-term or long-term depending on how long you held.
If the stock dropped below the purchase-date fair market value, you may have a capital loss on that portion, but you still owe ordinary income tax on the discount. Losses beyond your gains only offset up to $3,000 of ordinary income per year ($1,500 if married filing separately), with the rest carrying forward.5Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses
Selling Right Away vs. Holding for the Tax Break
Many participants sell the same day the shares are deposited. That’s always a disqualifying disposition, and for many people it’s still the smart play. You pay ordinary income tax on the discount, but the discount was free money to begin with. If the stock was worth $30 on the purchase date and you paid $25.50 (a 15% discount), your ordinary income is $4.50 per share and your capital gain is close to zero because the sale price and the purchase-date fair market value are nearly the same.
The immediate-sale approach makes particular sense when your employer’s stock is already a large share of your net worth through RSUs, options, or other equity comp, or when the stock is volatile enough that holding for 18 to 24 months introduces serious downside risk. Locking in a guaranteed 15% return in six months is hard to beat, even after paying ordinary income tax on the discount. The people who get burned are those who hold for the favorable tax treatment and watch the stock drop 30% while waiting.
If you’re a higher earner, an extra 3.8% net investment income tax can apply to capital gains from ESPP sales when your modified adjusted gross income clears $200,000 single or $250,000 joint.6Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax That narrows the gap between qualifying and disqualifying treatment and can tilt the math toward selling sooner.
Don’t Pay Tax on the Discount Twice
Timing your sale correctly still leaves one trap: your broker will report the sale on Form 1099-B with a cost basis equal to what you paid, not the adjusted basis that reflects the ordinary income you already reported on your W-2. Enter the 1099-B figures directly into your return and you’ll pay tax on the discount twice, once as ordinary income and again as a capital gain.
Fix it on Form 8949 by adding the ordinary income amount from your W-2 to the purchase price shown on the 1099-B. Your broker usually provides a supplemental information sheet with the adjusted basis calculated, but tax software doesn’t always import it. Keep every Form 3922 your employer gives you; it documents the grant-date fair market value, purchase-date fair market value, and price you paid, and reconstructing that data years later is painful.7Internal Revenue Service. Form 3922 (Rev. April 2025)
On the earlier example, if you paid $17 and your W-2 includes $3 per share from the ESPP sale, your adjusted basis is $20, not $17. Report the $17 basis on 500 shares and you’re claiming $1,500 of gain that’s already been taxed as ordinary income.
Watch the Calendar Around the Next Purchase
If you sell ESPP shares at a loss and your plan buys new shares of the same stock within 30 days before or after that sale, the IRS treats it as a wash sale and disallows the capital loss. ESPP purchase dates are fixed by the plan, so you can’t shift them to stay outside the window.
The disallowed loss isn’t lost forever. It’s added to the cost basis of the replacement shares and comes back when those shares are eventually sold. But if you were counting on the loss to offset gains in the current tax year, the timing mismatch can create an unwelcome surprise. If you’re planning a tax-loss sale near an upcoming ESPP purchase date, look at the calendar first.
Selling After You Leave the Company
Shares you’ve already purchased are yours whether you quit, get laid off, or retire. ESPP shares don’t vest the way restricted stock units do, so nothing evaporates when you walk out the door, and the same holding-period rules apply to future sales.
Payroll deductions that hadn’t yet been used to buy shares are treated differently. Most plans refund those accumulated contributions after your termination date, either through your final paycheck or a separate disbursement. Some plans allow a final purchase if your termination falls close enough to a purchase date; that varies by employer, so check plan documents before assuming you’ll get one last discounted buy.
One situation worth flagging: at death, shares receive qualifying-disposition treatment regardless of how long the decedent held them, and heirs generally receive a stepped-up cost basis.2Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans