How to diversify concentrated company stock with large unrealized capital gains without getting crushed by taxes

I've been at my company for 11 years and somewhere along the way my RSUs and ESPP shares turned into about 70% of my entire net worth, all in one stock. The unrealized gain on most of it is massive — cost basis on the oldest lots is basically zero compared to current price. I know I need to diversify but every time I look at selling I freeze because the Schedule D hit would be enormous. I've looked at a few things — harvesting losses elsewhere to offset, spreading sales over multiple years — but I don't have much in losses to harvest and the gains are so concentrated in a few lots. Has anyone actually worked through how to diversify concentrated company stock with large unrealized capital gains in a tax-efficient way? What actually moves the needle here?

32 comments

Schedule D is what it is, but the question is how much you sell per year versus what other income you have. Long-term capital gains rates depend on your total taxable income for the year, so the bracket you land in matters a lot. If you can keep total income below the threshold where the highest rate kicks in, you sell into a lower rate. The Form 1040 instructions and Publication 550 at irs.gov walk through how the rate tiers work. Spreading sales across tax years is real, not just a delay tactic.

Grace S.

Author

Yeah the multi-year spread is what I keep coming back to. The problem is I want to be diversified now, not in 10 years. But I guess some progress each year beats the alternative.

Charitable giving strategies come up a lot in this situation. If you donate appreciated shares directly to a donor-advised fund or a qualified charity instead of selling, you generally don't recognize the capital gain on the donated shares, and you get a charitable deduction on Schedule A for the fair market value. The IRS rules on this are in Publication 526 under noncash contributions. You'd still need a qualified appraisal in some cases, but for publicly traded stock it's simpler.

Grace S.

Author

I do give to charity. Never thought about giving the actual shares instead of cash. That's worth looking into seriously.

The donor-advised fund route is actually pretty smooth for public stock. You transfer the shares, the fund sells them with no gain recognized by you, and you direct the grants over time. The deduction limits as a percentage of AGI vary by the type of organization, so check Publication 526 or talk to whoever manages the DAF.

One thing that matters a lot before anything else: confirm the holding period on each lot. For RSUs, the holding period starts on the vesting date, not the grant date. If some lots vested recently they might still be short-term, and selling those is a very different conversation from selling lots you've held more than a year. Pull your 1099-B from prior years and your brokerage's lot detail to get this straight before you model anything.

Grace S.

Author

Good call. My broker shows each lot's vesting date and I think everything more than a year old is long-term. The recent vests are small so the short-term exposure is minor.

I uploaded my brokerage lot detail and my prior year Schedule D to taxr.ai and had it sort every lot by holding period and estimated gain, then rank which lots to sell first to minimize taxes across a two-year plan. It flagged two lots where the basis my broker was showing didn't match what I had from the Form 3922 for ESPP shares. Really useful to see it mapped out like that before I did anything. The long-term lots with the highest basis are obvious starting points — take the gain where the spread is smallest first.

Grace S.

Author

The lot-by-lot ranking is exactly the kind of thing I needed. I've been looking at the position as one block when really each lot is a different problem.

Exchange funds are sometimes mentioned for this. The basic idea is you contribute appreciated stock to a partnership-structured fund alongside other investors with concentrated positions, hold for the required period, and exit with a diversified basket of stocks without triggering gain at contribution. These are private, usually only accessible to qualified investors, and have their own tax rules under the partnership provisions. Not a DIY move — you'd want a CPA or tax attorney who knows these structures before going near one.

The holding period requirement and the "qualified investment" rules inside exchange funds are strict. If the structure doesn't meet them the whole deferral can unwind. Definitely not something to do without a tax attorney reviewing the documents.

Have you looked at whether your company has a 10b5-1 plan option? Not a tax strategy by itself but it lets you set up a scheduled selling plan in advance so you're not trying to time the market or run into insider trading issues while you diversify. The tax treatment is the same — gain is gain — but it removes some of the behavioral freeze.

Grace S.

Author

I do have that option. HR mentioned it last year. I should actually follow through on setting one up instead of just leaving it.

Loss harvesting from other accounts is still worth doing even if the losses are smaller than your gains. Net long-term losses offset long-term gains dollar for dollar on Schedule D before you get to the rate calculation. Even partial offsets matter. If your spouse has a brokerage account too, those losses flow through to Schedule D on a joint return as well. Just watch the wash sale window — 30 days before and after a sale at a loss, don't buy the same or substantially identical security.

