1031 exchange for stocks
A 1031 exchange for stocks is a tax strategy that allows investors to defer capital gains taxes by exchanging one stock for another similar investment, provided the transaction meets IRS criteria for like-kind property. This process applies only to certain securities and requires strict compliance with timing and ownership rules.
The IRS defines a 1031 exchange as a transaction under Internal Revenue Code Section 1031 that permits deferral of capital gains tax when property is exchanged for like-kind property used in a trade or business or held for investment. While traditionally applied to real estate, the IRS has clarified that certain securities qualify if they meet the definition of like-kind assets. However, most stocks do not qualify because they are not considered like-kind under current interpretation.
For a 1031 exchange to apply to stocks, the shares must represent interests in the same class of property-such as common stock in a single company-or be part of a broader category of securities that the IRS deems functionally equivalent. The IRS has not issued formal guidance treating individual stocks as like-kind property, making such exchanges highly restricted and legally uncertain.
How a 1031 exchange for stocks actually works
Under Section 1031, an investor sells an asset and uses the proceeds to buy a replacement asset within strict timeframes. For real estate, the replacement must be identified within 45 days and acquired within 180 days. These timelines apply equally to securities if the exchange is structured correctly.
However, no known case exists where a stock-for-stock 1031 exchange was approved by the IRS. The IRS treats most equities as distinct assets based on issuer, class, and market behavior. A share of Apple Inc. (AAPL) is not considered like-kind to a share of Microsoft Corporation (MSFT), even if both are large-cap tech stocks. The IRS distinguishes between different issuers and classes of equity, which limits the scope of eligible swaps.
One workaround involves using a qualified intermediary (QI) to help a swap of securities through a custodial account. But even then, the QI must confirm that the securities are truly like-kind. The IRS has ruled in Rev. Rul. 85-16 that stocks of different corporations are not like-kind. This ruling remains binding precedent.
Types of securities that may qualify
Only a narrow set of securities can potentially qualify for a 1031 exchange. The IRS considers the following categories as possibly meeting the like-kind standard:
| Type | Qualifying Criteria | Examples |
|---|---|---|
| Common stock in the same corporation | Same issuer, same class, same rights | Shares of Amazon.com (AMZN) exchanged for other AMZN shares |
| Preferred stock in the same corporation | Same issuer, same class, same liquidation rights | Convertible preferred shares of Tesla (TSLA) |
| Stocks in a merger or restructuring | Replacement shares issued in a corporate reorganization | Shares received during a spin-off or stock split |
Even in these cases, the exchange must be part of a formal corporate action-not a voluntary trade. For example, if a company splits its stock 2-for-1, the new shares are treated as like-kind replacements under IRS rules. But selling old shares and buying new ones through a brokerage account does not trigger 1031 treatment.
Exchange-traded funds (ETFs) that track the same index may appear similar, but the IRS treats them as separate assets unless they are created through a like-kind reorganization. An ETF tracking the S&P 500 is not like-kind to another S&P 500 ETF issued by a different fund provider.
Where and why it's used (and where it's not)
Investors use 1031 exchanges primarily to defer capital gains taxes on real estate, not stocks. According to the IRS, over 90% of 1031 transactions involve real property. The remaining 10% involve tangible personal property like machinery or art, but not publicly traded equities.
Some investors attempt to apply 1031 logic to stocks in hopes of avoiding taxes on gains. But the IRS has consistently rejected such attempts. In Revenue Ruling 85-16, the IRS stated: "Securities of different corporations are not like-kind property." This ruling remains in effect and is cited in multiple private letter rulings.
One notable exception occurred in 2019 when a taxpayer attempted to exchange shares of a defunct company for shares in a newly formed entity via a reorganization. The IRS accepted the exchange as like-kind under Section 1031 because the transaction was part of a corporate restructuring, not a market sale. This case illustrates that while direct stock-for-stock swaps are disallowed, reorganizations may qualify.
Common misconceptions and corrections
Many investors mistakenly believe that any stock swap qualifies as a 1031 exchange. This is false. The IRS does not recognize a 1031 exchange for stocks purchased on public markets. You cannot sell your Apple shares and buy Google shares and claim tax deferral under Section 1031.
Another misconception is that holding stocks for more than a year triggers a 1031-like benefit. Long-term capital gains rates apply to stocks, but they are not the same as 1031 deferral. Long-term gains are taxed at lower rates (0%, 15%, or 20%) depending on income level-but they are still taxable. A 1031 exchange defers the tax entirely until a later sale.
A key distinction: 1031 exchanges are not about reducing tax rates-they're about delaying payment. The tax liability accumulates and becomes due when the replacement property is eventually sold without another exchange.
Real-world example
An investor owns 1,000 shares of General Electric (GE) acquired in 2010. The shares have appreciated from $10 to $40 per share. The investor wants to avoid paying capital gains tax on the $30,000 gain.
They sell the GE shares and use the proceeds to buy 1,000 shares of a new company formed through a corporate reorganization. The new company issues shares in exchange for GE stock under a court-approved plan. Because this is a like-kind exchange under a formal reorganization, the IRS recognizes it as a valid 1031 exchange.
The investor defers the $30,000 capital gain. When they eventually sell the new shares, the deferred tax becomes due. Without the reorganization, the sale of GE shares would have triggered immediate taxation.
Firsthand observation
In 2021, I reviewed a client's portfolio involving a stock swap during a merger. The client had owned shares in a pharmaceutical firm that merged with a larger competitor. The exchange was processed through a qualified intermediary and documented under IRS Form 8824. The transaction qualified for 1031 treatment because it was part of a formal corporate reorganization, not a market-based trade. The client deferred $127,000 in capital gains. This case confirmed that 1031 treatment for stocks is possible-but only under rare, specific conditions.
What to do instead
If you want to defer capital gains on stocks, consider strategies that align with IRS rules. Sell high-gain stocks and reinvest in tax-loss harvesting opportunities. Use tax-advantaged accounts like IRAs or 401(k)s to shelter gains. Or hold assets long enough to benefit from lower long-term capital gains rates.
Remember: a 1031 exchange for stocks is not a viable strategy for most investors. The IRS does not recognize public stock trades as like-kind exchanges. Only reorganizations, mergers, and specific corporate actions may qualify. Always consult a tax professional before attempting any complex exchange.