Employee Stock Purchase Plan Withdrawal: Rules, Taxes, and Wash Sales

An employee stock purchase plan withdrawal works one of two ways, depending on where your money currently sits. If your payroll contributions are still accumulating as cash inside the plan, most qualified ESPPs let you pull that money back at any time before the scheduled purchase date, and the refund is tax-free because those dollars were already taxed as wages. If the plan has already used your contributions to buy shares, “withdrawing” means selling stock through your brokerage account, and what you owe the IRS depends on how long you held the shares before selling.

Pulling Back Cash Before the Purchase Date

The simplest exit is stopping the plan before it buys anything. You submit a withdrawal request through your plan administrator’s website, and the full dollar amount deducted during the current offering cycle is returned to you.1Fidelity. Employee Stock Purchase Plans (ESPPs) No interest accrues while the plan holds the money, and no tax event is triggered by the refund. The cash was already run through payroll withholding, so getting it back is just receiving your own after-tax dollars.

Refunds are typically deposited to your bank account or returned through payroll within a few pay cycles. Processing timelines vary by plan administrator, so check with yours if you’re counting on the money by a specific date.

There’s a catch worth knowing before you file the request. Many plans treat a mid-period withdrawal as a full exit from that offering cycle. You stop contributing for the rest of the period and can only re-enroll when the next one starts. Some plans with multiple purchase windows inside a longer offering period require you to sit out the entire remaining offering period, not just the current window. Re-enrollment rules differ significantly from company to company, so read your plan documents before withdrawing.

Reducing Contributions Instead of Withdrawing

If cash flow is the reason you’re thinking about withdrawing, some plans let you lower your contribution percentage without exiting the offering. You stay enrolled, you still buy shares at the end of the period, and you keep whatever discount and lookback benefit the plan offers. Not every plan permits this, and some that do only allow decreases mid-period, not increases. Your plan administrator can tell you what’s allowed and when the change would take effect.

How the Purchase Price Gets Set

Before working through the tax on a sale, you need to know how your cost basis was built, because that number drives every calculation that follows. Under a qualified ESPP, the plan can offer shares at up to a 15% discount off the stock’s fair market value.2Office of the Law Revision Counsel. 26 US Code 423 – Employee Stock Purchase Plans Many plans include a lookback that bases your price on whichever is lower: the stock price on the offering date or the price on the purchase date. You pay 85% of that lower price.

Say the stock was $40 at the start of the offering period and $50 on the purchase date. With a lookback, you’d pay $34 per share, and the shares are already worth $50 the moment you own them. That $16 spread, not just the $6 headline discount, is what the IRS focuses on when you sell.

Selling Shares You Already Own

Once purchased, ESPP shares land in a brokerage account managed by your plan administrator. Selling them works like any other stock sale. You log in, select the lot you want to sell, pick a market or limit order, and execute during market hours. Proceeds settle in your brokerage account, usually within one or two business days.

Two practical hurdles come up. First, your company likely imposes blackout periods around quarterly earnings announcements that block all sales of company stock, including ESPP shares. A blackout can last several weeks, so if you need cash by a certain date, plan around your company’s earnings calendar. Second, if you’ve participated in multiple offering periods, each lot has its own offering date, purchase date, and cost basis. Selling the wrong lot can accidentally trigger a disqualifying disposition on shares that were close to hitting the holding period requirements.

Tax on the Sale: Qualifying vs. Disqualifying

Buying the shares creates no tax bill. Under federal law, you owe nothing at the moment of purchase.3Office of the Law Revision Counsel. 26 US Code 421 – General Rules The tax hits when you sell, and the amount depends on whether the IRS classifies the sale as a qualifying or disqualifying disposition.

Qualifying Dispositions

A sale qualifies for preferential treatment if you hold the shares more than two years after the offering date and more than one year after the purchase date. Both conditions must be met.2Office of the Law Revision Counsel. 26 US Code 423 – Employee Stock Purchase Plans When they are, the ordinary income you recognize is the lesser of two amounts: the actual discount based on the offering-date price, or your total gain from the sale.4Computershare. Qualifying Dispositions of ESPP Stock Everything above that amount is taxed as a long-term capital gain at 0%, 15%, or 20%, depending on your overall taxable income.5Internal Revenue Service. Topic No. 409 Capital Gains and Losses

Using the earlier numbers: stock at $40 on the offering date, $50 on the purchase date, you paid $34, and you sell later at $60 after meeting both holding periods. Your total gain is $26 per share. The ordinary income piece is $6, which is 15% of the $40 offering-date price and less than your $26 gain. Your adjusted basis is $34 plus $6, or $40, and the remaining $20 per share is a long-term capital gain.

Disqualifying Dispositions

