ESPP Calculator
The offering period, the discount and the two dispositions
Your result will appear here
Fill in the fields on the left and this updates as you type.
Know what this estimate is based on
- Jurisdiction
- General mathematical model
- Scope and limitations
- Planning indicator only. It does not assess every part of a household's finances or replace individualized professional advice.
- Source links checked
- Jul 30, 2026
Built and regression-tested by Smart Tools Lab. It has not been individually reviewed by a licensed financial, tax, or legal professional.
How to use
- 01
Enter your salary and the share of pay your plan takes out of each check. Plans set their own cap, commonly 10% or 15%, and section 423 does not set one.
- 02
Enter the length of the offering period in months — six is the commonest pattern, and 24 with interim purchases is the other. Those three fields together set the money going in.
- 03
Enter the share price on the FIRST DAY of the offering period. That is the lookback price, and separately it is the price the $25,000 statutory ceiling is measured against.
- 04
Enter the share price on the purchase date, and — if you plan to hold rather than sell at purchase — the price you expect to sell at. Leaving the sale price at zero prices the sell-immediately case.
- 05
Set your top federal bracket and your long-term capital gains rate, then read the built-in gain and its annualized return, and compare the three rows in the table: selling at purchase, holding past both clocks, and what the same plan would be worth without a lookback.
Formula
Contributions this offering period = salary × contribution % × (offering months ÷ 12). Lookback price = the LOWER of the grant-date and purchase-date price, × (1 − discount %). Without a lookback the price is the purchase-date price × (1 − discount %). Shares = contributions ÷ your price, capped by the section 423(b)(8) ceiling: $25,000 of GRANT-DATE value for each calendar year the option is outstanding, so the maximum is $25,000 ÷ the grant price per year. Anything over the cap is refunded as cash. Built-in gain = shares × the purchase-date price − contributions used. Annualized = (1 + built-in ÷ contributions) raised to (12 ÷ offering months), less one. DISQUALIFYING disposition: ordinary income = shares × (purchase price − your price), whatever the price has done since; basis steps up to the purchase-date value and the rest is capital gain or loss. QUALIFYING disposition (past two years from grant AND one year from purchase): ordinary income = shares × the LESSER of (grant price × discount %) and (sale price − your price). Everything above that is long-term capital gain.
Example
A $95,000 salary routing 10% of pay into a six-month offering period: $4,750 of contributions. The share price is $40 on the first day and $52 on the purchase date, the plan gives the full 15% with a lookback, and your bracket is 24% with a 15% long-term rate. Your price is 15% off the lower of the two, so $34.00 a share, and $4,750 buys 139.71 shares. They are worth $7,265 at purchase — $2,515 of built-in gain, a 52.9% return over six months, about 133.9% annualized. Without a lookback you would have paid $44.20, bought 107.47 shares and had $838 of built-in gain, so the lookback alone is worth $1,676 here. The $25,000 ceiling is measured on grant-date value: 139.71 shares at the $40 grant price is $5,588 of the $25,000 available, so nothing is cut back. The three cases. Sell at purchase (disqualifying): $2,515 of ordinary income at 24%, tax $604, after-tax profit $1,911. Hold past both clocks (qualifying): ordinary income is the lesser of the $6.00 grant-date discount and the $18.00 actual gain, so $838 ordinary plus $1,676 of long-term gain at 15%, tax $453, after-tax profit $2,062 — $151 more, in exchange for eighteen more months of price risk. The same plan without a lookback, sold at purchase: $838 of ordinary income, $201 of tax and $637 of profit. Note that the qualifying figure and the no-lookback figure are both $838: that is structural rather than coincidental, since each equals the contributions grossed up by 15 ÷ 85.
Definitions
- Offering period
- The window between the grant date and the purchase date, over which payroll deductions accumulate. Six months is the commonest length; 24 months with interim purchases is the other standard pattern.
- Lookback
- A plan feature applying the discount to the lower of the grant-date and purchase-date price. Optional under section 423, and usually worth more than the discount itself.
- Qualifying disposition
- A sale more than two years after the grant date AND more than one year after the purchase date. Caps ordinary income at the lesser of the grant-date discount or the actual gain.
- Disqualifying disposition
- Any sale that misses either clock. The full purchase-date discount is ordinary income however the share price has moved since — including where you sold at a loss.
- Section 423(b)(8) limit
- $25,000 of GRANT-DATE stock value per calendar year the option is outstanding. Not what you pay, not the discounted price, and not the value at purchase.
Good to know
Where the return actually comes from
A section 423 employee stock purchase plan is a payroll deduction that buys shares at up to a 15% discount — the statutory maximum, and the figure most plans use. On its own that is worth about 17.6% on the money, since paying 85 cents for a dollar's worth of stock returns 15 ÷ 85. But the feature that does most of the work is the LOOKBACK, and it is optional rather than statutory, so it is the first thing to check in the plan document. With a lookback the discount applies to the LOWER of the price on the first day of the offering period and the price on the purchase date. Take a $95,000 salary routing 10% of pay into a six-month offering — $4,750 of contributions — with a $40 grant price and a $52 purchase price. Your price is 15% off $40, so $34.00, and the money buys 139.71 shares worth $7,265 the day they land. That is $2,515 of built-in gain, a 52.9% return on your own money over six months, roughly 133.9% annualized. Without a lookback you would pay 15% off $52, so $44.20, buy 107.47 shares and hold $838 of built-in gain — meaning the lookback alone is worth $1,676 here, twice the discount. One further point pushes the true rate higher still: contributions accumulate a slice at a time across the offering period rather than sitting in the plan from day one, so your average balance is roughly half the total. The return is earned on money that was, on average, only in for three months. None of this depends on a view about the stock, which is what makes it unusual.
The $25,000 rule, and what it is measured on
Section 423(b)(8) is the most misquoted rule in the subject and almost every summary of it gets the measurement wrong. The cap is on the FAIR MARKET VALUE OF THE STOCK AT GRANT — not what you pay, not the discounted price, and not what the shares are worth on the purchase date — at $25,000 for each calendar year in which the option is outstanding. At a $40 grant price that is 625 shares a year, however far the stock has run by the purchase date and however large the discount turns out to be. Our example uses 139.71 shares, which is $5,588 of grant-date value against $25,000 available, so nothing is cut back. The rule bites hardest exactly where the plan is most valuable: a stock that triples between grant and purchase gives you an enormous discount but the same 625-share ceiling, so the dollar value of what you may buy is fixed at the START of the period rather than at the end of it. When contributions would exceed the ceiling, the plan buys up to it and refunds the excess payroll deductions as cash — no penalty, but no shares either, and the refunded money has sat there earning nothing for months. Two related details are worth knowing. The ceiling is per employer and accrues per calendar year the option is outstanding, so a 24-month offering period spans more than one year's worth of it. And plan-level caps are separate and usually tighter: most plans cap the payroll contribution at 10% or 15% of pay, and some cap the share count outright. Section 423 sets no contribution percentage of its own; the percentage cap you are subject to is your employer's choice.
Two clocks, and the lesser-of rule that does all the work
A QUALIFYING DISPOSITION requires both clocks to be satisfied: more than two years from the GRANT date and more than one year from the PURCHASE date. Miss either and the sale is disqualifying. On a six-month offering period the binding constraint is almost always the two-year clock from grant, which means holding roughly eighteen months past the purchase date. The difference between the two cases is not simply a tax rate — the two measure ordinary income in genuinely different ways, and understanding that is the whole content of the subject. A DISQUALIFYING disposition taxes the FULL purchase-date discount as ordinary income: 139.71 shares × ($52 − $34.00) = $2,515, taxed at your 24% bracket for $604, leaving $1,911 of after-tax profit. It does this however the share price has moved since — including where you sold at a loss, which is the case that catches people in a falling market. A QUALIFYING disposition taxes the LESSER of the grant-date discount ($40 × 15% = $6.00 a share) or your actual gain ($52 − $34.00 = $18.00 a share). Here that is $6.00, so $838 of ordinary income and $1,676 of long-term capital gain at 15%, a total tax of $453 and $2,062 of after-tax profit. Holding is worth $151 on a $4,750 investment. Two things follow. First, you cannot convert the discount itself into a capital gain: the qualifying rule only CAPS the ordinary slice, it never changes its character. What holding buys is that appreciation above the discount is taxed at 15% rather than 24%, and that the ordinary slice is measured against the grant price instead of the purchase price — on a stock that ran up hard between the two dates, that second effect is much the larger. Second, the lesser-of rule is genuinely protective in a falling market, because ordinary income can never exceed what you actually made.
Nothing is withheld, and where the ESPP sits in the queue
A section 423 disposition carries no income tax withholding at all, and no Social Security or Medicare either — section 3121(a)(22) excludes it from FICA outright, which is a real advantage an RSU vest does not have. But the ordinary income still lands on your W-2 and it is still taxed at your bracket. Nobody has set aside the $604 due on a sell-at-purchase in our example, so covering it is your job, through extra withholding on Form W-4 line 4(c) or an estimated payment for the quarter. The people who discover this in April are the ones who sold in the same year they bought and spent the proceeds — a very easy thing to do, since the money arrives looking like a windfall rather than like wages. Where the paycheck cannot fund everything, the usual order of claims is the employer 401(k) match first, because it is an immediate and certain return on the deferred dollar with no market risk at all; then the ESPP discount, worth 52.9% over six months on these numbers; then additional retirement money. But the ESPP has one property the others do not, and it argues for a higher place in the queue than a purely mathematical ranking suggests: the money comes back as cash a few months later rather than at 59 and a half. For anyone still building an emergency fund, that liquidity makes it a genuinely different instrument rather than a lower-priority version of the same one. The default worth defending at the end of it is selling at purchase. The built-in gain is a return the plan gave you for showing up and it does not depend on the stock going anywhere; holding converts $151 of tax treatment but puts $7,265 of your own money at risk in the company that also pays your salary for another eighteen months. Both choices are defensible. Holding by accident, which is what happens to most ESPP shares, is not.
Frequently asked questions
Is an ESPP actually worth it?
On the standard terms, emphatically. A 15% discount with a lookback on a rising stock is an enormous return on money that is only in the plan for a few months. Route 10% of a $95,000 salary into a six-month offering — $4,750 — with a $40 grant price and a $52 purchase price and you buy 139.71 shares at $34.00 that are worth $7,265 the day they land. That is $2,515 of built-in gain, a 52.9% return on your own money over six months, or about 133.9% annualized. And because contributions accumulate over the period rather than sitting there from day one, your average balance is roughly half that, so the true rate is higher still.
What does the lookback actually do?
It applies the discount to the LOWER of the price on the first day of the offering period and the price on the purchase date, rather than to the purchase price alone. That is a much bigger deal than the headline discount. With a $40 grant price and a $52 purchase price the lookback price is 15% off $40, which is $34.00; without one you would pay 15% off $52, which is $44.20. The same $4,750 buys 139.71 shares instead of 107.47, and the built-in gain is $2,515 rather than $838 — so on these numbers the lookback alone is worth $1,676, twice the discount itself. Check the plan document, because not every plan has one.
What is the $25,000 limit, exactly?
The most misquoted rule in the subject. Section 423(b)(8) caps the fair market value of the stock AT GRANT — not what you pay, not the discounted price, and not what the shares are worth on the purchase date — at $25,000 for each calendar year in which the option is outstanding. At a $40 grant price that is 625 shares a year, however far the stock has run by the purchase date. A purchase that would exceed it is cut back and the excess payroll deductions are refunded to you as cash rather than buying more shares.
What makes a disposition qualifying?
Two clocks, both of which must be satisfied: more than two years from the GRANT date and more than one year from the PURCHASE date. Miss either and the sale is disqualifying. On a six-month offering period the binding clock is usually the two-year one from grant, which means holding roughly eighteen months past the purchase date. The difference between the two cases is not simply a tax rate — the two measure ordinary income in completely different ways.
How much better is a qualifying disposition?
Less than people expect, and it is the measurement rather than the rate that does the work. Selling at purchase is disqualifying, so the FULL purchase-date discount is ordinary income: 139.71 shares × ($52 − $34.00) is $2,515, taxed at 24%, leaving $1,911 after tax. Holding past both clocks makes ordinary income the LESSER of the grant-date discount ($6.00 a share) or your actual gain ($18.00 a share) — so $838 of ordinary income and $1,676 of long-term capital gain at 15%, leaving $2,062. The difference is $151 on a $4,750 investment, bought by carrying the share price risk for another eighteen months.
Can I turn the discount itself into a capital gain?
No. Under both dispositions the discount is ordinary income; the qualifying rule only CAPS it, and never converts it. What holding actually buys you is that appreciation above the discount is taxed at 15% instead of 24%, and that the ordinary slice is measured against the grant price rather than the purchase price. On a share that has run up hard between grant and purchase, that second effect is much the larger of the two.
Is anything withheld from an ESPP purchase?
No, and that is the trap. A section 423 disposition carries no income tax withholding at all, and no Social Security or Medicare either — section 3121(a)(22) excludes it from FICA outright, which is a genuine advantage an RSU vest does not have. But the ordinary income still appears on your W-2 and it is still taxed at your bracket. Nobody has set aside the $604 due on a sell-at-purchase here, so it is yours to cover through extra withholding or an estimated payment. The people who find this out in April are the ones who sold in the same year they bought and spent the proceeds.
What happens if the share price falls during the offering period?
The lookback does exactly what it exists for: your price is the discount off the LOWER figure, so a fall between grant and purchase gives you a cheaper purchase rather than a loss. A qualifying disposition also earns its keep in that case, because the lesser-of rule means ordinary income can never exceed what you actually made. It is the DISQUALIFYING disposition that hurts in a falling market, taxing the full purchase-date discount as wages even where you sold at a loss.
Where does an ESPP sit against my 401(k)?
The usual order is the employer 401(k) match first — an immediate, certain return on the deferred dollar with no market risk at all — then the ESPP discount, then additional retirement money. The ESPP has one property the others do not: the money comes back as cash a few months later rather than at 59 and a half, which makes it a genuinely different instrument rather than a lower-priority version of the same one. For anyone who can only fund one, that liquidity is often the deciding argument.
