Back to IRS

Dananyl Lear

Selling ESPP shares after leaving company — what does the IRS actually see?

Left my job in August and had a bunch of ESPP shares sitting in my brokerage account. Decided to sell them all in September since I didn't want to keep tracking a former employer's stock. I know there's going to be tax stuff to deal with, but I'm genuinely confused about what the IRS actually receives when those shares sell. My brokerage sent a confirmation, and I'm going to get a 1099-B at some point, but I don't know if the IRS already has that data or if I have to report it myself on my 2026 return next year. Also nervous because part of the discount I got when buying through the ESPP might show up somewhere on a W-2 from my old employer, and I don't know how that interacts with what the brokerage reports. Has anyone dealt with the reporting side of this after leaving a company?

Your 1099-B from the brokerage is what the IRS uses to match against what you report when you file. The brokerage is required to send one to both you and the IRS for proceeds from any sale, so yes, the IRS does get that data directly. The tricky part with ESPP shares is what the brokerage puts down as your cost basis — it may or may not include the discount portion that was already treated as ordinary income by your employer. If your former employer included that discount amount in box 1 of your W-2, the brokerage might still show a lower basis than your actual adjusted basis. You end up needing to reconcile those two numbers on Schedule D and Form 8949 when you file. Worth pulling both your W-2 and the 1099-B side by side before you sit down to do the return.

0 coins

My old employer already gave me a final W-2 and there is definitely an amount in there that looks like it corresponds to the ESPP discount. So I'll need to make sure my cost basis on the 8949 reflects that? I should probably ask my preparer to walk through it.

0 coins

My wife went through this two years ago and the brokerage had the basis completely wrong on the 1099-B. Her preparer caught it. Worth double-checking every number before you just let the software auto-fill from the 1099-B.

0 coins

September sale means it hits your 2026 return, which you'll file by next April's deadline. Keep the brokerage confirmation and any documents the ESPP plan administrator sent you showing the purchase date and the purchase price — those are what establish whether the sale was a qualifying or disqualifying disposition, which affects how the income is split between ordinary and capital. The form your preparer or software will use is Form 8949, and the totals flow to Schedule D. If you've never reported a stock sale before it looks more complicated than it is once you have the right documents in front of you.

0 coins

Hadn't thought about the purchase date vs. sale date window mattering that much. The shares I sold were from purchases going back almost two years, so I'll need to figure out which lots were which.

0 coins

My brokerage account actually shows the purchase date and original price for each lot separately. If yours does too that makes the qualifying vs. disqualifying question a lot easier to sort out without hunting through old emails.

0 coins

The lot-by-lot detail is key. My first time reporting a stock sale I just entered the total proceeds and the total cost and my preparer had to fix the whole thing because some lots were long-term and some were short-term.

0 coins

Sold ESPP shares in a similar situation last year — left my job in October 2025 and sold everything the following month. When I filed my 2025 return and the refund never moved in Where's My Refund, I eventually wanted to know whether an offset had pulled part of it. Claimyr (claimyr.com) stayed on hold with the IRS's 800-829-1040 line while I went back to work, and when the agent picked up I asked specifically about any adjustment or offset showing on my account for 2025. The agent told me the account showed an offset applied by the Bureau of the Fiscal Service for a past-due federal debt, with the amount on record and the date it posted. That cleared up why the refund was smaller than I'd filed for — the IRS itself told me to watch for the BFS notice in the mail explaining which agency received it. Anyway, on the ESPP side, my preparer said the most common issue is the basis mismatch between the W-2 and the 1099-B, exactly what others here are describing. Video on reaching a live person at the IRS: https://youtu.be/_kiP6q8DX5c

0 coins

Useful to know an offset can hit a refund even when the gap isn't obvious from the return itself. I do have a small student loan that's been in some weird status, so now I'm wondering if that could ever be an issue for me.

0 coins

Federal student loans in default can trigger an offset through the Treasury Offset Program. The Bureau of the Fiscal Service mails a notice when it happens, so check your mail carefully around the time you'd expect a refund.

0 coins

My refund got offset a couple years ago for exactly that reason. The BFS letter arrived about a week after I would have expected the deposit. Definitely read it carefully because it shows the original amount, the offset amount, and which agency received the difference.

0 coins

