Employee Stock Purchase Plan Taxes: Qualifying for Long-Term Capital Gains

Taxes
November 13, 2026

Learn how to achieve employee stock purchase plan long term capital gains tax treatment by meeting Section 423 holding period requirements.

When ESPP Shares Qualify for Long-Term Capital Gains

You can have long-term capital gains from an employee stock purchase plan once you hold the shares for more than one year after purchase. For a qualifying disposition under a Section 423 plan, you must also sell more than two years after the offering date. Part of your profit may still count as ordinary income; the rest is a long-term capital gain. Even if you miss the two-year rule, a sale after more than one year can still produce a long-term capital gain.

The key is to track both dates and use a cost basis that includes the amount taxed as ordinary income. I'm Evan Luongo, and I'll show you how those rules affect your sale and tax return.

ESPP timeline showing offering date, purchase date, and long-term capital gains holding periods infographic

Discover more about employee stock purchase plan long term capital gains:

How Qualifying Dispositions Unlock Employee Stock Purchase Plan Long Term Capital Gains

An Employee Stock Purchase Plan (ESPP) lets corporate employees buy company stock at a discount, often up to 15% below fair market value, using accumulated payroll deductions. The tax treatment depends on when you sell, how the plan is structured, and whether the sale qualifies for favorable long-term capital gains treatment. Understanding how ESPP plans work is the first step toward turning this workplace benefit into tax-efficient wealth.

Section 423 of the Internal Revenue Code sets the ground rules for tax-qualified plans. Under Section 423, no tax is owed when the shares are purchased. Instead, taxation occurs only when the shares are sold, transferred, or gifted. To achieve the most favorable tax treatment, the sale must be classified as a qualifying disposition.

FeatureQualifying DispositionDisqualifying Disposition (Long-Term)Disqualifying Disposition (Short-Term)
Holding Period from Offering DateGreater than 2 years2 years or less2 years or less
Holding Period from Purchase DateGreater than 1 yearGreater than 1 year1 year or less
Ordinary Income CalculationLesser of statutory discount at grant OR actual total gainFull discount spread at purchase date (FMV at purchase minus purchase price)Full discount spread at purchase date (FMV at purchase minus purchase price)
Capital Gain / Loss ClassificationAlways long-term capital gain or lossLong-term capital gain or lossShort-term capital gain or loss
FICA / Medicare Tax on DiscountExemptExemptExempt

Tax breakdown comparing qualifying and disqualifying ESPP dispositions

The Two-Year and One-Year Holding Period Requirements

To secure a qualifying disposition, you must satisfy two distinct statutory timelines simultaneously:

  1. Hold the stock for more than two years from the original offering date (grant date).
  2. Hold the stock for more than one year from the actual purchase date (exercise date).

Meeting both criteria ensures that the discount element is taxed under the favorable Section 423 statutory calculation, while the remaining share appreciation qualifies for lower federal long-term capital gains tax rates.

Disqualifying Dispositions with Long-Term Holding Periods

A common point of confusion occurs when an employee holds shares for more than one year after purchase, but sells before the two-year mark from the offering date. This scenario represents a disqualifying disposition with long-term capital gains.

In this situation:

  • The ordinary income component is calculated as the full difference between the fair market value on the purchase date and the actual discounted purchase price paid.
  • Any subsequent growth in share value from the purchase date to the sale date qualifies as a long-term capital gain because the asset was held for more than 12 months.

Comprehensive ESPP planning helps weigh the risks of holding company stock across volatile markets against the tax advantages of qualifying treatment.

Calculating Ordinary Income vs. Long-Term Capital Gain on ESPP Shares

When selling shares in a qualifying disposition, the IRS splits the total financial gain into two buckets: ordinary compensation income and long-term capital gain.

Under Section 423, the ordinary income portion is defined as the lesser of:

  1. The statutory plan discount applied to the fair market value of the stock on the offering date (typically 15% of the offering date price).
  2. The actual gain realized on the sale (sale proceeds minus the actual purchase price paid).

Any remaining profit above the recognized ordinary income is taxed as a long-term capital gain according to standard IRS guidance on stock sales.

Calculation breakdown of ordinary income versus long term capital gain on ESPP sales

How the Lookback Provision Impacts Employee Stock Purchase Plan Long Term Capital Gains

A lookback provision allows the plan to determine the purchase price by applying the discount to the lower of two prices: the stock price on the offering date or the stock price on the purchase date.

