< Back to IRS

Ellie Kim

Understanding capital gain tax on employee stock purchase plan (ESPP) shares

I've been struggling to wrap my head around the tax implications of my wife's employee stock purchase plan, even after reading a ton about it. She's been contributing to her company's ESPP since 2015, just putting in a small amount each paycheck. We basically ignored it all this time (because we didn't really understand how it worked 🤦‍♂️). We recently looked at the account and realized there's a decent amount there that could help fund some home renovations we've been putting off. Now I'm trying to figure out the capital gains tax situation before we sell. From what I've gathered: 1) Even with the stock sale plus our regular income, we'll still be in the 15% tax bracket 2) I found out they'll be sending us a 1099-B form after we sell 3) Someone mentioned we might need to fill out Form 8949 (I think that's the right number) 4) I was also told these would be considered unqualified or non-qualified dividends I have so many questions: Would it be better to sell all the shares at once or spread it out? Do we only pay taxes on the gain amount? Is there a way to estimate what our tax bill might be before we sell?

The good news is that since you'll be in the 15% tax bracket, your capital gains tax rate will likely be favorable. Here's what you need to know: Yes, you'll only pay taxes on the gain (the difference between what your wife paid for the shares and what you sell them for). The 1099-B you'll receive will show the proceeds from the sale, but may not show the cost basis correctly for ESPP shares. For an ESPP, there are actually two potential taxable components: 1) The discount your wife received when purchasing the shares (often 15% below market price) and 2) Any appreciation since purchase. The discount portion is taxed as ordinary income, while the appreciation is taxed as capital gains. Form 8949 is correct - that's where you'll report the sale of capital assets. You'll use this to calculate your capital gains, which then transfers to Schedule D of your tax return. As for selling all at once vs. spreading out - if you'll remain in the 15% bracket either way, there's no tax advantage to spreading it out. But check if selling all at once might push you into a higher tax bracket.

0 coins

Thanks for the detailed explanation! I'm not sure if my wife received a discount when purchasing the shares. How would I find that out? And does the length of time we've held the shares (about 8 years) matter for tax purposes?

0 coins

Almost all ESPPs offer some form of discount - you can check her plan documents or contact her company's benefits department to confirm the specific terms of her plan. The typical discount is 15% off the market price at purchase. The holding period definitely matters! Since you've held these shares for about 8 years, they would be considered long-term capital gains, which are taxed at more favorable rates than short-term gains. For taxpayers in the 15% ordinary income bracket, the long-term capital gains tax rate is actually 0% on at least some portion of your gains, which is a significant benefit.

0 coins

After spending hours figuring out ESPP taxes last year, I can tell you that taxr.ai really simplified the whole process for me. My company's plan had this weird lookback provision that made calculating the correct basis super complicated. I uploaded my statements to https://taxr.ai and it identified exactly what portion was ordinary income vs. capital gains, calculated my adjusted basis, and even populated the right forms. The thing most people miss with ESPPs is that the discount part is already reported as income on your W-2, but then you need to adjust your cost basis when you sell. Taxr.ai caught this immediately and saved me from double-taxation on that portion. Plus it explained everything in plain English so I actually understood what was happening.

0 coins

Does it work if you've held the shares for a really long time? My situation is similar - been accumulating ESPP shares since 2006 and have no idea what my actual cost basis is anymore.

0 coins

I'm skeptical about tax services that claim to handle specialized situations. How does it compare to just using TurboTax or HR Block? Those already have ESPP sections, right?

0 coins

It absolutely works for shares held long-term. That's actually where it's most valuable because reconstructing cost basis from years ago can be a nightmare. It can analyze historical purchase records and trace the original purchase prices even for shares acquired decades ago. For specialized situations like ESPPs, the mainstream tax software often misses nuances. While TurboTax and HR Block do have ESPP sections, they typically require you to already know your adjusted cost basis and discount income amounts. Taxr.ai actually calculates these figures for you based on your statements, which is the hard part most people struggle with.

0 coins

Just wanted to follow up - I tried taxr.ai for my ancient ESPP shares after seeing this thread. It was able to process statements going back to 2006 and found that my broker had been reporting an incorrect cost basis for years. Apparently I had been overpaying taxes without realizing it! The service identified all the qualifying and non-qualifying dispositions and showed me exactly how much of my proceeds were actually taxable. Way more straightforward than I expected. My only regret is not finding this before I sold some shares last year and overpaid.

0 coins