3 years at a company with ESPP and I was terrified of this exact situation when I left. The IRS gets the 1099-B data from your brokerage — that part is automatic. What the IRS doesn't automatically get is your adjusted cost basis if the employer discount was already taxed as wages. That reconciliation is entirely on you when you file. Your former employer's payroll records feed into the W-2, but the IRS system doesn't link the W-2 box to the 1099-B basis automatically. So if you just enter the 1099-B numbers as-is and don't adjust for what was already taxed as income, you'll be paying tax on that piece twice. Your tax preparer will know how to handle it, but go in with both documents ready.

0 coins

The double-taxation risk is what I was most worried about and couldn't quite articulate. This explains it clearly. I'll make sure my preparer has both the W-2 and the 1099-B from the start.

0 coins

Had exactly this problem the first year I sold ESPP shares. Filed using tax software, didn't know to adjust the basis, and ended up over-reporting income. Had to file a 1040-X to fix it. Catch it before you file and save yourself that headache.

0 coins

My preparer flagged this same thing for me. The software will accept whatever basis number you enter on Form 8949 — it doesn't know what was on your W-2. You have to put the right number in yourself.

0 coins

Worth mentioning that the wage and income transcript in your IRS Online Account will eventually show the W-2 and 1099-B data the IRS received from your employer and brokerage. Usually takes a few months after the tax year ends for all the payers to file their forms. If you want to verify what the IRS actually has on record before you file, you can pull that transcript through the online account at https://www.irs.gov/your-account once you're signed in through ID.me or Login.gov. It shows the figures as the payers reported them, not what you reported, which can be a useful cross-check.

0 coins

Didn't know the wage and income transcript showed 1099-B data too. That's actually really helpful for making sure the brokerage filed the right numbers.

0 coins

My preparer uses that transcript every time now. Caught a 1099 that an old freelance client filed late one year — the transcript showed it even though I never received a paper copy.

0 coins

Tried to pull mine in October last year and the 1099-B wasn't there yet. The payer data usually shows up between February and April the following year in my experience, so it may not be there yet if you're checking now.

0 coins

ESPP shares after leaving is actually more common than people think and the IRS matching process catches mismatches. The brokerage reports proceeds to the IRS on the 1099-B. If what you report on Schedule D doesn't match what the brokerage reported, the IRS may send a notice. Usually it's a CP2000, which proposes additional tax based on the mismatch. That's often what happens when people don't adjust the basis — the IRS sees proceeds with no matching cost and assumes the whole amount is gain. Responding to a CP2000 is not the end of the world but it's extra work. Easier to get the basis right the first time.

0 coins

The idea of getting a CP2000 after I've already filed and moved on is stressful. Sounds like being thorough now is definitely the right call.

0 coins

Received a CP2000 once for a 1099-B mismatch that wasn't even my fault — the brokerage had transposed two digits in the proceeds amount. Had to respond with documentation showing the correct number. The notice gives you a deadline to respond, so read it right away if one arrives.

0 coins

My tax software flagged a potential CP2000 situation when I entered the 1099-B data last year. It prompted me to double-check the cost basis against my own records. That little check probably saved me a lot of trouble.

0 coins

Quarterly estimated payments are something people selling ESPP shares outside of a tax year's normal withholding often miss. When you're employed, your employer withholds federal tax from your paycheck and that covers a lot. After leaving, any gain from the September sale won't have been withheld on — so if you end up owing a significant amount on your 2026 return, you might also owe a penalty for underpayment. Worth asking your preparer whether a Q4 estimated payment makes sense before January. Separately — my situation this year involved a payment I'd made toward a balance from a prior year and I needed to confirm it had actually posted to the right tax year. Claimyr stayed on hold with the IRS for me and when the agent answered I asked about the payment's posting date for tax year 2024. The agent confirmed the date the payment posted and which year it was applied to, which was exactly what I needed before filing.

0 coins

I completely forgot about estimated payments. I did make one back in June for a freelance side project but never calculated whether the ESPP gain would need a separate payment. Need to look at this before year-end.

0 coins

The IRS penalty for underpayment is calculated based on how much you underpaid and for how long, so the sooner you make a payment the less exposure you have. Paying something before January 15 covers Q4 and can reduce or eliminate the penalty on that portion.

0 coins

My preparer always runs a quick estimate in November or December to see if a year-end payment is needed. Sounds like now would be a good time to get in touch with yours given the ESPP sale in September.

0 coins

The qualifying vs. disqualifying disposition question matters a lot for how the income is split. I got this wrong in my head for a long time — I thought it was about whether you held the shares for a year after the purchase date, but it's actually about two different holding periods: one from the offering date and one from the purchase date, and both have to be met for a qualifying disposition. If either period isn't met it's a disqualifying disposition and more of the gain is treated as ordinary income. The specifics depend on your plan and the dates, so this is one to work through with your preparer or the plan documents rather than guess.