Consider an example:

  • Offering Date Price: $100 per share
  • Purchase Date Price: $140 per share
  • Plan Discount: 15% with a lookback feature
  • Actual Purchase Price Paid: $85 (15% off the $100 offering date price)

If you hold the shares for three years and sell them for $180 per share (a qualifying disposition):

  • Actual Total Profit: $180 − $85 = $95 per share.
  • Ordinary Income: Lesser of 15% of offering price (15% of $100 = $15) or actual profit ($95). Ordinary income is capped at $15 per share.
  • Adjusted Cost Basis: $85 purchase price + $15 ordinary income = $100 per share.
  • Long-Term Capital Gain: $180 sale price − $100 adjusted basis = $80 per share.

The lookback provision protected $40 of in-period growth ($140 − $100) from ever being taxed as ordinary income, shifting all post-offering appreciation into long-term capital gains.

Calculating Gains When Selling at a Loss

If you sell your ESPP shares in a qualifying disposition for less than the purchase price paid:

  • Ordinary Income: $0.
  • Capital Loss: The entire difference between the discounted purchase price paid and the lower sale price is recognized as a long-term capital loss.

Capital losses are reported on IRS Schedule D and can offset other realized capital gains dollar-for-dollar, with up to $3,000 in excess losses deductible against ordinary income each tax year.

Avoiding Double Taxation: Adjusted Cost Basis and Tax Form Reporting

One of the most frequent and costly tax errors made by equity compensation recipients is paying tax twice on the same ESPP discount.

When you sell ESPP shares, your brokerage firm issues IRS Form 1099-B reporting the gross proceeds and cost basis. Under federal reporting regulations, brokers report the unadjusted cost basis (the actual cash paid per share) in Box 1e of Form 1099-B. Meanwhile, the discount amount is separately reported as taxable wages on your Form W-2.

If you transfer the cost basis directly from Form 1099-B to your tax return without an adjustment, you will pay ordinary income tax on the discount through your W-2 and then pay capital gains tax on that same discount amount.

ESPP tax documentation and cost basis adjustment flow

Step-by-Step Reporting on IRS Form 8949 and Schedule D

To correctly file long-term capital gains from an employee stock purchase plan:

  1. Locate Form 3922 (Transfer of Stock Acquired Through an Employee Stock Purchase Plan) from your employer. This form shows the offering date FMV, purchase date FMV, and purchase price paid.
  2. Confirm the ordinary compensation income reported in Box 1 of your Form W-2.
  3. Open IRS Form 8949, Part II (Long-Term Capital Gains and Losses), and check Box D for long-term transactions where basis was reported to the IRS.
  4. Enter the gross sales proceeds from Form 1099-B in Column (d).
  5. Enter the unadjusted cost basis reported on Form 1099-B in Column (e).
  6. Enter code B in Column (f) to show that the basis reported on Form 1099-B is incorrect.
  7. Enter the ordinary income compensation amount as a negative adjustment in Column (g).
  8. Calculate the corrected net gain in Column (h).
  9. Carry the adjusted long-term total from Form 8949 to IRS Schedule D, Line 8b.

Calculating Adjusted Cost Basis for Employee Stock Purchase Plan Long Term Capital Gains

The statutory formula for your true adjusted basis is:

Adjusted Cost Basis = Actual Purchase Price Paid + Ordinary Income Recognized on Form W-2

Applying this basis on Form 8949 reconciles the IRS records and ensures that every dollar of discount is taxed exactly once.

Strategic Considerations: NIIT, State Taxes, and Gifting ESPP Shares

Maximizing equity compensation requires looking beyond standard federal income brackets. High earners must account for surtaxes and local tax conformity when timing stock sales.

High-Income Surtaxes and State-Level Tax Variations

For high-income professionals in 2026, federal long-term capital gains tax rates range from 0% to 15% or 20%, depending on taxable income thresholds. In addition, the Net Investment Income Tax (NIIT) levies an extra 3.8% surtax on net investment income for single filers with modified adjusted gross income (MAGI) exceeding $200,000 (or $250,000 for married couples filing jointly). This pushes the top effective federal capital gains rate to 23.8%.

State tax laws also affect net returns. For professionals in North Carolina, long-term capital gains are taxed as ordinary income at the state flat individual income tax rate. Balancing equity sales alongside single stock risk management and concentrated stock position diversification strategies ensures that company stock does not dominate your broader investment portfolio.

