< Back to IRS

Sean O'Donnell

ESPP sales after quitting company - will they still send me a W2 for stock sold?

So I left my job at Raven Technologies about 6 months ago, but I still had a bunch of stock from their Employee Stock Purchase Plan (ESPP) that I got at a 15% discount while working there. I just sold some of these shares last month because I needed money for a down payment on a house. I know that when I was still employed there, the discount portion of the ESPP was reported as ordinary income on my W-2. But now that I've quit and then sold some shares, I'm confused about the tax situation. Will my old employer still give me a W-2 for this tax year showing the stock sale? Or will I get some other tax form instead? Also, I'm totally lost about how to figure out which part counts as ordinary income and which part is considered capital gains for tax purposes. The stock price has gone up quite a bit since I bought it. Any help would be greatly appreciated! Tax season is coming up and I want to make sure I don't mess this up.

When you sell ESPP shares after leaving your company, you won't receive a W-2 for the stock sale. Instead, you'll get a Form 1099-B from the brokerage where you held the shares. This form reports the proceeds from your stock sale. For calculating your taxes, there are two components to track: the discount you received when purchasing (which was already reported as ordinary income on your W-2 when you were employed), and any gain or loss that occurred after purchase. The discount part was already taxed when you received the shares. Now you're only responsible for reporting the capital gain or loss from the time you acquired the shares until you sold them. Your brokerage statement should show your cost basis (what you paid plus the discount amount that was already taxed). The difference between your sale proceeds and this cost basis is your capital gain or loss. If you held the shares for more than a year, it's a long-term capital gain; less than a year, it's short-term.

0 coins

But how do I know what the discount amount was that was already taxed? My old company used Fidelity for the ESPP and when I look at my cost basis it just shows what I actually paid, not the discount portion. Will I need to dig up my old W2s to figure this out?

0 coins

The discount amount should be reflected in your cost basis on the 1099-B, but sometimes brokerages don't report the adjusted basis correctly for ESPP shares. If your cost basis only shows what you actually paid, then yes, you should check your W-2 from the year you purchased the shares. Look for Box 14 which might have a code like "ESPP" or "423(b)" with an amount. If you can't find it, another approach is to calculate it yourself. Take the fair market value of the stock on the purchase date and subtract what you actually paid. That difference is your discount, which was already taxed as ordinary income.

0 coins

