Indexes
IRC 423 and IRS Publication 525

ESPP tax calculator: employee stock purchase plan tax, disqualifying and qualifying disposition.

Enter your offering price, purchase price and sale price. This prices both dispositions side by side, so you can see exactly what holding the shares long enough is worth, and what the compensation element does to your cost basis.

2026 brackets Lookback supported Nothing leaves your browser

Most ESPP calculators tax the discount you got on the purchase date and stop. The statute does something different once you have held the shares long enough, and the difference is usually the largest number on this page.

ESPP tax calculator

The offering

The sale

You paid
Total profit
Disposition
Tax on the profit
Disposition W-2 wages Capital gain Total tax
Qualifying 2 years from offering, 1 from purchase
Disqualifying Either clock missed

Holding to a qualifying disposition moves out of wage income and into long-term capital gain, worth on this sale.

At these prices waiting is worth nothing. That happens when the stock has not risen much since the offering date, so the grant-date discount and the purchase-date bargain element are close to the same number.

Your broker will report a basis of , the cash you paid, leaving out the already taxed as wages. Filing it that way costs an extra on the same money. The fix is a basis adjustment on Form 8949.

Kept after tax no Social Security or Medicare on any of it

At the offering-date price these shares are worth more than the $25,000 a year that section 423(b)(8) allows a single plan to grant. Check whether the purchase spans two offering periods.

Federal only. Add your state rate, use the RSU tax calculator if restricted stock vested in the same year, and the capital gains tax calculator if you are selling other positions too. Educational information, not tax advice.

In short

An employee stock purchase plan is taxed when you sell, never when you buy, and the sale splits your profit into wage income and capital gain. Which split you get depends on two clocks. Sell before the later of two years from the offering date and one year from the purchase date, and you have a disqualifying disposition: the full discount you received on the purchase date becomes W-2 wages at your ordinary rate. Clear both clocks and section 423(c) applies a much kinder rule, taxing as compensation only "the lesser of" your total gain or "the excess of the fair market value of the share at the time the option was granted over the option price." In a plan with a lookback and a stock that rose, that grant-date figure is far smaller, and everything above it is long-term capital gain. Two details make an ESPP unlike an RSU: no Social Security or Medicare tax applies, because section 3121(a)(22) excludes it, and no federal income tax is withheld either, because section 421(b) says none is required. The whole bill arrives with your return.

Last updated September 2026

// TWO CLOCKS

ESPP tax rules

Nothing is taxable until you sell, and then the date decides everything

An ESPP has four moments and only the last one is a taxable event. Publication 525 sets the test: you satisfy the holding period "if you don't sell the stock until the end of the later of the 1-year period after the stock was transferred to you or the 2-year period after the option was granted." Both clocks have to run out. In practice the two-year offering clock is the binding one, because it starts months before you own a single share.

Moment What it starts or fixes Tax consequence
Offering date, also called the grant date The two-year clock starts, and the price that caps ordinary income on a qualifying disposition is set here Nothing is taxable and nothing is reported
Purchase date, the end of the offering period The one-year clock starts. Your basis is fixed at the price you paid Still nothing is taxable. Your employer files Form 3922
Sale, before both clocks run out Disqualifying disposition Purchase-date bargain element becomes W-2 wages, the rest is a capital gain
Sale, after both clocks run out Qualifying disposition The lesser of the grant-date discount or your total gain becomes wages, the rest is long-term gain

One consequence people miss: because the offering clock starts at the beginning of the offering period, shares bought at the end of a six-month period only need another eighteen months to qualify, while shares bought at the end of a two-year offering period may already have cleared the grant clock on the day you buy them. Read your plan document for the offering length before you assume you have two years to wait.

// THE GRANT-DATE CAP

ESPP qualifying disposition

The rule almost every ESPP calculator gets wrong

Ask most people how an ESPP is taxed and they will tell you the 15% discount is ordinary income. That is true for a disqualifying disposition and false for a qualifying one, and the gap between those two answers is where the money is.

Section 423(c) says that on a qualifying disposition there shall be included as compensation "an amount equal to the lesser of (1) the excess of the fair market value of the share at the time of such disposition or death over the amount paid for the share under the option, or (2) the excess of the fair market value of the share at the time the option was granted over the option price." Read limb (2) slowly. The measuring stick is the price on the day the option was granted, which is the first day of the offering period, not the day you actually bought the shares.

That distinction is worth real money in exactly the situation ESPPs are designed for. Suppose the stock was $80 when your offering period opened, $120 when the plan bought for you at a 15% lookback discount, so you paid $68. The purchase-date bargain element is $52 a share. The grant-date discount is $80 minus $68, which is $12 a share. Sell too early and $52 a share is wages. Wait until both clocks run out and only $12 a share is wages, with the other $40 taxed as a long-term capital gain.

