Understanding how Tax write offs work for stock losses while still profitable
I've been dabbling in the stock market for the last few months as a beginner trader. While learning the ropes, I've had some ups and downs but overall I'm in the green now (thankfully!). Something I'm confused about is how tax write-offs work for stock losses when you're actually profitable overall. I've heard you can write off up to $3000 in stock losses, but does that only apply if you're at a net loss for the year? For example, let's say I made $800 in profits from some successful trades, but also lost $250 on other trades throughout the year. Would I need to pay tax on the full $800 of profit, or could I write off the $250 loss and only pay taxes on $550? All of my trades have been bought and sold within the same year, so I know they fall under short-term capital gains tax. Just trying to understand how these write-offs work when you have both gains and losses in the same tax year!
25 comments

Noah Torres
You can absolutely offset your gains with your losses! The way it works is pretty straightforward - you need to net all your capital gains and losses together first. In your example, if you made $800 in profits and lost $250 on other trades, you would report a net capital gain of $550 ($800 - $250) and pay taxes on that amount. The $3,000 limit you're thinking of applies to excess capital losses that exceed your capital gains for the year. For example, if you had $2,000 in losses but only $1,000 in gains, you'd have a net loss of $1,000. That $1,000 could offset other income (like from your job) up to the $3,000 annual limit. Any remaining losses above $3,000 would carry forward to future tax years. When you file your taxes, you'll report all these transactions on Schedule D, and your brokerage should provide a 1099-B showing your trades for the year.
0 coins
Samantha Hall
So what happens if you have like wayyyy more than $3000 in losses? Like some people lost a ton in the crash... do you just never get to write it all off?
0 coins
Noah Torres
If your losses exceed $3,000 more than your gains in a single year, you can only deduct $3,000 against other income for that year. But don't worry - you don't lose the remaining losses forever. Any losses beyond the $3,000 limit can be carried forward to future tax years indefinitely. For example, if you had $10,000 in net losses this year, you could deduct $3,000 this year, then carry forward $7,000 to next year. Next year you would use those losses first to offset any capital gains, and then up to $3,000 more against other income. This process continues until you've used up all your carried-forward losses.
0 coins
Ryan Young
I discovered this awesome tool called taxr.ai (https://taxr.ai) that really helped me understand my investment tax situation. I was in a similar situation last year - had some gains but also some painful losses, and wasn't sure how to handle it all on my taxes. The tool analyzed all my trades and showed me exactly how to offset my gains with my losses. It even helped me identify some wash sales I wasn't aware of (which is when you sell a stock at a loss and buy it back within 30 days - the IRS doesn't let you claim that loss immediately). Has anyone else tried this? It saved me hours of stressing over my tax forms and probably saved me money too since I wasn't missing any deductions.
0 coins
Sophia Clark
Does it connect directly to your brokerage account? I use three different platforms and consolidating everything is a nightmare. Also, does it handle crypto tax reporting too or just stocks?
0 coins
Katherine Harris
I'm a bit skeptical about giving some random website access to my financial data. How secure is it? And can't tax software like TurboTax do the same thing anyway?
0 coins
Ryan Young
You can either connect your brokerage accounts directly or upload your trading statements - I personally just uploaded my year-end statements from my brokerages since I was a bit hesitant at first too. It made everything super easy to consolidate across platforms. Yes, it absolutely handles crypto! That was actually the most helpful part for me since crypto tax reporting is such a headache with all the different exchanges and wallets I use. I tried using TurboTax initially, but it didn't catch some of the more complex situations like wash sales across different accounts and some cost basis issues. The taxr.ai tool is much more specialized for investment taxes and found several things TurboTax missed. Plus their security is top-notch - they use bank-level encryption and don't store your credentials.
0 coins
Katherine Harris
I was totally skeptical about taxr.ai when I first saw it mentioned here, but I decided to give it a try since I was desperate with my mess of trades from 2024. Holy crap, what a game changer! I had about 200 trades across different platforms, some stocks, some crypto, and even some options that I dabbled in. The tool found nearly $2,200 in tax deductions I would have missed because of some complicated wash sale situations where I had bought similar ETFs within 30 days of selling others at a loss. It also helped me understand which losses could offset my gains and how much would carry forward to next year. Way more detailed than what my regular tax software was telling me. If you're doing any serious trading, it's definitely worth checking out.
0 coins
Madison Allen
If you're having trouble getting through to the IRS to ask questions about capital gains/losses reporting (which I definitely was), I found this service called Claimyr (https://claimyr.com) that actually got me through to a real IRS agent in about 25 minutes when I'd been trying for days on my own. I was confused about reporting some stock losses from a company that got delisted, and I kept getting disconnected or waiting forever on the IRS line. Claimyr somehow got me past the hold times. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c The IRS agent confirmed that I could claim the full loss from the delisted stock as a capital loss even though I never technically "sold" it. Saved me a ton of stress wondering if I was filing correctly.
0 coins
Joshua Wood
Wait how does this even work? The IRS phone system is completely broken - I tried calling like 10 times last year. Are they somehow jumping the queue or something?
0 coins
Justin Evans
Sounds like a scam honestly. Why would I pay some random service to call the IRS when I can just keep trying for free? And how do they get through when nobody else can?
0 coins
Madison Allen
They use some kind of automated system that basically waits on hold for you. When it reaches a real person, it calls you and connects you. I don't know the exact tech behind it, but it definitely isn't queue jumping - they're just persistent with the dialing and waiting so you don't have to be. Not a scam at all - I was just as skeptical as you are! From what I understand, they have multiple lines dialing simultaneously with automated systems that can detect when a real person answers. They're basically just doing the tedious part of calling and waiting over and over until they get through.
0 coins
Justin Evans
Ok I need to apologize to Profile 20 about Claimyr. I was super skeptical and called them a scam but decided to try it anyway because I was desperate to talk to the IRS about my stock loss situation before filing. I couldn't believe it actually worked! After trying for literally weeks to get through on my own (always getting the "call back later" message), I got connected to an agent in about 40 minutes using their service. The IRS agent clarified exactly how to report my weird situation (I had both stock losses and gains, plus some employee stock options that I wasn't sure how to report). Seriously saved me from probably filing incorrectly. Sometimes it's worth admitting when you're wrong - this service actually delivered exactly what it promised.
0 coins
Emily Parker
One thing to be aware of that nobody mentioned yet is that short-term capital gains (for stocks held less than a year) are taxed at your ordinary income rate, which is probably higher than the long-term capital gains rate. So if you're close to having held some profitable positions for a full year, it might be worth waiting to sell until you hit that one-year mark. Long-term capital gains rates are 0%, 15%, or 20% depending on your income, which is usually much better than short-term rates. Also don't forget that if you're trading a lot, your brokerage's 1099-B might not have accurate cost basis info for all your trades, especially if you've transferred positions between brokerages. Always double-check those numbers!
0 coins
Natalie Wang
AuthorThanks for bringing this up! I wasn't thinking about the difference between short and long term rates. If I hold something for exactly one year, does that count as long term? Or does it need to be a year plus one day?
0 coins
Emily Parker
You need to hold the stock for more than one year to qualify for long-term capital gains rates. The IRS counts this as a year and a day from your purchase date. For example, if you bought a stock on April 15, 2024, you would need to hold it until at least April 16, 2025, to qualify for the lower long-term capital gains tax rates. Even one day short of this would mean it gets taxed as a short-term gain at your ordinary income tax rate.
0 coins
Ezra Collins
Does anyone know if trading fees and commissions can be included in the cost basis? I'm using a platform that charges $4.99 per trade and it adds up over the year with all my buying and selling.
0 coins
Victoria Scott
Yes! Trading fees and commissions should be added to your cost basis when you buy and subtracted from your proceeds when you sell. This effectively makes them tax-deductible since they reduce your taxable gain (or increase your deductible loss). For example: - If you buy $1000 worth of stock and pay a $5 commission, your cost basis is $1005 - If you sell for $1200 and pay another $5 commission, your proceeds are $1195 - Your gain would be $1195 - $1005 = $190 (not $200
0 coins
Malia Ponder
Great question! I went through the exact same confusion when I started trading. The key thing to understand is that you always net your gains and losses first before applying any deductions. In your example with $800 in gains and $250 in losses, you would indeed only pay taxes on the net amount of $550 ($800 - $250). This happens automatically when you file - all your capital gains and losses get reported together on Schedule D. The $3,000 limit everyone mentions only comes into play if you have MORE losses than gains for the year. So if you had $1,000 in gains but $5,000 in losses, you'd have a net loss of $4,000. You could use $3,000 of that to offset other income (like your salary), and the remaining $1,000 would carry forward to next year. Since you're profitable overall, you don't need to worry about the $3,000 limit at all. Just make sure to keep good records of all your trades - your broker should send you a 1099-B in January that summarizes everything. And remember, since these are short-term trades, they'll be taxed at your regular income tax rate, not the lower capital gains rate.
0 coins
Justin Chang
This is really helpful information! I'm also relatively new to trading and had the same confusion about how losses work when you're profitable overall. One thing I learned the hard way is to be extra careful about wash sales. I sold some shares at a loss in November and then bought the same stock back in December thinking I was being smart about tax loss harvesting. Turns out the IRS doesn't allow you to claim that loss because of the 30-day wash sale rule! The wash sale rule applies if you buy the "same or substantially identical" security within 30 days before OR after the sale. So it's not just buying back after - if you bought shares, then sold some at a loss within 30 days, that can trigger it too. This can get really complicated if you're doing dollar-cost averaging into the same stocks regularly. My advice would be to either avoid selling anything at a loss in December (to prevent accidentally buying back in January), or if you do want to harvest losses, make sure you stay away from that stock for at least 31 days. There are some good wash sale calculators online that can help track this stuff across multiple positions.
0 coins
Joshua Hellan
Oh wow, I had no idea about the wash sale rule applying to purchases BEFORE the sale too! I've been doing weekly investments into some index funds and then occasionally selling portions when I need cash. I wonder if that's been triggering wash sales without me realizing it. Do you know if the wash sale rule applies to ETFs that track the same index? Like if I sell VTI at a loss and then buy VTSAX within 30 days, would that be considered "substantially identical" even though they're technically different funds? This is getting more complicated than I thought! Also, are there any good free wash sale calculators you'd recommend? I'm trying to avoid paying for expensive tax software if possible.
0 coins
Ella rollingthunder87
Great questions! The ETF situation is actually a gray area that the IRS hasn't given completely clear guidance on. VTI and VTSAX both track the same index (total stock market), so they could potentially be considered "substantially identical" by the IRS. Some tax professionals are conservative and treat them as wash sales, while others argue they're different enough since one is an ETF and one is a mutual fund. To be safe, I'd avoid switching between funds that track the same index within 30 days if you're trying to harvest losses. If you want to stay invested in the market during the 30-day period, you could temporarily switch to a similar but not identical fund (like switching from a total market fund to an S&P 500 fund). For free wash sale calculators, I've had good luck with the one on Portfolio Visualizer's website. It's not as fancy as some paid tools, but it gets the job done for basic wash sale tracking. You just need to input your transactions manually. Some people also use spreadsheet templates that you can find on Reddit's investing communities - they have formulas built in to flag potential wash sales. The weekly investing thing you mentioned could definitely be triggering wash sales if you're selling within 30 days of purchases. Might be worth reviewing your transaction history to see if any losses got disallowed!
0 coins
James Johnson
Great questions! The wash sale rule can definitely be tricky when you're doing regular investing. For your first question about VTI vs VTSAX - this is actually a gray area that the IRS hasn't given completely clear guidance on. Both funds track the same index (total stock market), so they could potentially be considered "substantially identical." Most tax professionals I've seen tend to be conservative and treat them as substantially identical, especially since they have nearly identical holdings and performance. If you want to harvest losses safely, you'd probably want to switch to something that tracks a different index entirely - like going from a total market fund to an S&P 500 fund, or from domestic to international. That way there's no question about them being substantially identical. For free wash sale calculators, I've had good luck with: - The one on Bogleheads.org (they have a simple spreadsheet template) - Some of the free features on Portfolio Visualizer - Even just a basic spreadsheet where you track your buy/sell dates and can flag anything within 30 days The weekly investing thing is definitely something to watch out for! If you're buying the same fund every week and then sell some shares at a loss, those recent purchases could trigger wash sales. You might want to consider pausing the weekly purchases for 31 days after any loss-harvesting sales, or switch to investing in a different fund during that period.
0 coins
Khalil Urso
Great questions! The wash sale rule with similar ETFs is actually a gray area that can trip up a lot of people. VTI and VTSAX both track the total stock market, so while there's no definitive IRS ruling, many tax professionals would consider them "substantially identical" and advise avoiding that swap. To be safe, if you're going to tax loss harvest, try switching to something that tracks a different index entirely for those 30 days. For example, if you sell VTI at a loss, you might temporarily buy an S&P 500 fund instead of another total market fund. For free wash sale tracking, I've had good luck with: - Portfolio Visualizer's wash sale calculator (free online tool) - Some people use spreadsheet templates they find on Bogleheads forum - If you have a Schwab or Fidelity account, their tax tools can help identify potential wash sales The weekly investing thing you mentioned could definitely be triggering wash sales if you're selling portions of the same fund. The IRS uses FIFO (first in, first out) by default unless you specify which shares you're selling, so it gets messy quick with regular purchases.
0 coins
Yara Campbell
Great question about ETFs! The wash sale rule for "substantially identical" securities is definitely a gray area that trips up a lot of people. VTI and VTSAX both track the same index (total stock market), so there's a strong argument they could be considered substantially identical by the IRS. Most tax professionals I've seen discuss this recommend avoiding swapping between funds that track the same underlying index within the 30-day window to be safe. However, switching between broader categories (like selling a total market fund and buying an S&P 500 fund) is generally considered okay since they track different indexes with different holdings. For free wash sale tracking, I've found that some of the basic versions of tax software like FreeTaxUSA actually handle this pretty well if you upload your 1099-B. There's also a decent free calculator on the Bogleheads wiki, though you'll need to input everything manually. The tricky part is that wash sales can span across different brokerage accounts, so if you have positions at multiple brokers, you might need to track it yourself in a spreadsheet to catch everything the automated systems miss.
0 coins