Does direct indexing to offset large capital gains from tech stock make sense?

Trying to figure out if direct indexing to offset large capital gains from tech stock make sense for my situation. I sold a significant block of shares in a single tech company this year — concentrated position I'd been holding for years, so nearly all of it is long-term gain. My broker is pitching me a direct indexing account to harvest losses going forward. The idea is that individual stock losses in the index would offset gains elsewhere. But I already have the gain locked in from the sale this year. The losses from direct indexing would only start accumulating after I open the account, right? So they can't go back and offset what I already realized. Am I understanding that correctly, or is there some structure where it could still help this year? Already meeting with my broker next week but want to go in informed.

40 comments

Your read is correct. Direct indexing generates losses going forward from when you open the account. It cannot retroactively offset a gain you already realized earlier in the same year — or any prior year. The harvested losses would appear on Form 8949 and flow to Schedule D in the year they're actually sold, which at minimum would be this year if you open the account now and harvest before December 31. So there's a narrow window to still make it work for this tax year, but only if the positions go into loss territory and you sell them before year end.

Elena J.

Author

That's the clarification I needed — so theoretically if I open an account this month and some positions drop, I could harvest and report those losses on this year's Form 8949 to offset the gain I already took. Worth looking into what the minimum funding timeline is.

Worth separating two questions: does it help this year, and does it help long-term? For this year, only losses harvested and sold before Dec 31 count. For future years, if you're continuing to hold tech or getting new equity compensation, having an ongoing loss-harvesting engine can keep chipping away at future gains. That carryforward situation under Schedule D is real — losses not usable in the current year carry to later years automatically per the Schedule D instructions.

The carryforward piece is underrated. Had a year where I couldn't use all my harvested losses and they just carried forward and offset gains the following year. Schedule D capital loss carryover worksheet made it straightforward to track.

Elena J.

Author

Is the carryforward applied automatically by the software or do you have to manually track it and enter it on the next year's Schedule D?

Tax software pulls it from the prior year's return if you're continuing in the same program. Otherwise you use the Capital Loss Carryover Worksheet in the Schedule D instructions — it tells you exactly how much carries forward based on line 16 of the prior year's Schedule D.

Went through almost this exact setup last year — concentrated tech position, then opened a direct indexing account. I uploaded my 1099-B and the account summary to taxr.ai and it mapped out which harvested losses were short-term vs. long-term, checked that none of the sales triggered wash sale rules against positions I held elsewhere, and showed me the net on Schedule D before I handed it to my CPA. The wash sale issue was the main thing I hadn't thought through carefully. If you hold the same or substantially identical stock elsewhere — including in a Roth IRA — and your direct indexing account sells at a loss, that loss can be disallowed. Something to watch.

Elena J.

Author

The wash sale angle with the IRA hadn't occurred to me at all. So if I still hold any of the same tech stock in my Roth and the direct indexing account sells something substantially identical at a loss, that loss gets disallowed?

Exactly right. Publication 550 covers this — a wash sale occurs if you or your spouse, or a corporation you control, buys substantially identical stock within 30 days before or after the loss sale, and that includes purchases in an IRA or Roth IRA. The disallowed loss doesn't even get added to your IRA basis — it's just gone.

One mechanical thing: in a direct indexing account you own the individual stocks, not a fund, so each position is its own lot with its own cost basis. That means your 1099-B at year end can be hundreds of rows on Form 8949. Some brokers report these as a single summary line under Exception 1 on Schedule D (line 1a for short-term or 8a for long-term) if there are no adjustments, but the moment you have a wash sale code or a basis correction, those affected rows have to go on Form 8949 individually with the right code in column (f).

The 1099-B from my direct indexing account was 340 lines last year. My tax software handled it fine via import but I would not want to enter that manually.

Something people miss: if the gain you already took was long-term, you need long-term losses to fully offset it at the same rate on Schedule D. Short-term losses offset short-term gains first; long-term losses offset long-term gains first. Direct indexing positions you just opened will have a short-term holding period until you've held them more than a year. So early harvests will generate short-term losses, which go into Part I of Form 8949, not Part II where your long-term gain lives.

Elena J.

Author

So the netting order means short-term losses I harvest this year would first net against any short-term gains I have, and only the net short-term loss would then offset long-term gains?

Right. The Schedule D netting process runs short-term against short-term and long-term against long-term first, then combines the results. If you end up with a net short-term loss and a net long-term gain, the short-term loss reduces the long-term gain. It's not a wash — it still helps — but it's not dollar-for-dollar against the same rate bucket.

The pitch from brokers on direct indexing usually emphasizes tax alpha but the actual benefit depends heavily on your bracket, what other gains and losses you already have, and whether you'll keep the account long enough to realize the benefit. If you're one-and-done with the tech concentration and don't expect big future gains, the ongoing fees might not pay off. Worth modeling the after-fee, after-tax numbers before committing.

Agreed. The fee drag on a direct indexing account compounds too. The loss harvesting has to outpace that drag, and in a trending-up market with low volatility you don't harvest much.

Are you still employed at the tech company or was this a one-time sale? If you're getting RSUs or options that vest going forward, you'll have ongoing ordinary income and potentially future capital gains, which changes the calculus significantly — ongoing loss harvesting has more future gains to absorb.

Elena J.

Author

