How to reduce capital gains tax on forced stock sale after acquisition

My employer got acquired and the acquiring company cashed out all unvested RSUs and my remaining vested shares at a fixed merger price — no choice in the matter, everything sold on the same day. Got a 1099-B from my broker showing proceeds I didn't plan for, and the cost basis on some lots looks wrong (too low). I've been with the company almost 7 years so most shares should be long-term, but a few RSU lots vested only 8 months ago. I'm trying to figure out if there's anything I can actually do at this point to lower the tax hit or at least make sure I'm not overpaying. I already maxed my 401k contribution for the year. Is there any real strategy left, or am I stuck paying whatever the 1099-B says?

36 comments

Are those recently vested RSU lots showing as short-term on the 1099-B? That's the first thing I'd confirm, because the holding period on RSUs starts when they vest, not when the grant was made. So your 8-month lots are definitely short-term, taxed as ordinary income at vesting and then short-term gain on any price movement after. The 7-year lots should be long-term capital gain from the vest date, not the grant date.

Diego T.

Author

Yes, the 1099-B shows a mix. Most are coded long-term but two lots are short-term. The cost basis on one of the long-term lots looks off though — it shows a basis way below the FMV on vest date, which is what should have been on my W-2.

What do you mean the basis looks low? Did your employer include the FMV at vesting in box 1 of your W-2? Because the basis on RSUs should be the FMV on the vest date — that's the amount that got added to your W-2 as ordinary income. If the broker only has what you paid (zero for RSUs) it'll show a lower basis and you'd look like you have a bigger gain than you actually do.

Diego T.

Author

That's exactly what I think happened. The W-2 amount looks right but the 1099-B basis is way too low on that one lot. So I'd be paying capital gains tax on income I already paid ordinary income tax on if I just go with what the 1099-B says.

This is a really common RSU mess after acquisitions. You'd correct it on Form 8949 — enter the proceeds in column (d) as shown on the 1099-B. With box D (basis reported to the IRS), put the basis shown on the 1099-B in column (e) even though it's wrong, then put code B in column (f) and the adjustment in column (g) as a negative number if the correct basis is higher. With box E (basis not reported), put the correct basis (FMV at vest) in column (e) and -0- in column (g). Box D or E depending on whether basis was reported to the IRS.

Had almost the same situation when my company was bought out two years ago. What helped me most was running the whole 1099-B through taxr.ai — it compared each lot's vest date to the sale date, flagged which lots had the basis discrepancy, and drafted a column (g) adjustment summary I could hand to my CPA. Saved a lot of back-and-forth. Anyway, on actual tax reduction: do you have any losing positions in your taxable brokerage accounts you haven't sold yet? Harvesting losses before year-end is probably the most direct lever you have left.

Diego T.

Author

I do have a couple positions sitting at a loss. How much can I actually use? I know there's a cap on deducting losses against regular income.

Losses offset gains dollar for dollar first — long-term against long-term, short-term against short-term, then net them together. Only the amount left over after offsetting all gains runs into the annual cap against ordinary income. Check Topic no. 409 on irs.gov and Schedule D instructions for the exact figures, they depend on your filing status.

Does the merger agreement say anything about how the unvested RSUs were treated? Some deals accelerate vesting right before close, some cash them out as a "phantom" payment. That changes whether it's on your W-2 as wages or on the 1099-B as a capital transaction. Worth reading the merger docs if you have them.

Diego T.

Author

The company sent a document saying unvested RSUs were converted to a cash payment at closing. So those would be wages on the W-2, not on the 1099-B at all?

Probably yes — a cash payment for unvested RSUs at closing is typically ordinary income, not a capital gain. It'd show up on your W-2, not Form 8949. If it's also on your 1099-B that could be a double-count worth flagging with your payroll department before you file.

Something worth checking: did you have any ISO options alongside those RSUs? ISOs in an acquisition can get complicated fast — there's sometimes an AMT exposure from exercise that people miss when everything gets cashed out in the same tax year. I uploaded my merger payout statement and option exercise records to Taxr and it walked through which lots triggered an AMT adjustment on Form 6251 line 2i and which didn't, based on whether I'd disposed of the stock in the same year I exercised. Really cleared up what I actually owed versus what I thought I owed.

Diego T.

Author

No ISOs, all RSUs and a small amount of ESPP shares. So I think AMT isn't in play for me here, but good to know for others reading this.