The IRS worked example, Example 10 in Publication 525, makes the same point in miniature. An option granted at $20 when the stock was $22, exercised eighteen months later at $23, sold fourteen months after that at $30. The wages reported are $200 on 100 shares, from the $22 grant price less the $20 option price. The $23 exercise price never enters the calculation at all. The remaining $800 is capital gain.

There is a protection on the downside too. If the shares are worth less than you paid when you finally sell, Publication 525 is explicit: "If you have a loss from the sale, it's a capital loss, and you don't have any ordinary income." A qualifying disposition can never manufacture wage income out of a loss. A disqualifying one can, which is the subject of the next section.

// SELLING EARLY

Disqualifying disposition ESPP

What a same-day sale actually costs

Selling on the purchase date is the most common thing people do with an ESPP, and there is a perfectly good argument for it: you lock in the discount and you do not add to a position in the company that already pays your salary. It is a disqualifying disposition, and the tax is simple to state. Your ordinary income is the market price on the purchase date minus what you paid, times the number of shares. That amount goes on your W-2 and is added to your cost basis, so the capital gain is only whatever the price moved between the purchase and the sale, which on a same-day sale is close to nothing.

Publication 525's Example 11 runs the same facts as Example 10 but with a sale six months after exercise. Now the wages are $300, from the $23 exercise price less the $20 option price, and the capital gain is $700 rather than $800. The stated basis becomes the $2,000 purchase price plus the $300 of wages.

The version worth planning around is the one where the stock falls. The ordinary income on a disqualifying disposition is fixed at the purchase-date bargain element and does not shrink when the price does. If your plan bought at $120 for $68 and the stock had halved by the time you sold, you would still report $52 a share as wages while holding a capital loss on the same shares. The wage income is taxed in full at your marginal rate this year. The capital loss offsets capital gains first, and only $3,000 of any excess can be used against ordinary income in a year, with the rest carried forward. That mismatch is the single most expensive way an ESPP goes wrong, and it is a good argument for selling into a purchase rather than holding a falling position in hope of a qualifying disposition. If you want to see how the loss side of that works across a whole portfolio, the tax loss harvesting mechanics are the same ones professional managers use.

// NOTHING IS WITHHELD

Employee stock purchase plan tax

The bill arrives with no money set aside for it

An RSU vest is withheld at a flat 22% and carries the full payroll tax load. An ESPP does neither, and both facts are statutory rather than employer policy.

On payroll tax, section 3121(a)(22) excludes from wages any "remuneration on account of a transfer of a share of stock to any individual pursuant to an exercise of an incentive stock option or under an employee stock purchase plan, or any disposition by the individual of such stock." No Social Security, no Medicare, on either disposition. That is a genuine 7.65 percentage point advantage over the same amount of salary, up to the wage base.

On income tax withholding, section 421(b) is equally plain: "No amount shall be required to be deducted and withheld under chapter 24 with respect to any increase in income attributable to a disposition." Your employer reports the compensation in box 1 of your W-2 and withholds nothing against it. Some payroll systems will withhold voluntarily if you ask, and many will not.

So the practical planning point is a cash flow one. If you sell $30,000 of ESPP stock in March and $11,000 of it is wage income at a 32% marginal rate, roughly $3,500 of federal tax is due and nobody has collected a dollar of it. That is a safe harbor problem as much as a tax problem: underpayment penalties are assessed quarterly, so a large sale early in the year can create a penalty even if you pay in full by April. Either raise your W-4 withholding for the rest of the year or make an estimated payment for the quarter in which you sold.

// AGAINST AN RSU

ESPP tax treatment

How employee stock purchase plan tax differs from RSU tax

If your company runs both plans, do not reuse one set of rules for the other. They differ on nearly every line that matters.

Question ESPP RSU
When the tax is triggered On the sale, and only on the sale On the vesting date, whether or not you sell
Social Security and Medicare None at all, excluded by section 3121(a)(22) Full 6.2% up to the $184,500 wage base, plus 1.45% Medicare
Federal income tax withheld Nothing is required, per section 421(b) A flat 22% on supplemental wages, per Publication 15
What you paid for the shares The discounted purchase price, out of your own payroll deductions Nothing. The shares are compensation
Ordinary income if the price falls after purchase None on a qualifying disposition. Fixed at the purchase-date discount on a disqualifying one Already taxed in full at the vest-date value, whatever happens next
Basis your broker reports The discounted purchase price, understated by the compensation element Usually zero or blank
Who chooses the timing You. Holding longer changes the tax treatment Nobody. The vest date is in the grant agreement

