# Wash Sale: Definition, How It Works, and Purpose

> **Definition**
>
> A transaction where an investor sells a losing security and purchases a similar one 30 days before or after the sale to try and reduce their overall tax liability.

## What Is a Wash Sale?

A wash sale is a transaction in which an investor sells or trades a security at a loss and purchases a substantially similar one "30 days before or after the sale." This is a rule enacted by the [Internal Revenue Service (IRS)](https://www.investopedia.com/terms/i/irs.asp) to prevent investors from using capital losses to their advantage at tax time.

The wash sale rule applies to stocks, contracts, options, and all other types of securities and trading.

### Key Takeaways

*   A wash sale occurs when an investor purchases a security 30 days before or 30 days after selling an identical or similar security.
*   The IRS instituted the wash sale rule to prevent taxpayers from using the practice to reduce their tax liability.
*   Investors who sell a security at a loss cannot claim it if they have purchased the same or a similar security within 30 days (before or after) the sale.

![Wash Sale Rule](https://www.investopedia.com/thmb/CCQfyC0quFICj65jbdIt6b1q8qc=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/washsalerule-Final-7afbfc0a1f2f47f1a5495cc1aca09923.png)

*— Theresa Chiechi / Investopedia*

## Understanding Wash Sales

Many countries’ tax laws allow [investors](https://www.investopedia.com/terms/i/investor.asp) to claim a specific amount of capital losses on their taxes as an income reduction. In the United States, you can claim up to $3,000 or your total net loss, whichever is less. If you have more than $3,000 in capital losses, you can carry the additional loss forward into the following years.

The ability to carry losses led to investors inventing a loophole where they would plan to sell a losing security and buy a substantially similar one again within a short period. This allowed them to claim a [capital loss](https://www.investopedia.com/terms/c/capitalloss.asp) and use that loss to mitigate tax liabilities.

To prevent the abuse of this incentive, the Internal Revenue Service (IRS) instituted the wash sale rule in the U.S. (In the United Kingdom, the practice is known as bed-and-breakfasting, and the tax rules in the U.K. have an implementation similar to the wash sale rule). The law states that if an investor buys a security within 30 days before or after selling it, any losses made from that sale cannot be counted against reported [income](https://www.investopedia.com/terms/i/income.asp). This effectively removes the incentive to do a short-term wash sale.

### How It Works

Generally, a wash sale has three parts.

1.  An investor notices they are in a losing position, so they close it by selling the stock or exiting a trading position.
2.  The sale allows them to take a loss that they can legally claim on their tax returns as a reduction of their earnings for that year, which reduces their total [tax liability](https://www.investopedia.com/terms/t/taxliability.asp).
3.  The investor will look to purchase the security [at or below the price](https://www.investopedia.com/terms/b/bond-washing.asp) at which they sold it—if the purchase occurred 30 days before or after the sale, it is considered a wash sale, and the loss cannot be claimed.

> **Important**
>
> Day traders, especially pattern day traders—those who execute more than four day trades over a five-day period in a margin account—may encounter wash sales regularly. The wash sale rule still applies to these traders. The tax implications for day traders are complex, so it’s best to consult a tax professional if you’re day trading.

## Wash Sale Example

Assume an investor has a $15,000 capital gain from the sale of ABC stock. They fall in the highest [tax bracket](https://www.investopedia.com/terms/t/taxbracket.asp) and must pay a 20% capital gains tax of $3,000. But let’s say they sold XYZ security for a loss of $7,000. The net capital gain for tax purposes would be $15,000 - $7,000 = $8,000, which means they’ll have to pay only $1,600 in [capital gains tax](https://www.investopedia.com/terms/c/capital_gains_tax.asp). Notice how the realized loss on XYZ reduces the gain on ABC, reducing the investor’s tax bill.

However, if the investor repurchases XYZ stock—or a stock [substantially identical](https://www.investopedia.com/terms/s/substantiallyidenticalsecurity.asp) to XYZ—within 30 days of the sale, the above transaction is counted as a wash sale, and the loss is not allowed to offset any gains.

### Special Considerations

The IRS does not ordinarily consider bonds and preferred stock of an issuing company to be substantially identical to the company’s common stock. However, there may be circumstances where preferred stock, for example, may be considered substantially identical to the common stock.

This would be the case if the preferred stock is convertible into common stock without any restriction, has the same [voting rights](https://www.investopedia.com/terms/v/votingright.asp) as the common stock, and trades at a price close to the conversion ratio.

> **Fast Fact**
>
> Per Revenue Ruling 2008-5, individual retirement account (IRA) transactions can also trigger the wash sale rule. If shares are sold in a non-retirement account, and substantially identical shares are purchased in an IRA within 30 days, the investor cannot claim tax losses for the sale, nor is the basis in the individual’s IRA increased.

## Reporting a Wash Sale Loss

The good news is that any loss realized on a wash sale is not entirely lost. Instead, the loss can be applied to the [cost basis](https://www.investopedia.com/terms/c/costbasis.asp) of the most recently purchased substantially identical security. Not only does this addition increase the cost basis of the purchased securities, but it also reduces the size of any future taxable gains as a result.

Thus, the investor still receives credit for those losses, but at a later time. Also, the holding period of the wash sale securities is added to the holding period of the repurchased securities, which increases an investor’s odds of qualifying for the 15% favorable tax rate on long-term capital gains.

> **Tip**
>
> Tax-loss harvesting can inadvertently lead to wash sales if not carefully managed. Tax-loss harvesting is the strategy of selling securities at a loss to offset a capital gains tax liability elsewhere and then buying back a replacement security to maintain the existing portfolio’s overall composition. The objective is to lower your overall tax bill by realizing those losses. However, if you’re not careful about how you replace the securities you’ve sold, you can trigger the wash sale rule. To avoid this, investors often look for alternative investments that are similar but not substantially identical.

## What Triggers the Wash Sale Rule?

The wash sale rule is triggered if, 30 days before or 30 days after you sell a security at a loss, you buy back a substantially similar security.

## Is a Wash Sale Window 30 or 60 Days?

A wash sale has a 60-day window, from 30 days before the sale to 30 days after the sale.

## Is It OK to Have Wash Sales?

It isn’t illegal to buy a substantially similar security 30 days before or after selling one, but you’re not allowed to deduct any losses incurred from the sale and purchase to offset your taxable income.

## The Bottom Line

A wash sale occurs when an investor sells a security at a loss and then purchases the same or a substantially similar security within 30 days, before or after the transaction. This rule is designed to prevent investors from claiming capital losses as tax deductions if they reenter a similar position too quickly. Wash sales are not illegal but have negative tax implications: Losses from such sales cannot be used to offset gains in the same [tax year](https://www.investopedia.com/terms/t/taxyear.asp).

However, these losses can be added to the cost basis of the newly purchased security, affecting future gains. This rule is relevant to all types of securities and trading, and it’s particularly significant for day traders and investors looking to use capital losses to mitigate tax liabilities. Understanding and navigating the wash sale rule is crucial for effective tax planning and investment strategy.  

> **Article Sources**
>
> 1.  Internal Revenue Service. “[Publication 550, Investment Income and Expenses](https://www.irs.gov/pub/irs-pdf/p550.pdf).” Page 87.
>     
> 2.  Internal Revenue Service. “[Topic No. 409, Capital Gains and Losses](https://www.irs.gov/taxtopics/tc409).”
>     
> 3.  Gov.U.K., HM Revenue & Customs. "[Capital Gains Manual: CG13350 - Bed and Breakfasting](https://www.gov.uk/hmrc-internal-manuals/capital-gains-manual/cg13350)."
>     
> 4.  Internal Revenue Service. “[Rev. Rul. 2008-5](https://www.irs.gov/pub/irs-drop/rr-08-05.pdf).”