< Back to IRS

Royal_GM_Mark

Can I offset ESPP capital gains through tax loss harvesting just like regular cap gains?

So I've been participating in my company's ESPP program for about 3 years now. The discount is pretty sweet (15%) and I usually sell as soon as the holding period ends to lock in that guaranteed return. But this year I also had some investments that tanked pretty badly in my regular brokerage account. I'm wondering if I can use those losses to offset the capital gains I'll have from selling my ESPP shares? I know tax loss harvesting works for normal capital gains, but wasn't sure if ESPP gains are treated differently for tax purposes since they come from an employer plan. My ESPP gains will be around $8,400 this year, and I'm sitting on about $11,000 in losses from some terrible tech stock picks lol. Does anyone know if the IRS treats these the same way? Or are there special rules for ESPP gains that would prevent me from using my other investment losses to offset them? I really don't want to get hit with a surprise tax bill next April.

Yes, you can absolutely use capital losses from your regular brokerage account to offset capital gains from your ESPP sales. The IRS doesn't distinguish between the sources of capital gains/losses when it comes to tax loss harvesting - they're all treated the same for offsetting purposes. The thing you need to be careful about with ESPP sales is correctly calculating your actual capital gain. Remember that ESPP shares often have two components: 1) the discount (which is typically reported as ordinary income on your W-2) and 2) any appreciation from the purchase price to the sale price (which is the capital gain/loss part). Only the second part counts as a capital gain that can be offset with your losses.

0 coins

Chris King

•

Thanks for the info! Quick question - does the holding period matter? Like if I sell my ESPP shares within a year of purchase (short-term) but my other losses are from stocks I held for over a year (long-term), can they still offset each other?

0 coins

Short-term capital losses will first offset short-term capital gains, and long-term losses will first offset long-term gains. If you have an excess in one category, it can then offset the other category. So yes, they can offset each other, but the IRS applies them in a specific order. For your ESPP shares, the holding period absolutely matters. If you sell within a year of purchase or within two years of the offering date, it's a "disqualifying disposition" which affects how the discount portion is taxed, but the capital gain/loss portion still follows the normal rules based on your holding period.

0 coins

Rachel Clark

•

After struggling with this exact ESPP tax situation last year, I discovered https://taxr.ai and it seriously saved me hours of confusion. I uploaded my brokerage statements and ESPP documentation, and it automatically identified which losses could offset my ESPP gains and calculated everything properly, including figuring out which portion of my ESPP sales was ordinary income vs. capital gains. The tool breaks down exactly how ESPP shares should be reported on your tax forms and even creates the documentation you need for IRS substantiation. It was especially helpful because my company's plan had a lookback provision that made the calculations even more complicated.

0 coins

Does it handle the ESPP discount reporting too? My company reports the discount on my W-2, but I'm never sure if I'm double-counting or missing something when I file.

0 coins

Mia Alvarez

•

I'm skeptical about these tax tools. How does it know all the specific rules for ESPP taxation? My situation has both qualifying and disqualifying dispositions from multiple purchase periods with different lookback results.

0 coins

Rachel Clark

•

It does handle the ESPP discount reporting - that's actually one of its specialties. It automatically identifies what's already been reported on your W-2 to prevent double taxation and makes sure you're calculating the correct cost basis for your shares. For complex ESPP situations with multiple purchase periods and different types of dispositions, that's exactly where it shines. It creates separate calculations for each lot of shares based on purchase date, offering date, and sale date - then applies the correct tax treatment to each. It saved me from a major headache when I had qualifying and disqualifying dispositions in the same tax year.

0 coins

Mia Alvarez

•

Just wanted to follow up about taxr.ai after trying it with my complicated ESPP situation. I was skeptical at first, but it actually handled all my different purchase periods perfectly! I had 3 different ESPP purchases with varying holding periods and discount rates, plus a lookback provision that I never calculated correctly. The system correctly separated my ordinary income from capital gains, and showed me exactly how much of my brokerage losses could offset each type of ESPP gain. Even identified a mistake in how my employer had reported the discount on one batch of shares. Saved me about $2,300 in taxes I would have overpaid!

0 coins

Carter Holmes

•

