Wash-Sale Rule: What it is and How to Avoid | The Motley Fool (2024)

It's not uncommon for investors who own stocks or securities that have lost value to sell them in order to take advantage of the losses for tax reasons. It's not a bad idea, especially if it's a stock you want to sell anyway; you can use the loss to offset capital gains or even, to some extent, offset your taxable income from other sources, such as regular earnings.

Wash-Sale Rule: What it is and How to Avoid | The Motley Fool (1)

Image source: The Motley Fool

But what if it's a stock you still like, and you don't really want to sell? Can't you just sell it, harvest the loss, and then buy it back immediately? In a word, no. This is precisely what the wash-sale rule exists to prevent: harvesting tax-loss benefits on an investment you don't intend to exit.

What is a wash sale?

Under the wash-sale rules, a wash sale happens when you sell a stock or security for a loss and either buy it back within 30 days after the loss-sale date or "pre-rebuy" shares within 30 days beforeselling your longer-held shares.

In either case, the loss is not considered realized for tax purposes, with the sale and subsequent (or prior) purchase "washing" one another out. This rule is designed to prevent people from selling stock to just to claim the tax benefit, without intending to exit the investment.

Again, the rule applies to a 30-day period before and after the sale date to prevent your buying the stock "back" before it's even sold.

Wash-sale rule examples

Let's say you own 100 shares of XYZ Corp with a cost basis (what you paid for them) of $10,000, and you sell them on June 1 for $3,000. That works out to a $7,000 loss, and if you own the shares in a taxable brokerage account, you can claim that loss when you file your taxes.

However, if you were to rebuy shares anytime between June 2 and July 1, then the sale is considered a wash sale, and the loss doesn't qualify as a taxable loss. It works the same way if you buy shares within 30 days before your sale as well; in this case, if you bought shares equal to what you sold on June 1 anytime on or after May 2, then it would "wash out" your taxable loss.

What happens if you buy fewer shares?

A key point about wash sales is that they work out at 1:1 for each share you repurchase. Using the example above, if you repurchased 50 shares in that 30-before-to-30-after period, it would wash out 50 shares of the taxable loss.

Wash-sale rules

Here is how the Internal Revenue Service defines a wash sale, directly from IRS Publication 550:

A wash sale occurs when you sell or trade stock or securities at a loss and within 30 days before or after the sale you:Buy substantially identical stock or securities,Acquire substantially identical stock or securities in a fully taxable trade,Acquire a contract or option to buy substantially identical stock or securities, orAcquire substantially identical stock for your individual retirement arrangement (IRA) or Roth IRA.

Let's summarize: A wash sale isn't solely about purchasing stocks; it can also involve acquiring options to buy stock. Moreover, the rule also counts if you buy identical shares in a different account, including a traditional or Roth IRA. In other words, you can't harvest a tax loss in your taxable account if you purchase shares within the window that creates a wash sale, even in a different account (including retirement accounts).

One final note: Wash-sale provisions work on shares that you sell for a loss, but there are no corresponding wash-sale rules for stock that you sell at a gain. That is, if you sell stock for a gain and buy it right back, you must still report the entire gain.

Related investing topics

What Are the 11 Stock Market Sectors?The larger stock market is made up of multiple sectors you may want to invest in.
Upcoming Earnings ReportsLearn about why earnings reports matter and what upcoming earnings reports investors should watch.
How to Calculate Your Gross Income Per MonthCalculate your monthly inflow before taxes using this metric.
Taxes on Investments: Understanding the BasicsYou may have questions about taxes on different types of portfolio income. We've got answers.

How do you avoid a wash sale?

The first, most obvious thing to do is to avoid buying shares in the same stock within 30 days beforeor 30 daysafterselling. If you do, you lose the ability to harvest a tax loss on the number of shares you purchase.

However, if you inadvertently create a wash sale by rebuying too soon, your potential taxable loss doesn't just go up in smoke: The "lost" tax basis carries over to the replacement purchase. Simply sell again, andfollow the wash-sale rules this time. You'll finally be able to harvest that tax loss.

The Motley Fool has a disclosure policy.

Wash-Sale Rule: What it is and How to Avoid | The Motley Fool (2024)

FAQs

Wash-Sale Rule: What it is and How to Avoid | The Motley Fool? ›

A wash sale occurs when you sell or trade stock or securities at a loss and within 30 days before or after the sale you:Buy substantially identical stock or securities,Acquire substantially identical stock or securities in a fully taxable trade,Acquire a contract or option to buy substantially identical stock or ...

What is the wash sale rule for dummies? ›

Q: How does the wash sale rule work? If you sell a security at a loss and buy the same or a substantially identical security within 30 calendar days before or after the sale, you won't be able to take a loss for that security on your current-year tax return.

Can I buy back into the same stock after 30 days to avoid a wash sale? ›

If you have a wash sale, however, you cannot claim the write-off until you finally sell the asset and avoid repurchasing it for at least 30 days. After that period, you can re-buy the asset without triggering the wash-sale rules.

How do you count 30 days for a wash sale? ›

A Wash Sale occurs if you sell securities at a loss and buy substantially identical replacement shares within 30 days before or after the sale. The Wash Sale Period is 30 days before and 30 days after the sale date, totaling 61 days (including the sale date).

Can I sell a stock and buy it back within 30 days? ›

The wash-sale rule prohibits selling an investment for a loss and replacing it with the same or a "substantially identical" investment 30 days before or after the sale. If you do have a wash sale, the IRS will not allow you to write off the investment loss which could make your taxes for the year higher than you hoped.

Is it a wash sale if you buy back at a higher price? ›

Essentially, a wash sale occurs when you sell a security at a loss and then purchase the same security again in a short period.

How long do you have to hold stock to avoid a wash sale? ›

To avoid a wash sale, the investor can wait more than 30 days from the sale to purchase an identical or substantially identical investment or invest in exchange-traded or mutual funds with similar investments to the one sold.

How does IRS know about wash sales? ›

Note: Wash sales are in scope only if reported on Form 1099-B or on a brokerage or mutual fund statement. Click here for an explanation. A wash sale is the sale of securities at a loss and the acquisition of same (substantially identical) securities within 30 days of sale date (before or after).

How do day traders avoid the wash sale rule? ›

DEFG shares and shares of its closest competitor, PQRS, would probably not be considered substantially similar, so you can trade within a given industry to help avoid wash-sale problems. So, if you are going to do some “day trading,” be very aware of this rule and keep meticulous records.

Can a wash sale be reversed? ›

Some investors may think that they can reverse the order of a wash sale, buying more of the asset before they later sell less than 30 days later and declare a loss on it. But the IRS disallows this activity, since you may not buy 30 days before or after the sale and still claim a loss.

Can I sell a stock and buy it back the same day? ›

Absolutely, you can buy and sell stocks within the same trading day. This dynamic strategy, known as day trading, is an integral part of the financial landscape and serves as the lifeblood for many traders.

Is it legal to buy and sell the same stock repeatedly? ›

As a retail investor, you can't buy and sell the same stock more than four times within a five-business-day period. Anyone who exceeds this violates the pattern day trader rule, which is reserved for individuals who are classified by their brokers are day traders and can be restricted from conducting any trades.

How do day traders get around wash sales? ›

Use Different Accounts: Another strategy for managing wash sales is to use different accounts for different types of trades. For example, traders could use one account for short-term trades and another account for long-term trades. By using different accounts, traders can avoid triggering wash sales on similar trades.

Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 6344

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.