Still vesting RSUs, so yes there will be ongoing income and future gains. That actually makes the long-term case for direct indexing stronger I think.

Then it's worth modeling seriously. Each RSU vest gives you shares with a cost basis set at the fair market value on the vest date — that's what shows as income — so your basis in those shares is that vest-date value you were taxed on, not zero. Future sales of vested shares at a gain are where harvested losses would apply going forward.

Has anyone compared direct indexing to just buying broad index ETFs at a loss and selling after 30 days? You could harvest the loss and then get back in without the wash sale problem if you use a different but not substantially identical fund. Seems simpler.

That's the classic tax-loss harvesting ETF swap strategy. It works but the amount you can harvest is limited by how much you have invested and how far it drops. Direct indexing harvests at the individual stock level so you can harvest losses even when the overall index is up — some stocks are down even in bull markets.

That makes sense. The granularity of individual stocks is the whole point.

Had a similar situation — large long-term gain from tech, opened a direct indexing account mid-year. I gave Taxr my 1099-B draft and asked it to flag any rows where the wash sale code W should appear in column (f) of Form 8949 that the broker might have missed, and cross-check the holding periods against the trade dates on the confirms. It flagged two positions where the holding period looked wrong. Those turned out to be short-term losses the broker had coded as long-term — would have gone in the wrong Part of Form 8949 and overstated short-term gains. Worth catching before filing.

Elena J.

Author

How easy was it to actually get the 1099-B into a readable format for that? I assume it was a PDF from the brokerage.

Just uploaded the PDF directly. It read the columns and trade dates without any reformatting on my end.

The holding period rule matters a lot here. Per Publication 550, for securities traded on an established market, your holding period starts the day after the trade date — not the settlement date. So if you're trying to push a position into long-term territory before year end, count from the trade date you bought, not when it settled.

Elena J.

Author

Good to know — so if I bought a position on December 15 of last year, the holding period clock started December 16, and I'd need to sell after December 15 this year (more than one year) to get long-term treatment?

Exactly. The day you dispose of it counts as part of the holding period, so a sale on December 16 this year would be more than one year from December 16 last year. The IRS instructions for Form 8949 and Publication 550 both describe this. Don't rely on what the brokerage labels it — verify the dates yourself.

Be careful with the wash sale rules if you're running multiple accounts — taxable brokerage, Roth, 401(k) if you have self-directed options. The rule applies across accounts you or your spouse control, including IRAs. Code W in column (f) of Form 8949 and the disallowed amount as a positive number in column (g) — but if the wash purchase was in an IRA, that disallowed loss just disappears entirely. It doesn't get added to IRA basis.

For the RSU side of this — each vest is a separate tax event. The income is ordinary, basis is set at vest, and when you eventually sell the shares your gain or loss is capital. If you're selling vested shares at a gain, that's exactly what direct indexing harvested losses can offset on Schedule D. I dropped my equity compensation summaries into Taxr and had it walk through which vest lots would produce short-term vs. long-term gain based on my planned sale dates — helped me sequence which lots to sell first to stay long-term where possible.

Elena J.

Author

That's exactly the sequencing question I've been trying to work out manually. Which vests are over a year old and which aren't, combined with the basis from each vest date.

The basis from each vest is whatever the company reported as income on that date — usually on your W-2 — and that becomes your cost basis for capital gain purposes when you sell. If you sell within a year of a vest, it's short-term. Over a year, long-term. Specific identification lets you choose which lots to sell first so you have some control over the character of the gain.

One structural point: direct indexing only makes sense in a taxable account. Inside an IRA or Roth there's no capital gains tax to offset so loss harvesting has no benefit. Keep the tax-loss harvesting in the taxable account and hold your highest-growth positions inside the Roth where gains aren't taxed on the way out.

This is the asset location piece. Putting the direct indexing sleeve in the taxable account and growth-oriented funds in the Roth is the standard setup for a reason.

If your gain is already locked in for this year and you can't harvest enough losses before December 31, your remaining option is estimated tax payments to avoid underpayment penalties — worth checking whether you've covered enough through withholding. On the investment side, any net capital loss remaining after offsetting all capital gains this year is limited in how much you can claim against ordinary income, with the rest carrying forward. The Schedule D instructions have the Capital Loss Carryover Worksheet for that calculation.

Elena J.

Author

Is there a threshold for the underpayment penalty or is any shortfall penalized?

The penalty rules turn on a safe harbor comparison — the instructions for Form 2210 spell out the specific tests. I don't want to quote a number here because the thresholds can shift; the form instructions are the right place to check for your filing status and situation.

The direct indexing pitch sounds compelling but make sure the account you're looking at actually harvests losses systematically and doesn't just hold the index passively. Some lower-fee offerings don't actively monitor and trigger harvests — they just hold the stocks and let you customize exclusions. The loss harvesting requires active monitoring of each individual position for loss opportunities throughout the year.

Also worth asking your broker: what happens when the direct indexing account drifts from the index benchmark significantly over time due to harvesting? Stocks sold at a loss aren't immediately repurchased (wash sale rules), so tracking error accumulates. That's a real trade-off. Some accounts manage it better than others.

The tracking error issue is why some people set a drift limit and stop active harvesting once the account diverges too far from the benchmark. Worth asking about the rebalancing policy.