An index fund can finish the year up while some of the stocks inside it finish down. If you own the fund, you can only sell the fund, so you can't harvest those losses. Direct indexing means owning the individual stocks of an index in your own account, so the stocks that are down can be sold to realize the loss and replaced with similar ones.

We walk through a hypothetical $500,000 account and both sides. The case for it is harvesting losses and leaving your employer out of your index. The case against starts with cost. Direct indexing generally costs more than a low-cost index fund, and your return can drift from the index. A lower cost basis on the replacement stock can mean a bigger gain when you sell later. If the index holds your employer's stock, an RSU vest within 30 days of a loss sale can trigger the wash sale rule. And the losses can dry up if the market rises for several years.

To go further, our 2026 Year-End Tax Checklist for RSU and ESPP Holders covers harvesting losses before December 31 without tripping a wash sale. If company stock is most of what you own, If I Had Too Much Company Stock, I'd Do These 4 Things covers 4 ways to unwind it.