Your RSUs vest on a schedule you can't control. Your ISOs might trigger something called AMT. But there's one piece of your comp package where the price is set in your favor before you buy, and at the typical tech company, more than half of eligible employees leave it on the table.
Here's how the math works, what the taxes look like, and why the "just hold" instinct is usually the wrong move when most of your net worth is already riding on one company.
What You're Signing Up For
An Employee Stock Purchase Plan lets you buy your employer's stock at a discount, funded by payroll deferrals over an offering period, usually six months. You elect a percentage or dollar amount at open enrollment, the company holds the money, and on the purchase date, your deferrals buy shares at a discount to the market price.
The reason it qualifies as "free money" is everything stacked on top: the discount itself, the lookback provision (if your plan has one), and the tax treatment on the way out.
The Discount (and Why the Lookback Matters)
ESPP discounts range from 1% to 15%. A 15% discount is the IRS maximum, and most plans go straight to the cap.
A 15% discount alone means buying a dollar of stock for 85 cents: a 17.6% instant gain at the moment of purchase. Whether you keep it depends on how fast you sell.
With a lookback provision, the plan compares the stock price on the offering date (typically a few days after your enrollment window closes) to the price on the purchase date (say six months later), and applies your discount to the lower of the two. This is where ESPPs go from nice to nearly ridiculous.
Quick illustration: if the stock was $15 on the offering date and $25 on the purchase date, your 15% discount applies to the $15. You pay $12.75 for stock worth $25. That's a 96% gain.
Without a lookback, the discount applies only to the purchase-date price. Still a good deal. Just not as good.
Not every plan has a lookback. Check yours.
What $12,000 Buys You
Let's run it.
You elect to defer $1,000 per paycheck into your ESPP over a six-month offering period. Paid semi-monthly, that's $12,000 in payroll deferrals held by your company, waiting until the purchase date.
Your plan: 15% discount with a lookback.
Offering-date price: $15
Purchase-date price: $25
Your actual per-share cost: $12.75 (15% off the lower price)
Shares purchased: 941
FMV on purchase date: $23,525
Built-in pre-tax gain: $11,525
That's a 96% gross gain on the $12,000 you deferred, created entirely by plan mechanics. No stock-picking. No market timing. Just being enrolled.
The IRS cap. There's a ceiling on the party: the tax code limits ESPP purchases to $25,000 of stock per calendar year, measured at the offering-date price. For a senior tech employee with $400K–$800K of total comp, that cap binds well before December. Most plans auto-cap contributions once you hit it.
The Tax Rules in One Screen
Selling ESPP shares triggers a mix of ordinary income and capital gain (or loss). The split depends on whether your sale is a qualifying disposition (QD) or a disqualifying disposition (DQD).
A qualifying disposition requires holding the stock for:
More than 1 year from the purchase date, AND
More than 2 years from the offering date
Anything else is a disqualifying disposition. That's the whole distinction.
What gets taxed how:
Your cost basis in both cases: what you actually paid, plus the ordinary income you recognized. That prevents double taxation of the same dollar.
Nobody withholds this for you. ESPP income sits in an odd corner of the code. It isn't subject to Social Security or Medicare tax, which RSU income is. But your employer generally doesn't withhold income tax on it either: the ordinary income lands on your W-2, nothing comes out against it, and the bill shows up when you file. In the example above, that's $11,525 of income with nothing set aside to cover it.
Short version: QDs push more of the gain into long-term capital gains territory (lower rate). DQDs push more through as ordinary income (higher rate). The difference is real, but it's almost never the biggest variable in the decision.
Three Prices, Two Ways Out
Let's stress-test the same $12,000 deferral against what the stock does next. Assume 35% ordinary tax and 15% long-term capital gains. State tax makes these worse.
Basis in each case = actual cost + ordinary income recognized. Capital losses assumed usable against other capital gains in the year. Net after-tax is total proceeds minus tax, so it includes the $12,000 you deferred coming back.
Two things jump out.
The QD tax advantage is real but modest. Holding to a qualifying disposition saves roughly $1,900 of tax in each scenario: the benefit is essentially the discount amount multiplied by the spread between ordinary and LTCG rates. Nice. Not life-changing.
Stock performance dwarfs tax treatment. Between the best outcome ($25,372) and the worst ($15,492), the gap is $9,880: more than five times the QD benefit. That gap is driven entirely by what the stock does during the holding period, not by which IRS rule applies.
You're optimizing a $1,900 decision inside a $9,880 one.
Why "Hold to Qualifying" Is Often the Wrong Answer
The table says QD is the more tax-efficient path. Most ESPP guides stop there and tell you to hold. That works if you live in a vacuum. You don't.
Three reasons the "just hold" instinct is often wrong.
1. The ESPP isn't where the position starts. If you've been at a $10B tech company for a few years, your vested RSUs are in that stock. Your unexercised ISOs are in that stock. Your 401(k) company match might even be in that stock. Buying more of it through your ESPP and holding for 18 months to reach QD treatment stacks another layer onto a position that already moves your net worth on its own. And it doesn't take a disaster to make that a bad trade. A stock priced for excellent quarters gives back more than $1,900 on a merely fine one.
2. The stock can move against you. Look at the $20 row. If the stock drops from $25 at purchase to $20 at sale, selling on purchase day nets $19,491. Holding to QD nets $17,374. The QD tax benefit didn't cover the drop. And that's only a 20% decline, well inside what a single-stock position can do over 18 months.
3. Your cash might have a better job. If you're saving for a down payment, contributing to a 529 plan, or diversifying out of employer stock, converting the ESPP discount to cash puts the money where you actually need it. Locking it up in more employer stock for 18 months to save $1,900 of tax is a trade, not a gift.
None of this means holding is always wrong. If the rest of your portfolio is diversified and you can afford to take risk with company shares, holding can make sense. But the default should not be "always hold." The default should be: run the numbers against the rest of your picture, then decide.
Where ESPP Fits in Your Equity Stack
ESPP decisions don't exist in isolation. They sit on top of every other piece of your compensation package, and the answers compound.
The questions we actually work through with clients at this stage:
Should ESPP proceeds fund a cash reserve so you can exercise ISOs before year-end?
Where does this year's income put your marginal bracket, and does that change the QD-versus-DQD math?
Once you factor in cash flow and other savings vehicles, how much can you realistically put into the ESPP?
If employer stock is already 40% of your liquid net worth, how much higher does another ESPP cycle push that number if you hold instead of sell?
Nobody signs up for an ESPP thinking about any of this. Most people pick a percentage, set the deferral, and forget about it. That's fine. The discount is still worth having even if you don't optimize downstream.
Your ESPP Isn't the Point
Your ESPP is the cheapest stock you will ever buy, and skipping it is turning down money your employer is actually trying to hand you. Figure out what you can defer. The hard decision comes after the shares land.
The more interesting question, over a decade, is whether every piece of your comp package gets run together: the same tax projection, the same cash flow model, the same portfolio allocation. ESPP proceeds deployed where they're most useful. Concentrated employer stock unwound methodically instead of all at once.
That's the quiet work. It's slower than anything else in this article, and it's the part that eventually changes which job offers you entertain.