Tax Consequences of Gifting or Donating ESPP Stock

Transferring ESPP shares can create tax consequences whether the shares are transferred before or after qualifying status:

  • Gifting to Individuals: A gift before the ESPP holding periods are met is a disqualifying disposition, which usually triggers ordinary compensation income for the employee based on the purchase discount or bargain element. A gift after both holding periods are met is still a disposition under Section 423, so the employee may still owe ordinary income under the qualifying disposition “lesser of” rule. The recipient generally receives the shares under gift-basis rules.

  • Charitable Donations: Donating ESPP shares to a qualified 501(c)(3) charity may help avoid capital gains tax on appreciation, but the ESPP compensation-income result is not automatic. A charitable transfer needs separate tax analysis based on the plan, holding period, stock value, and applicable IRS deduction limits.

Frequently Asked Questions About ESPP Taxes

What tax forms are required to report an ESPP stock sale?

You need four primary tax documents:

  • Form W-2: Displays the discount compensation income added to your taxable wages.
  • Form 3922: Details critical transaction figures, including grant date FMV, purchase date FMV, and purchase price.
  • Form 1099-B: Reports gross sales proceeds and broker-reported cost basis.
  • Form 8949 and Schedule D: Used on your Form 1040 return to record the cost basis adjustment (Code B) and summarize net long-term capital gains.

How does the IRS limit annual ESPP share purchases?

Under Section 423(b)(8), an employee cannot purchase more than $25,000 worth of stock (valued at the fair market value on the offering date) during any single calendar year. If your plan offers a 15% discount on a $100 stock at the offering date, your maximum annual payroll contribution toward that offering is capped at $21,250 ($25,000 worth of stock at the $85 purchase price).

What happens if an employee leaves the company before the purchase date?

If you leave your employer prior to the plan purchase date, your accumulated payroll deductions are refunded back to you in full without stock purchases. Because these funds were withheld from your post-tax compensation, the cash refund is non-taxable.

Conclusion

Managing an employee stock purchase plan requires a disciplined approach to holding periods, statutory discount rules, and tax reporting. Holding shares for more than two years from the offering date and one year from purchase unlocks preferential long-term capital gains treatment, reducing the ordinary income drag on your investment returns.

Tracking Form 3922 data and making accurate cost basis adjustments on Form 8949 safeguards your gains against accidental double taxation. Integrating your equity compensation into a broader wealth strategy allows you to build long-term financial independence while mitigating concentrated employer risk. For a detailed review of your company stock options and equity plan, schedule a free assessment to evaluate your holding periods and tax strategies.

Educational Purposes Only. Content on this blog is for general educational and informational purposes only. It is not investment, tax, accounting, or legal advice, and it is not a recommendation or solicitation to buy or sell any security or to adopt any investment strategy. Past performance does not guarantee future results. Investing involves risk, including the possible loss of principal.

‍

NoDa Wealth Management, LLC ("NoDa Wealth") is an investment adviser registered with the State of North Carolina. Advisory services are offered only where NoDa Wealth and its representatives are properly registered or exempt from registration. Readers should consult their own financial, tax, and legal advisors regarding their specific situation before making any decisions. For important disclosures, see the site footer and Form ADV.

Take the First Step - For Free

Feeling overwhelmed? Let’s simplify things! Schedule your Free Assessment for an easy, 30-minute chat to help you tackle life’s transitions.

Enjoy a hassle-free conversation that puts your needs front and center!

Financial plan example
NoDa Wealth Management is located at 2108 Electric Lane, Charlotte NC, 28205. Phone Number: (980) 206-0953.
‍

Advisory services offered through NoDa Wealth Management, LLC, an investment adviser registered with the state of North Carolina. Advisory services are only offered to clients or prospective clients where NoDa Wealth Management, LLC and its representatives are properly registered or exempt from registration. The information on this site is not intended as tax, accounting or legal advice, nor is it an offer or solicitation to buy or sell, or as an endorsement of any company, security, fund, or other offering. Information provided should not be solely relied upon for decision making. Please consult your legal, tax, or accounting professional regarding your specific situation. Investments involve risk and have the potential for complete loss. It should not be assumed that any recommendations made will necessarily be profitable. The information on this site is provided “AS IS” and without warranties either express or implied and the information may not be free from error. Your use of the information provided is at your sole risk.
>