If you're having trouble getting clear answers about your ESPP taxes, you might want to try calling the IRS directly. I know, I know - sounds impossible to get through, right? I spent weeks trying to get clarification on a similar issue until I discovered Claimyr. Used https://claimyr.com and got connected to an actual IRS agent in about 15 minutes instead of waiting on hold for hours. You can see how it works here: https://youtu.be/_kiP6q8DX5c The agent walked me through exactly how to report my ESPP sales correctly and explained which forms I needed. Turns out I had been doing it wrong for years! Having that direct guidance made me confident I wasn't missing anything or making mistakes that could trigger an audit.

0 coins

How does this actually work? They somehow get you to the front of the IRS phone queue? Sounds too good to be true.

0 coins

Yeah right. I've tried EVERYTHING to get through to the IRS and nothing works. Their hold times are legendary. No way some service can magically bypass their phone system.

0 coins

It's not about cutting the line - they use an automated system that continuously redials and navigates the IRS phone tree until it gets through, then calls you when an agent is ready. It's basically doing what you'd do manually if you had infinite patience and time. I was skeptical too, but it's based on a pretty simple concept. The IRS phone system is overwhelmed, so most people give up after being on hold for an hour or more. This service just handles the waiting for you. I still had to wait my turn, but I didn't have to sit there with a phone to my ear the whole time.

0 coins

I have to apologize for my skepticism about Claimyr. After posting my doubtful comment, I decided to try it anyway since I've been trying to get clarification on my ESPP tax situation for months. Well, color me surprised - I got connected to an IRS representative in about 20 minutes. The agent explained that my situation with long-held ESPP shares required special documentation of the original purchase price, especially since the company had gone through a merger since I started buying. Got clear instructions on exactly how to report everything on Form 8949 and Schedule D. Saved me from making a costly mistake on my return. Definitely worth it just for the peace of mind.

0 coins

One thing to consider is whether these ESPP shares were purchased at a discount. Most plans offer shares at 85-90% of market value. If that's the case, that discount is considered compensation income and should have been reported on your W-2s in the years of purchase. When you sell, you'll need to adjust your cost basis to include any amount already taxed as compensation. Otherwise you'll end up paying taxes twice on the same money!

0 coins

That's a great point. I'll need to check her old W-2s to see if the discount was reported as income. If it was, how exactly do I adjust the cost basis? Do I just add the discount amount to what we actually paid?

0 coins

Exactly right. If the discount was already reported as compensation on her W-2, you would add that amount to what you actually paid to determine your adjusted cost basis. For example, if she paid $850 for stock worth $1000 (getting a $150 discount), and that $150 was included in her W-2 as income, then her cost basis would be $1000 ($850 actually paid + $150 already taxed), not $850. When you sell, you'd only pay capital gains tax on the appreciation above $1000.

0 coins

Has anyone used the "specific identification" method when selling ESPP shares? I've heard you can choose which specific shares to sell to minimize taxes, but I'm not sure how to actually do this or if brokers support it.

0 coins

Most brokers do support specific identification! You need to explicitly tell them which shares you want to sell (usually by purchase date and price) before the sale. The default is usually FIFO (first in, first out) which isn't always tax-optimal. I've saved thousands in taxes by selectively selling higher-basis shares when I needed cash but wanted to minimize my tax hit. Just make sure you get confirmation from your broker that they've recorded your specific identification instructions.

0 coins

One thing that might help you estimate your tax bill before selling is to gather all your wife's ESPP purchase records from 2015 onwards. You'll need the purchase dates, number of shares bought, actual purchase prices, and the fair market value on each purchase date. Since you mentioned you'll likely stay in the 15% tax bracket, here's some good news: for long-term capital gains (shares held over 1 year), taxpayers in the 10-15% ordinary income brackets often qualify for the 0% capital gains rate on at least a portion of their gains. This could significantly reduce your tax liability. For timing the sale, consider your total income for the year. If selling all at once would push you into the next tax bracket, it might be worth spreading the sales across tax years. You can use online tax calculators or consult with a tax professional to model different scenarios. Also, don't forget to check if your state has additional capital gains taxes - this varies widely by state and could affect your overall tax planning strategy.

0 coins

This is really helpful advice! I hadn't considered that we might qualify for the 0% capital gains rate - that could be huge savings. We're in California, so I know we'll have state taxes to deal with too. Quick question about gathering those purchase records - if my wife's company went through a merger in 2018, would that complicate things? The ESPP continued under the new company, but I'm wondering if that affects how we calculate the basis or if we need different documentation.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,095 users helped today