ESPP Offset: Selling at a Loss, Cost Basis, and Wash Sales

If you sold ESPP shares at a loss, the tax hit depends on how long you held them. In a disqualifying disposition — the usual case when people sell quickly — you still owe ordinary income tax on the discount you got at purchase, even though the stock later fell. The loss shows up as a capital loss, but only after you correct the cost basis your broker put on Form 1099-B, which is almost always too low. In a qualifying disposition at a loss, there’s no ordinary income to worry about and the entire shortfall is a clean long-term capital loss.

Why a Loss Doesn’t Erase the Discount Income

The ordinary income piece of an ESPP sale is locked in on the purchase date. The IRS treats the discount you received as compensation you earned by participating in the plan, and it doesn’t unwind when the stock later drops.1Internal 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?

Which rules apply depends on your holding period. A qualifying disposition requires holding the shares at least two years from the offering date and at least one year from the purchase date. Miss either window and the sale is a disqualifying disposition.2Office of the Law Revision Counsel. 26 USC 423 – Employee Stock Purchase Plans

In a disqualifying disposition, the ordinary income equals the fair market value of the stock on the purchase date minus the price you actually paid. That figure doesn’t move when you sell. Sell at a profit, sell at a loss, sell for exactly what you paid — the discount is still taxed as wages.

A Loss Sale, Worked Through

Say you bought 100 shares through your ESPP at $85 per share. The market price on the purchase date was $100. Six months later, you sell all 100 shares at $90.

The discount is $15 per share, so you have $1,500 of ordinary income. Your employer should include that $1,500 as wages in Box 1 of your W-2 for the year of the sale. If it isn’t included, you’re still on the hook to report it, typically on Schedule 1 of Form 1040.1Internal 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?

Then the capital side. Your adjusted cost basis is what you paid ($8,500) plus the ordinary income already recognized ($1,500), totaling $10,000. You sold for $9,000. That’s a $1,000 capital loss.

Push the sale price down and the mismatch gets ugly. Sell the same shares at $75 and your proceeds are $7,500. The ordinary income is still $1,500. The capital loss grows to $2,500. In cash terms you’re out $1,000 (paid $8,500, received $7,500), and you still owe income tax on $1,500 of compensation that never made it into your pocket.

Why the Capital Loss Doesn’t Fully Cancel the Income

Two limits keep the numbers from washing out.

First, a capital loss offsets capital gains dollar for dollar, but only up to $3,000 of other ordinary income per year ($1,500 if married filing separately).3Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything left over carries forward to future years until it’s used up.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Second, the rates aren’t symmetrical. Your ESPP ordinary income is taxed at your marginal rate — 22%, 32%, or higher. A short-term capital loss offsets at those same rates, which helps. But if you crossed the one-year mark from purchase while still failing the two-year offering-date test, the capital piece is long-term, and long-term losses first absorb long-term gains taxed at lower rates. Each dollar of loss can save you less in tax than each dollar of ordinary income costs you.

Fix the Cost Basis on Form 8949

The reporting step people get wrong is cost basis. Your broker reports what you actually paid on Form 1099-B, because brokers are prohibited from including compensation income in the basis they report. For a disqualifying disposition, that reported basis is too low. Left uncorrected, it either inflates your capital gain or shrinks your capital loss, and you end up paying tax twice on the same discount.

You correct it on Form 8949, which flows into Schedule D.5Internal Revenue Service. Instructions for Form 8949 How you do it depends on which box is checked at the top of the form.

If basis was reported to the IRS (Box A or D checked), enter the broker’s incorrect basis in Column (e) exactly as reported. Put Code B in Column (f) to flag the reported basis as wrong. Then put a negative adjustment in Column (g) equal to the ordinary income you already recognized. For the $1,500 example above, that’s negative $1,500 in Column (g), which effectively pulls your basis up to the correct $10,000.

If basis was not reported to the IRS (Box B or E checked), enter the correct adjusted basis directly in Column (e), put Code B in Column (f), and enter zero in Column (g).

Code B tells the IRS the 1099-B figure doesn’t match your return because the reported basis was incorrect.5Internal Revenue Service. Instructions for Form 8949 Skip the code and adjustment and the IRS matching system will flag the return, usually followed by a notice proposing extra tax based on the too-low basis.

Watch for Wash Sales From Ongoing ESPP Purchases

The wash sale rule disallows a capital 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 This bites ESPP participants because payroll deductions may be quietly buying new shares of the same stock while you’re selling old ones at a loss.

An ESPP purchase counts as a purchase for this rule. Sell at a loss on the 1st, have the plan buy on the 15th, and you’ve triggered a wash sale on some or all of the loss. The disallowed piece isn’t gone forever — it gets added to the basis of the replacement shares — but you can’t take the deduction this year.

The clean fix is timing. Either pause your ESPP contributions before selling, or wait at least 31 days after the most recent ESPP purchase to sell. If you have dividend reinvestment on company stock, factor that in too, since reinvested dividends can trip the same wire inside the 61-day window.

No Tax Is Withheld When You Sell

Your employer doesn’t withhold federal income tax on an ESPP sale the way it does on a paycheck. The ordinary income lands on your W-2, but no payroll withholding has covered it. If your total withholding drops below the safe harbor thresholds because of it, you’ll owe an underpayment penalty. The IRS waives that penalty if you’ve paid at least 90% of the current year’s tax or 100% of last year’s tax through withholding and estimated payments, rising to 110% of last year’s tax when 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 selling a sizable block mid-year, either bump up your W-4 withholding or send a quarterly estimated payment on Form 1040-ES before the next deadline. Settling up in April is where penalties come from.

Selling at a Loss After the Holding Periods

Everything above turns on the sale being a disqualifying disposition. If you held the shares long enough to hit both the two-year and one-year marks, a loss sale looks very different.1Internal 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?

In a qualifying disposition, the ordinary income is the lesser of the discount at grant or the actual gain on the sale. Sell at or below your purchase price and the actual gain is zero, so the ordinary income is zero. No phantom compensation to report. The whole gap between what you paid and what you sold for is a long-term capital loss, usable against capital gains or up to $3,000 of other income per year.3Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses

This is the case for waiting when you suspect a loss is coming. A disqualifying loss sale taxes you on money you never kept. A qualifying loss sale gives you a clean deduction and nothing on the discount side. Holding a declining stock a few more months carries its own risk, but the tax swing can run into thousands of dollars.