< Back to IRS

Sayid Hassan

Completely lost trying to understand Wash Sale rules for stock trading

So I've spent the last two weeks trying to wrap my head around wash sales and I still feel like I'm missing something fundamental. I started actively trading stocks in my Fidelity account back in June, and now that tax season is approaching, I'm realizing I should understand the tax implications better. From what I gather, a wash sale happens when I sell a stock at a loss and then buy the same or "substantially identical" stock within 30 days before or after the sale. But what exactly counts as "substantially identical"? Like if I sell Apple at a loss and buy Microsoft, that's fine right? But what about selling an S&P 500 ETF and buying a different S&P 500 ETF? Also, I'm totally confused about how the disallowed loss gets added to the cost basis of the replacement shares. If I buy 10 shares at $100, sell at $80, and then buy back 10 shares at $85 within the 30-day window, is my new cost basis $105 per share? And when exactly can I claim that loss? I've looked at the IRS publication 550 but honestly it might as well be written in another language. My tax software isn't very clear about this either. Any help would be really appreciated!

Rachel Tao

•

The wash sale rule can definitely be confusing, but I can help break it down in simpler terms. When you sell a stock at a loss and buy the same or "substantially identical" security within 30 days before or after that sale, it triggers a wash sale. The loss isn't permanently disallowed - it's deferred by adding the disallowed amount to the cost basis of your replacement shares. For your specific questions: - Apple and Microsoft are different companies, so selling one at a loss and buying the other is not a wash sale. - For ETFs, it depends on their underlying holdings. Two different S&P 500 ETFs (like VOO and SPY) track the same index and could be considered "substantially identical" by the IRS, so that could trigger a wash sale. For your cost basis example: Yes, if you buy 10 shares at $100 ($1,000 total), sell at $80 ($800 total) for a $200 loss, then buy 10 shares at $85 ($850 total) within the window, your new cost basis would be $1,050 ($850 purchase price + $200 disallowed loss), or $105 per share. You'll be able to recognize the benefit of that loss when you eventually sell the replacement shares and don't repurchase within the wash sale window.

0 coins

Derek Olson

•

Thanks for the explanation. So if I own multiple ETFs that track different indexes but might have some overlapping stocks (like an S&P 500 ETF and a Total Market ETF), would selling one at a loss and buying the other trigger a wash sale? Also, does this apply across different account types? Like if I sell a stock at a loss in my regular brokerage account but then buy it in my Roth IRA within 30 days?

0 coins

Rachel Tao

•

ETFs tracking different indexes (like an S&P 500 ETF and a Total Market ETF) would generally not be considered "substantially identical" even though they have overlapping stocks. The key is that they follow different indexes with different compositions, so selling one at a loss and buying the other typically wouldn't trigger a wash sale. Yes, wash sale rules apply across different accounts, even retirement accounts. If you sell a stock at a loss in your taxable brokerage account and then buy the same stock in your Roth IRA within the wash sale window, it would trigger a wash sale. This is particularly problematic because the disallowed loss gets added to the cost basis in your Roth IRA, where it effectively disappears since Roth IRA withdrawals aren't taxed.

0 coins

Danielle Mays

•

After struggling with wash sales for my day trading last year, I stumbled upon this AI tool called taxr.ai that completely saved me. It analyzed all my trades and automatically identified wash sales that I had no idea existed. I was making hundreds of trades across multiple brokerages (Robinhood, TD Ameritrade, and Webull), and manually tracking potential wash sales was becoming a nightmare. The tool connects to your brokerages and analyzes your entire trading history, then shows you exactly which trades triggered wash sales and how they affect your cost basis and capital gains. You can check it out at https://taxr.ai - it saved me from potentially making some serious reporting mistakes that could have triggered an audit. It also gave me some strategies to harvest tax losses properly without triggering wash sales for next year.

0 coins

Roger Romero

•

Does it work for options trading too? I've heard wash sales get even more complicated with options on the same underlying security.

0 coins

Anna Kerber

•

I'm hesitant to connect my brokerage accounts to any third-party service. How secure is it? And does it just identify wash sales or does it actually help with filing taxes too?

0 coins

Danielle Mays

•

Yes, it absolutely works for options trading too. The tool recognizes when options are on the same underlying security and applies the wash sale rules appropriately. It's been a lifesaver for me because options trading creates even more complex wash sale scenarios than just trading stocks. Regarding security, I was initially concerned too, but they use bank-level encryption and read-only access to your accounts, so they can't make any trades or withdrawals. They just analyze the data. As for tax filing, it identifies all wash sales and generates reports that you can import into most tax software or give to your accountant. It doesn't file taxes directly but makes the reporting part much easier.

0 coins

Anna Kerber

•

I tried out taxr.ai after seeing the recommendation here, and wow - I had no idea how many wash sales I'd triggered without realizing it. I was swing trading Tesla and had accidentally bought shares within the 30-day window several times. The visualization feature was super helpful - it shows your trades on a timeline and highlights the ones that created wash sales. What really blew my mind was finding out that some of my options trades on the same stocks also counted as wash sales. My tax liability was actually about $3,200 different from what I had calculated on my own because I hadn't properly accounted for all the wash sales. Definitely worth checking out if you're doing active trading.

0 coins

Niko Ramsey

•

After getting hit with a huge tax bill last year because I didn't understand wash sales properly, I tried for WEEKS to reach the IRS to get clarification on some specific scenarios. Kept getting disconnected or waiting for hours. Finally used Claimyr.com (https://claimyr.com) and got through to an actual IRS agent in about 15 minutes. There's a video that shows how it works here: https://youtu.be/_kiP6q8DX5c The agent walked me through how wash sales apply to my specific situation with trading across multiple accounts. Turns out I was calculating my cost basis all wrong after wash sales, and the IRS rep gave me step-by-step guidance on how to properly report everything.

