How Are Employee Stock Purchase Plans (ESPPs) Taxed?

Updated: Sep 16

You participate in your employer’s Employee Stock Purchase Plan (ESPP). A portion of each paycheck is withheld, and those contributions are used to purchase company stock—often at a discount.
The benefit may be easy to understand. The tax treatment is usually less obvious.
A common question is: “I bought company stock at a discount through work. What happens tax-wise when I sell it?”
For a tax-qualified ESPP under Internal Revenue Code §423, the answer often depends on what happens after the purchase—especially when you sell or otherwise dispose of the shares.
A useful way to think about the process is:
Offering/Grant → Purchase → Hold → Sell
The purchase itself generally does not create immediate ordinary income under a qualifying §423 plan. Tax consequences commonly arise when the shares are sold, and the timing of that sale may affect how the result is divided between ordinary income and capital gain or loss.
What Is an Employee Stock Purchase Plan (ESPP)?
An ESPP is an employer-sponsored benefit that may allow eligible employees to purchase company stock using payroll deductions. The plan establishes an offering period, contribution rules, and a purchase date.
Depending on the plan, the purchase price may be below the stock’s fair market value. Some plans also include a lookback feature, which uses the stock price at an earlier point in the offering period when determining the purchase price. Not every ESPP offers a lookback, and plan terms vary.
Important dates and terms may include:
Offering or grant date: The date the offering period begins and the employee receives the right to participate.
Offering period: The period during which payroll deductions accumulate.
Purchase date: The date the shares are acquired.
Purchase price: The amount paid per share.
Payroll contributions: The amounts withheld from the employee’s pay.
Fair market value: The stock’s market value at relevant dates.
Discount: The difference between the stock’s value and the employee’s purchase price, if applicable.
This article focuses primarily on tax-qualified ESPPs under IRC §423. An employee stock purchase arrangement that does not qualify under §423 can be subject to different rules, so the plan documents matter.
For a broader look at how ESPPs fit alongside RSUs and employee stock options, see Equity Compensation and Taxes: What High-Income Earners Should Know.
Are ESPP Shares Taxed When You Buy Them?
Generally, purchasing shares through a qualifying §423 ESPP does not cause the purchase discount to be recognized immediately as ordinary income for federal income-tax purposes.
That does not mean the discount is permanently tax-free. Instead, the tax treatment is generally determined when the employee sells or otherwise disposes of the shares.
The eventual transaction may involve:
Ordinary income associated with the ESPP purchase discount
Capital gain or loss on the stock transaction
Adjustments to the cost basis used to calculate the capital gain or loss
The result depends on the plan’s qualification, the relevant dates, the purchase and sale prices, the holding period, and the taxpayer’s individual circumstances. State tax treatment may also differ from federal treatment.
Why the ESPP Holding Period Matters
For a tax-qualified §423 ESPP, the distinction between a qualifying disposition and a disqualifying disposition is central.
Generally, a disposition is qualifying when the shares are sold or otherwise disposed of after the later of these two dates:
Two years after the offering or grant date, and
One year after the purchase date or transfer date.
Both dates matter. The purchase date alone does not determine whether the holding-period requirement has been met.
If the shares are sold before both requirements are satisfied, the disposition is generally disqualifying. “Disqualifying” describes the tax treatment; it does not mean the transaction was necessarily a poor investment decision. Florence Tax LLC does not recommend whether an employee should purchase, hold, or sell employer stock. The purpose of reviewing these dates is to understand potential tax consequences before a transaction occurs.
What Is a Qualifying ESPP Disposition?
A qualifying disposition generally occurs when the employee satisfies the applicable holding periods described above before selling or otherwise disposing of the shares.
The tax result can include two components:
Ordinary income: This generally relates to the ESPP discount and is determined under a statutory calculation.
Capital gain or loss: This generally reflects the change in value after accounting for the appropriate basis.
The ordinary-income calculation for a qualifying disposition is not always simply the discount shown on the purchase statement. Under the general federal rules, the ordinary-income component is typically limited to the lesser of:
The discount based on the stock’s fair market value at the offering or grant date, or
The excess of the stock’s fair market value at the disposition date over the purchase price.
This means satisfying the ESPP holding-period requirements does not necessarily cause the entire gain to be treated as capital gain. A portion of the transaction may still be treated as ordinary income under the qualifying-disposition rules.
The remaining gain, if any, may generally be treated as capital gain. Because a qualifying disposition requires the applicable statutory holding periods to have been satisfied, any remaining gain would generally be long-term capital gain rather than short-term capital gain.
The actual calculation should be based on the plan documents and transaction records. A tax professional may need to review the offering-date value, purchase-date information, sale price, and sale date rather than relying on a single brokerage form.
What Is a Disqualifying ESPP Disposition?
A disqualifying disposition generally occurs when §423 ESPP shares are sold or otherwise disposed of before the applicable holding periods are satisfied.
In a typical transaction where the shares are sold for more than the purchase price, the ordinary-income component is generally based on the difference between the stock’s fair market value on the purchase date and the employee’s purchase price. The remaining increase or decrease after the appropriate basis is determined may generally be treated as capital gain or loss.
If the holding-period requirements are not satisfied, the ordinary-income component generally is based on the difference between the stock's fair market value when purchased and the employee's purchase price. That ordinary income is not necessarily limited by the gain realized when the shares are later sold. As a result, a taxpayer may potentially recognize ordinary income from the ESPP transaction while also reporting a capital loss on the stock sale after the appropriate basis adjustment.
The key point is that a disqualifying disposition can cause some of the purchase discount to be treated as compensation income earlier than it would be in a qualifying disposition. The term does not indicate whether selling was financially appropriate; it identifies the tax category that may apply.
Qualifying vs. Disqualifying ESPP Dispositions at a Glance
Tax issue | Qualifying disposition | Disqualifying disposition |
|---|---|---|
Holding-period | Statutory periods satisfied | Statutory periods not satisfied |
Ordinary-income | Generally subject to the qualifying-disposition statutory calculation | Generally based on purchase-date FMV less purchase price |
Capital gain/loss | Remaining gain or loss after basis determination | Gain or loss after basis adjustment |
Key Records | Form 3922 + plan/purchase/sale records | Form 3922 + plan/purchase/sale records |
This table is a general overview, not a substitute for calculating a specific transaction.
A Simple ESPP Example
Assume an employee participates in a qualifying §423 ESPP with these hypothetical facts:
Offering-date stock value: $40 per share
Purchase-date stock value: $50 per share
Employee purchase price: $34 per share
Shares purchased: 100
Later sale price: $65 per share
Economically, the employee purchased shares for less than their market value. The potential tax result depends partly on when the shares are sold.
If the employee sells before satisfying the applicable holding periods, the sale would generally be a disqualifying disposition. In this simplified example, the difference between the $50 purchase-date fair market value and the $34 purchase price is $16 per share. That $16-per-share difference, or $1,600 for 100 shares, would generally be treated as ordinary income. After the appropriate basis adjustment, the additional increase from $50 to the $65 sale price—$15 per share, or $1,500—would generally be treated as capital gain. Whether that capital gain is short-term or long-term depends on how long the shares were held after purchase.
If the employee instead sells after satisfying the applicable holding periods, the sale would generally be a qualifying disposition. The ordinary-income component would be determined under the qualifying-disposition rules and may be different from the amount recognized in a disqualifying disposition. Any remaining gain after the appropriate basis adjustment would generally be treated as long-term capital gain.
This example is simplified and educational. It does not address every exception, loss scenario, state tax rule, withholding issue, or plan-specific provision.
How Are ESPP Shares Taxed When You Sell Them?
Selling ESPP shares can potentially involve:
Ordinary income
Short-term or long-term capital gain
Capital loss
Adjusted cost-basis calculations
Different treatment depending on whether the disposition qualifies
You should not automatically treat the entire difference between the purchase price and sale price as capital gain. Likewise, the entire gain is not necessarily ordinary income.
The correct result depends on the ESPP’s terms, the offering and purchase dates, the sale date, the relevant fair market values, the sale price, and the way compensation income and basis are reported. A transaction may also occur in a year when other compensation, investment income, or capital gains affect the taxpayer’s overall tax picture.
For broader context, Florence Tax LLC’s resource on tax planning for high-income earners discusses why equity compensation and other income events may deserve review before year-end.
If you are considering a larger transaction, the related topic Selling Company Stock? Understand the Tax Consequences Before You Sell can help frame the questions to raise before selling employer stock.

