How to reduce taxes when RSU and ESPP shares cash out in a buyout

Company got acquired last month and all my unvested RSUs accelerated and paid out as cash, plus my ESPP shares got cashed out too. I've been here 6 years so there's a mix of lots that have been held different amounts of time. The payout hit as supplemental wages for the RSUs (W-2 box 1) and I assume the ESPP has some ordinary income piece too. My tax software is showing a huge bill and I'm trying to figure out if there's anything I can do before year end to offset this. I already maxed my 401k. Are there any moves left, like harvesting losses in my brokerage, contributing to an HSA, or anything else? I don't know if the holding period on each lot changes what's available to me here. How do I even think about reducing taxes when RSU and ESPP shares cash out in a buyout like this?

35 comments

What brokerage do you use and did they send you a 1099-B already or are you working from the acquisition closing statement? That matters because the cost basis reported can be wrong on ESPP shares especially, and fixing that could change your picture before you even look at offsets.

Raj F.

Author

Working from the closing statement right now, broker said the 1099-B comes in February. The ESPP basis thing is exactly what worries me — I've heard it gets underreported.

The ESPP basis issue is real. The 1099-B often shows only what you paid at purchase, not the ordinary income component your employer already included on your W-2. If you deduct that W-2 piece from your proceeds on Form 8949 without adding it back to your basis in column (e), you end up paying tax on it twice. I uploaded my closing docs and W-2 to taxr.ai and it walked through each ESPP lot, matched the ordinary income already on my W-2 to the correct basis adjustment in column (g), and flagged where my broker was going to under-report. Saved me from a big overpayment. For the RSUs the income is already baked into your W-2, so your basis in those shares is the FMV at vest, not zero — make sure your 1099-B reflects that.

Raj F.

Author

This is exactly the clarification I needed on the ESPP double-tax issue. So my adjusted basis in each ESPP lot is what I paid plus the spread that showed on my W-2 as ordinary income at purchase?

Yes, exactly. Your basis for gain/loss on Form 8949 is your purchase price plus the amount your employer already included as compensation income. The holding period then determines whether any remaining gain above that is ordinary (short ESPP holding period) or capital. Publication 525 on irs.gov has the full breakdown of qualifying vs disqualifying dispositions.

Did all your RSU lots accelerate at once or did different grant dates have different vesting? Because if some lots vested more than a year before the buyout closed, those shares have a long-term holding period for the gain above the vest-date FMV. That changes the rate on any appreciation piece.

Raj F.

Author

Mix of both. Some grants vested 2+ years ago, some accelerated at closing. The ones that accelerated — their holding period starts at acceleration, right? So those would be short-term.

Right, holding period on RSUs starts the day after shares vest (or in an acceleration, the day after the forced vesting event). Per Publication 550, you count starting the day after acquisition and the disposition date counts. So accelerated shares cashed out the same day would be very short-term — that gain above FMV at vest is short-term capital gain, or zero if the cash matched the FMV exactly.

Are you in a position to harvest losses in your taxable brokerage account before December 31? That's the most direct lever most people still have at this point in the year. Short-term losses offset short-term gains first, long-term losses offset long-term gains first, then excess crosses over. Watch the wash sale rules — if you sell something at a loss and rebuy the same or substantially identical security within 30 days before or after, the loss is disallowed and gets added to the basis of the repurchased shares instead.

Raj F.

Author

Yes I have some losers in my brokerage. Good reminder on wash sales, I'll wait the 31 days before rebuying or buy something similar but not identical.

Exactly — and don't forget the wash sale window goes 30 days before the sale too, not just after. So if you bought more of a stock in the last 30 days and now sell it at a loss, that prior buy could already make it a wash sale.

HSA is a good thought but you can only contribute if you're enrolled in a qualifying high-deductible health plan. If you are, the contribution reduces your adjusted gross income directly. Check the Form 8889 instructions for the current year limit — I won't guess the number. Worth doing if you're eligible.

One thing that confused me in my own buyout last year — when the RSU payout showed up as supplemental wages on my W-2, the withholding was at the flat supplemental rate, which for a lot of people isn't enough when you add it to regular salary and you're in a higher bracket. Did your employer withhold enough? You may owe a lot at filing even if you can't reduce the income itself.

Raj F.

Author

Yeah the withholding was definitely not enough. I might need to make an estimated payment by the January 15 fourth-quarter deadline to avoid an underpayment penalty. Any idea which form covers that?

Form 1040-ES covers estimated payments. The instructions walk through the safe harbor rules — there are thresholds based on last year's tax or this year's liability that protect you from the penalty if you hit them. Worth reading those instructions closely given your income jump this year.

Does your company allow a mega backdoor Roth or after-tax 401k contribution? If the plan allows in-service withdrawals or conversions, some people use that to absorb extra income years. Probably too late for this year if the plan has to process it, but worth asking HR for next time.

