Employee Stock Purchase Plan (ESPP): How It’s Taxed
Espp Tax: What an employee stock purchase plan is
An employee stock purchase plan is a benefit that lets you buy your employer’s stock at a discount, usually funded by after-tax money taken straight out of each paycheck over an offering period. For Espp Tax, you set a contribution percentage, the money accumulates, and on the purchase date the plan buys shares for you. Most plans run on a six-month cycle, though some use shorter or longer offering periods.
There are two flavors, and the difference drives everything that follows. A qualified plan under Section 423 gets favorable tax treatment: no tax when you buy, and a shot at long-term capital gain rates on part of the gain if you hold long enough. A non-qualified plan gets none of that. In a non-qualified plan the discount is taxed as ordinary compensation at purchase, the same way a cash bonus would be, so the rest of this guide focuses on the Section 423 plan, which is what most large employers offer.
The discount can run up to 15%, meaning you can pay as little as 85% of fair market value. The feature that makes a good plan worth the effort is the lookback. With a lookback, the price you pay is 85% of the lower of the fair market value at the start of the offering period or the fair market value on the purchase date. If the stock climbed during the offering period, you still buy at a discount off the lower starting price, which can push the real discount well past 15%. The IRS lays out these mechanics in its Equity-Based Compensation guide (Pub 5992).
There is a ceiling. Section 423 caps your purchases at $25,000 of stock per calendar year, and that figure is measured at the grant-date, or offering-date, fair market value, not the discounted price you actually pay. The cap is statutory and is not adjusted for inflation, so it has sat at $25,000 for decades. Publication 525 and the equity-comp guide both spell out the limit. For a higher earner at a company with a strong stock, that cap is the binding constraint on how much you can put through the plan.
No tax at purchase, and the Form 3922 you receive
In a qualified Section 423 plan, buying the shares is not a taxable event. You contribute through payroll, the plan buys at a discount, and nothing hits your tax return that year. The discount is real money, but the IRS defers taxing it until you sell. This trips people up, because they assume getting stock at 85% of value must be taxable income right away. In a 423 plan it is not.
What you do get is a paper trail. The first time legal title to your ESPP shares transfers to you, your employer files Form 3922 with the IRS and sends you a copy. Form 3922 is an information return, not a tax bill. It records the four numbers you need to compute your tax later: the offering, or grant, date; the purchase date; the fair market value on the offering date; the fair market value on the purchase date; and the price you actually paid. Hang onto every Form 3922 you receive. When you sell years later, that form is how you reconstruct your ordinary income and your true cost basis, and the broker statement alone will not give you those figures correctly.
Qualifying vs disqualifying disposition: the holding-period tests
When you sell ESPP shares, the sale falls into one of two buckets, and the labels are worth memorizing because they decide how much of your gain is taxed at ordinary rates versus capital gain rates. A qualifying disposition meets two holding-period tests at once. You must hold the shares more than two years from the grant or offering date, and more than one year from the purchase date. Both clocks have to run out. A disqualifying disposition is any sale that fails either test, so selling before the two-year-from-grant mark, or before the one-year-from-purchase mark, lands you here. The IRS describes these tests in Tax Topic 427 and Publication 525.
The two-year clock usually starts at the offering date, not the purchase date, which catches people off guard. Because a six-month offering period sits between the two, the two-year-from-grant test is often the one that actually controls, and it can be satisfied before or after the one-year-from-purchase test depending on the cycle length. You have to clear both. An ESPP qualifying disposition is the better tax outcome in most cases, but it is not automatically better in every case, which is why we model the sale before a client pulls the trigger rather than after.
How each disposition is taxed: the actual math
This is where the two buckets diverge. In an ESPP qualifying disposition, your ordinary income, the part that shows up as compensation on your W-2, is the lesser of two figures: the offering-date fair market value minus the purchase price, or the actual sale price minus the purchase price. Whatever is left over after that ordinary piece is treated as long-term capital gain. Using the lesser-of rule means that if the stock fell, your ordinary income shrinks accordingly, and it can even be zero if you sold at a loss. Publication 525 walks through this lesser-of computation in detail.
A disqualifying disposition works differently and is often simpler to compute but worse on the tax bill. Your ordinary income is the full actual discount: the fair market value on the purchase date minus the price you paid, period. That holds regardless of what the stock did afterward, so even if you sold at a loss, you still recognize the full purchase-date discount as ordinary W-2 income. Anything beyond that, the difference between your sale price and the value at purchase, is a capital gain or loss, long-term or short-term depending on how long you held from the purchase date.
The basis rule is the same in both cases and it is the rule everyone forgets. Your cost basis equals the purchase price plus the ordinary income you recognized. The ordinary income piece has already been taxed once as compensation, so it gets added to basis to keep it from being taxed a second time when you compute the capital gain. Miss that step and you double-count, which is exactly the trap the broker form sets up.
The 1099-B basis trap and a worked example
Here is the error we fix most often. Your broker reports the sale on Form 1099-B, and for cost basis it shows only the discounted price you paid for the shares. It omits the ordinary income that already hit your W-2. If you copy the 1099-B basis onto your return, you pay tax twice on that ordinary piece, once as wages and again as inflated capital gain. The fix lives on Form 8949: report the broker’s basis in column (e), enter code B in column (f), and put the correcting amount in column (g) so your gain reflects the true basis. The corrected total flows to Schedule D.
Run the numbers. Say the fair market value at the offering date was $100, the fair market value at purchase was $120, and your plan gives a 15% discount on the lower of the two, so you paid $85 per share for 100 shares. Now compare two sales, both at $130 per share.
Disqualifying sale at $130: your ordinary income is the purchase-date discount, $120 minus $85, which is $35 per share, or $3,500 reported on your W-2. Your basis becomes $120 per share (the $85 paid plus the $35 ordinary income). Your capital gain is $130 minus $120, which is $10 per share, or $1,000. If the 1099-B had shown $85 basis and you accepted it, you would have reported a $45 per share gain, taxing that $35 discount a second time.
Qualifying sale at $130: your ordinary income is the lesser of the offering-date discount ($100 minus $85, which is $15) or the actual gain ($130 minus $85, which is $45). The lesser is $15 per share, or $1,500 on your W-2. Your basis becomes $100 per share ($85 plus $15). Your long-term capital gain is $130 minus $100, which is $30 per share, or $3,000 taxed at long-term rates. The qualifying sale moved $20 per share out of ordinary income and into long-term capital gain, which for most ESPP holders is the cheaper outcome.
One more layer for higher earners. Long-term capital gain on an ESPP sale counts as net investment income, so once your modified adjusted gross income clears $200,000 single or $250,000 married filing jointly, the 3.8% net investment income tax applies to it on Form 8960. The ordinary income piece is wages and is not subject to NIIT, but it does push your overall income higher, which can drag the capital gain piece over the threshold.
ESPPs rarely sit alone. If your compensation also includes restricted stock or options, the reporting interacts, and it helps to see how the pieces fit. Our guide to employee stock and equity compensation maps every plan type, the side-by-side comparison lines them up against each other, and if you also hold restricted stock units or non-qualified stock options, those guides cover the same 1099-B basis adjustment that bites ESPP sellers.
Related Services from The Reed Corporation
Helpful Guides You Might Also Like
Sources & References
Frequently Asked Questions
How does ESPP tax treatment work in a section 423 plan?
An employee stock purchase plan that qualifies under section 423 of the Internal Revenue Code lets you buy employer stock through after-tax payroll deductions at a discount of up to 15 percent. Money comes out of each paycheck across an offering period, and on the purchase date the accumulated cash buys shares at the plan price. The rule that surprises new participants is the one about timing. In a qualified plan you report no income on the purchase date, even though you bought stock worth more than you paid. The bargain element sits there untaxed until you dispose of the shares, which is why the ESPP tax question is really a question about when and how you sell rather than about the day you bought.
That deferral is what separates a qualified plan from a plan that fails the section 423 tests. A nonqualified purchase plan taxes the discount as compensation on the purchase date, reports it on Form W-2, and subjects it to Social Security and Medicare tax the same way any bonus would be handled under the employment tax rules. A qualified plan does none of that at purchase. Section 423 also imposes conditions on the plan itself, including shareholder approval, participation open to substantially all employees, an offering period no longer than 27 months where a lookback applies, and no participation by anyone owning 5 percent or more of the company.
Here is a purchase that shows the mechanics. The offering period opens with the stock at 20 dollars. Six months later the stock trades at 30 dollars on the purchase date. The plan applies a 15 percent discount to the lower of the two prices, so the purchase price is 17 dollars. Payroll deductions of 8,500 dollars buy 500 shares worth 15,000 dollars that afternoon. The participant is 6,500 dollars ahead on paper and owes nothing on the current year return for that purchase. Your employer sends Form 3922 in January reporting the offering date, the purchase date, and both share prices, which are the numbers every later calculation depends on.
The common mistake is throwing away Form 3922 because it does not report an amount of income. Without it, nobody can compute the split between ordinary income and capital gain years later when the shares are sold, and reconstructing historical share prices from memory does not go well. The second mistake is reporting the purchase discount as income in the year of purchase for a qualified plan. That creates income the statute does not require, then produces a second layer of tax at sale because the basis records never get corrected. We have unwound that pattern for clients who filed it themselves for several years running.
Keep the annual limit in view as well. Section 423 caps you at 25,000 dollars of stock per calendar year, measured at the fair market value on the offering date rather than at the discounted purchase price. At a 20 dollar offering price, that ceiling allows 1,250 shares for the year even though your payroll deductions would have bought more at 17 dollars. Employers usually enforce the cap automatically, but people who change jobs midyear can participate in two plans and breach the limit without any single employer catching it. We track purchase records in bookkeeping and carry the resulting basis into individual tax return preparation, using the general basis rules in Publication 551 as the framework. Note that state treatment can differ from the federal answer, and a state that sourced your wages during the offering period may want its share when you sell.
Save every Form 3922 in one folder starting with your next purchase, because the ESPP tax calculation you will face at sale is only as good as the price history you kept.
What is the lookback provision and how does it change my ESPP tax bill?
The lookback provision decides which stock price your discount applies to. A plan without a lookback applies the discount to the price on the purchase date alone. A plan with a lookback applies it to the lower of the price on the offering date or the price on the purchase date, which means a rising stock hands you a much larger bargain element. Section 423 permits an offering period of up to 27 months when the purchase price is set with a lookback, and that long window is exactly what makes the feature valuable. Most participants never read the plan document closely enough to know which version they have.
Compare the two designs on the same facts. Stock at 20 dollars on the offering date, 30 dollars on the purchase date, and 8,500 dollars of payroll deductions available. With a lookback, the price is 85 percent of 20 dollars, so 17 dollars, and the deductions buy 500 shares worth 15,000 dollars. Without a lookback, the price is 85 percent of 30 dollars, so 25.50 dollars, and the same 8,500 dollars buys only 333 shares worth about 9,990 dollars. The lookback produced roughly 5,000 dollars of additional value from one plan provision. Across four purchase periods a participant contributing the same amount could see a difference above 20,000 dollars in a rising market.
The larger bargain element also means a larger eventual ESPP tax bill, and the two move together. The ordinary income piece in a qualifying disposition is measured by the discount computed at the offering date price, so a 20 dollar offering price with a 15 percent discount fixes 3 dollars per share of potential ordinary income regardless of how high the stock climbs afterward. Everything above that figure gets capital gain treatment when the holding periods are met. That is why the lookback is generous rather than merely nice. It hands you value that mostly converts into capital gain rather than wages, provided you hold long enough.
The annual ceiling is where people trip. The 25,000 dollar limit applies to the value of the stock measured at the offering date price, not to your payroll deductions and not to the discounted purchase price. At 20 dollars per share, the cap allows 1,250 shares for the calendar year in which the offering began. Some plans run overlapping offerings, in which case an offering outstanding across two calendar years can carry unused limit forward under the plan terms. The common mistake is assuming you can contribute 25,000 dollars of paycheck money each year. You cannot, and the excess simply gets refunded, often in December, at which point the cash has been unavailable all year for no benefit.
The second common mistake is ignoring what a large purchase does to your cash flow. Contributing the plan maximum can pull real money out of every paycheck for six months, and the shares you receive cannot always be sold immediately under a company trading window or a blackout policy. Setting the contribution rate is a personal financial decision rather than a tax decision, and we do not make it for clients. What we do is model the tax on each design so the number is known in advance, work that runs through tax strategy consulting and feeds the estimated payment schedule built on Form 1040-ES. The safe harbor rules in Publication 505 matter here, because a large sale year can push a household past the prior year cushion. Records feed straight into the individual tax return, and the basis conventions in Publication 550 govern how each lot is treated on sale.
Pull your plan document before the next offering opens and find out whether a lookback applies, because that single clause changes both the value you receive and the tax you will eventually pay on it.
Why does a disqualifying disposition raise the ESPP tax cost?
Two holding periods decide the answer, and both have to be satisfied. The sale must occur more than two years after the offering date and more than one year after the purchase date. Clear both and you have a qualifying disposition. Miss either one, even by a day, and you have a disqualifying disposition. The names are dry but the difference in dollars is not, because the two paths compute ordinary income in completely different ways and the ordinary piece is the expensive piece for anyone in an upper bracket.
In a qualifying disposition, ordinary income equals the lesser of two amounts. The first is the discount measured at the offering date, meaning the offering date price minus the price you would have paid computed at that date. The second is your actual gain, meaning sale price minus what you actually paid. Whichever number is smaller becomes ordinary income, and everything remaining is long-term capital gain reported on Form 8949 and carried to Schedule D. In a disqualifying disposition, ordinary income equals the full spread on the purchase date, meaning the purchase date price minus your purchase price, and that amount is fixed regardless of what the stock did afterward. The rest is capital gain or loss, short-term or long-term depending on how long you held.
Take the 500 shares bought at 17 dollars when the offering price was 20 dollars and the purchase date price was 30 dollars. Sell at 32 dollars in a disqualifying disposition and ordinary income is 13 dollars per share, or 6,500 dollars, with a further 1,000 dollars of capital gain. Sell the same shares at 32 dollars in a qualifying disposition and ordinary income is the lesser of the 3 dollar offering date discount, which is 1,500 dollars, or the 15 dollar actual gain, which is 7,500 dollars. Ordinary income is therefore 1,500 dollars and long-term capital gain is 6,000 dollars. At a 35 percent ordinary rate against a 15 percent long-term rate, waiting shifts 5,000 dollars from the wage column to the capital column and saves about 1,000 dollars of federal tax on one purchase lot.
Withholding behaves oddly here, which is where the ESPP tax surprises usually originate. Section 423 ordinary income carries no Social Security or Medicare tax, and employers generally do not withhold federal income tax on it either. Most companies do add the disqualifying disposition income to your Form W-2 in box 1 without any matching withholding in box 2. So the income arrives, the tax does not get paid, and nothing on the pay stub flags it. On a qualifying disposition some employers do not report the ordinary income at all, and the obligation to report it still belongs to you.
The common mistake is selling a few weeks short of a holding period because a trading window opens. We see it constantly in December. A participant sells on the 20th, and the two-year mark from the offering date falls on January 8. Those nineteen days cost roughly 1,000 dollars of federal tax on a single lot and more on several lots. A related mistake is assuming a falling stock makes the distinction irrelevant. In a qualifying disposition where the stock fell below the offering price, ordinary income equals the actual gain, which can be small or zero, while a disqualifying disposition still charges you full ordinary income on the purchase date spread even if you sold at a loss. We map each lot against both dates in tax strategy consulting and report the split correctly on the individual tax return.
Build a simple list of your lots showing the offering date and the purchase date for each one, then check it before any sale, because the calendar decides this outcome and nothing after the trade can change it.
How does a broker basis error create double ESPP tax?
This is the most expensive error in the entire topic, and it happens to careful people. When you sell shares acquired through an employee stock purchase plan, your broker reports the sale on Form 1099-B with a cost basis figure. For shares acquired under an employee plan after 2013, the reporting regulations bar the broker from including the compensation element in the basis it reports to the IRS. So the broker shows what you actually paid, the discounted purchase price, and nothing more. Your true basis is what you paid plus any amount already reported as ordinary income. If you copy the broker number onto your return, you pay tax twice on the same ordinary income.
The correction is a mechanical adjustment rather than an argument. You report the sale on Form 8949, enter the basis as reported by the broker, then use the adjustment column with code B to add the compensation element and arrive at the correct gain. The adjusted totals flow to Schedule D. The supporting numbers come from Form 3922 and from your plan statements, which is the practical reason to keep them. General rules for computing basis in securities appear in Publication 550, and the underlying framework sits in Publication 551.
Run the numbers on a qualifying disposition of the 500 shares. You paid 8,500 dollars and reported 1,500 dollars of ordinary income, so your true basis is 10,000 dollars. The broker reports 8,500 dollars. On a 16,000 dollar sale, the uncorrected return shows a 7,500 dollar gain instead of the correct 6,000 dollar gain, overstating income by exactly the 1,500 dollars you already picked up as wages. At a 15 percent long-term rate that costs 225 dollars on one lot, and at ordinary rates on a disqualifying disposition the same error on a 6,500 dollar compensation element costs about 2,275 dollars. A participant who bought twice a year for six years and never adjusted can easily overpay 12,000 dollars in total across those lots.
The common mistake is trusting the number because it came from a financial institution and appears on a federal form. Brokers are following their own reporting rules correctly. The rules simply put the adjustment on your side of the line. A second mistake is assuming tax software catches it. Most packages ask whether the sale involved employee stock, and the question is easy to click past, particularly when the import pulled dozens of lots at once. A third pattern shows up when someone transfers shares to a different brokerage, at which point the receiving firm often has no basis information at all and reports zero, which turns the entire sale proceeds into apparent gain.
Prior years can usually be fixed. An amended return on Form 1040-X is generally available within three years of the original filing date or two years from when the tax was paid, whichever is later, and a corrected basis schedule is exactly the kind of documented adjustment that gets processed without drama. We rebuild the lot history inside bookkeeping, reconcile each purchase to its Form 3922, then carry the corrected basis into individual tax return preparation for the current year and any open prior year. No amended return is beyond examination, and we do not promise a particular outcome, but a documented basis correction stands on the plan records rather than on argument. State returns generally need the same correction, since most states start from federal taxable income.
Before your next sale, write down the true basis for each lot next to the broker figure, because catching the ESPP tax difference before you file costs nothing while catching it afterward costs an amended return.
Does The Reed Corporation give investment advice or only ESPP tax work?
Only the tax work. The Reed Corporation is a CPA and tax firm. We are not a registered investment adviser, we do not manage portfolios, we do not sell securities, and we do not tell anyone whether to hold or sell shares from a purchase plan. Participants ask us constantly whether to sell at purchase or hold for the qualifying period, and the honest answer is that the question has an investment half and a tax half. We handle the tax half completely and we hand the rest to your own licensed investment advisor, along with the numbers that decision needs. Concentration risk in a single employer’s stock is their subject, not ours, and so is the question of what else belongs in your portfolio.
Our side of the work is concrete. We track each purchase lot with its offering date, purchase date, and both share prices. We compute the ordinary and capital split for any sale you are considering under both a qualifying and a disqualifying outcome so the difference is a number rather than a guess. We watch the 25,000 dollar annual limit across employers for anyone who changed jobs midyear. We size the payment that has to reach the Treasury when income arrives without withholding, and we handle the basis adjustments on the return. Because no withholding attaches to section 423 ordinary income, that payment side is where most of the damage happens. Estimates run through Form 1040-ES, and the safe harbor tests live in Publication 505.
A recent pattern shows how the ESPP tax payment gap opens. A client sold six lots in one year following a strong run in the stock, producing 34,000 dollars of ordinary income and 41,000 dollars of long-term capital gain. Not one dollar of federal tax was withheld on any of it. The federal cost came to roughly 11,900 dollars on the ordinary piece at a 35 percent rate plus about 6,150 dollars on the gain at 15 percent, and the household had prepaid nothing toward either figure. Caught in the second quarter, the balance spread across three estimate dates at about 6,000 dollars each. Caught in April, it would have arrived as one payment plus an underpayment penalty computed on Form 2210.
The common mistake is treating the sale proceeds as spendable money. Clients see cash hit the brokerage account, move it to a house down payment, and then face a tax bill nine months later with the money already gone. A close second is forgetting the net investment income tax, which adds 3.8 percent on the capital gain piece for households above the threshold and gets computed on Form 8960. On the example above that adds about 1,558 dollars nobody had budgeted. State tax is a separate layer again, and states differ on how they source income from a plan you participated in while working somewhere else. Running the withholding estimator after a large sale takes a few minutes and usually settles the federal question.
If you hold several years of purchases and have never had the lots reconciled, that is the work worth doing before your next sale rather than after, and you can request a consultation to start it. We rebuild the purchase history, compute the split for each lot under both dispositions, size the estimated payments, and give your investment advisor a clean file so their recommendation rests on accurate tax figures rather than assumptions. Ongoing planning runs through tax strategy consulting, and the annual filing runs through individual tax return preparation. We do not promise a specific tax result and no return is beyond an audit, but accurate lot records and funded estimates remove the two failures we see most often on these plans.
Schedule the reconciliation before your next trading window opens, because every choice that changes the outcome has to be made while you still hold the shares.