What your ESPP actually buys you
An employee stock purchase plan, or ESPP, lets you buy your company’s stock at a discount — usually 15% — with money taken straight from your paycheck. The discount sounds like free money, and it is, but the number that matters is not the discount. It is the amount you keep after tax. A $3,000 contribution at a 15% discount buys 88.2353 shares at $34.00 — sell at $50.00 and you keep $4,162.94 after tax, a 38.76% return. This guide shows you how, in seven steps.
Step 1: Find the lookback price
The lookback is the lower of the share price at the start of the offering period and the share price at the purchase date — your plan gives you the cheaper of the two. Here the grant-date price is $40.00 and the purchase-date price is $45.00, so the lookback is $40.00. If the purchase price had been $38.00, so would the lookback.
Step 2: Work out the purchase price
The purchase price is the lookback minus the discount: purchase price = lookback × (1 − discount). With a $40.00 lookback and a 15% discount, that is $40.00 × 0.85 = $34.00 — $6.00 a share below the lookback. At 10% it would be $36.00, and you would buy fewer shares.
Step 3: Count the shares you buy
Divide your contribution by the purchase price: shares = contribution ÷ purchase price. Here $3,000 ÷ $34.00 = 88.2353 shares. Fractional shares are normal. The count scales with the contribution: $1,500 buys 44.1176 shares, $6,000 buys 176.4706.
Step 4: Value the shares and find the gain
Multiply the shares by the sell price: value = shares × sell price. At $50.00, 88.2353 shares are worth $4,411.76, and the gain is $4,411.76 − $3,000.00 = $1,411.76. It has two parts: the instant discount — the shares were worth $3,970.59 at the purchase price, $970.59 more than you paid — and the rise after purchase, from $45.00 to $50.00. Sell at $40.00 and the value is $3,529.41, the gain only $529.41.
Step 5: Split the gain
The discount is (lookback − purchase price) × shares: ($40.00 − $34.00) × 88.2353 = $529.41. It depends only on the contribution and the discount rate — $3,000 at 15% always gives $529.41, whatever the sell price. The capital gain is (sell price − lookback) × shares: ($50.00 − $40.00) × 88.2353 = $882.35. The two add up to the gain: $529.41 + $882.35 = $1,411.76. The split matters because the two pieces are taxed at different rates.
Step 6: Work out the tax
Here is the key idea of the whole guide: the discount is taxed as ordinary income even in a qualifying disposition. Holding two years from the grant date and one year from the purchase date makes the sale qualifying — and that only helps the capital-gain piece. The tax is discount × ordinary rate + capital gain × capital-gains rate: $529.41 × 22% + $882.35 × 15% = $116.47 + $132.35 = $248.82. At a 37% ordinary rate the tax would be $328.24; with a 0% capital-gains rate it would be $116.47.
Step 7: Find the net and the return
Net after tax = value − tax: $4,411.76 − $248.82 = $4,162.94. Profit = net − contribution: $4,162.94 − $3,000.00 = $1,162.94. Return = profit ÷ contribution: $1,162.94 ÷ $3,000.00 = 38.76%. Rounding convention: every figure here is rounded to the nearest cent (nearest ten-thousandth for shares) from the exact unrounded value.
The worked example
Contribution $3,000.00; grant $40.00; purchase $45.00; discount 15%; sell $50.00; ordinary 22%; capital-gains 15%; qualifying. Lookback $40.00; purchase price $34.00; shares 88.2353; value $4,411.76; gain $1,411.76; value at purchase $3,970.59; instant gain $970.59; discount $529.41; capital gain $882.35; tax $248.82; net $4,162.94; profit $1,162.94; return 38.76%. Every figure matches the calculator.
Working backwards
To net $5,000.00, contribute $3,603.22 (exact 3603.2217; $3,603.22 → $5,000.00, $3,603.21 → $4,999.98). To profit $1,000.00, contribute $2,579.67 (exact 2579.6662; $2,579.67 → $1,000.0015 unrounded, $2,579.66 → $999.9976). To profit $2,000.00, sell at $61.16 (exact 61.1608; $61.16 → $1,999.94, $61.17 → $2,000.69). To profit $1,500.00, take a 22.46% discount (exact 22.4609%; 22.46% → $1,499.95, 22.47% → $1,500.45). To break even, sell at $34.49 (exact 34.4941; $34.49 → $2,999.69, $34.50 → $3,000.44). Selling at the $34.00 purchase price still loses $37.06 after tax — the discount is taxed as ordinary income even when the shares have not moved. You need $34.49 to walk away whole.
What changes the answer most
The sell price moves the net most: $60.00 → net $4,912.94 (profit $1,912.94); $40.00 → net $3,412.94 (profit $412.94). The discount is next: 10% → purchase price $36.00, shares 83.3333, net $3,968.33, $194.61 less than at 15%. The ordinary rate is third: 37% → tax $328.24, net $4,083.53, $79.41 less than at 22%; 0% capital-gains → tax $116.47, net $4,295.29. The grant price: $30.00 → lookback $30.00, purchase price $25.50, shares 117.6471, net $5,412.94. The purchase price: $38.00 → purchase price $32.30, shares 92.8793, net $4,360.31. The contribution: $1,500 → net $2,081.47; $6,000 → net $8,325.88; zero → zero.
What not to do
Do not count the discount as tax-free — it is ordinary income in every disposition, qualifying or not. Do not assume the purchase price is your break-even — selling at $34.00 still loses $37.06 after tax. Do not forget the lookback: if the purchase price is lower than the grant price, the lookback is the purchase price. Do not hold the shares just to make the sale qualifying if you would rather have the cash.
How this connects
An ESPP is one piece of equity pay. If you also get RSUs, the RSU calculator works out the tax on those the same way — the discount piece of an ESPP and the vesting piece of an RSU are both ordinary income. And the take-home pay calculator shows what the ESPP money means for your monthly budget.
Bright Side Kit. "How to Calculate Your ESPP Return: A Step-by-Step Guide" https://brightoolbox.com/guides/how-to-calculate-espp-return/ Accessed October 25, 2026.