Deferred comp is off the table once a qualifying event triggers it, but are you sure there's no charitable giving angle? If you have any long-term appreciated stock elsewhere in your portfolio, donating shares directly to a DAF lets you deduct the fair market value and avoid recognizing the gain. You'd be moving the appreciated position out before you have to sell it. I ran my whole situation through Taxr — I had a mix of ESPP, RSUs, and some old brokerage lots and it listed every lot with its holding period, flagged which ones were long-term appreciated, and estimated what a DAF contribution would do to the net Schedule D position. Useful for seeing the picture before making the move.

Raj F.

Author

I do have some long-term appreciated index fund shares. Using those for a DAF instead of cash donations is a move I hadn't thought of. Thanks, looking into this today.

Worth noting: if any of your ESPP shares are from a qualifying disposition (held more than 2 years from offering date and more than 1 year from purchase date), the discount figured at the offering date is ordinary income but only up to the actual gain — any additional gain is long-term capital gain. A disqualifying disposition flips more of it to ordinary income. Your broker's 1099-B category tells you covered vs non-covered, but it doesn't tell you which ESPP disposition type you have — you have to track that yourself from your grant documents.

Raj F.

Author

This is helpful. How do I know which of my lots were qualifying vs disqualifying? Is it just based on the dates I have from the ESPP plan statements?

Yes — your plan statements should show the offering date and the purchase date for each lot. Compare those to your sale date (buyout close). If you meet both holding period tests for a lot, it's qualifying. If you missed either one, it's disqualifying. The IRS hasn't retired these rules so they still apply; Publication 525 lays out both paths.

Are there any losses from earlier this year you haven't used yet? Even if you can't generate new losses before year end, make sure you're accounting for everything you already sold. Sometimes people forget sales earlier in the year that produced short-term losses that can offset the buyout gains.

Raj F.

Author

Good call — I did sell some things earlier this year at a loss and kind of forgot about them. I'll pull my account history.

The Form 8949 entries for the ESPP lots with basis corrections are the part that gets people. When the 1099-B has basis reported to the IRS (box A or D), you have to enter the wrong basis from the 1099-B in column (e) and then put the correction as a negative number in column (g) with code B in column (f) — you can't just enter the right number in column (e) and move on. I had Taxr read through my 1099-B and closing statement side by side and it drafted the column-by-column entries for each ESPP lot on Form 8949, including the right code and the adjustment sign. I checked every line against the instructions before filing, but having the draft laid out that way made it much harder to miss a lot.

Raj F.

Author

The column (g) sign thing is what I was most confused about. Negative in parentheses to increase basis, positive to decrease — I kept second-guessing myself. Good to know there's a way to get a draft to sanity-check.

Exactly — if your correct basis is higher than what the 1099-B shows, your column (g) entry is a negative number (in parentheses) which reduces your reported gain. The Instructions for Form 8949 at irs.gov spell out the column (g) examples. Getting the sign wrong is a common error that makes the IRS think you owe more than you do.

Has anyone here dealt with AMT exposure from an ISO grant in the same company? In a buyout where ISOs also get cashed out, the spread at exercise is an AMT adjustment on Form 6251 line 2i unless you dispose of the stock in the same year you exercised. That can stack on top of the RSU and ESPP income in a bad way.

The poster mentioned RSUs and ESPP, not ISOs, but this is worth flagging for anyone reading with ISOs. The AMT basis is different from the regular basis so your Form 6251 and Schedule D interact. A CPA who knows equity comp is worth it if ISO AMT is in the picture.

Did the acquiring company give you any rollover options or was it strictly cash? Some buyouts let employees roll RSUs into acquirer equity, which could defer recognition. If yours was 100% cash there's nothing to defer, but if there was any stock component it might be worth checking whether an 83(b) election window is still open on restricted acquirer shares.

Raj F.

Author

100% cash, so no rollover option. But good to know for anyone who does get an equity component in their deal.

If your net capital loss from harvesting ends up exceeding your gains, you can only deduct a limited amount against ordinary income in a single year — the rest carries forward. Topic 409 on irs.gov and the Schedule D instructions cover the carryforward worksheet. Don't assume you can wipe out the whole RSU/ESPP income hit with losses alone if you don't have enough gains to offset.

This is an important ceiling to understand. The carryover isn't wasted, it just shifts to future years. But it won't help the tax bill that's due this April, so the other strategies in this thread matter more for immediate relief.

Are you working with a CPA or enrolled agent on this? The combination of ESPP basis corrections, accelerated RSU vesting, potential AMT exposure, and loss harvesting timing is a lot to coordinate in one return. A CPA who handles equity comp regularly will know the basis adjustment flow on Form 8949 and can make sure the W-2 income isn't double-counted.

Raj F.

Author

I've been trying to DIY it but I think you're right. I'm going to talk to an EA who specializes in tech comp. I feel like I understand the pieces better from this thread at least.

One last angle: if you have a traditional IRA and haven't contributed for this year yet, a deductible IRA contribution reduces AGI directly. Whether you can deduct it depends on whether you have a workplace retirement plan and your income level — the Form 1040 instructions and Publication 590-A point to the phase-out ranges. Worth running the numbers before year end even if you're not sure you qualify for the full deduction.