Sell before meeting either holding period and the sale is a disqualifying disposition. The ordinary income portion jumps. It equals the stock’s fair market value on the purchase date minus what you actually paid. Using the same numbers, if you sell at $60 six months after purchase, the ordinary income is $16 per share ($50 minus $34). Your employer reports that $16 on your W-2 for the year of sale.

Your adjusted basis becomes $34 plus $16, or $50. The remaining $10 per share is a capital gain. Since you sold within a year of purchase, that $10 is a short-term gain taxed at your ordinary rate. Sell more than a year after purchase but less than two years after the offering date and the $10 becomes a long-term gain at the lower rate.

The difference is real money. In the qualifying case, $6 gets taxed at ordinary rates and $20 at the long-term rate. In the disqualifying case, $16 is ordinary and even the smaller capital gain may be short-term. For someone in the 32% bracket with a 15% long-term rate, that’s a meaningful swing on a large block of shares.

Don’t Pay the Tax Twice

This is where most ESPP participants make expensive mistakes. Your brokerage sends a Form 1099-B reporting the sale. The cost basis shown on that form is often just the discounted price you paid. It does not include the ordinary income component already reported on your W-2. If you copy the 1099-B numbers straight onto your return, you pay tax on the same income twice, once as wages and again as capital gains on Schedule D.

To fix this, adjust your cost basis on Form 8949. Your actual basis is the purchase price plus any ordinary income you recognized on the sale. Many brokerages provide a supplemental statement alongside the 1099-B showing the corrected basis, but the IRS receives only the unadjusted number from the 1099-B. You’re responsible for making the adjustment, using code “B” on Form 8949 to flag that the basis reported to the IRS is incorrect.

Your employer also provides Form 3922 for each transfer of ESPP stock. It lists the offering date, purchase date, fair market value on each of those dates, and the price you paid.6Internal Revenue Service. Form 3922 – Transfer of Stock Acquired Through an Employee Stock Purchase Plan Under Section 423(c) Keep every one you receive. Those figures are what you need to calculate ordinary income and adjusted basis when you eventually sell, sometimes years down the road.

The Wash Sale Trap

If you sell company stock at a loss and your ESPP purchases new shares within 30 days before or after that sale, the IRS treats it as a wash sale. Your loss is disallowed for the year, and the disallowed amount is added to the basis of the newly purchased shares.7Fidelity. 7 Rules for Selling Company Shares to Raise Needed Cash You don’t lose the deduction permanently; it shifts to the replacement shares. But it complicates your tax picture and delays the benefit.

ESPP purchases run automatically, so this can catch you off guard. If your plan’s purchase date falls within the 61-day window around a loss sale of the same company’s stock, the wash sale rule applies whether you intended it or not. Check your ESPP purchase calendar before selling any company shares at a loss.

Leaving Your Job

Your departure changes what happens next in ways that depend on timing. Leave before the scheduled purchase date and your accumulated payroll contributions come back to you. The refund is tax-free for the same reason mid-period withdrawals are: the money was already taxed as wages. Most plan administrators return the funds within a few weeks of your last day.

Shares already sitting in your brokerage account are yours regardless of why you left. The company can’t claw them back. Your account may transfer from the employer’s plan platform to a standard retail account, but the shares and their cost basis carry over. The holding period clock keeps running after you leave, so you don’t need to be employed when you sell to get qualifying disposition treatment.2Office of the Law Revision Counsel. 26 US Code 423 – Employee Stock Purchase Plans

One timing rule trips people up. Section 423 requires that you must have been an employee until at least three months before the purchase date for the option to remain valid. Resign or get terminated more than three months before the next scheduled purchase and the plan won’t execute it, even if contributions have been accumulating. Those contributions come back as a refund.

Retirement, Disability, and Death

Some plans carve out special treatment for employees leaving due to retirement or disability, commonly by allowing accumulated contributions to complete a final share purchase instead of being refunded. Whether yours does this depends entirely on plan terms; there’s no statutory requirement either way. If an employee dies while holding ESPP shares, the shares pass to the beneficiary or estate with a stepped-up basis equal to the stock’s fair market value on the date of death.8Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent That step-up eliminates any built-in gain from the employee’s lifetime. Unspent contributions are returned to the estate.

A Few Loose Ends

At the end of a purchase period, your contributions may not divide evenly into whole shares. Contribute $1,200 with shares priced at $47 and the plan buys 25 shares for $1,175, leaving $25. Most plans refund the leftover cash; some roll it into the next purchase period. Your plan’s terms decide which.

The ordinary income from an ESPP disposition, qualifying or disqualifying, is reported on your W-2 but is not subject to Social Security and Medicare withholding at the time of sale. Separately, if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the 3.8% Net Investment Income Tax applies to the capital gains portion of your sale.9Internal Revenue Service. Net Investment Income Tax That surtax sits on top of your capital gains rate, so a long-term gain otherwise taxed at 15% effectively becomes 18.8%. Factor it in when weighing an early sale against holding for a qualifying disposition.