0 coins

I had the same wrong understanding — I thought it was just about one year from purchase. The two-period rule is more complicated than I realized.

0 coins

My company's ESPP plan documents actually had a pretty clear summary of when a qualifying disposition was met. If you still have access to the HR portal from your old job it might be worth pulling that document.

0 coins

The brokerage statement sometimes labels the disposition type, but I wouldn't rely on that alone. I've seen it labeled incorrectly when the offering date vs. purchase date distinction matters.

0 coins

My former employer's stock plan administrator sent me a document at the time of each purchase called a "purchase confirmation" that showed the offering date, the purchase date, the fair market value on both dates, and the actual purchase price I paid. That document is what my preparer used to calculate the discount amount and check whether the W-2 included it correctly. If you haven't already, check whether your old employer's stock plan administrator sent you something similar — sometimes it's in a separate online portal from your regular brokerage account.

0 coins

I do remember getting purchase confirmations but I'm not sure I saved all of them. Going to log into the plan portal and see if they're archived there.

0 coins

Ours were in a separate portal from the actual brokerage where the shares lived. Took me a minute to find them. The plan administrator's portal had everything going back several years.

0 coins

People ask about whether they need to report ESPP sales even if they don't get a 1099-B, and the answer is yes — you're required to report all capital transactions regardless. But realistically, your brokerage is required to send one for covered securities sold after 2011, and ESPP shares definitely fall in that category. The brokerage is also required to send a copy to the IRS. So the 1099-B will come, and the IRS will have its own copy.

0 coins

Covered vs. noncovered security distinction matters here too. For really old ESPP shares acquired before the basis reporting rules kicked in, the brokerage may not report basis at all. They just report proceeds and leave the basis blank. For shares acquired in recent years that shouldn't be an issue.

0 coins

All my ESPP purchases were within the last three years so it sounds like mine should be fully covered and the basis should be on the 1099-B, even if it needs adjustment.

0 coins

Moved last spring and was worried the tax documents from my old job would go to my old address. Worth confirming your address is current with both the brokerage and with the IRS before year-end so the 1099-B and any IRS notices reach you. Claimyr stayed on hold with the IRS while I handled something else, and when the agent answered I asked what address the IRS had on file for me. The agent read back the address on record — it still had my old apartment number, not the new one. I updated it right then by filing a Form 8822. Got the 1099-B at my new address without any issue.

0 coins

Address update hadn't even crossed my mind — I moved last year too and may have never updated the IRS. Going to file an 8822 this week.

0 coins

You can also update your address in the IRS Online Account directly, which might be faster than waiting for a paper form to process.

0 coins

My brokerage also had an old address until I logged in and updated it. Worth doing both since the 1099-B comes from the brokerage, not the IRS.

0 coins

The IRS Online Account lets you see any notices the IRS has already sent you digitally, which is useful if you're not sure whether something is already in motion. After logging in through ID.me or Login.gov, there's a section for digital notices. If the IRS has already sent something about your account — a balance, a notice, anything — it may be viewable there before the paper copy arrives.

0 coins

Logging into the IRS Online Account is now on my list. I've been meaning to set it up for a while and this thread has convinced me to actually do it.

0 coins

The ID.me verification step tripped me up the first time — it wants a photo of your ID and a selfie to verify. Once that's done the account is easy to use.

0 coins

Worth noting the digital notices in the online account don't cover every notice the IRS sends — some still come by mail only. So keep checking the mailbox too.

0 coins

Form 8949 is filed with your return and lists each sale separately — the date acquired, the date sold, the proceeds, and your cost basis, with any adjustments coded in a separate column. If your basis needs to be adjusted for the ESPP discount that was already on your W-2, you enter the adjustment amount in column g and use the appropriate code. Schedule D then totals everything up. It's a little tedious when you have multiple lots from different purchase dates, but it's manageable with the right documents.

0 coins

Multiple lots from different purchase periods is exactly what I have. At least now I know what form handles it and roughly how it works.

0 coins

My tax software walks through 8949 entry pretty clearly. If you have a lot of lots it's sometimes easier to import directly from the brokerage — most major ones offer a download in the right format.

0 coins

Even with an import I'd still manually check a few lots for the ESPP basis adjustment. The import just pulls what the brokerage reported; it doesn't know what's already on your W-2.

0 coins