Why Cost Basis Can Be Confusing With ESPP Shares
Cost basis is generally the amount used to measure gain or loss when you sell an investment. For ESPP shares, basis can be confusing because the transaction may include both compensation income and investment gain or loss.
If part of the transaction is treated as ordinary income, the basis generally needs to reflect that income so the same amount is not taxed again as capital gain. The appropriate adjustment depends on the type of disposition and the specific facts.
A Form 1099-B may not always show every adjustment needed for an accurate tax return. Brokerage firms can have different reporting practices, and the basis shown on the form may not fully reflect the amount treated as compensation income on the employee’s Form W-2, where applicable.
Before reporting an ESPP sale, compare:
ESPP purchase records
Form 3922
Form W-2, where applicable
Form 1099-B
Brokerage statements
Sale confirmations
Your own cost-basis records
Do not assume that the number on Form 1099-B is automatically the final basis for tax purposes. An incorrect basis calculation can lead to an inaccurate gain or loss being reported.
What Is Form 3922?
Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c), is used by employers to report certain transfers of stock acquired through a qualifying §423 ESPP when the applicable reporting requirements apply.
The form can provide useful information about matters such as:
The offering or grant date
The purchase or transfer date
The offering-date fair market value
The purchase-date fair market value
The purchase price
The number of shares transferred
Form 3922 is generally informational. It does not, by itself, determine the tax owed when the shares are sold. Retain it with the plan documents and brokerage records, even if you do not sell the shares immediately. You may need information from the form years later.
What Records Should You Keep for ESPP Shares?
Keep records from the original offering through the eventual disposition. Important documents may include:
ESPP plan documents
Offering or grant date information
Purchase-date information
Payroll contribution records
Number of shares purchased
Actual purchase price
Fair market value information
Form 3922
Form W-2, where applicable
Brokerage statements
Form 1099-B
Sale confirmations
Cost-basis calculations and supporting records
ESPP shares may be sold long after they were purchased. Maintaining contemporaneous records can make it easier to establish the holding period, determine the applicable tax treatment, and reconcile brokerage reporting with the information needed for the tax return.
When Should You Discuss an ESPP Sale With a Tax Professional?
A tax-planning conversation may be useful when:
A substantial amount of employer stock has accumulated
A large sale is being considered
You are unsure whether a sale will be qualifying or disqualifying
Multiple purchase lots have different acquisition dates
The shares have appreciated substantially
You are unsure how to determine cost basis
Form 1099-B appears inconsistent with other ESPP records
ESPP shares are being sold along with other company stock
A significant sale is being considered near year-end
The transaction could contribute to a high-income or high-capital-gain year
The value of planning is often in understanding the consequences before the transaction is finalized. Depending on the circumstances, reviewing dates, projected income, withholding, basis, and other taxable events may help you prepare for reporting and cash-flow needs.
Florence Tax LLC’s role is to help clients understand the tax consequences associated with equity compensation and significant transactions. Amber Rose Florence is an Enrolled Agent with a federal tax focus and authority to represent taxpayers before the IRS. Tax analysis does not replace investment, legal, or financial-planning advice, so coordination with an appropriate professional may be useful when those questions arise.
You can also review 7 Financial Decisions That Could Have Tax Consequences for examples of decisions that may warrant a tax conversation before they are completed.
Understanding the Tax Consequences Before Selling ESPP Shares
Returning to the original question—“I bought company stock at a discount through work. What happens when I sell it?”—the main points are:
A qualifying §423 ESPP may allow employees to purchase employer stock at a discount.
The purchase itself generally is not where the primary federal income-tax consequence occurs.
The holding period can affect how a later disposition is taxed.
Qualifying and disqualifying dispositions can receive different treatment.
An ESPP sale may involve both ordinary income and capital gain or loss.
Cost basis must be determined carefully.
Form 3922 and related purchase and sale records should be retained.
ESPP taxation is easier to approach when you separate the transaction into its dates, values, income components, and records. Understanding the potential tax treatment before a significant sale can support more accurate reporting and more informed year-round tax planning.
Considering Selling ESPP Shares?
Selling shares acquired through an Employee Stock Purchase Plan can involve ordinary income, capital gains or losses, cost-basis considerations, and broader tax consequences. Florence Tax LLC helps clients understand those tax consequences and evaluate relevant tax-planning considerations before significant transactions occur.
If you would like to discuss an ESPP transaction, request a consultation with Florence Tax LLC. The conversation can focus on tax treatment and reporting; it is not a recommendation about whether or when to sell employer stock.
Disclaimer: The information provided in this article is for general informational and educational purposes only and is not intended to constitute tax, legal, accounting, or financial advice. Tax laws, regulations, guidance, and interpretations are subject to change, and information that was accurate as of the date of publication may no longer be current or applicable.
Florence Tax LLC makes reasonable efforts to provide accurate information at the time of publication but does not guarantee that the information will remain accurate, complete, or up to date. Tax situations vary based on individual facts and circumstances. Before making tax or financial decisions, you should consult with a qualified tax professional or other appropriate advisor regarding your specific situation.
Reading this article or using information provided on this website does not create a professional-client relationship with Florence Tax LLC.




