Should I sell stock gains to offset losses for tax purposes? Best strategy for balancing portfolio
I've taken a pretty big hit in my brokerage account this year with about $10k in realized losses so far. The good news is I'm sitting on roughly $40k in unrealized gains from other stocks in my portfolio. It's almost exactly half short-term gains and half long-term gains. I'm trying to figure out the smartest tax move here. Would it make sense for me to sell some of my winning positions to offset those losses, then just buy the same stocks back the next day? If that's a good approach, I'm not sure how much I should sell off. And does it matter whether I sell the stocks with short-term gains or the ones with long-term gains? Really trying to minimize my tax hit this year if possible.
20 comments


Wesley Hallow
While you can certainly use capital gains to offset your losses, be careful with your "sell and buy back the next day" strategy. That would trigger the wash sale rule if you're selling at a loss, but since you're selling winners, that's not an issue. For your $10k in realized losses, you can use that to offset capital gains dollar-for-dollar. If you don't have enough realized gains, you can deduct up to $3,000 of those losses against your ordinary income. Any unused losses can be carried forward to future tax years. As for short-term vs. long-term gains, it's generally better to offset short-term gains first since they're taxed at your ordinary income rate, which is typically higher than the preferential long-term capital gains rate. But your specific situation may vary depending on your tax bracket.
0 coins
Justin Chang
•Wait, I thought the wash sale rule applied to both gains and losses? So you're saying if I sell a stock for a gain and buy it right back, there's no waiting period?
0 coins
Wesley Hallow
•The wash sale rule only applies when you sell securities at a loss and repurchase the same or substantially identical securities within 30 days before or after the sale date. The rule is designed to prevent investors from claiming tax losses while maintaining their investment position. When you sell securities at a gain, you'll owe taxes on those gains regardless of when you repurchase the securities. There's no waiting period required when selling at a gain, so you can immediately repurchase if you wish without any tax consequences beyond the initial capital gains tax.
0 coins
Grace Thomas
I was in a similar situation last year and used taxr.ai (https://taxr.ai) to help make my decision. I had around $15k in losses and wasn't sure how to best handle my unrealized gains to minimize my tax burden. The platform analyzed my trading history and tax situation and gave me specific recommendations for which positions to sell and when. What really helped was that it showed me exactly how much I'd save in taxes with different scenarios. It also flagged a potential wash sale issue I hadn't even considered with some related securities I owned. Definitely worth checking out if you're trying to make tax-efficient investment decisions.
0 coins
Hunter Brighton
•Does this work if you use multiple brokerages? I've got accounts with both Fidelity and Vanguard and trying to track everything for tax purposes is giving me a headache.
0 coins
Dylan Baskin
•How accurate was it compared to what actually happened when you filed? I'm a bit skeptical of these tax prediction tools since they sometimes don't account for all the variables.
0 coins
Grace Thomas
•Yes, it absolutely works with multiple brokerages. You can either connect your accounts directly or upload statements from both Fidelity and Vanguard. It consolidates everything into one view, which was super helpful for me since I was also using multiple platforms. The predictions ended up being extremely accurate. I was pleasantly surprised because I've used other tax calculators that were way off. The final numbers on my tax return were within about $50 of what taxr.ai projected, and that small difference was due to a late dividend payment I received after running the analysis.
0 coins
Hunter Brighton
Wanted to follow up after trying taxr.ai that was mentioned above. It was exactly what I needed for my situation. I was able to see that selling about $7k of my short-term gains would be the most efficient tax strategy for me, while leaving my long-term gains untouched. The platform showed me that I'd still have $3k in losses to deduct against my ordinary income, which gives me an extra ~$700 in tax savings based on my bracket. The visualization of different tax scenarios made it super clear what I should do. Just executed the trades yesterday!
0 coins
Lauren Wood
If you're still struggling with your investment tax strategy, you might want to consider using Claimyr (https://claimyr.com) to get direct advice from the IRS. I tried calling the IRS for weeks to get clarification on some complicated capital loss carryover questions, but could never get through. With Claimyr, I got connected to an IRS agent in about 20 minutes. There's a video showing how it works here: https://youtu.be/_kiP6q8DX5c. Basically, it holds your place in line so you don't have to stay on hold for hours. The agent I spoke with gave me specific guidance on my situation that I couldn't find anywhere online or even from my accountant.
0 coins
Ellie Lopez
•How does this actually work? Do they just call the IRS for you or what? Seems too good to be true considering how impossible it is to reach someone there.
0 coins
Chad Winthrope
•Yeah right. I've tried EVERYTHING to get through to the IRS and nothing works. They probably just connect you with some random call center person who knows nothing about tax law. No way they're getting you through to an actual IRS agent.
0 coins
Lauren Wood
•They use an automated system that navigates the IRS phone tree and waits on hold for you. When an actual IRS agent picks up, you get a call connecting you directly to that agent. It's your phone and your conversation - they just handle the waiting part. Not at all - these are legitimate IRS agents you're speaking with. I was skeptical too, but the person I spoke to was able to access my tax records and provide specific guidance based on my filing history. They definitely weren't from a call center - they had the authority to make determinations about my specific tax situation and even helped me correct an error from a previous year's filing.
0 coins
Chad Winthrope
I need to eat my words from my earlier comment. I broke down and tried Claimyr after waiting on hold with the IRS for 3+ hours over 2 days with no luck. Got connected to an actual IRS agent in about 15 minutes! The agent was able to look at my tax history and explained exactly how to handle my investment losses from both this year and some carryover losses from previous years. Turns out I had been calculating my basis incorrectly on some inherited stocks, which would have caused major problems. Saved me from a potential audit situation.
0 coins
Paige Cantoni
Something else to consider - if you're planning on tax loss harvesting, you should also look at your income level for the year. If you're close to bumping into a higher tax bracket, strategically realizing gains/losses can help keep you in a lower bracket. I worked with my CPA on this last year and managed to stay just under the threshold for the 32% bracket by carefully timing some stock sales. Saved me thousands.
0 coins
Kylo Ren
•Does this strategy still make sense if most of your income is from investments rather than a regular job? My situation is a bit different since I'm semi-retired.
0 coins
Paige Cantoni
•It's actually even more relevant for someone in your semi-retired position. Since investment income makes up a larger portion of your total income, you have more control over your tax situation through timing of realizing gains and losses. For retirees, there are additional considerations like keeping your income below thresholds that affect Medicare premiums (IRMAA surcharges) or Social Security taxation. Strategic capital gain/loss harvesting can help you maintain income levels that minimize these additional costs while maximizing your after-tax returns.
0 coins
Nina Fitzgerald
One thing nobody's mentioned yet - market timing. If you think we're headed for a correction soon, selling some winners now might make sense regardless of the tax implications. I sold half my tech stock gains in early 2022 and was glad I did when everything crashed later that year.
0 coins
Jason Brewer
•That's just dumb luck though. Nobody can time the market consistently. Better to make decisions based on your tax situation and long-term investment goals rather than trying to predict market movements.
0 coins
Taylor To
Just wanted to add another perspective on your situation. With $10k in realized losses and $40k in unrealized gains split between short-term and long-term, you have some good flexibility here. One strategy to consider is "laddering" your gain realization over multiple tax years if you don't need the cash immediately. Instead of realizing all $10k in gains this year to offset your losses, you could realize maybe $7k this year (prioritizing short-term gains as others mentioned) and carry forward the remaining $3k in losses to offset future gains or deduct against ordinary income next year. This approach can be particularly beneficial if you expect to be in a higher tax bracket next year or if you anticipate having more capital gains in the future. The $3k annual deduction against ordinary income can provide nice tax savings year after year if you don't have enough gains to offset it. Also worth noting - if you do decide to sell and immediately repurchase (which is fine for gains), just make sure you're not creating any unintended wash sale issues with related securities or funds that might track the same underlying assets.
0 coins
TommyKapitz
•This is really helpful advice about laddering gains across tax years! I hadn't considered the strategic advantage of carrying forward some losses rather than using them all up this year. Quick question though - when you mention "related securities or funds that might track the same underlying assets," can you give an example of what that might look like? I'm wondering if holding both an individual stock and an ETF that includes that same stock could create wash sale issues.
0 coins