Is ESPP Before or After Tax? Contributions and Cost Basis

ESPP contributions are after-tax. The money your employer sets aside to buy shares is pulled from your paycheck after federal income tax, state tax, and FICA have already been withheld, so whether ESPP is before or after tax has a single answer: after. Unlike a 401(k) contribution, an ESPP contribution does not reduce your taxable wages for the year. The tax advantages of the plan show up later, when you buy the discounted stock and when you sell it.

How After-Tax Contributions Work in an ESPP

Your employer calculates your paycheck the normal way first: gross wages, then federal and state income tax withholding, then Social Security and Medicare (together called FICA).1Internal Revenue Service. Topic No. 751 Social Security and Medicare Withholding Rates Whatever percentage of pay you elected to contribute to the ESPP comes out of what remains. Every dollar sitting in your ESPP account has already been taxed as ordinary wages.

That is the opposite of a traditional 401(k), which lowers the wages reported to the IRS in the year you contribute. An ESPP does not. Earn $80,000, contribute $5,000 to the ESPP, and your taxable wages are still $80,000. There is no deduction, no exclusion, and no deferral for the contribution itself.

Where the Tax Benefit Actually Comes From

Because contributions are after-tax, the plan’s value has to come from somewhere else. Two things do the work: the discount your employer gives you on the purchase price, and, if the plan is qualified and you hold the shares long enough, favorable capital gains treatment on the profit.

Most large employer ESPPs are qualified plans under Section 423 of the Internal Revenue Code, which requires broad employee eligibility, a discount no greater than 15%, and several other structural rules.2Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans When stock transfers to you under a qualified plan, no income is recognized at that moment.3Office of the Law Revision Counsel. 26 U.S. Code 421 – General Rules The tax event is deferred to the day you sell.

Selling Shares From a Qualified ESPP

When you sell, two pieces of your profit are taxed differently. The discount your employer gave you is treated as ordinary income. Any additional appreciation is treated as a capital gain. How much falls into each bucket depends on how long you held the shares.

Qualifying Dispositions

To get the best treatment, you have to hold the shares at least two years from the grant date (the start of the offering period) and at least one year from the purchase date.2Office of the Law Revision Counsel. 26 U.S. Code 423 – Employee Stock Purchase Plans A sale that clears both is a qualifying disposition.

In a qualifying disposition, the ordinary income you report is the lesser of two amounts: the actual gain on the sale, or the discount measured against the grant-date stock price.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 For a plan with a 15% discount, that grant-date discount caps the ordinary income piece. Everything above it is a long-term capital gain.

An example. Grant-date stock price $100, you paid $85 per share, you sell two years later at $130. The grant-date discount is $15. Your total gain per share is $45. You report $15 as ordinary income and $30 as a long-term capital gain. If the stock had fallen and you sold at $90, your total gain would be $5, which is less than the $15 discount, so you would report just $5 as ordinary income and no capital gain.

Disqualifying Dispositions

Selling before either holding period is met is a disqualifying disposition, and the math shifts against you. The ordinary income is now the full spread between the stock’s fair market value on the purchase date and the price you paid, not the grant-date discount.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 In a plan that lets the purchase price look back to the lower of the grant-date or purchase-date price, that spread can be much larger than 15%.

Your employer reports the ordinary income from a disqualifying disposition on your W-2 for the year you sell. One quirk worth knowing: for qualified ESPPs, this W-2 income is subject to regular income tax but not FICA.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Any gain above the purchase-date price is a capital gain, short-term or long-term depending on how long you held from the purchase date.

Non-Qualified ESPPs Are Different

A non-qualified ESPP is any stock purchase plan that does not meet the Section 423 rules. Contributions are still after-tax, but the discount is taxed immediately at purchase rather than deferred to the sale. Your employer withholds federal and state income tax plus FICA on the discount right away.

The math: if the stock is worth $50 on the purchase date and you paid $42.50, you have $7.50 per share of ordinary income reported on that year’s W-2. Your cost basis in the shares becomes $50, not $42.50, because the $7.50 has already been taxed as wages. When you sell later, only the gain or loss above $50 is a capital gain or loss, and the holding period starts on the purchase date.

The Cost Basis Trap When You Sell

Because ESPP contributions are after-tax and the discount later shows up as W-2 wages, there is one recurring reporting problem that can make you pay tax on the same money twice.

After each purchase, your employer files Form 3922, which records the grant date, purchase date, fair market values on both dates, and the price you paid.5Internal Revenue Service. About Form 3922, Transfer of Stock Acquired Through an Employee Stock Purchase Plan You do not attach it to your return, but you need it to figure your gain correctly.6Internal Revenue Service. Form 3922 – Transfer of Stock Acquired Through an Employee Stock Purchase Plan When you sell, the discount is added to Box 1 of your W-2 as wages.4Internal Revenue Service. Stocks (Options, Splits, Traders) 5 Your brokerage then sends Form 1099-B showing the sale proceeds and the cost basis it has on file.7Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions

The problem: the cost basis on the 1099-B is almost always just the discounted price you paid, not the adjusted basis that includes the income already on your W-2. Enter the 1099-B numbers as-is and you pay tax on the discount twice, once as wages and again as capital gains.

The fix is on Form 8949. Enter the cost basis from the 1099-B, then use the adjustment column to increase the basis by the amount of ordinary income already reported on your W-2. The corrected gain or loss flows to Schedule D. Skipping the adjustment is the single most expensive ESPP tax mistake, and it is easy to miss because each form looks right on its own.

If You Leave Before a Purchase Date

If you leave your job during an offering period, most plans automatically refund the payroll deductions sitting in your account. Since those dollars were already taxed as wages when they came out of your paycheck, the refund itself is not a taxable event. You are getting your own after-tax money back, typically without interest, and you cannot enroll in future offering periods after you separate.

A few plans let departing employees complete the current purchase with funds already contributed, but that is uncommon. Ask HR before your last day, because once you are disenrolled there is generally no way to reverse it.