Depending on how long you held the shares, the gain could be short-term or long-term. Short-term is for shares held a year or less before selling, long-term for more than a year. They're taxed at different rates under federal law — short-term gains are taxed as ordinary income, long-term rates are lower. That's separate from the ordinary income piece that may have already been on your W-2 through the discount. The holding period for each lot runs from the date you actually purchased the shares, not the offering date.

0 coins

So I could potentially have some lots that are long-term and some that are short-term depending on when each purchase period closed. That's why the per-lot breakdown matters.

0 coins

Exactly right. Each ESPP purchase period produces a separate lot with its own purchase date and basis. When you sell, you're selling some or all of those individual lots, and each one gets its own holding period calculation.

0 coins

TAS — the Taxpayer Advocate Service — is worth knowing about if you ever end up in a situation where the IRS hasn't resolved something within the normal time frame, or if a tax problem is causing real financial hardship. It's free and independent within the IRS. For a straightforward 2026 return with ESPP sales, you probably won't need them, but if you ever get a CP2000 or another notice that you can't get resolved through normal channels after 30+ days, they're at taxpayeradvocate.irs.gov.

0 coins

Good to know TAS exists. I've heard of it but didn't know what triggered eligibility or how to reach them.

0 coins

Had a situation a couple years ago where a notice response I mailed in never got acknowledged for over three months. TAS stepped in and got it resolved. The Form 911 request is what starts the process.

0 coins

If your old employer is slow in sending the final W-2 or sends one with an error, you have options. First step is to contact the employer's payroll department directly. If the W-2 still hasn't arrived by late February, the IRS has a process — you call 800-829-1040 and give them the employer's name, address, and EIN if you have it, and they contact the employer on your behalf. If you need to file before the corrected W-2 arrives, Form 4852 is a substitute you can use, based on your own pay records.

0 coins

My former employer is a large company so I'd expect the W-2 on time, but good to know the process if something goes wrong.

0 coins

Large company payroll departments sometimes still make errors on ESPP-related W-2 boxes. Definitely compare the discount amount on your purchase confirmation against whatever shows up in box 1 or the supplemental wage section.

0 coins

My first year with ESPP shares I tried to skip using a preparer and do it myself in tax software. The software asked me questions I didn't know how to answer about the type of disposition and whether the discount was already in my W-2. I ended up getting it wrong, filed, and then had to do an amended return on Form 1040-X. The 1040-X process took about three months before the IRS updated my account. Strongly suggest getting at least a one-time consultation with a preparer who's dealt with ESPP before if you've never done this.

0 coins

This is probably the most useful warning in this thread for me personally. I was planning to just use software. Might be worth paying for a preparer at least this first year.

0 coins

ESPP reporting is one of those situations where the forms aren't that complicated once you understand what goes where, but the understanding itself takes time to get right. A preparer who's seen it before is worth it.

0 coins

Amended returns for basis issues are super common. The 1040-X isn't that painful to file but waiting three or four months for it to process is annoying when you're trying to close out the year.

0 coins

Keep all your documents somewhere you can find them next spring: the purchase confirmations, the 1099-B, your final W-2 from the company, and the brokerage statement showing the actual sale date and proceeds for each lot. By the time you're sitting down to file in March or April it's easy to forget where everything is, especially if you've changed addresses or email accounts since the sale happened.

0 coins

Saving all of these digitally starting now. My old employer's stock plan portal requires you to log in within a certain period after leaving before access expires, so pulling those documents now is a good idea regardless.

0 coins

My former employer's portal expired 90 days after my last day. I almost lost access to the purchase confirmations. If yours has a similar cutoff, download everything now.

0 coins

Same situation here — downloaded everything from both the plan portal and the brokerage account the week I left. Turned out the plan portal had data the brokerage didn't, particularly around the offering date.

0 coins

The 2026 filing deadline for most people is the April 2027 deadline. If you need more time you can file a Form 4868 for an automatic extension to file, but that doesn't extend the time to pay — if you owe anything from the ESPP sale, that's still due by April. Worth knowing before deciding to extend, because extending to file while still owing means interest and potentially a late-payment penalty keep running.

0 coins

An extension to file is not an extension to pay was something I had completely wrong in my head. I thought extending meant I had more time to pay too. That's an important distinction.

0 coins

A lot of people get that wrong. The extension just gives you six more months to submit the paperwork; the tax itself is still due in April. If you're not sure what you owe, a preparer can run a quick estimate in March.

0 coins

My preparer always has me pay a small estimated amount when I file for an extension just so I'm not on the hook for a lot of interest if the final number comes in higher than expected.

0 coins

IRS AI

Expert Assistant
Secure