What this ESPP calculator answers
This calculator handles one identified lot of ordinary corporate stock purchased through a qualifying Internal Revenue Code Section 423 employee stock purchase plan and sold, or planned for sale, during calendar year 2026. It first uses the grant, exercise or transfer, and sale trade dates to choose the qualifying-disposition or disqualifying-disposition formula. It then separates the sale into ordinary compensation income and capital gain or loss, increases basis by the compensation already recognized, and identifies the remaining capital result as short term or long term.
The distinction matters because an ESPP discount can pass through two different reporting systems. The employer may report the compensation component in Form W-2 box 1, while the broker reports the stock sale on Form 1099-B. If the basis used for the stock sale omits compensation already included as wages, the same economic discount can appear taxable twice. The tool makes the reconciliation visible, but it does not prepare Form 1040, Form 8949, Schedule D, state returns, or an employer correction.
Confirm that the plan is a Section 423 ESPP
IRS Topic 427 describes an option granted under an employee stock purchase plan as a statutory stock option when the legal requirements are met. A workplace deduction program, discounted share purchase, foreign share plan, or company-branded “ESPP” can still fall outside Section 423. A nonqualified plan can recognize compensation at a different time and does not use this calculator’s disposition formulas.
Start with the plan document and Form 3922. The IRS Instructions for Forms 3921 and 3922 identify the key ESPP values: box 1 is the option grant date, box 2 the exercise date, box 3 grant-date FMV, box 4 exercise-date FMV, box 5 the price paid per share, box 6 shares transferred, box 7 the first legal-title transfer date, and box 8 the exercise price determined as if the option were exercised on the grant date when the price was not fixed or determinable then.
This tool requires the exercise and legal-title transfer dates to be the same. If boxes 2 and 7 differ, stop and determine which date controls each part of the transaction. It also requires one specifically identified lot. Averaging several purchase periods can change the discount, statutory clocks, basis, and capital holding period.
Two holding-period clocks classify the disposition
IRS Publication 525 says the statutory holding requirement is satisfied only when the stock is not sold until the end of the later of the one-year period after transfer or the two-year period after grant. The stock holding period begins on the day after exercise. This calculator therefore finds both anniversary boundaries and treats the first day after the later boundary as the first ordinary qualifying-disposition sale date.
Suppose an option was granted January 1, 2024, and shares were purchased July 1, 2024. The two-year grant boundary is January 1, 2026; the one-year purchase boundary is July 1, 2025. The later boundary is January 1, 2026, so the tool identifies January 2, 2026, as the first supported qualifying sale date. Selling before that date uses the disqualifying formula even if the shares have a long-term capital holding period.
Do not confuse the statutory classification with short-term versus long-term capital character. A disqualifying disposition can still produce long-term capital gain or loss when the stock was held more than one year but the two-year grant clock was not completed. Conversely, a same-day or short-hold sale is normally both disqualifying and short term. The result displays both classifications separately.
The qualifying-disposition ordinary-income formula
When the holding requirement is satisfied and the option was granted at a discount, Publication 525 limits compensation to the lesser of two per-share amounts. The first is grant-date FMV minus the option price fixed or determined at grant. The second is disposition-date FMV, normally the gross sale price in an arm’s-length sale, minus the actual price paid. Neither amount is allowed below zero, and the smaller positive amount is multiplied by the shares sold.
For a lookback plan whose price was not fixed at grant, Form 3922 box 8 supplies the price determined as if the option had been exercised on the grant date. Do not substitute box 5 merely because it is the actual purchase price. The actual purchase price belongs in the second limit and in the starting stock basis; box 8 belongs in the grant-date discount limit.
For example, assume 100 shares were purchased for $20 each. Grant-date FMV was $22 and the grant-date formula price was $20, creating a $2 grant-date discount. The shares later sell for $30. The first compensation limit is $200, and the second is $1,000. Ordinary income is the lesser amount, $200. Starting cost is $2,000, adjusted basis becomes $2,200, and the remaining gain before selling expenses is $800.
If the same shares sell for $21, the second limit is only $100. Ordinary income is therefore $100, adjusted basis is $2,100, and there is no capital gain before selling expenses. If the shares sell below the $20 purchase price, ordinary income is zero and the economic loss remains a capital loss, subject to wash-sale and other loss rules.
The disqualifying-disposition ordinary-income formula
When either statutory clock is not completed, Publication 525 uses the purchase-date spread: exercise-date FMV minus the actual exercise price, but not below zero. Multiply that spread by the shares sold. Unlike the qualifying formula, the compensation amount is not limited by the later sale gain.
Assume 100 shares were purchased at $20 when exercise-date FMV was $23 and sold six months later for $30. Ordinary compensation is $300. Starting cost is $2,000, adjusted basis becomes $2,300, and the remaining short-term capital gain before selling expenses is $700. This is the pattern in the IRS disqualifying-disposition example.
Now suppose the same shares sell for $18. The purchase-date spread still produces $300 of compensation, while adjusted basis remains $2,300. Gross proceeds are $1,800, creating a $500 capital loss before selling expenses. The wage income and capital loss do not automatically cancel each other on the return because they have different character, reporting locations, and loss limitations.
Adjusted basis prevents the ESPP discount from being taxed twice
The modeled adjusted basis is actual purchase cost plus ordinary compensation recognized on the disposition. Publication 525 warns that basis information reported for compensatory stock may not include income recognized through the award and says the taxpayer is responsible for appropriate Form 8949 adjustments. Compare the calculated basis with the Form W-2, employer statement, purchase confirmation, Form 3922, trade confirmation, and Form 1099-B before filing.
When the broker reported an incorrect basis to the IRS
If Form 1099-B shows an incorrect basis and says that basis was reported to the IRS, the IRS Instructions for Form 8949 direct the taxpayer to keep the reported basis in column (e), use code B, and correct the result in column (g). The basis-only adjustment is reported basis minus correct basis: it is negative when the correct basis is higher. The optional final step displays that arithmetic but does not decide whether another code or adjustment is also required.
When basis was not reported to the IRS
If basis was not reported to the IRS, the Form 8949 instructions generally direct the taxpayer to enter correct basis in column (e) and zero in column (g) for the basis issue alone. The correct checkbox, part, and other adjustments depend on short- or long-term status, whether basis was reported, wash sales, selling expenses, and the complete broker record.
Form W-2 reporting does not mean ESPP withholding was required
2026 IRS Publication 15-B says the employer must report the discount portion from a qualifying ESPP disposition in Form W-2 box 1 and the exercise spread from a disqualifying ESPP disposition in box 1. It also says this statutory-option remuneration is excluded from Social Security, Medicare, and FUTA wages, and federal income tax withholding is not required on the qualifying discount or disqualifying-disposition income.
That reporting pattern differs from an ordinary NSO exercise. Do not run ESPP disposition wages through the 2026 NSO Exercise Tax and Withholding Calculator, which models Code V wages and payroll withholding for a narrow nonstatutory-option exercise. ESPP compensation can increase taxable wages without a matching federal withholding entry, so a projected return or estimated-payment review may still be important.
If the employer or former employer does not provide a Form W-2 or omits the ordinary income, Publication 525 describes a separate wage-reporting path. Do not simply omit the compensation or add it twice. Reconcile the employer’s final statement and current return instructions, and obtain qualified assistance when a correction is needed.
Selling expenses affect capital gain, not the discount formula
The calculator multiplies shares by gross sale price to show gross proceeds, then subtracts only entered commissions or transaction expenses that have not already been reflected. The resulting net amount realized is compared with adjusted basis for capital gain or loss. Tax withholding is not a selling expense and must not be subtracted from proceeds.
The qualifying ordinary-income limit uses disposition-date value rather than net proceeds after commissions. That means a small qualifying compensation amount can coexist with a small capital loss caused by selling expenses. Enter each expense once, and compare the modeled proceeds with Form 1099-B box 1d and the trade confirmation.
A capital loss requires a wash-sale check
IRS Publication 550 explains that a loss can be disallowed when substantially identical stock or securities are acquired within the period beginning 30 days before and ending 30 days after the sale. Continuing ESPP purchases, RSU settlements, option exercises, dividend reinvestment, spouse transactions, or purchases in another account can matter. A broker’s box 1g adjustment may not capture every account or every person whose activity affects the return.
The calculator stops at the first step when a possible wash sale is already known. If a supported calculation unexpectedly produces a loss, the result also flags the 61-day review before the loss is claimed. A disallowed wash-sale loss generally changes the replacement shares’ basis and holding-period records; this page does not calculate that allocation.
Use the sale trade date and preserve lot identity
Publication 550 says securities traded on an established market use the purchase and sale trade dates for the capital holding period, not settlement dates. The day after acquisition starts the count, and the disposition day is included. This calculator follows that framework for its supported same-exercise-and-transfer-date lot.
Save a permanent lot record containing grant date, purchase date, shares, actual purchase price, grant FMV, exercise FMV, box 8 value when present, sale date, gross proceeds, expenses, compensation reported, adjusted basis, and remaining capital result. A plan portal may stop retaining old purchase records after employment or a brokerage transfer.
What the calculator deliberately excludes
The result does not decide whether a plan satisfies Section 423, whether Form 3922 is correct, which shares were sold, whether an employer has a reporting obligation, or whether a transaction is a sale or other disposition. It excludes gifts, inheritances, death while holding shares, conflict-of-interest dispositions, different exercise and title-transfer dates, corporate actions, return-of-capital basis changes, short sales, constructive sales, hedges, installment transactions, tender complexities, multiple unidentified lots, and alternative lot-selection methods.
It also excludes wash-sale allocation, state and local tax, nonresident or cross-border sourcing, foreign tax credits, currency conversion, community-property issues, payroll corrections, final ordinary income tax, capital-gain tax rates, net investment income tax, capital-loss limitations, estimated-tax penalties, and investment advice. Use the 2026 Long-Term Capital Gains Tax Calculator only after eligible long-term gains and taxable-income inputs are established. Review the 2026 Net Investment Income Tax Calculator separately when the complete return may cross its threshold.
A practical 2026 ESPP sale workflow
- Confirm that the plan and the specific option qualify under Section 423.
- Match Form 3922 to the exact shares sold instead of averaging purchase periods.
- Verify that boxes 2 and 7 use the same date before using this simplified path.
- Use the sale trade date to test both statutory clocks and the capital holding period.
- Use only the values requested by the resulting qualifying or disqualifying branch.
- Reconcile ordinary income with the employer disposition statement and Form W-2 box 1.
- Add that ordinary income to purchase cost when establishing adjusted basis.
- Compare adjusted basis with Form 1099-B and follow the correct Form 8949 reporting category.
- Check the 61-day wash-sale window whenever the capital result is a loss.
- Carry the verified capital result, all other income, deductions, payments, and credits into the complete 2026 return projection.
The 2026 Stock Compensation Tax Guide connects this sale workflow with RSUs, ISOs, NSOs, concentration risk, withholding, AMT, and document reconciliation. Run each calculator for the event it actually models rather than using one equity award as a proxy for another.
Official sources and 2026 limitations
The federal classification and income formulas are based on IRS Publication 525’s statutory stock-option and ESPP sections. Form field descriptions come from the current continuous-use Instructions for Forms 3921 and 3922. Wage and withholding treatment comes from 2026 Publication 15-B. Capital holding-period and wash-sale explanations come from Publication 550, and the optional basis correction reference follows the current Instructions for Form 8949.
Some individual-return publications and forms for tax year 2026 may be revised after this page’s July 28, 2026 review. Current law, final forms, plan terms, employer records, broker reporting, and the user’s complete facts control. Recheck official instructions before filing a 2026 return in 2027.
This calculator provides educational U.S. federal arithmetic for one narrowly supported Section 423 ESPP stock lot sold or planned for sale in 2026. It is not tax preparation, tax, legal, accounting, payroll, valuation, investment, securities, equity-compensation, or financial advice. It does not determine plan qualification, lot identity, FMV, disposition type outside the entered dates, employer reporting, final tax, withholding, wash-sale allocation, state or foreign sourcing, Form 8949 codes beyond the limited basis reference, penalties, or whether to sell or hold employer stock. Verify every input and result with the plan, Form 3922, employer, broker, current IRS forms and instructions, return software, and qualified guidance. Official sources were accessed July 28, 2026.