Employer Stock Purchase Plan (ESPP) Calculator
How to Use This Calculator
- 1
Enter Purchase Price ($) and Number of Shares Purchased
Use the actual per-share price you paid and the number of shares acquired through the plan.
- 2
Enter Current Stock Price ($), Discount Percentage (%), and Tax Rate (%)
The formula uses purchase price, current stock price, share count, and tax rate. Discount Percentage (%) is displayed as an input but is not used to calculate the results.
- 3
Review cost, market value, and gain
The after-tax result applies your entered tax rate to the entire price difference. It does not model ESPP tax rules, fees, or a future sale price.
Example Calculation
An employee buys 200 shares at $25 each; the current share price is $40, and the entered tax rate is 20%.
Purchase Price ($)
25.00
Current Stock Price ($)
40.00
Number of Shares Purchased
200
Discount Percentage (%)
15
Tax Rate (%)
20
Results
Total Purchase Cost
$5,000.00
Market Value of Shares
$8,000.00
Total Gain
$3,000.00
Net Gain After Tax
$2,400.00
Tips
100 shares produce half the displayed dollar amounts
Change Number of Shares Purchased from 200 to 100 while holding the prices and rate fixed. Total Purchase Cost becomes $2,500, Market Value becomes $4,000, and Total Gain becomes $1,500.
A $30 purchase price reduces the gross gain to $2,000
Change Purchase Price ($) from $25 to $30 with the other inputs unchanged. For 200 shares at a $40 current price, Total Gain becomes $2,000 and Net Gain After Tax becomes $1,600.
Changing Discount Percentage (%) alone does not change the results
Try changing the discount from 15% to 10%. The outputs stay the same because the formula uses the entered Purchase Price ($), not the discount field.
What this calculator estimates
An employee stock purchase plan (ESPP) lets eligible employees buy employer shares under plan-specific rules, often at a discount. This calculator compares the entered purchase price with the current stock price and estimates the gain on the shares. Its after-tax figure is a simplified estimate, not a tax return calculation or a projection of proceeds from a later sale.
How the ESPP calculation works
Total purchase cost = Purchase price × Number of shares
Market value = Current stock price × Number of shares
Total gain = Market value − Total purchase cost
Net gain after tax = Total gain × (1 − Tax rate)
The percentage inputs are converted to decimals. In the example, 200 × $25 = $5,000 in purchase cost, and 200 × $40 = $8,000 in current market value. The gain is $8,000 − $5,000 = $3,000; applying the entered 20% tax rate gives $3,000 × 0.80 = $2,400.
The Discount Percentage (%) field is not part of these equations. The Purchase Price ($) field must contain the price actually paid; changing the discount input alone does not affect any result.
How share count and purchase price change the estimate
The model scales the gain with the number of shares and the difference between current price and purchase price. A higher purchase price narrows the spread; a lower purchase price widens it.
| Shares | Purchase price | Current price | Purchase cost | Total gain | Net at 20% |
|---|---|---|---|---|---|
| 100 | $25 | $40 | $2,500 | $1,500 | $1,200 |
| 200 | $25 | $40 | $5,000 | $3,000 | $2,400 |
| 200 | $30 | $40 | $6,000 | $2,000 | $1,600 |
These are current-value comparisons, not guaranteed sale proceeds. The stock price can change, and the calculator excludes transaction fees, plan restrictions, and tax treatment that depends on when shares are sold.
What to check before selling or holding
Check the plan's purchase price formula, enrollment and purchase dates, holding-period rules, and sale restrictions. The IRS explains that employee stock purchase plan shares can have different tax treatment depending on the plan and sale timing in Publication 525. The IRS stock options and employee stock purchase plan topic also distinguishes tax events associated with employee equity compensation.
Holding shares after purchase leaves your investment concentrated in your employer. To compare plan purchases with direct share purchases, use the direct stock purchase plan calculator or stock calculator. For a plan-specific tax estimate, use the ESPP tax calculator.
When to use a different calculator
- Estimate taxes using ESPP sale and holding-period details → employee stock purchase plan tax calculator
- Estimate shares bought through a direct stock purchase plan → direct stock purchase plan calculator
- Calculate the value of employer stock options → employer stock option calculator
- Compare stock value at different prices → stock calculator
Frequently Asked Questions
What is an ESPP?
An employee stock purchase plan lets eligible employees buy company shares through a workplace plan, often at a discount. The plan document sets enrollment periods, purchase dates, pricing rules, and any sale restrictions.
How do I calculate the gain on ESPP shares?
1. Multiply the purchase price per share by the number of shares to find total cost. 2. Multiply the current share price by the share count to find current market value. 3. Subtract cost from market value to find the gross gain. 4. Multiply that gain by 1 minus the entered tax rate for this calculator's simplified after-tax estimate.
Does the discount percentage affect this calculator's results?
No, the Discount Percentage (%) input is not included in the formula. Enter the actual Purchase Price ($) paid per share; the calculator does not derive that price from the discount.
Is Net Gain After Tax my actual ESPP profit after tax?
No, it applies your entered tax rate to the full difference between current market value and purchase cost. Actual ESPP tax treatment depends on plan terms, holding periods, and sale details; see the IRS's Publication 525 guidance on employee stock purchase plans.
Should I hold ESPP shares after the purchase date?
Holding shares preserves exposure to your employer's stock, so the choice depends on your risk tolerance, liquidity needs, tax consequences, and plan restrictions. Compare the potential tax treatment of a qualifying sale with the added concentration risk before deciding.
