In 2026, many investors may find themselves looking for solutions to address their capital gains. This could be the result of Qualified Opportunity Funds that deferred the recognition of their capital gain until Dec. 31, 2026, or the past three years of double digit returns in the stock market. From 2023 to 2025, the S&P 500 index had a total return of 26.4%, 25.0%, and 17.9%, respectively. Furthermore, the most significant contributors to those returns have been a handful of large technology companies (aka the “Magnificent 7”). While this concentration may have created a small fortune, diversification can help maintain it. But this comes at a cost: a capital gain. This type of capital gain dilemma is not new, and not every solution works best (in all cases). All facts and circumstances need to be considered.

Commonly Deployed Strategies

Exchange funds, which utilize nonrecognition rules for partnerships under IRC § 721, can provide diversification, albeit after a seven year lockup [IRC §§ 704(c)(1)(B) and 737]. Currently, these funds may put investors on a waitlist due to the amount of demand from investors looking to contribute to the same tech names. Qualified Opportunity Zone Funds can provide gain deferral, but the new tranche does not start until Jan. 1, 2027. If an investor is charitably inclined, they may consider donating positions with large, unrealized gains or they may consider a Charitable Remainder Trust (CRT). A CRT can allow one to immediately diversify their investment undiminished by tax under IRC § 664(c)(1) and then recognize the capital gain as distributions are received from the CRT. Holding the position and hedging with options (i.e., collars, protective puts) is another strategy to reduce downside risk and increase income but it can also reduce any upside on those positions.

Direct indexing is a common way to harvest losses to offset capital gains, but the loss generating ability in direct indexing deteriorates over time. This has given rise to the use of longshort portfolios to renew the tax loss generating ability of those accounts. These two strategies tend to go hand in hand and may be considered by many investors in 2026. This article will discuss how they work and highlight some tax implications to consider.

Direct Indexing

Direct indexing that incorporates tax loss harvesting has become a much more recognized strategy for taxable portfolios in recent years. An investor purchases individual stocks that make up a particular index (e.g., S&P 500). These accounts can be funded in kind, but cash is generally needed and ideal to help amplify the accounts loss generating ability. Once an investor has purchased a majority of the roughly 500 companies within the S&P 500, quantitative strategies are used to automate and optimize tax-loss harvesting while navigating the wash sale rules under IRC § 1091(a).

A taxpayer that is not a dealer in stock or securities can realize a loss from one of the many positions in the direct indexing strategy account. In order to realize that loss, the taxpayer cannot have acquired substantially identical stock or securities 30 days before and 30 days after the sale (a 61-day window). If the sale runs afoul of the wash sale rules, the loss is disallowed but not permanently lost. Instead, IRC § 1091(d) adds the disallowed loss to the cost basis of the newly acquired (substantially identical) stock. It is important to note that the loss is effectively lost if the newly acquired positions are purchased within an IRA. The wash sale also considers positions in one’s IRA (see Revenue Ruling 2008-5). Keeping all of one’s investments at one custodian makes the wash sale rules easier to monitor across other taxable accounts, IRAs (Revenue Ruling 2008-5), and even grantor trusts.

The primary purpose of this investment strategy is to track an index while also harvesting available losses. It is not ideal to have positions sitting in cash for 31 days, waiting to be redeployed into the same position. Instead, the sales proceeds from the loss are reinvested in a secondary position that should provide comparable exposure to help track the desired index (but is not substantially identical). When done correctly, capital losses can be utilized to offset any capital gains, and the account provides performance comparable to the desired index.

This investment strategy can also be done in a trust. Certain grantor trusts could provide meaningful tax savings. Let’s assume Violet creates an irrevocable trust that is drafted as a grantor trust for income tax purposes, and the power used to make it a grantor trust is Violet’s power of substitution to re-acquire trust property by substituting property of equivalent value [IRC § 675(4)(c)]. Violet could exercise this “swap power” and exchange property like cash (or other assets with a higher basis) with the low basis assets of the irrevocable trust. This has the additional benefit of moving low basis assets into Violet’s taxable estate so that they get a step-up in basis when she dies under IRC Section 1014(a).

This is considered a “long-only strategy,” with the expectation that the account should appreciate with the index it tracks. Without additional inflows/dividends, direct indexing that incorporates a tax-loss harvesting program will reducethe ability to generate losses over time. In a growing market, the positions will grow and leave little flexibility in the portfolio to harvest losses, also known as “ossification.” This may lead the investor to consider a different investment strategy.

Long/Short Portfolios

While direct indexing takes a long-term view of tracking an index, long/short goes further by incorporating short positions. These portfolios are designated first by the percentage that is long, followed by the percentage that is short and net to 100%. A common strategy is 130/30, which means that 130% is invested long and 30% is invested short, providing gross market exposure of 160%. While direct indexing was invested 100% long, long/short uses margin to invest the additional 60%. The investment in excess of the owner’s funds (i.e., the amount above 100%), is frequently called the “extensions.” While 130/30 is a popular structure, an account could also be something as high as 200/100. The use of that much leverage could create sizable capital losses, but care should be taken to understand the ramifications of using that much margin (e.g., “Quant Quake” of 2007).

Not only can the 30% borrowed for additional long positions provide additional cost basis for harvesting losses, but this strategy may also provide capital losses from the short positions if markets go up. Therefore, losses may be available if markets go up or down, making the strategy perform well in turbulent markets. The 30% going long and the 30% short (both purchased on margin) effectively neutralize each other so that the beta is 1.0 (i.e., it tracks the account’s desired market index). CPAs may see many investors want to incorporate a long/short portfolio for a direct indexing strategy that has significantly lost the ability to harvest losses.

The long/short strategy also brings back into focus “shorting against the box.” In a short sale, investors borrow securities and then sell them (the sales proceeds). When the short sale is later closed out, the investor has to replace the borrowed security (the cost basis). If prices decline, the investor has a profit. Since the Taxpayer Relief Act (TRA) of 1997, taxpayers will likely avoid short sales on positions that they already own in their account (i.e., in the box). In the past, entering into a short sale for positions that one already owned would ostensibly lock in the value from the sale of the borrowed shares without any gain recognition. Since the 1997 TRA, however, shorting against the box creates a constructive sale, triggering capital gains under IRC § 1259(c)(1) (A). The portfolio managers of these long/short portfolios should take into consideration all of a taxpayer’s outside positions.

The borrowing used in these long/short strategies create investment interest deductions, and the payments in lieu of dividends create investment interest expense. This expense occurs when borrowed shares that have been sold issue dividends. In order to make the lender of the security whole, payments are made to recognize dividends that were not received. These payments can be treated as an investment interest expense deduction if the short sale is held open for more than 45 days. If it is held for 45 days or less, there is no deduction, but the cost basis is increased by such amount [see IRC § 263(h)].

While direct indexing usually provides a step-up in basis for long-term investors if held until death, short positions that are borrowed are therefore not owned and fall outside of Section IRC 1014(a). There is no step-up (or down) in basis at death. When the short sale is closed out after death, the estate or heirs will recognize any gain or loss.

Long/short is not a new strategy; it was commonly utilized with hedge funds in the past. But the constructive sale rule makes it crucial that it is implemented within a separately managed account (SMA), which can provide the customization needed to avoid shorting against the box. CPAs are in a great position to help investors with their tax compliance surrounding these rejuvenated portfolios.

David M. Barral, CPA/PFS, CFP, MS (Tax), is a senior vice president and senior wealth advisor at the Northern Trust Company in New York City and an adjunct instructor in NYU’s MS in Financial Planning Program.
Editor’s Note: This version includes minor updates and edits incorporated after the print edition.