Worth noting the wash sale rule also applies if your IRA or Roth IRA buys the substantially identical shares in that window. The disallowed loss doesn't get added back to the new shares' basis in that case either — it's just gone. Publication 550 covers this.

Grace S.

Author

I always forget the IRA wash sale trap. Good reminder. I'll check if any of my harvesting candidates have auto-reinvestment running in my Roth.

Installment sales don't apply here since you're selling on a public exchange — that's for selling assets directly to a buyer over time. Just want to make sure nobody goes down that path expecting to defer gain on stock sales.

Qualified opportunity zone funds are another deferral tool — you roll the realized gain (not the shares, you have to sell first and reinvest the gain amount) into a QOF within the required window and defer the original gain. There are holding period rules for the QOF investment itself. This doesn't eliminate the gain from your concentrated stock but it defers recognition and potentially reduces it depending on how long you hold the QOF investment. The IRS opportunity zone pages explain the basic mechanics; Form 8949 is still used for the sale.

QOZ deferral rules have changed since the original legislation and the current form of the deferral is different from what was available in earlier years. Check the current Form 8949 instructions and talk to a CPA who knows this — it is not a simple plug-and-play.

Before I started selling any lots I had Taxr read through my actual 1099-B and the lot detail my broker sent. It listed every lot with the holding period, the basis, the estimated gain, and which box on Form 8949 each transaction would go under based on whether basis was reported to the IRS. That alone saved me from reporting two lots in the wrong part — one was short-term and I would have put it in Part II. The column (f) code list in the Form 8949 instructions is also worth reading.

Grace S.

Author

The Part I versus Part II distinction is easy to mess up when you have a lot of lots. Good to know that level of detail is checkable before you file.

If your company stock is in a 401(k) or other employer plan, net unrealized appreciation rules might apply. NUA lets you take the company stock out of the plan in a lump-sum distribution, pay ordinary income tax only on your cost basis inside the plan, and then pay long-term capital gains rates on the appreciation when you sell — even if you sell immediately. It's a specific set of rules and the distribution has to qualify. A CPA or enrolled agent who handles retirement distributions would need to run the numbers.

NUA is underused and genuinely useful when the basis inside the plan is low. The long-term rate applies to the NUA portion regardless of holding period after distribution, which is unusual. Worth modeling if any of this stock is inside a plan.

Collaring the position — buying a put and selling a call at different strikes — lets you limit downside without selling, but the tax treatment is complicated. If the collar is a "straddle" under the tax rules it can suspend your holding period and cause constructive sale issues if structured wrong. Constructive sale rules under IRC 1259 are real and the IRS looks at these. Don't do this without a tax attorney.

When I was mapping out which lots to sell and in which years, I uploaded my brokerage statements and a draft of what I planned to sell to Taxr and it built out a year-by-year Schedule D projection — showed the short-term and long-term net on each part, flagged where I had a wash sale risk on two securities, and listed the Form 8949 column (g) adjustments I'd need. That draft gave me something concrete to bring to my CPA instead of going in cold.

Grace S.

Author

Going in with an actual draft instead of just a question is so much smarter. I've wasted CPA time before just getting oriented on basics I could have figured out first.

One structural thing: if you have ISOs that haven't been exercised, the AMT calculation changes the picture significantly. The spread at exercise — fair market value minus option price — is an adjustment on Form 6251, line 2i, even though you don't owe regular income tax at exercise. If you exercise and sell in the same year there's no AMT adjustment, but holding after exercise to get long-term rates can trigger significant AMT. Model this before exercising.

Grace S.

Author

These are all RSUs and ESPP shares, no ISOs left, so the AMT piece doesn't apply to me right now. But useful for others in the thread.

Form 6251 AMT math on ISOs catches a lot of people off guard. The year of exercise you can owe AMT even if you haven't sold anything. The instructions for Form 6251 have a worksheet for this.

Publication 550 at irs.gov is worth reading through the capital gains chapter before you do any of this. It covers holding periods, what counts as a sale, basis adjustments — the whole framework. The rules interact in ways that aren't obvious, especially once you have wash sales, charitable transfers and multi-year sales all happening at once.

To pull a few threads together: the practical order I've seen work is (1) sort all lots by holding period and basis using your brokerage's lot detail, (2) identify long-term lots with the smallest unrealized gain to sell first, (3) match any available losses on Schedule D, (4) layer in charitable transfers of high-gain lots to a DAF if you give to charity, (5) model the remaining sales across years based on your projected total income. Each step changes what the next one looks like.

Grace S.

Author

This is basically the checklist I was looking for. Steps 1 and 4 are what I need to work on first. Thank you.