Accidently sold all of my stocks - Will I owe short term capital gains even if I rebuy?
I messed up big time with my investment app yesterday. I was using this app to invest some extra cash I had by mirroring portfolios of well-known investors. Last night I decided I wanted to just hold these positions long-term instead of having the app constantly adjusting my holdings and creating taxable events. Well, turns out when I deleted the tracker from the app, it automatically triggered sell orders for ALL the stocks it was managing! I had no idea that would happen. Now my account is sitting there in basically all cash, and I'm planning to rebuy the same positions once the funds settle in a couple days. My question is - even if I rebuy exactly what I just sold, am I still on the hook for short term capital gains taxes on what happened? Some of these positions had decent gains and I'm worried about the tax implications of this accidental sale. Is there anything I can do to minimize the tax hit from this mistake?
20 comments


Yuki Tanaka
Unfortunately, yes, you'll still be responsible for short term capital gains taxes on the sold positions even if you rebuy the same stocks. The IRS considers each sale a taxable event regardless of your intention or whether you repurchase the same securities later. The gains will be calculated based on the difference between your cost basis (what you originally paid for the stocks) and the sale price. If you held these investments for less than a year, they'll be taxed as ordinary income according to your tax bracket. One small silver lining - if any of the positions had losses, those can offset some of your gains when you file. But there's no way to undo or roll back the sales for tax purposes once they've settled.
0 coins
Carmen Diaz
•Is there any kind of exception for accidental sales? Like, what if I call the brokerage and explain it was a mistake?
0 coins
Yuki Tanaka
•There's no specific exception for accidental sales in the tax code. Calling your brokerage won't change the tax implications, as they're required to report all sales to the IRS regardless of the circumstances. That said, if the sales haven't fully settled yet (typically T+2 business days), you could contact your brokerage immediately to see if they can cancel the pending transactions. This is a long shot and depends entirely on your broker's policies and how quickly you act. Most electronic trades are irreversible once executed.
0 coins
Andre Laurent
Hey, I've been through something similar and found this tool called taxr.ai (https://taxr.ai) that really helped me figure out my investment tax situation. I had a bunch of accidental sales when switching brokerages and was freaking out about the tax implications. The site analyzed all my trading activity and gave me a clear breakdown of my potential tax liability. It also highlighted some losses I could harvest to offset gains. The interface is super intuitive - you just upload your trading docs or connect your accounts and it does all the calculations automatically.
0 coins
AstroAce
•Does it work with multiple brokerages? I've got accounts with like 3 different companies and tax time is always a nightmare.
0 coins
Zoe Kyriakidou
•I'm kinda skeptical... how is this different from what TurboTax or my accountant would do? Seems like just another tax tool trying to get my data.
0 coins
Andre Laurent
•Yes, it works with pretty much all major brokerages! I had accounts with Fidelity, Robinhood, and an old E*TRADE account, and it consolidated everything seamlessly. Saved me hours of cross-referencing statements. It's different from TurboTax because it specializes specifically in investment taxes and capital gains situations. My accountant charged me hourly to manually sort through my trading history, but taxr.ai did it in minutes and found tax-saving opportunities my accountant missed. It's more of a specialized tool for investors rather than a general tax prep software.
0 coins
Zoe Kyriakidou
I was skeptical about taxr.ai at first, but after that accidental stock sale fiasco I mentioned in the thread above, I decided to give it a shot. Holy crap, what a game changer! It showed me that I actually had some older positions with losses that I could sell to offset about 40% of my unexpected gains. The platform showed me exactly which lots to sell for maximum tax efficiency - something I never would have figured out on my own. Plus it generated a report I can give to my accountant that breaks everything down clearly. Would've spent hours trying to untangle my mess otherwise.
0 coins
Jamal Brown
If you're having trouble getting clear answers from your broker about this situation, try Claimyr (https://claimyr.com). I used them when I had a similar issue last year and needed to talk to someone at the IRS about the tax implications. Getting through to the IRS directly was impossible - I spent literally hours on hold and kept getting disconnected. Claimyr got me a callback from an actual IRS agent within a few hours. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c Their service connected me with an IRS rep who walked me through exactly how to report my accidental sales and what forms I needed. Saved me so much stress during tax season.
0 coins
Mei Zhang
•How does this actually work? Do they have some special connection to the IRS or something? I've been trying to reach them for weeks about a different issue.
0 coins
Liam McConnell
•Yeah right. Nobody gets through to the IRS these days. I've been trying for months about an audit notice. If this actually worked, everyone would be using it.
0 coins
Jamal Brown
•They use a combination of algorithms and automation to continuously dial the IRS until they get through, then they call you back and connect you. It's not a special connection - they're just using technology to handle the frustrating hold times so you don't have to. I was surprised too, but it actually works. They navigate the IRS phone tree and wait on hold for you, then when they get a human, they call you and connect you directly to the agent. I was skeptical at first, but after spending days trying to get through myself, it was worth trying something different.
0 coins
Liam McConnell
Ok I have to eat my words. After seeing the comments here, I tried Claimyr for my audit notice issue that I mentioned. Not gonna lie, I was 100% convinced it would be a waste of time. But damn - they actually got me through to an IRS agent in about 2 hours! I'd been trying for literally MONTHS to get someone on the phone. The agent helped me understand exactly what documentation I needed to submit for my audit. For anyone dealing with investment tax issues like the OP, being able to actually talk to someone at the IRS makes a huge difference. They clarified exactly how to report multiple transactions and what forms I needed.
0 coins
Amara Oluwaseyi
I did something similar last year - accidentally sold a bunch of positions when I meant to just rebalance. One thing to keep in mind: track your wash sales carefully if you rebuy within 30 days. That can affect your cost basis and complicate your tax situation even more. Make sure you save all your transaction records from before and after this mistake. You'll need accurate cost basis info when you file next year.
0 coins
Ethan Wilson
•Thanks for the tip about wash sales - I hadn't even thought about that aspect. Do you know if there's an easy way to track this, or should I just make a spreadsheet with all the details of my original purchases and these new ones?
0 coins
Amara Oluwaseyi
•Most brokerages have tools that will track wash sales for you automatically, but I wouldn't rely solely on that. I'd recommend downloading all your transaction histories and creating your own spreadsheet as a backup. Make sure you record the original purchase dates and prices, the accidental sale prices and dates, and then the repurchase information. This gives you a clear paper trail in case there are any questions during tax time. Some tax software doesn't handle complex wash sale situations well, so having your own records is essential.
0 coins
CosmicCaptain
Has anyone used tax loss harvesting to offset gains from something like this? I've heard you can sell other investments at a loss to balance things out tax-wise.
0 coins
Giovanni Rossi
•Yeah, tax loss harvesting works great for this. I had a similar situation and sold some underperforming stocks to offset the gains. Just make sure you're aware of the wash sale rule if you plan to buy back those loss positions too.
0 coins
Amina Bah
This is a tough situation, but you're not alone - these kinds of app-triggered sales happen more often than you'd think. Unfortunately, as others have mentioned, you're still on the hook for the taxes even though it was accidental. Here's what I'd recommend doing immediately: 1. Document everything - screenshot the app settings, save any emails or notifications about the sale, and keep records of your original intent. While this won't help with taxes, it might be useful if you decide to file a complaint with the app provider. 2. Calculate your potential tax liability now so you can plan accordingly. If you have significant gains, you might want to set aside money for the tax bill. 3. Look for any loss positions in your portfolio that you could harvest before year-end to offset these gains. 4. Consider whether you want to repurchase immediately or wait to avoid potential wash sale complications if you have any loss positions. The silver lining is that when you do rebuy, your new cost basis will be the current purchase price, which could work in your favor if the stocks continue to appreciate long-term. It's an expensive lesson about reading the fine print on investment apps, but you'll get through this!
0 coins
Emma Anderson
•This is really helpful advice! I'm definitely going to start documenting everything right away. One question - when you mention calculating potential tax liability now, is there a simple way to estimate this? I'm worried I might be looking at a huge tax bill and want to start preparing mentally and financially for it. Also, should I contact the app company about this? I'm still pretty frustrated that there was no clear warning that deleting the tracker would trigger automatic sales. Seems like that should have been more obvious in their interface.
0 coins