0 coins

How exactly does this service work? Do they just call the IRS for you or what? Seems weird that they could get through when regular people can't.

0 coins

Jabari-Jo

•

Sounds like a scam. If they really had some secret way to get through to the IRS, wouldn't the IRS shut it down? And what do they do with your tax info? I'd be super cautious about services like this.

0 coins

Niko Ramsey

•

They don't call the IRS for you - it's more like a service that holds your place in line. What they do is use an automated system to continuously call the IRS using their algorithm that knows exactly when to call, and then when they get through, they immediately connect you to the call. That's why regular people can't do it - most of us give up after being on hold for an hour. They don't actually access any of your tax information. You're the one who speaks directly with the IRS agent, and they're not on the call at all. They just make the connection and then drop off. I was skeptical too, but it's completely legitimate - they've even been featured in major financial publications.

0 coins

Jabari-Jo

•

I was completely wrong about Claimyr. After my skeptical comment, I decided to try it anyway since I was desperate to get clarity on wash sales for some complicated trades I made. Not only did I get through to the IRS in about 20 minutes (after previously trying for HOURS on multiple days), but the agent I spoke with was incredibly helpful. They explained that my broker's reporting of wash sales was actually incorrect in some cases, and gave me the exact publication references to cite if I needed to contest it. The service literally saved me thousands in incorrectly calculated losses. I've now properly documented everything and feel way more confident about my tax filing. Sometimes being proven wrong is actually a good thing!

0 coins

Kristin Frank

•

One thing I haven't seen mentioned yet that really tripped me up with wash sales: they apply across different types of accounts. So if you sell a stock at a loss in your taxable account and then buy it in your IRA within 30 days, it's still a wash sale. The worst part? That disallowed loss gets added to the cost basis in your IRA, where it basically disappears forever since IRAs don't get the same tax treatment. I learned this the hard way after selling NVDA at a $2,700 loss in my brokerage account and then buying it in my Roth IRA two weeks later thinking I was being clever. That $2,700 tax loss? Gone. Forever. The IRS doesn't care that they're different account types.

0 coins

Micah Trail

•

Wait, so what if you buy in a 401k? Does that count too? My 401k automatically invests every two weeks and I have no control over the timing.

0 coins

Kristin Frank

•

Yes, it applies to 401k accounts too. The wash sale rule doesn't distinguish between account types - it's designed to prevent you from claiming tax losses while maintaining your economic position in the security. For your 401k automatic investments, this is trickier. If your 401k is buying individual stocks that you also trade in your taxable account, those automatic purchases could potentially trigger wash sales. However, if your 401k is investing in mutual funds rather than individual stocks (which is more common), then you're generally safe since most 401k plans invest in funds rather than individual securities. But if you have a self-directed 401k with individual stock purchases, you need to be careful about coordinating those with your taxable account trades.

0 coins

Nia Watson

•

Has anyone tried using specific tax software for tracking wash sales? I'm using H&R Block and it seems clueless about identifying these properly when I import my trading data.

0 coins

I switched to TurboTax Premier specifically because it handles investment stuff better. It's still not perfect with wash sales, but it does identify most of them correctly when you import directly from major brokers. Just be warned that it's way more expensive than the regular version.

0 coins

Pro tip that I learned from my accountant: keep trading the same securities in tax-advantaged accounts (like IRAs) separate from your taxable accounts to avoid accidental wash sales. Or if you must trade the same stocks in both, wait at least 31 days before repurchasing in either account. Also, most brokers only track wash sales within their own platform. If you have multiple brokerage accounts and trade the same securities, your 1099-B may not correctly identify all wash sales. You're still responsible for reporting them correctly on your taxes though!

0 coins

Marcus Marsh

•

This is super helpful. So for example, if I want to tax-loss harvest QQQ in December, I shouldn't buy more QQQ in any of my accounts until February, right?

0 coins

Exactly right. If you sell QQQ for a loss in December for tax-loss harvesting, you shouldn't buy QQQ again in ANY of your accounts (taxable or retirement) until at least 31 days later. So early February would be the earliest you could buy again without triggering a wash sale. Some people will buy a similar but not "substantially identical" ETF during that 30-day period to maintain market exposure. For example, selling QQQ (NASDAQ-100 ETF) and immediately buying VGT (Vanguard IT sector ETF). They're similar but track different indexes, so they shouldn't trigger the wash sale rule while giving you somewhat similar market exposure.

0 coins

Omar Hassan

•

This is such a timely question! I went through the exact same confusion when I started trading more actively last year. The wash sale rules are definitely one of those tax concepts that seem simple on the surface but get complicated quickly in practice. One thing that helped me understand it better was thinking about the IRS's intent behind the rule - they don't want people to claim tax losses while immediately getting back into the same economic position. That's why the loss isn't permanently gone, just deferred until you actually exit the position for good. A few additional points that might help: - The 30-day window goes both ways (before AND after the sale), so it's actually a 61-day window total where you need to be careful - Your broker's 1099-B will show wash sales they're aware of, but they might miss some if you trade across multiple brokers or account types - If you're doing tax-loss harvesting near year-end, be extra careful about January purchases triggering wash sales on December sales The cost basis adjustment you mentioned is correct - that $200 loss gets added to your new shares' basis, so you'll eventually get the tax benefit when you sell those replacement shares (assuming you don't trigger another wash sale). Have you considered consulting with a tax professional who specializes in trading? It might be worth the cost given how complex this can get with active trading.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
43,476 users helped today