The full after-tax comparison, including where stock options fit between the two, is in RSU vs stock options, and the vest-side math has its own tool at the RSU tax calculator.

// THE 1099-B TRAP

ESPP cost basis

Why the basis on your 1099-B looks right and is not

Your correct basis has two parts. The first is what you paid, and Publication 525 fixes it precisely: "Your basis is equal to the option price at the time you exercised your option and acquired the stock. The timing and amount of pay period deductions don't affect your basis." It does not matter that the money came out of twenty-six separate paychecks. The second part is the compensation element, whichever of the two rules produced it, because that amount has already been taxed as wages and taxing it again as gain would be double taxation.

Brokers report only the first part. For an RSU that produces a basis of zero, which is obviously wrong and usually caught. For an ESPP it produces a real number you genuinely paid, so it passes the smell test and goes onto the return unchallenged. Publication 525 leaves no doubt about whose job it is to correct: "It's your responsibility to make any appropriate adjustments to the basis information reported on Form 1099-B by completing Form 8949."

The document that lets you do it is Form 3922. Your employer issues one for each purchase, and Publication 525 says the corporation "must send or provide you with the form by January 31" of the following year. It carries the offering date, the purchase date, the fair market value on each of them and the price you paid. Nothing on it goes onto your return in the year you receive it, which is why people file it in a drawer and forget it. Keep every one. Years later it is the only record of the grant-date price that caps your ordinary income under section 423(c), and without it you cannot prove the smaller number.

If you have several purchase lots at different prices, which is what a plan running twice a year for five years produces, the lot you choose to sell changes the answer. The cost basis calculator runs the same sale through first in first out, specific identification and average cost side by side.

// THE $25,000 RULE

ESPP contribution limit

The cap is measured at the offering price, not the purchase price

Section 423(b)(8) says no employee may be granted an option that lets their purchase rights "accrue at a rate which exceeds $25,000 of fair market value of such stock (determined at the time such option is granted) for each calendar year in which such option is outstanding at any time."

The parenthetical is the whole story. The ceiling is valued at the offering-date price. If your company grants at $80 and the stock is $120 by the purchase date, you can still buy $25,000 worth measured at $80, which is 312 shares, and those shares are worth $37,500 the day you get them. The cap does not tighten when the stock rises, and a plan with a lookback turns that into the most reliably profitable benefit most employees are offered.

Two practical notes. Companies often set their own payroll deduction limit as a percentage of pay, commonly 10% or 15%, which can bind well before the statutory $25,000 does. And section 423(b)(6) caps the discount at 15%, since the option price cannot be "less than the lesser of 85 percent of the fair market value of the stock at the time such option is granted, or 85 percent of the fair market value of the stock at the time such option is exercised." A plan advertising a 15% discount with a lookback is offering you the maximum the statute allows.

// WHAT YOU ARE HOLDING

After the purchase

Ten years of an ESPP is a concentrated position, whether you meant it or not

The tax case for waiting is real and the calculator above prices it. The risk case for waiting is also real and nobody puts it on a form. Every purchase you hold to qualify adds six more months of your employer's stock to a portfolio that already carries your salary, your health insurance and your next promotion. Twenty purchases later, the ESPP alone can be the largest single line you own, and it was never a decision anyone made deliberately.

Sizing it is the first step. Work out what fraction of your investable assets sits in one ticker, then decide what fraction you would choose if you were starting today with cash. Our note on how much of your portfolio should be in one stock walks through the usual thresholds and why they exist.

If the position is already large, the routes out have very different costs. Selling and paying the tax is the simplest and often the right answer once the qualifying clocks have run. Direct indexing lets you build the rest of the portfolio around the position and harvest losses elsewhere to pay for unwinding it gradually. An exchange fund defers the gain entirely in return for a seven-year lock-up and a fee. Each is priced honestly in our comparison of what to do with a concentrated stock position. If the shares are still arriving on a schedule rather than sitting as one fixed block, the choice is a different one, worked through in direct indexing for employees with company stock.

Before any of that, it is worth seeing what the position has actually done against a benchmark. Build the mix you would prefer as a weighted index, put your current holding beside it, and let the numbers rather than the tax bill lead the decision.

// QUESTIONS

Taxes on ESPP stock

Questions people actually ask about ESPP tax

How is ESPP taxed?

An ESPP is taxed once when you sell, not when you buy, and the sale splits into two pieces. Part of the profit is ordinary compensation income that lands on your W-2, and the rest is a capital gain. How the split is drawn depends entirely on how long you held the shares. Hold long enough for a qualifying disposition and the ordinary slice is capped by the discount measured on the offering date. Sell early and the ordinary slice is the full discount measured on the purchase date, which is usually much larger.

What is a qualifying disposition for an ESPP?

