When you sell ESPP shares at a loss before meeting the holding periods, the tax bill doesn’t disappear with the stock price. In a disqualifying disposition, you still owe ordinary income tax on the discount you received at purchase, calculated as the fair market value on the purchase date minus what you paid. The loss on the sale becomes a capital loss you report separately, and it only partially offsets the income because of how the tax code treats the two categories. Getting this right on your return means correcting the cost basis on Form 8949, because the number your broker reports on Form 1099-B is almost certainly too low.
Why a Loss Doesn’t Erase the Discount Income
ESPP sales fall into two buckets. A qualifying disposition requires holding the shares at least two years from the offering date and at least one year from the purchase date. Fail either test and the sale is a disqualifying disposition.1Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans
In a disqualifying disposition, the IRS treats your entire purchase discount as compensation. Ordinary income equals the fair market value on the purchase date minus the price you actually paid, and that figure doesn’t move based on what you eventually sell for.2Internal Revenue Service. I Purchased Stock From My Employer Under a 423 Employee Stock Purchase Plan and Received a Form 1099-B for Selling It. How Do I Report This? If your discount was $15 per share, that $15 is ordinary income whether the stock later doubles or gets cut in half.
The capital loss comes from the other side of the transaction. Your adjusted cost basis is the price you paid plus the ordinary income already recognized. Sell below that adjusted basis, and you have a capital loss on the same block of shares that generated the ordinary income. Two tax items, one trade.
A Worked Example
Say you bought 100 shares at $85 when the fair market value on the purchase date was $100. Six months later you sell all 100 shares at $90.
Ordinary income: $100 minus $85 equals $15 per share, so $1,500 total. Your employer should include this $1,500 as wages in Box 1 of your W-2 for the year of the sale.2Internal Revenue Service. I Purchased Stock From My Employer Under a 423 Employee Stock Purchase Plan and Received a Form 1099-B for Selling It. How Do I Report This? If it doesn’t appear on the W-2, you still have to report it on Schedule 1 of your Form 1040.
Adjusted cost basis: $8,500 cash paid plus $1,500 ordinary income equals $10,000. Sale proceeds are $9,000. That’s a $1,000 capital loss.
Now shift the sale price down to $75. Ordinary income is still $1,500 because the discount doesn’t change. Proceeds drop to $7,500, and the capital loss grows to $2,500. Your actual out-of-pocket loss was $1,000 ($8,500 in, $7,500 out), and you still owe tax on $1,500 of ordinary income.
How Much the Capital Loss Actually Offsets
Capital losses offset capital gains dollar for dollar. Against ordinary income, though, the deduction caps at $3,000 per year, or $1,500 if you’re married filing separately.3Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything above the cap carries forward to future years until it’s used up.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The rates don’t always match either. Ordinary income from the ESPP discount is taxed at your marginal rate, often 22%, 32%, or higher. A short-term capital loss offsets ordinary income at that same rate, which helps. But if you held longer than a year from the purchase date and still blew the two-year offering-date test, the loss is long-term. Long-term losses first knock down long-term gains taxed at the lower capital gains rate, so each dollar of loss can save you less tax than each dollar of ordinary income costs.
Correcting Your Cost Basis on Form 8949
This is where most ESPP sales get misreported. Brokers are prohibited from including compensation income in the basis they report on Form 1099-B, so the basis you’ll see is just the discounted price you paid. For a disqualifying disposition, that number is too low, which inflates your gain or shrinks your loss on paper.
You fix it on Form 8949, which flows into Schedule D.5Internal Revenue Service. Instructions for Form 8949 If the basis was reported to the IRS (Box A or D checked), enter the broker’s figure in Column (e) as reported, then enter a negative adjustment in Column (g) equal to the ordinary income you recognized. Using the example above, that’s a negative $1,500 adjustment, which brings your effective basis up to $10,000. Put Code B in Column (f) to flag that the reported basis was wrong. If basis wasn’t reported to the IRS (Box B or E checked), you can enter the corrected basis directly in Column (e), still with Code B in Column (f) and zero in Column (g).
Code B tells the IRS the discrepancy between the 1099-B and your return is intentional and explained. Skip it and the matching system will likely flag the return and send you a notice claiming additional tax based on the lower basis.
Watch for a Wash Sale
The wash sale rule disallows a loss if you buy substantially identical stock within 30 days before or after the sale.6Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities ESPP participants trip over this because payroll deductions may be quietly buying more of the same company stock while you’re selling old shares at a loss.
An ESPP purchase counts as a purchase for wash sale purposes. Sell on the 1st and let the plan buy on the 15th, and the loss gets disallowed on some or all of the shares. The disallowed portion isn’t lost forever; it’s added to the basis of the replacement shares and comes back to you whenever those are sold. But you can’t claim it on this year’s return.
The clean fix is timing. Pause your ESPP contributions before selling, or wait at least 31 days after the most recent ESPP purchase before you sell. Dividend reinvestment in company stock can also trigger a wash sale inside the 61-day window, so check that too.
No Tax Is Withheld From the Sale
Your employer doesn’t withhold federal income tax when you sell ESPP shares. The ordinary income lands on your W-2, but no paycheck withholding was set aside to cover it. On a large sale, that can create a real bill at filing time and, if withholding for the year falls short, an underpayment penalty.
The IRS waives the underpayment penalty if you’ve paid in at least 90% of the current year’s tax or 100% of last year’s tax through withholding and estimated payments. That second threshold rises to 110% of last year’s tax if your adjusted gross income exceeded $150,000.7Office of the Law Revision Counsel. 26 USC 6654 – Failure by Individual to Pay Estimated Income Tax If you’re planning a large mid-year sale, either raise your W-4 withholding or send an estimated payment with Form 1040-ES before the next quarterly deadline.
Holding to a Qualifying Disposition Changes the Math
If you can meet both the two-year offering-date and one-year purchase-date tests, a loss looks completely different on your return. In a qualifying disposition, the ordinary income is the lesser of the discount at grant or your actual gain on the sale. Sell at or below your purchase price and the actual gain is zero, so the ordinary income is zero.2Internal Revenue Service. I Purchased Stock From My Employer Under a 423 Employee Stock Purchase Plan and Received a Form 1099-B for Selling It. How Do I Report This? No phantom compensation income. The full difference between your purchase price and the sale price becomes a long-term capital loss you can use against gains or, up to the $3,000 annual limit, against ordinary income.3Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses
That’s the strongest reason to wait when you’re staring at a loss and the holding period is close. A disqualifying sale taxes you on a discount you no longer have; a qualifying sale at a loss produces a clean capital loss and nothing else. Weigh the extra weeks of holding a falling stock against the tax savings, and know which side of the line you’re on before you place the trade.