An employee stock purchase plan, or ESPP, lets you buy your company’s stock at a discount through automatic payroll deductions. A well-designed ESPP is one of the closest things to free money that a normal job offers, yet many eligible employees never enroll, often because the mechanics sound complicated. This guide explains how an ESPP works, why the discount and lookback are so valuable, and how the sales are taxed.
The basic mechanics
In a typical qualified ESPP, you elect to set aside a percentage of each paycheck, up to a plan limit. The money accumulates over a defined offering period. At the end of the period, the plan uses your accumulated contributions to buy company shares automatically, and the shares land in a brokerage account in your name.
Two features make the purchase favorable:
- The discount. Many plans let you buy at a discount off the market price, commonly up to 15 percent. Buying a 100 dollar stock for 85 dollars is an immediate 17.6 percent return on the cash you put in, before the stock moves at all.
- The lookback. Better plans include a lookback provision. The purchase price is the discounted price based on the lower of the stock price at the start of the offering period or the price on the purchase date. If the stock rose during the period, you still buy at the discount off the lower starting price, which can make the effective discount far larger than the headline number.
A worked example of the lookback
Suppose an offering period starts with the stock at 80 dollars and ends with it at 120 dollars. Your plan offers a 15 percent discount with a lookback.
Without a lookback, you would pay 15 percent off the 120 dollar purchase-date price, or 102 dollars. With a lookback, you pay 15 percent off the lower 80 dollar starting price, or 68 dollars, then own a share worth 120 dollars. That is a 76 percent gain on day one. The lookback turns a modest discount into a large one when the stock rises.
Our ESPP calculator lets you plug in your contribution rate, discount, and lookback to see the effective return.
How ESPP shares are taxed
Taxation of a qualified ESPP depends on how long you hold the shares after buying them, and it splits into two categories: the discount portion and the capital gain portion.
The discount you received is generally taxed as ordinary income at some point. The capital gain or loss is the difference between your sale price and your cost basis. How these pieces are sized depends on whether your sale is qualifying or disqualifying.
Disqualifying disposition. If you sell before meeting the holding requirements, the discount is taxed as ordinary income in the year of sale, and any additional gain is a capital gain. This is the more common outcome for people who sell soon after buying.
Qualifying disposition. To qualify, you must hold the shares more than two years from the start of the offering period and more than one year from the purchase date. When you qualify, a smaller portion is taxed as ordinary income and more of the profit can be taxed at lower long-term capital gains rates. The exact split has a specific formula, but the key point is that qualifying generally produces a better tax result.
Either way, the capital gains side of the calculation runs through the usual rules. You can model it with our capital gains tax calculator, and check how the ordinary income portion affects your bracket using the federal income tax calculator.
Sell immediately or hold for the tax break?
This is the central ESPP decision, and there is a genuine tension.
Selling immediately locks in the discount as a near-guaranteed return and removes single-stock risk. The downside is that the discount is taxed as ordinary income and you forgo any further upside. For many people, especially those whose net worth is already tied to their employer through salary and other equity, selling promptly is the disciplined choice.
Holding to reach a qualifying disposition can lower your tax rate on part of the gain, but it requires you to keep money in a single stock for years and exposes you to the chance that the share price falls and erases the discount entirely. A smaller tax bill on a shrinking investment is not a win.
A reasonable framing: the discount is the reliable part of the value, and the tax optimization is the speculative part. Capture the reliable part first; chase the tax break only if you would independently choose to hold the stock.
Why an ESPP is usually worth joining
Even setting aside the holding-period strategy, an ESPP with a meaningful discount and a lookback offers a return that is hard to find elsewhere on cash you would otherwise just hold. As long as you can afford the payroll deductions and you have a plan for selling, contributing up to the level you are comfortable with is often a strong move. If you are weighing an ESPP against other equity in an offer, the equity package comparison calculator can help you see the relative value.
One cash-flow detail worth planning for: your contributions come out of each paycheck throughout the offering period, but the shares are not purchased until the end. That means money sits aside for months before it buys anything, which can pinch a tight budget. Decide on a contribution rate you can sustain without dipping into your emergency fund or running up a credit card balance, because a high-rate balance compounding against you would erase the value of the discount many times over. It is also worth checking your plan’s specific rules, since the discount percentage, whether a lookback applies, the length of the offering period, and any limits on how much stock you can buy all vary from one employer to the next and directly change how good the deal is.
Frequently asked questions
What is the lookback in an ESPP and why does it matter?
A lookback sets your purchase price using the lower of the stock price at the start of the offering period or the price on the purchase date, then applies the discount. If the stock rises during the period, the lookback lets you buy at a discount off the lower starting price, which can make your effective discount much larger than the stated percentage.
Is the ESPP discount taxed as income or capital gains?
The discount portion is generally taxed as ordinary income. The additional profit above your cost basis is a capital gain. Whether more of the gain qualifies for lower long-term rates depends on meeting the qualifying disposition holding periods. Use the capital gains tax calculator to model the capital gains side.
Should I sell my ESPP shares right away?
Selling immediately captures the discount as a fairly reliable return and avoids concentrating your savings in one company. Holding longer can reduce the tax rate on part of the gain through a qualifying disposition, but it ties up money in a single stock and risks the price falling. Selling promptly is a common, disciplined default.
What are the holding periods for a qualifying ESPP disposition?
You must hold the shares more than two years from the beginning of the offering period and more than one year from the purchase date. Meeting both shifts more of your profit into lower long-term capital gains treatment. Selling before either is met is a disqualifying disposition, taxing the discount as ordinary income.