A qualifying disposition means you sold the shares more than two years after the offering date and more than one year after the purchase date. Publication 525 states both clocks: you satisfy the requirement "if you don't sell the stock until the end of the later of the 1-year period after the stock was transferred to you or the 2-year period after the option was granted." Both have to be met, so the two-year grant clock is usually the binding one because it starts before you own anything.

What is a disqualifying disposition of ESPP stock?

A disqualifying disposition is any sale that misses either holding period, which in practice means almost every same-day sale. The tax consequence is fixed and unforgiving: your ordinary income is the full bargain element on the purchase date, the market price that day minus what you actually paid, no matter what price you eventually sold at. That amount is added to your W-2 wages and to your cost basis, and only the remainder is a capital gain.

Is ESPP income subject to Social Security and Medicare tax?

No. Section 3121(a)(22) of the tax code excludes from wages any "remuneration on account of a transfer of a share of stock to any individual pursuant to an exercise of an incentive stock option or under an employee stock purchase plan, or any disposition by the individual of such stock." That is a statutory exclusion, not an employer choice. It makes ESPP compensation cheaper than an RSU vest, which carries the full 6.2% Social Security and 1.45% Medicare load.

Does my employer withhold tax on ESPP income?

Generally not a cent of federal income tax. Section 421(b) says that on a disqualifying disposition "no amount shall be required to be deducted and withheld under chapter 24 with respect to any increase in income attributable to a disposition." Your employer still reports the compensation on your W-2, so the income shows up but the payment does not. That is why an ESPP surprises people in April even when the plan itself went well.

What is the ESPP contribution limit?

Section 423(b)(8) caps the right to purchase at $25,000 of stock per calendar year, and the crucial detail is which price that is measured at. The statute says $25,000 "of fair market value of such stock (determined at the time such option is granted)." So the ceiling is set at the offering-date price. If your company grants at $80 and the stock doubles by the purchase date, you are still limited by the $80 valuation, which is what makes a lookback plan so valuable in a rising market.

What is the cost basis of ESPP shares?

Your starting basis is the discounted price you actually paid. Publication 525 puts it plainly: "Your basis is equal to the option price at the time you exercised your option and acquired the stock. The timing and amount of pay period deductions don't affect your basis." Then you add whatever ordinary income the sale created, because that amount was already taxed as wages. The broker reports only the first number, so the basis on your 1099-B is understated by the entire compensation element.

Why is my ESPP cost basis wrong on the 1099-B?

Because the broker reports what left your bank account and nothing else. For an ESPP that is a real, plausible-looking number, which is exactly why the error slips through where an RSU basis of zero would be caught. The compensation element that hit your W-2 is missing from it. Publication 525 is direct about whose job the fix is: "It's your responsibility to make any appropriate adjustments to the basis information reported on Form 1099-B by completing Form 8949."

What is Form 3922 used for?

Form 3922 records the facts you need to compute the tax later: the offering date, the purchase date, the fair market value on each, and the price you paid. Publication 525 says the corporation "must send or provide you with the form by January 31" of the year after the transfer. Nothing on it goes directly onto your return. It exists so that when you sell, possibly years later, you can still prove the grant-date price that caps the ordinary income on a qualifying disposition.

Should I hold ESPP shares for a qualifying disposition?

It is a real tax saving weighed against a real concentration risk. Waiting converts part of the discount from ordinary rates, up to 37%, into long-term capital gains rates of 0%, 15% or 20%. The cost is holding more of one employer's stock for another year or two, in the company that also pays your salary. Run the numbers above with your own figures, then decide how much single-stock exposure you want to carry to collect the difference.

What happens if the stock falls before I sell?

The two dispositions behave very differently. On a qualifying disposition Publication 525 protects you: "If you have a loss from the sale, it's a capital loss, and you don't have any ordinary income." On a disqualifying disposition you get no such relief. The ordinary income is still the full purchase-date bargain element, so you can owe wage tax on a profit you no longer have while the offsetting capital loss is limited to $3,000 a year against ordinary income.

How accurate is this calculator?

It applies section 423(c) for the qualifying disposition, the purchase-date bargain element for the disqualifying one, the 2026 federal ordinary brackets and long-term capital gains breakpoints from Rev. Proc. 2025-32, and the statutory 3.8% net investment income tax thresholds, stacking each piece on top of your other income the way the code actually does. It deliberately leaves out state tax, the alternative minimum tax, ISOs, plans that are not section 423 qualified, and gifts or transfers that are not sales. Treat the output as a planning estimate. It is educational information, not tax advice.

Decide where the shares should go before the next purchase date

Build the allocation you actually want as a weighted index, put your accumulated company stock beside it, and use the rebalancing rules to decide what to sell each time the plan buys for you.

See how it works