
ESPP Taxes: How Employee Stock Purchase Plan Sales Are Taxed
Fact Checked
FileTax.com content is reviewed for accuracy, timeliness, and completeness. It undergoes a structured editorial review process involving writers and expert reviewers.
More on our editorial standards
Scott WesterlundContent Writer - Tax Law
Alistair HoehneTax Content Reviewer
Your Takeaways:
- ESPPs typically let you buy company stock at up to a 15% discount through payroll deductions — a great benefit if managed correctly.
- No tax at purchase for qualified (Section 423) plans — tax applies only when you sell.
- The holding period (2 years from the offering date + 1 year from the purchase date) determines whether you get favorable "qualifying disposition" treatment or unfavorable "disqualifying disposition" treatment.
- Qualifying dispositions: Smaller ordinary income portion (lesser of offering-date discount or actual gain); the rest is long-term capital gain.
- Disqualifying dispositions: Full discount based on purchase date taxed as ordinary income; remaining gain taxed as short-term or long-term.
- Form 1099-B basis errors are extremely common — brokers often report only what you paid, not the FMV already taxed as wages. Uncorrected, this causes double taxation.
- High earners owe 3.8% NIIT on the capital gain portion when MAGI exceeds $200K for single filers / $250K for MFJ filers.
- Form 3922 from your employer is essential for accurate tax reporting — don't lose it.
Buying company stock at a discount sounds like a no-brainer. And with an employee stock purchase plan, it often is. But ESPP taxes can turn that easy win into a confusing situation if you are not prepared.
The way your ESPP stock is taxed depends on how long you hold the shares, the price discount you received, and whether the sale qualifies for favorable tax treatment. This guide explains how ESPP sales are taxed under current IRS rules, including how holding periods affect ordinary income and capital gains when you sell.
This article is part of our broader Stock Taxes guide and focuses solely on the tax treatment of employee stock purchase plans.
TL;DR: ESPPs let you buy company stock at up to a 15% discount through payroll deductions. The discount isn't taxed at purchase — taxes kick in when you sell. How you're taxed depends on whether your sale is a qualifying disposition (held at least 2 years from offering date AND 1 year from purchase date) or a disqualifying disposition (sold before meeting both). Qualifying dispositions get favorable capital gains treatment on the gain beyond the discount. Disqualifying dispositions tax the full discount as ordinary income. Watch out for cost basis errors on Form 1099-B — brokers often report only the purchase price, not including the discount already taxed as W-2 wages, leading to double taxation. |
|---|
What Is an Employee Stock Purchase Plan?
An employee stock purchase plan, often called an ESPP, allows you to purchase company stock through payroll deductions, typically at a discount to market value.
How Payroll Deductions Fund ESPP Purchases
During the offering period, a portion of your paycheck goes into a stock purchase fund. These accumulated contributions are then used to buy shares on the purchase date.
Why Companies Offer Stock at a Discount
Most companies’ ESPP plans allow employees to buy stock at a discount, often up to 15 percent below fair market value. That built-in price discount creates both opportunities and tax implications.
Section 423 Qualified vs Nonqualified ESPPs
Most favorable tax treatment applies only to Section 423 qualified ESPPs, which must meet specific requirements:
- Offered to substantially all employees (with limited exceptions)
- Shareholder-approved by the company's stockholders
- Maximum 15% discount from fair market value
- Offering periods of 27 months or less
- Annual purchase limit of $25,000 worth of stock (based on offering-date FMV)
Nonqualified ESPPs (those not meeting Section 423) don't get preferential treatment — the discount is taxed as ordinary income at purchase, similar to NSOs.
Most major employer ESPPs are Section 423 qualified. Verify your plan type with your HR or plan documents.
How ESPP Discounts Work and Why They Affect Taxes
Understanding how the discount is calculated is essential to understanding ESPP taxes.
Offering date, purchase date, and grant date explained
- Offering date: The start of the offering period
- Purchase date: When your payroll deductions are used to buy stock
- Grant date: Often the same as the offering date for tax purposes
Many plans use a lookback feature that applies the discount to the lower stock price on either the offering date or purchase date.
Market price vs discounted purchase price
Your actual purchase price may be significantly lower than the market price on the purchase date. That difference is treated as compensation income for federal tax purposes when you sell the shares, not when you buy them.
Source: IRS Pub. 525, Employee Stock Purchase Plans
Why ESPP Taxes Are More Complicated Than They First Appear
ESPP sales can involve two layers of tax: ordinary income on part of the discount, plus capital gain or loss on the remaining amount.
Ordinary income vs capital gain basics
When you sell ESPP shares, part of your profit may be taxed as ordinary income and part as a capital gain. Some gains are taxed at ordinary income rates, while others may qualify for long-term capital gain treatment.
When ESPP income becomes taxable income
The discount you receive is not taxed when you purchase stock. Taxes are triggered when you sell, and the timing of that sale determines how the income is classified. Once you sell, proper filing becomes critical. See our Reporting Stock Sales guide for step-by-step instructions on reporting ESPP transactions on Form 8949 and Schedule D.
Source: IRS Pub. 525, Employee Stock Purchase Plans

