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 it?

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.

Examples

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.

Rules

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 Reports in 2024Learn 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 to avoid a wash sale

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? ›

Designed to prevent abuse, it disallows tax deductions if you repurchase similar securities within 30 days. To maintain tax benefits, refrain from purchasing identical securities 30 days before or after a sale or adjust by selling again later.

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 sell a stock and buy it back within 30 days? ›

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 re-enter a similar position too quickly.

How do day traders avoid the wash sale rule? ›

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.

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

The wash-sale rule keeps investors from selling at a loss, buying the same (or "substantially identical") investment back within a 61-day window, and claiming the tax benefit.

What happens if you break the wash sale rule? ›

However, if you violate the wash sale rule, any loss from the sale of stock or securities is disallowed for tax purposes and can't be deducted from your capital gains or ordinary income. A disallowed loss is not completely wasted, though.

How do you count days to avoid a wash sale? ›

Keep in mind that the wash sale rule goes into effect 30 days before and after the sale, so you have a 61-day window to avoid buying the same stock.

How does the 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 quickly can I rebuy a stock after selling it? ›

Designed to prevent abuse, it disallows tax deductions if you repurchase similar securities within 30 days. To maintain tax benefits, refrain from purchasing identical securities 30 days before or after a sale or adjust by selling again later.

Why are capital losses limited to $3,000? ›

The $3,000 loss limit is the amount that can be offset against ordinary income. Above $3,000 is where things can get complicated.

Can you undo a wash sale? ›

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.

How to deal with wash sale? ›

You can't sell a stock or mutual fund at a loss and then buy it again it within 30 days just to claim the losses. You'll need to figure the basis for shares sold in a wash sale. When you do, add the amount of disallowed loss to the basis of the shares that caused the wash sale. These are the new shares you received.

How much stock can you sell without paying taxes? ›

Capital Gains Tax
Long-Term Capital Gains Tax RateSingle Filers (Taxable Income)Head of Household
0%Up to $44,625Up to $59,750
15%$44,626-$492,300$59,751-$523,050
20%Over $492,300Over $523,050

How to recover wash sale losses? ›

For positions where you still own some shares, you can recover the disallowed loss by selling all the shares that you still own, and not purchasing any shares of the same stock for at least 30 days after the sale.

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

Just as how long you have to wait to sell a stock after buying it, there is no legal limit on the number of times you can buy and sell the same stock in one day. Again, though, your broker may impose restrictions based on your account type, available capital, and regulatory rules regarding 'Pattern Day Traders'.

Can I sell stock and reinvest without paying capital gains? ›

You and other investors who want to avoid paying tax on stocks that have appreciated, will “sell” (in actuality contribute) and reinvest, through a swap. This process involves swapping your appreciated shares for a diversified portfolio of stocks of equivalent value, effectively deferring capital gains tax.

What is an example of a wash sale rule? ›

For example, let's say you have 100 shares of XYZ stock that you bought for $10 a share, or $1,000 total. You sell the stock for $8 a share and then 23 days later re-buy 100 shares for $7 a share. Because you've repurchased the stock within the 30-day window, you have a wash sale.

Can I sell a stock for profit and buy it again? ›

You can Sell a Stock for Profit

This is, as mentioned earlier, a capital gains tax. You can buy the same stock back at any time, and this has no bearing on the sale you have made for profit.

Top Articles
Latest Posts
Article information

Author: Saturnina Altenwerth DVM

Last Updated:

Views: 6029

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Saturnina Altenwerth DVM

Birthday: 1992-08-21

Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

Phone: +331850833384

Job: District Real-Estate Architect

Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.