Skip to main content

    Employee stock purchase plan calculator

    ESPP Calculator

    This ESPP calculator shows the gain from your employee stock purchase plan's discount and lookback on the purchase date, and how a sale splits into pay and capital gain. Pick a qualifying or disqualifying sale to see the estimated federal tax and what is left after it.

    Free to use. No account or sign-up needed.

    Your numbers

    The share price when the offering period began, the day the plan granted your option.

    The share price on the day the plan bought your shares.

    From 0 to 15%, the most the IRS rules allow.

    What you put in from your pay over the offering period.

    Lookback

    Yes prices your shares off the lower of the two dates' prices.

    The share price when you sell.

    Sold after both holding periods end: 2 years from the offering date and 1 year from the purchase date.

    Filing status

    The status on your federal return.

    Wages and other income for the year before deductions, without this sale. The calculator takes off the 2026 standard deduction for your filing status.

    Results

    ResultValue
    Gain on the purchase date$2,400
    Price you paid, 15% off $40.00$34.00
    Shares bought150
    Return on your money at purchase47.06%
    Sale value, 150 shares at $55.00$8,250
    Taxed as pay$900.00
    Long-term capital gain$2,250
    2026 standard deduction$16,100
    Estimated federal tax$535.50
    Profit after tax$2,615

    Your $5,100 buys 150 shares at $34.00, worth $7,500 on the purchase date: a $2,400 gain. Sold at $55.00 in a qualifying sale, $900.00 is taxed as pay and $2,250 as a long-term gain, for an estimated $535.50 of federal tax.

    Uses the 2026 federal tax brackets, capital gains rates and standard deduction from IRS Revenue Procedure 2025-32, and the ESPP rules in IRS Publication 525.

    Profit by when you sell

    When you sellFederal taxProfit after tax
    Sold on the purchase date at $50.00$528.00$1,872
    Disqualifying, held 1 year or less$693.00$2,457
    Disqualifying, held more than 1 year$640.50$2,510
    Qualifying$535.50$2,615

    Each row sells the same shares. The first sells at the purchase-date price and the others at your sale price. A minus sign marks a loss.

    How an ESPP works

    An employee stock purchase plan, or ESPP, sets aside part of each paycheck during an offering period and uses it to buy company stock on the purchase date. A plan that meets the IRS rules can sell you the shares at up to 15% off, a price of at least 85% of the market price, and many plans add a lookback that uses the lower of the offering-date and purchase-date prices.

    The calculator works out the price you pay, the shares your contributions buy and your gain on the purchase date: price paid = the lower price (with a lookback) x (1 - discount), shares = contributions / price paid, and gain = shares x the purchase-date price - contributions.

    It then splits a sale into the part taxed as pay and the capital gain or loss, and estimates the federal income tax on each with the IRS brackets and capital gains rates.

    A worked example

    Say your plan takes a 15% discount with a lookback, the stock is $40.00 on the offering date and $50.00 on the purchase date, and you put in $5,100. The plan uses the lower price, $40.00, so you pay $34.00 a share for 150 shares worth $7,500: a $2,400 gain, 47.06% on your money.

    Sold at $55.00 in a qualifying sale, $900.00 is taxed as pay, the 15% discount on $40.00 for 150 shares, which is less than the $3,150 total gain. The other $2,250 is a long-term gain. Filing single with $90,000 of other income before deductions, that is $198.00 plus $337.50, $535.50 of federal tax, and $2,615 is left after tax.

    A disqualifying sale within a year taxes all $2,400 as pay and $750.00 as a short-term gain, for $693.00 of tax, $157.50 more. Sold on the purchase date, the tax is $528.00 and $1,872 is left.

    How the lookback works

    With a lookback, the plan prices your shares off the lower of two prices: the one on the offering date and the one on the purchase date. When the stock rises during the offering period, as in the example, the discount applies to the older, lower price, so your gain on the purchase date is larger than the discount alone.

    When the stock falls, the plan uses the purchase-date price, and you still buy at the full discount to that day's price.

    Without a lookback, the same $5,100 buys 120 shares at $42.50, a $900.00 gain at purchase (17.65%).

    Plans set their own offering and purchase periods and their own rules, so check your plan documents for the ones yours follows.

    Qualifying and disqualifying sales

    A sale is qualifying when it comes after both holding periods end: 2 years from the offering date, when the plan granted your option, and 1 year from the purchase date. Any earlier sale is disqualifying. IRS Publication 525 sets out both rules.

    In a qualifying sale, the part taxed as pay is the lesser of the discount figured on the offering-date price and your actual gain. The rest of the gain is a long-term capital gain. If you sell below what you paid, nothing is taxed as pay and the loss is a capital loss.

    In a disqualifying sale, the whole bargain at purchase, the purchase-date price minus what you paid, is taxed as pay even if the stock later falls. That amount is added to your cost basis, so the rest of the sale is a capital gain or loss: long-term if you held the shares more than 1 year, short-term if 1 year or less.

    Selling right away or holding

    The table under the results sells the same shares four ways: on the purchase date at that day's price, and at your sale price in each kind of sale. Selling on the purchase date takes the gain from the discount and lookback, and all of it is taxed as pay.

    Holding for a qualifying sale can move part of the gain from pay to long-term capital gain, which is usually taxed at a lower rate. Holding also keeps your money in one company's stock for longer, and the sale price can end up above or below the purchase-date price.

    The calculator shows the tax on the prices you enter. It does not forecast a price or tell you when to sell.

    What the calculator assumes

    • Shares can be fractional and every dollar you put in buys stock, with nothing carried over to the next period.
    • The lookback compares only the offering-date and purchase-date prices you enter.
    • Federal income tax only, at the 2026 IRS brackets and capital gains rates for single and joint filers. State income tax and payroll taxes on the pay part are left out.
    • The 2026 standard deduction for your filing status, $16,100 single or $32,200 joint, comes off your other income, and what it leaves unused covers the sale. Itemized deductions and the extra deductions for age or blindness are left out.
    • For the 3.8% net investment income tax, your income is estimated as your other income plus this sale, and this sale is your only investment income.
    • A capital loss is not netted against other gains or income.
    • Your plan's own limits and rules are not checked. Results are estimates, not tax or investment advice.

    ESPP calculator FAQ

    How do I calculate my ESPP gain?

    Divide your contributions by the price you pay, the lower price with a lookback less the discount, to get your shares. Multiply by the purchase-date price and subtract what you put in. $5,100 buys 150 shares at $34.00, worth $7,500: a $2,400 gain.

    How does an ESPP lookback work?

    The plan applies its discount to the lower of the offering-date and purchase-date prices. With a 15% discount, a $40.00 offering price and a $50.00 purchase price, you pay $34.00 a share. Without the lookback you would pay $42.50.

    Is a 15% ESPP discount a 15% return?

    It is more. Paying 85% of the price is a 17.65% gain on your money if the price is the same on both dates, since the discount comes off the price. With a lookback and a rising price it can be larger still: 47.06% in the example.

    What is a qualifying disposition for ESPP shares?

    A sale after both holding periods end: 2 years from the offering date and 1 year from the purchase date. The part taxed as pay is then the lesser of the discount on the offering-date price and your actual gain, and the rest is a long-term capital gain.

    How is a disqualifying ESPP sale taxed?

    The bargain at purchase, the purchase-date price minus what you paid, is taxed as pay even if the stock fell later. It is added to your basis and the rest is a capital gain or loss. In the example that is $2,400 as pay and $750.00 as a short-term gain within a year.

    How is a qualifying ESPP sale taxed?

    The lesser of the discount figured on the offering-date price and your actual gain is taxed as pay, and the rest is a long-term capital gain. In the example, $900.00 is taxed as pay and $2,250 as a long-term gain, about $535.50 of federal tax for a single filer.

    What happens if I sell ESPP shares right away?

    Selling on the purchase date is a disqualifying sale, so the whole gain from the discount and lookback is taxed as pay, with no capital gain at that day's price. In the example that is $2,400 taxed as pay, $528.00 of federal tax and $1,872 left.

    Is this ESPP calculator free?

    Yes. It runs in your browser with no account and no sign-up. A free GNG account adds the Portfolio Tracker, where you can follow your own holdings.

    Track your own holdings in the Portfolio Tracker and backtest a portfolio with a free GNG account.

    Sign Up Free

    This calculator is for education and is not tax or investment advice. Results are estimates that depend on the numbers you enter, which can contain errors. Read our disclosures.