Qualifying vs Disqualifying Dispositions
The table below shows how the tax treatment of ESPP shares changes depending on whether your sale is qualifying or disqualifying.
Qualifying vs Disqualifying ESPP Dispositions at a Glance
| Qualifying Disposition | Disqualifying Disposition |
|---|---|---|
Holding period | Sold at least 2 years after the offering date and 1 year after the purchase date | Sold before meeting either holding period requirement |
Ordinary income portion | Taxed on the lesser of the discount based on the offering date price or the actual gain at sale | Taxed on the full discount based on the fair market value on the purchase date |
Capital gains treatment | Any remaining profit is taxed as a long-term capital gain if holding rules are met | Any additional gain is taxed as short-term or long-term capital gain, depending on how long the shares were held |
Any additional gain is taxed as short-term or long-term capital gain, depending on how long the shares were held
Employee Stock Purchase Plans have their own tax rules that differ significantly from those for RSUs or stock options. If you also receive other types of equity compensation, it’s important to understand those differences. For a breakdown of how restricted stock units and options are taxed, see our RSU/Options Taxes guide.
What is a Qualifying Disposition
A qualifying disposition occurs when:
- You sell at least two years after the offering date, and
- At least one year after the purchase date
Meeting both requirements can unlock favorable tax treatment.
What is a Disqualifying Disposition
If you sell ESPP shares before meeting either holding period, the sale is considered a disqualifying disposition and results in higher ordinary income tax.
Net Investment Income Tax on ESPP Gains
High earners who sell ESPP shares at a gain may owe an additional 3.8% Net Investment Income Tax on the capital gain portion.
NIIT applies when MAGI exceeds:
- $200,000 (single, head of household)
- $250,000 (married filing jointly)
The ordinary income portion of ESPP compensation (the discount) is NOT subject to NIIT — it's already subject to FICA taxes instead. But the additional capital gain portion on the sale is investment income and can trigger NIIT.
See our Capital Gains Tax on Stocks guide for full NIIT mechanics.
How Qualifying Dispositions Are Taxed
Qualifying dispositions are generally more tax-efficient.
Ordinary Income Portion
You pay ordinary income tax on the lesser of:
- The price discount based on the offering date stock price, or
- The actual gain at sale
If qualified ESPP, then the discount is not taxed at purchase, as long as holding periods are met. As a result, the transaction will be subject to favorable capital gains rates.
Sources: Instructions for Forms 3921 and 3922
Capital Gain Portion and Favorable Tax Treatment
Any additional profit above that amount is considered capital gain. If you held the shares long enough, that portion qualifies as a long-term capital gain and may be taxed at lower capital gains tax rates.
How Disqualifying Dispositions Are Taxed
Selling too soon can significantly change how your ESPP income is taxed.
Compensation Income and Ordinary Income Tax
In a disqualifying disposition, the discount based on the fair market value at the purchase date is taxed as ordinary income. You pay ordinary income tax on that amount regardless of whether the stock price went up or down.
While this article focuses on how ESPP taxes work, capital gains rules apply more broadly to many types of investments. If you want a deeper explanation of how capital gains are taxed outside of ESPPs, visit our Capital Gains guide.
Short Term vs Long Term Capital Gain
Any additional gain after the discount is considered a capital gain. If you did not meet the one-year holding rule, it becomes a short-term capital gain taxed at ordinary income rates.
Worked Examples: Qualifying vs Disqualifying Disposition
Setup (for both scenarios):
- Offering date: January 1, 2023
- FMV on offering date: $50
- Purchase date: June 30, 2023
- FMV on purchase date: $60
- You purchased at 85% of the LOWER of the two (lookback provision) = 85% of 50 = 42.50 per share
- You bought 1,000 shares for $42,500 total
Scenario A: Disqualifying Disposition You sell on December 15, 2023 at 65/share (65,000 total). Total gain: $22,500.
- Ordinary income (based on purchase date): 60 − 42.50 = 17.50/share × 1,000 = 17,500 ordinary income (reported on W-2)
- Capital gain: 65 − 60 = 5/share × 1,000 = 5,000 short-term capital gain
- Tax: 5,600 at 32% ordinary + ~1,600 at 32% short-term = $7,200
Scenario B: Qualifying Disposition You hold until February 2025. You sell at 75/share (75,000 total). Total gain: $32,500.
- Ordinary income (lesser of offering date discount OR actual gain): 50 × 15% = 7.50/share × 1,000 = $7,500 ordinary income
- Capital gain: (75 − 42.50) − 7.50 = 25,000 long-term capital gain
- Tax: 2,400 at 32% ordinary + ~3,750 at 15% long-term = $6,150
The qualifying disposition saves roughly $1,050 in tax AND allows continued appreciation. Holding longer usually pays off on ESPP shares, though it does concentrate risk in employer stock.
Understanding Cost Basis for ESPP Shares and Tax Reporting
Cost basis is one of the most misunderstood parts of ESPP taxes.
Fair Market Value and Adjusted Cost Basis
Your adjusted cost basis includes:
- The actual purchase price paid
- Plus any income already taxed as compensation
Using only the purchase price can result in double taxation.
Why Incorrect Basis Leads to Overpaying Taxes
Brokerage statements often show only the purchase price as cost basis and may not reflect income already reported on Form W-2, requiring an adjustment when you file Schedule D. Failing to adjust it properly can cause you to pay capital gains taxes on income that was already taxed. For a deeper explanation, see our Form 1099-B Reporting guide to understand how brokers report ESPP sales and why basis errors are so common.
Source: IRS Schedule D Instructions
For deeper details and examples, see our Cost Basis guide.
Common ESPP Tax Mistakes to Avoid
Selling Too Early
Many employees sell ESPP stock immediately without understanding the tax consequences. This can turn what could have been favorable tax treatment into fully taxed ordinary income.
Forgetting Income Reported on Form W-2
For disqualifying dispositions, employers generally include the ordinary income portion on your Form W-2. For qualifying dispositions, the income may not be fully reflected, making Form 3922 critical for accurate reporting. If you report it again incorrectly, you may end up overpaying taxes.
Source: Instructions for Form 3922
How ESPP Sales Fit Into Your Overall Financial Plan
ESPP decisions should never exist in a vacuum.
Concentration Risk and Personal Finance Planning
Buying company stock can increase concentration risk. If your income and investments depend on the same company, selling ESPP shares may help protect your financial plan.
Aligning ESPP Decisions with Financial Goals
A financial or tax advisor can help you determine whether selling ESPP shares supports your overall financial plan or works against it.
Final Takeaway
ESPP taxes are not as simple as they look. Knowing the difference between qualifying and disqualifying dispositions, understanding how ordinary income and capital gains interact, and reporting the correct cost basis can save you serious money.
FileTax.com helps you make sense of ESPP income, equity compensation, and stock sale tax implications without the headache. Because buying company stock should feel like a win, not a tax trap.
Other Categories
See what some of the hundreds of thousands of satisfied customers have to say about our services:
Levi C.
VERY FAST
I got approved within a couple of days for my tax extension filing through these guys, and they responded to my email the same day. Great customer service and fast results. Give them a shot.
LaMontica
Great Service!!
This is the second year that I have used this service. Each time, the process was quick, easy, and efficient. I will definitely be using this service in the future and will recommend it to friends and family.
Chezbie
Fantastic Site!!
The process was so easy. I processed this extension in a matter of minutes! For you last-minute filers out there, come here. It'll help you end your long day in peace!
Why Trust FileTax.com
• Written and reviewed by qualified tax professionals, including CPAs and tax law reviewers
• Reviewer and contributor profiles include credentials, expertise, and verification information
• Content is reviewed for tax accuracy, compliance, and clarity before publication
• Based on IRS guidance, state tax agencies, and current tax law updates
• Editorial standards and review processes are publicly documented
Links
FAQs About ESPP Taxes
No. ESPP taxes are triggered when you sell the shares, not when you purchase stock.