I went through this exact situation last year and it was so confusing I almost gave up. I used taxr.ai (https://taxr.ai) to help sort through my old ESPP documents and it saved me hours of headaches. My old employer used E*TRADE and they didn't properly adjust the cost basis on my 1099-B either. The tool helped me identify which portion of my sales was already taxed as ordinary income on previous W-2s and which portion was capital gains. It automatically calculated the adjusted basis for each lot of shares I sold. What's nice is that you can upload your brokerage statements and old W-2s, and it figures out the correct reporting for Schedule D and Form 8949. Much easier than trying to track down HR at your former company!

0 coins

Does this work if I have multiple ESPP purchases over several years? I've got shares from 8 different purchase periods and I'm dreading figuring this all out.

0 coins

I'm skeptical... does this actually work better than just using TurboTax or talking to an accountant? I've had so many issues with my ESPP taxes that I'm hesitant to trust some random online tool.

0 coins

Yes, it absolutely works for multiple ESPP purchases. I had 6 different purchase periods myself spanning about 3 years. The tool lets you enter each purchase separately with the relevant dates and prices, then tracks them individually when you sell. As for comparing to TurboTax or an accountant, I tried TurboTax first and it didn't have a good way to handle the adjusted basis calculations. My accountant quoted me $350 for just this portion of my taxes because it was so time-consuming for them to figure out. The tool was much more affordable and specifically designed for stock compensation issues.

0 coins

Just wanted to follow up about taxr.ai that I asked about earlier. I decided to give it a try with my messy ESPP situation, and I'm really glad I did. It pulled data from my old W-2s and matched it with my brokerage statements to calculate the correct cost basis for each lot of shares. The interface walked me through identifying which portion was already reported as income and which was capital gains. I was actually about to overpay by nearly $1,200 because I was double-counting income that had already been reported on my W-2 years ago! Definitely saved me money and gave me documentation to back up my tax filing if I ever get audited.

0 coins

If you're having trouble getting the info you need from your old company's HR department, I highly recommend using Claimyr (https://claimyr.com) to get through to the IRS. I had a similar ESPP issue and needed clarification on reporting. After trying the IRS helpline for days and getting nowhere, I used Claimyr and got connected to an actual IRS agent in about 15 minutes. They walked me through exactly how to report my ESPP sales on my tax return. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c The IRS agent explained that since my old employer had already reported the discount as income on my W-2 when I purchased the shares, I just needed to adjust my cost basis on Form 8949 to avoid double taxation. Much easier than the hours I spent trying to figure it out on my own!

0 coins

How exactly does this work? Does it just call the IRS for you or something? I've been trying to get through to the IRS for weeks about my ESPP questions.

0 coins

Sorry but this sounds like a waste of money. Why would I pay to call the IRS when I can just keep trying the number myself? And how do you know the agent you talk to actually knows about ESPPs? Most of them give different answers to the same question.

0 coins

It doesn't just call for you - it uses a system that navigates the IRS phone tree and holds your place in line. When an agent is about to answer, it calls you and connects you immediately. No more waiting on hold for hours or getting disconnected. You're right that not every IRS agent is familiar with complex ESPP rules. What I did was specifically request an agent who deals with investment income when I got connected. I mentioned I needed help with "reporting ESPP sales with adjusted cost basis" and they transferred me to someone knowledgeable. That specific phrasing helped me get to the right department.

0 coins

I have to eat my words about Claimyr. After struggling with my ESPP tax situation for weeks, I tried it yesterday out of desperation. Got connected to an IRS agent in about 20 minutes who actually specialized in stock compensation issues. The agent explained that my brokerage was reporting an incorrect cost basis on my 1099-B because they didn't account for the discount already taxed as ordinary income. She walked me through exactly how to fill out Form 8949 with the correct adjusted basis and even emailed me an IRS publication specifically about ESPPs. What would have taken me days of research took 30 minutes on the phone with someone who knew exactly what they were talking about. No more conflicting advice from random tax blogs or waiting for my former employer's HR to respond to my emails.

0 coins

Just a practical tip from someone who's been dealing with ESPPs for years: keep a spreadsheet with ALL your ESPP purchases! For each purchase record: 1. Purchase date 2. FMV on purchase date 3. What you actually paid (discounted price) 4. The discount amount 5. Number of shares Then when you sell, add: 6. Sale date 7. Sale price 8. Which specific shares you sold (FIFO, LIFO, or specific identification) This has saved me so much headache at tax time. The discount amount was reported on your W-2 in the year you PURCHASED the shares, not when you sold them. Your capital gain/loss is calculated from your adjusted basis (what you paid PLUS the discount that was already taxed).

0 coins

Wish I had done this from the beginning! Do you recommend any particular spreadsheet template? I see a lot online but not sure which one would be best for tracking ESPP specifically.

0 coins

I don't use any fancy template - just a basic spreadsheet I created myself. The key is consistency in recording every transaction when it happens. For ESPP specifically, make sure you include columns for both the actual purchase price and the fair market value on purchase date, since the difference is what creates that discount that's reported as income. If you want something more automated, some brokerages offer downloadable transaction histories that you can import into Excel or Google Sheets. That can save you some manual entry, though you might need to add columns for the discount calculation.

0 coins

One thing nobody's mentioned - the HOLDING PERIOD matters a lot for ESPP tax treatment! If you hold the shares for at least 1 year from purchase date AND 2 years from the offering date, you might qualify for better tax treatment on part of the gain. When you meet these holding periods, it's called a "qualifying disposition" and only the actual discount you received at purchase is taxed as ordinary income. If you sell before these periods (a "disqualifying disposition"), the difference between the FMV at purchase and what you paid is taxed as ordinary income. Check your old ESPP plan documents to find the offering dates. This could save you a bunch on taxes depending on how long you held the shares!

0 coins

That's only true for qualified ESPPs though, right? Not all company plans are qualified under Section 423. My company's ESPP didn't qualify for this special treatment.

0 coins

I'm a little late to this thread but just wanted to point out that Fidelity (and most brokers) now provides a supplemental "Supplemental Information Statement" alongside the 1099-B that shows the compensation element that was already reported on your W-2. Look for this document in the same tax center where you found your 1099-B. It makes figuring out the adjusted cost basis much easier than digging through old W-2s!

0 coins

This is such a helpful thread! I'm dealing with a similar situation where I left my company last year and just sold some ESPP shares. One thing I wanted to add for anyone else in this boat - make sure to check if your old company switched payroll providers or got acquired after you left. I spent weeks trying to get my old W-2s from my former employer's HR, only to find out they had been acquired and all the payroll records moved to a different system. I finally had to request copies directly from the IRS using Form 4506-T, which took about 10 days but was totally worth it to get the exact compensation amounts that were reported. Also, if you're having trouble finding the ESPP compensation on your W-2, sometimes it's not in Box 14 like others mentioned. On mine it was actually included in Box 1 (wages) and I had to look at my final paystub from that year to see the breakdown of regular wages vs. ESPP compensation. Just another place to check if you're coming up empty!

0 coins

Great point about checking if your company was acquired! I went through something similar when my old employer got bought out by a larger company. The new HR department had no idea about the old ESPP records and kept bouncing me between different departments. Form 4506-T is definitely the way to go if you can't get your old W-2s any other way. Just be aware that the IRS charges a fee for transcript requests (I think it was $50 when I did it last year), but it's worth it to have the official records rather than trying to piece together incomplete information. Another tip - if you still have access to your old company email or benefits portal, check there first before going the IRS route. Sometimes the tax documents are archived in places you wouldn't expect!

0 coins

This thread has been incredibly helpful! I'm in a similar situation where I left my job at a tech company about 8 months ago and just sold some ESPP shares. One thing I learned the hard way is to double-check the cost basis calculation even if your broker provides a "Supplemental Information Statement" like Emily mentioned. I found that Schwab had the right compensation amount but applied it to the wrong lot of shares (I had multiple purchase periods). This would have resulted in me overpaying taxes on some lots and underpaying on others. What I ended up doing was creating my own reconciliation spreadsheet using Yuki's method above, then cross-referencing it with both my 1099-B and the supplemental statement. Found a $400 discrepancy that would have cost me about $150 in extra taxes! Also want to second the recommendation about keeping detailed records going forward. I set up a simple Google Sheet now that automatically calculates the discount amount and tracks holding periods. Takes 5 minutes after each ESPP purchase but will save hours during tax season.

0 coins

This is exactly the kind of detailed approach I wish I had known about earlier! The discrepancy you found between lots is something I never would have thought to check. I'm definitely going to create my own reconciliation spreadsheet now - even though my situation is already resolved, I want to be prepared for future ESPP sales. Quick question though - when you say Schwab applied the compensation amount to the wrong lot, how did you figure out which specific shares the compensation should have been attributed to? I have multiple purchase periods too and I'm worried I might have the same issue with my broker.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,095 users helped today