Why Do I Owe Taxes When I Sell Stock I Bought Through My Employer's Purchase Plan?

By The Penny Plan Editorial Team Published July 13, 2026 6 min read

You bought company stock through a payroll-deducted purchase plan, sold it later, and expected a straightforward capital gain calculation. Instead, the tax software split the sale into two different pieces, and one of them showed up as wages you never actually saw in a paycheck.

At a glance

Selling stock from an employee stock purchase plan can generate two separate types of taxable income: ordinary income on the discount you received when the shares were purchased, and capital gains or losses on any price movement after that purchase. How the sale gets split between the two depends heavily on how long you held the shares before selling.

Why there’s a discount involved at all

Employee stock purchase plans typically let workers buy company shares at a discount off the market price, often funded through payroll deductions over an offering period. That discount is the whole appeal of the plan, but it’s also the source of the tax complexity. The IRS generally treats that built-in discount as a form of compensation, similar to wages, rather than pure investment gain, because you didn’t pay full market price to get the shares.

Qualifying versus disqualifying dispositions

Whether a sale is treated favorably usually comes down to two holding-period tests, both of which typically need to be met:

If both thresholds are met, the sale is often called a “qualifying disposition,” and a smaller portion of the gain tends to be taxed as ordinary income, with more of it treated as a long-term capital gain. If the shares are sold before those thresholds are met, it’s typically called a “disqualifying disposition,” and more of the value — including the entire discount — tends to get taxed as ordinary income in the year of sale, regardless of how the stock price actually moved.

Where the confusion usually comes from

The disconnect a lot of people run into is that the discount gets added to reported wage income, often shown on a year-end wage statement, whether or not the shares were ever sold. Then, separately, the actual sale of the shares generates its own capital gain or loss based on the difference between the sale price and an adjusted cost basis. If that adjusted basis isn’t tracked carefully — brokerage statements sometimes report the original, unadjusted purchase price — it’s possible to accidentally report the same income twice, once as wages and once as a capital gain.

This overlap is part of why understanding how the medical expense deduction or other itemized items interact with total taxable income matters just as much as understanding the stock sale itself: all of it feeds into the same return. It also connects to broader questions people have about whether every stock trade needs to be reported individually, since purchase plan sales follow the same general reporting framework as other brokerage transactions, just with this extra wage-income layer attached.

What tends to help sort it out

Keeping the purchase plan’s own transaction records, not just the year-end brokerage statement, tends to make it much easier to confirm the correct adjusted cost basis before filing. Reviewing how long to keep tax records is also worth doing here, since purchase plan documentation from years earlier can matter if a sale happens well after the shares were originally bought.

Worth remembering

A stock sale from an employee purchase plan almost always involves more than one type of tax at play: ordinary income tied to the original discount, and capital gains or losses tied to price movement afterward. Understanding which category applies, and confirming the cost basis independently rather than relying solely on the broker’s default reporting, is generally the difference between an accurate return and an unpleasant surprise.