If you're having trouble getting clear answers about ESPP tax treatment from the IRS resources, I was in the same boat. After spending hours trying to get through to someone at the IRS who actually understood ESPP taxation, I used https://claimyr.com and got connected to an IRS agent in about 20 minutes instead of waiting for hours. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c - basically it holds your place in line and calls you when an actual agent is ready. The IRS specialist I spoke with confirmed that yes, regular capital losses can offset ESPP capital gains, and walked me through exactly how to report everything correctly on my Schedule D and Form 8949.

0 coins

Sophia Long

•

How does this actually work? I've tried calling the IRS multiple times about my ESPP questions and just get stuck in the automated system or disconnected.

0 coins

Mia Alvarez

•

Sorry, but I find it hard to believe anything could get me through to the IRS quickly. Last time I called about ESPP taxation, I waited 2+ hours and then got transferred to someone who had no idea how to answer my question.

0 coins

Carter Holmes

•

It works by using their system to navigate the IRS phone tree for you and secure your place in line. Instead of you waiting on hold, their system does the waiting and then calls you when an actual agent is available to talk. I was skeptical too - I'd spent nearly 3 hours on multiple calls trying to get answers about my ESPP tax situation. When I used Claimyr, I was literally connected with an IRS tax specialist in 23 minutes. The agent was knowledgeable about ESPP taxation and confirmed exactly how the offsetting works between different types of capital gains/losses.

0 coins

Mia Alvarez

•

I have to eat my words about Claimyr! After my frustration with trying to get IRS help about my ESPP situation, I decided to try it as a last resort. I was convinced it would be a waste of money, but I was desperate for answers before filing. To my complete shock, I got a call back in about 35 minutes with an actual IRS tax specialist on the line. She was familiar with ESPP taxation and confirmed that my brokerage losses could offset my ESPP gains, but also pointed out that I needed to be careful about how the discount portion was being reported. Turns out I was making a mistake that could have triggered an audit. Saved me hours of waiting and potentially serious tax problems. Never thought I'd be recommending a service for calling the IRS, but here we are!

0 coins

One thing to watch out for with ESPP taxation - make sure you're tracking your cost basis correctly! The reported cost basis from your broker is often wrong for ESPP shares because they don't account for the portion already reported as income on your W-2. I learned this the hard way when I got an audit notice because I essentially double-reported the ESPP discount as both ordinary income (via W-2) and as part of my cost basis. Had to file an amended return and pay penalties.

0 coins

Royal_GM_Mark

•

Thanks for pointing this out! How do you recommend calculating the correct cost basis? Does the broker statement show the purchase price before or after the discount is applied?

0 coins

For ESPP shares, your broker statement typically shows the actual price you paid (discounted price), but that's not your tax cost basis in many cases. If you sell in a disqualifying disposition (too soon), your cost basis is generally the fair market value on the purchase date (not your discounted purchase price). This is because the discount gets reported as ordinary income on your W-2, so you've already been "taxed" on that portion.

0 coins

Don't forget about the wash sale rule if you're trying to do tax loss harvesting! If you sell investments at a loss and buy "substantially identical" securities within 30 days before or after the sale, you can't claim the loss for tax purposes.

0 coins

Royal_GM_Mark

•

Good reminder! Does the wash sale rule apply between ESPP purchases and regular brokerage purchases? Like if I sell some company stock at a loss in my brokerage account but then have an ESPP purchase of the same company stock within 30 days, would that trigger a wash sale?

0 coins

Great question about ESPP gains and tax loss harvesting! Yes, you can definitely use your regular brokerage losses to offset ESPP capital gains - the IRS treats all capital gains and losses the same regardless of source. However, make sure you're calculating your ESPP gains correctly. With a 15% discount and immediate sale after the holding period, you likely have both ordinary income (the discount portion that should appear on your W-2) and capital gains/losses (any price movement from purchase to sale). Only the capital gains portion can be offset by your other investment losses. Since you have $11,000 in losses versus $8,400 in ESPP gains, you should be able to fully offset those gains and still have $2,600 in losses to carry forward or offset other gains. Just watch out for the wash sale rule if any of your losses involve the same company stock as your ESPP!

0 coins

Eve Freeman

•

This is really helpful, thanks! I'm new to ESPP taxation and wasn't sure about the distinction between the discount portion and capital gains portion. When you say the discount appears on the W-2 as ordinary income, does that happen automatically or do I need to request something from my employer? I want to make sure I don't miss anything when I file next year.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,095 users helped today