Wash sale
A wash sale is a sale of a security at a loss and repurchase of the same or substantially identical security shortly before or after. Losses from such sales are not deductible in most cases under the Internal Revenue Code in the United States. Wash sale regulations disallow an investor who holds an unrealized loss from accelerating a tax deduction into the current tax year, unless the investor is out of the position for some significant length of time. A wash sale can take place at any time during the year, or across year boundaries.
In the United Kingdom, a similar practice which specifically takes place at the end of a calendar year is known as bed and breakfasting. In a bed-and-breakfasting transaction, a position is sold on the last trading day of the year to establish a tax loss. The same position is then repurchased early on the first session of the new trading year, to restore the position. The term, therefore, derives its name from the late sale and early morning repurchase.
Wash sale rules don't apply when stock is sold at a profit. A related term, tax-loss harvesting is "selling an investment at a loss with the intention of ultimately repurchasing the same investment after the IRS's 30 day window on wash sales has expired." This allows investors to lower their tax amount with the use of investment losses. Wash sales and similar trading patterns are not themselves prohibited; the rules only deal with the tax treatment of capital losses and the accounting of the ongoing tax basis. Tax rules in the U.S. and U.K. defer the tax benefits of wash selling at a loss. Such losses are added to the basis of the newly acquired security, essentially deferring the tax benefits until a non-wash sale occurs, if ever.
Identification
According to the Merriam-Webster Legal Dictionary, the legal definition is "a sale and purchase of securities that produces no change of the beneficial owner." The IRS broadened its definition of wash sales in 1993. In the United States, wash sale laws are codified in "26 USC § 1091 - Loss from wash sales of stock or securities." The corresponding treasury regulations are given by CFR 1.1091-1 and 1.1091-2.Under Section 1091, a wash sale occurs when a taxpayer sells or trades stock or securities at a loss, and within 30 days before or after the sale:
- Buys substantially identical stock or securities,
- Acquires substantially identical stock or securities in a fully taxable trade,
- Acquires a contract or option to buy substantially identical stock or securities, or
- Acquires substantially identical stock for an individual retirement account.
Consequences
In the United States, the wash sale rule has the following consequences:- The taxpayer is not allowed to claim the loss on the sale.
- Basis Adjustment: The disallowed loss is added to the cost basis of the replacement stock.
- Holding Period: The holding period for the replacement stock includes the holding period of the stock sold.
Basis adjustment
After a sale is identified as a wash sale and if the replacement stock is bought within 30 days before or after the sale then the wash sale loss is added to the basis of the replacement stock. The basis adjustment preserves the benefit of the disallowed loss; the holder receives that benefit on a future sale of the replacement stock. However, if the replacement shares are in a tax-advantaged account, such as an IRA, the disallowed loss cannot be added to the basis and there is no benefit for the loss. The identification of a wash sale and adjusting the basis of the replacement stock is an iterative process. Thus, the sale of the replacement stock can also be identified as a wash sale if it meets the above criteria. Because of the basis adjustment in taxable accounts, the wash sale rule usually does not have a significant impact there. In most cases, it simply means the benefit will be reflected on a later report.Holding period
When a wash sale occurs, the holding period for the replacement stock includes the period you held the stock sold.Tax loss harvesting
Tax loss harvesting is a technique for "generating" capital losses. It occurs when an investor sells a security that has depreciated in value. CBS News describes tax-loss harvesting specifically as "selling an investment at a loss with the intention of ultimately repurchasing the same investment after the IRS's 30 day window on wash sales has expired." This allows investors to lower their tax amount with the use of investment losses. Tax-loss harvesting can be done throughout the fiscal year, allowing investors to "offset capital gains with capital losses." If an investor has more capital losses than gains in a year, that year they can use up to $3,000 as a deduction to "offset ordinary income," with the remainder carrying over into future years if unused. Loss harvesting defers taxes, but doesn't eliminate them, and is essentially receiving a loan without interest from the federal government, assuming marginal tax rates are the same. If marginal rates are different, then there can be additional tax savings or even a tax penaltyMost simply, if "tax-loss harvesting is not done properly, it will create a wash-sale that will eliminate the tax benefits of the buying and selling." The investor can employ a number of techniques to avoid triggering the wash sale rule.
- The investor can wait 30 days to repurchase the security
- The investor can purchase a security that is similar to the original, but that does not meet the IRS's definition of "substantially identical". For example, an investor can sell an ETF and buy another with similar investment objectives.
Investment companies
The IRS has published no exact definition of what constitutes a "substantially identical" security. Therefore, it is not clear whether or not the securities of different investment companies can be "substantially identical", even if their investment objectives are identical. As a result, if an investor trades in and out of ETF's or mutual funds with almost identical holdings, some have held that it does not trigger the wash sale rule.For example, State Street's SPDR S&P 500 ETF and iShare's Core S&P 500 ETF both track the S&P 500. If an investor purchases shares in SPY and the market price declines, the IRS has not provided guidance on whether the investor can sell their shares in SPY, purchase shares in IVV, and claim a capital loss without triggering the wash sale rule, despite the fact that the two ETF's have nearly identical returns.
Methods of optimal tax loss harvesting
Mean-variance portfolio optimization
With an initial set of portfolio weights and benchmark weights , it is possible to do TLH within the confines of mean-variance optimization by developing an objective function that maximizes the difference between tax alpha and the portfolio's tracking error:where is a penalty term for excess tracking error and is the covariance matrix of asset returns. For each asset that is bought/sold, it is necessary to include the constraints:
With this formulation, the TLH optimization may be applied within a mean-variance framework. The solution is readily computed using quadratic programming.