ESPP Tax Calculator: Estimate What You’ll Owe on Your Shares

This ESPP tax calculator estimates taxes on a completed stock sale or compares what you may owe in common scenarios.
Many, or all, of the products featured on this page are from our advertising partners who compensate us when you take certain actions on our website or click to take an action on their website. However, this does not influence our evaluations. Our opinions are our own. Here is a list of our partners.

The investing information provided on this page is for educational purposes only. NerdWallet, Inc. does not offer advisory or brokerage services, nor does it recommend or advise investors to buy or sell particular stocks, securities or other investments.
Last updated on Jul 22, 2026
Fact Checked
Profile photo of Taryn Phaneuf
Written by
Lead Writer & Content Strategist
Profile photo of Arielle O'Shea
Edited by
Head of Content, Investing & Taxes
Profile photo of Taryn Phaneuf
Written by
Lead Writer & Content Strategist
+ 1 more

Investing in your company’s stock through an Employee Stock Purchase Plan can be a valuable workplace benefit that boosts your compensation. But ESPPs come with their own set of tax rules. Our tax calculator can help you get an idea of what that could mean for you.

If you want to learn the mechanics of ESPP taxes first, jump to our tax explainer below.

ESPP tax calculator

Use the calculator below to estimate taxes on a completed stock sale or compare what you may owe under common scenarios.

The calculator prompts you to enter the marginal income tax rate and the capital gains tax rate that apply to you based on your taxable income. The other necessary information should be available through your ESPP administrator.

How ESPP taxes work

You’ll have to report any ESPP-related income in your annual tax return. You may owe taxes on your ESPP shares when the shares are purchased and when they’re sold, but it depends on how long you held them before selling.

Keep in mind, the best tax strategy for your ESPP shares may not involve getting the lowest possible rate. It depends on your financial situation and goals. Consider working with a financial advisor or tax professional who can help you model potential outcomes and give you personalized advice.

Tax factor #1: The discount you received

The discount you got on the price of your company’s stock is the difference between the fair market value of the stock and the price you paid for it. For example, if your ESPP provides a 15% discount on stock purchases and the stock is trading at $15 per share on the day of the purchase, you get to buy the shares for $12.75, for a discount of $2.25 per share. If you bought 100 shares, your total discount was $225.

The discount ($225, in this example) is taxed as ordinary income, which means it’s taxed at your marginal income tax rate.

But there’s a caveat: The discount that’s used to determine your tax liability may differ from the discount you actually received. That’s because the share price that is used to calculate your discount for tax purposes could be either the price of the stock on the offering date or the price of the stock on the purchase date. And which one is used will depend on how long you held the stock. More on that below.

🤓Nerdy Tip

If your ESPP has a “lookback” feature, the price you pay (and receive a discount on) could be either the market price on the offering date or the market price on the purchase date — whichever is lower.

Tax factor #2: How much you sold the stock for

If the stock has increased in value since you purchased it, you may owe taxes on the gain when you sell the shares. (Alternatively, if the value decreased, you may be able to deduct the loss on your taxes.) The gain is the difference between what you paid for the stock and what you got from the sale.

Picking up our previous example, let’s say you decide to sell those shares when the price reaches $20 (up from $15 on the purchase date). Your capital gain is $5 per share, or $500 for 100 shares.

The actual capital gains tax rate you pay depends on how long you’ve held the stock (more on that below), as well as your tax-filing status and other taxable income.

» Learn strategies for reducing capital gains tax

Tax factor #3: How long you held the stock

When you sell, you have to meet two holding period requirements to get favorable tax treatment.

  • Hold the stock for at least a year from the purchase date. The purchase date is the day the ESPP used your accumulated contributions to buy the stock.

  • Hold the stock at least two years from the offering date. The offering date is the start of your plan’s offering period. It may also be called the grant date or the enrollment date.

If you meet both requirements, the IRS considers it a qualifying sale. If you don’t, it’s considered a disqualifying sale.

Qualifying sale vs. disqualifying sale

Discount tax treatment

Gains tax treatment

Disqualifying sale, short-term capital gains

What gets taxed: The difference between the discounted price you paid and the stock price on the ESPP purchase date.

Tax rate: Ordinary income.

What gets taxed: The difference between the fair market value of the stock on the purchase date and what you got from the sale.

Tax rate: Short-term capital gains.

Disqualifying sale, long-term capital gains

What gets taxed: The difference between the discounted price you paid and the stock price on the ESPP purchase date.

Tax rate: Ordinary income.

What gets taxed: The difference between the fair market value of the stock on the purchase date and what you got from the sale.

Tax rate: Long-term capital gains.

Qualifying sale

What gets taxed: The difference between the discounted price you paid and the stock price on either the ESPP offering date or the ESPP purchase date — whichever is lower.

Tax rate: Ordinary income.

What gets taxed: The difference between the fair market value of the stock on the purchase date and what you got from the sale.

Tax rate: Long-term capital gains.

» Ready to run the numbers? Jump back to the calculator