ESPP shares have their own basis wrinkle — the discount at purchase is ordinary income when you sell (reported on W-2 if it's a qualifying disposition), and only the gain above that is capital gain. Worth confirming your broker's basis on those too.

Can you still do anything about contributing to a traditional IRA to offset some of this? I know 401k is maxed but wondering if an IRA deduction could help.

IRA deductibility phases out at higher income levels and depends on whether you have a workplace plan — which it sounds like the poster does. Worth running the numbers but the deduction might be limited or zero depending on income. The IRA contribution limits and phase-outs aren't something I'd state off the top of my head; check the IRS retirement pages for the current year figures.

Are the ESPP shares a qualifying or disqualifying disposition? The holding period rules for ESPP are different from RSUs — it matters how long after the offering date and purchase date you held before the forced sale.

Diego T.

Author

I honestly don't know. The shares were from the last purchase period, maybe 14 months ago. Does the forced sale during an acquisition still count as a 'sale' for the ESPP holding period rules?

Yes, a forced cash-out in a merger is a disposition for ESPP purposes. Whether it's qualifying depends on when you bought relative to the offering date. Your plan documents will have the specifics, and Publication 525 on irs.gov covers the ESPP income rules in detail.

One thing I'd push back on slightly — a lot of people in this situation assume they can harvest losses to fully wipe out the acquisition gain, but watch the wash sale rule. If you sell something at a loss and buy substantially identical securities within 30 days before or after, the loss is disallowed. The disallowed amount gets added to the basis of the new shares instead.

Worth emphasizing: the wash sale window is 30 days on each side of the sale date, not just 30 days after. And it also applies if your IRA or Roth IRA buys substantially identical stock in that window, even if you're not buying in your taxable account.

Diego T.

Author

Good catch. I was planning to rebuy some of the positions I sell at a loss. I'll need to wait the 30 days or buy something not substantially identical if I want the loss to count.

Has anyone mentioned charitable giving? If you have shares outside the acquisition account still sitting at a gain, donating them directly to a charity (instead of cash) means you don't recognize the capital gain and you get a deduction for FMV. Not relevant to the forced sale itself but can help overall for the tax year.

Diego T.

Author

Don't have many other appreciated shares left after all this, but that's worth keeping in mind for future years.

Going back to the basis correction question — I want to make sure the Form 8949 mechanics are clear. If the 1099-B shows basis as reported to the IRS (covered security), you check box D in Part II for long-term, put the proceeds in column (d), put the WRONG basis from the 1099-B in column (e) even though it's wrong, then code B in column (f) and the negative adjustment in column (g). You do not just enter the correct basis in column (e) when it's a covered security.

This is an important distinction. For covered securities (basis reported to IRS), you must enter what the 1099-B says in column (e), then correct with column (g). For non-covered securities (basis not reported), you can put the correct basis directly in column (e) with -0- in column (g). Different boxes, different mechanics.

Diego T.

Author

That's the part I was getting confused on. So I need to look at whether each lot is covered or non-covered before I know which approach to use. That's on the 1099-B itself right?

Did the acquiring company give you any kind of rollover option, or was it strictly cash? Some acquisitions let you roll into the acquirer's equity instead of a cash-out. If you had a choice and took cash, that's a different analysis than a true forced sale with no option.

Diego T.

Author

Strictly cash, no rollover option offered. The merger docs were pretty clear that all equity was being cashed out at the per-share price.

Just to get back to the original question about actually reducing the tax: realistically after the forced sale the main levers are (1) loss harvesting in other accounts before year-end, (2) correcting the basis on the 1099-B so you're not overpaying on income already taxed as ordinary income at vest, and (3) if you have enough capital losses carried from prior years, those offset current year gains first. Prior year carryforwards are on Schedule D from last year's return.

Diego T.

Author

I do have a small carryover from two years ago. Where does that actually flow on this year's return?

The Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions walks you through it. The carryover feeds into the current year Schedule D and offsets current year gains before anything else.

Something people overlook in acquisition scenarios: check whether your company had a 423 ESPP plan. If it did, the discount element at purchase shows up as ordinary income on a qualifying disposition, and only the remaining gain is capital. If it's a disqualifying disposition the whole spread at purchase date is ordinary income. Your broker may or may not have the right basis depending on what your employer reported to them.

And employers don't always update the broker on the ordinary income piece, so the broker reports a lower basis than you should have. Same problem as the RSU basis issue, just a different source. Worth cross-checking your W-2 against what the 1099-B shows for those lots.

If the numbers here are substantial — which it sounds like they might be — this is a situation where a CPA or enrolled agent who handles equity compensation is worth the fee. Correcting multiple lots, possible W-2 reconciliation, carryforward worksheets, and ESPP treatment all in one year is a lot to get wrong.

Diego T.

Author

Yeah, I think you're right. The dollar amounts are significant enough that I don't want to get the basis corrections wrong. I'll bring all of this — the 1099-B, the merger docs, the W-2 — to a CPA who handles equity comp.