Tax season is usually a headache, but when you’re staring at a massive tax bill because you sold some stock for a quick profit, it becomes a nightmare. You’re likely wondering, can I offset short term gains with long term losses? The short answer is yes. But the long answer? It’s a bit of a mathematical dance that the IRS requires you to follow in a very specific order.
Most people think you can just throw all your wins and losses into one big bucket and pay tax on whatever is left. If only it were that simple. The IRS looks at your "holding period"—how long you actually owned the asset—and they treat those buckets differently until the very last step. It’s a process called netting. Honestly, if you don't get the order right, you might end up paying a 37% tax rate on money that should have been taxed at 15%, or worse, you could miss out on carrying over losses to next year.
The Netting Rule: How It Actually Works
Before you can use a long-term loss to wipe out a short-term gain, you have to follow the internal "netting" rules. Think of it like a tournament. First, the short-term items fight each other. Then, the long-term items fight each other. Only the survivors get to face off in the final round.
Short-term capital gains and losses are from assets held for one year or less. These are the ones that hurt because they are taxed at your ordinary income tax rate. Long-term capital gains and losses are from assets held for more than a year. These get the preferential rates, usually 0%, 15%, or 20% depending on your income level.
Here is how the IRS makes you do the math:
First, you add up all your short-term gains and subtract your short-term losses. This gives you your net short-term gain or loss.
Second, you do the same for your long-term stuff. Add the long-term gains, subtract the long-term losses. This gives you your net long-term gain or loss.
Now comes the part you’re looking for. If you have a net short-term gain (the bad kind of tax) and a net long-term loss, you can absolutely use that loss to offset the gain. This is the "final round" of netting. If your long-term losses are bigger than your short-term gains, you wipe out that high-tax bill entirely.
💡 You might also like: Class A Berkshire Hathaway Stock Price: Why $740,000 Is Only Half the Story
Why This Matters for Your Wallet
Let’s say you made $10,000 on a "meme stock" you bought and sold in three months. If you’re in a high tax bracket, you might owe the IRS $3,500 or more on that trade alone. But let's say you also sold some mutual fund shares you’ve held for five years at a $12,000 loss because the sector crashed.
When you ask, can I offset short term gains with long term losses in this scenario, the answer is a resounding yes. Your $12,000 long-term loss first wipes out that $10,000 short-term gain. You now owe $0 in taxes on that quick stock flip. Plus, you still have $2,000 of loss left over.
What happens to that extra $2,000? You can use it to offset other income, like your salary, up to a limit of $3,000 per year. If you still have losses left after that, you carry them forward to next year. It’s like a tax-saving gift to your future self.
The Wash Sale Trap
You can’t just sell a losing stock on December 30th to get the tax break and then buy it back on January 2nd. The IRS saw that trick coming decades ago. It’s called the Wash Sale Rule.
Basically, if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the IRS disallows the loss. You don't lose the loss forever; instead, the loss gets added to the cost basis of your new shares. But for the purpose of offsetting your gains this year? It’s useless.
I’ve seen people try to get around this by selling a stock and immediately buying an ETF that tracks the same industry. Usually, that’s okay because an ETF isn't "substantially identical" to a single stock. But if you sell Coca-Cola and buy Coca-Cola again two weeks later, you’ve just tripped a wire. Your plan to offset those short-term gains just evaporated.
📖 Related: Getting a music business degree online: What most people get wrong about the industry
Strategic Tax Loss Harvesting
Smart investors don't wait until December to think about this. They practice what’s called tax-loss harvesting throughout the year. If you have a position that is deep in the red and you don't believe in its long-term recovery—or if you want to swap it for a similar but different asset—you pull the trigger.
This is especially useful when you have those pesky short-term gains. Since short-term gains are taxed at the highest rates, using a long-term loss to kill them is one of the most efficient moves in the tax code. You are essentially using a "cheap" loss (one that would have only saved you 15-20% in taxes) to offset an "expensive" gain (one that would have cost you 30% or more).
It’s one of the few times the IRS rules actually work in favor of the taxpayer’s strategy, provided you follow the sequence correctly.
The $3,000 Limit and Carryovers
If your losses are massive—maybe you had a really bad year in the markets—you might have way more losses than gains. If your net result after all the netting is a loss, you can use $3,000 of that loss to reduce your regular taxable income (like your W-2 wages). If you are married filing separately, that limit is $1,500.
Everything beyond that $3,000 doesn't disappear into thin air. It carries over to the next tax year. It keeps its character, too. A long-term loss carryover stays a long-term loss next year. This is a huge deal. It means if you have a $50,000 loss this year and no gains, you'll be chipping away at that loss for years, reducing your taxable income and offsetting future gains until the bucket is empty.
Common Misconceptions to Avoid
One thing people get wrong is thinking they can choose which losses to apply to which gains. You can't. The IRS Form 8949 and Schedule D dictate the flow. You have to net short with short and long with long first.
👉 See also: We Are Legal Revolution: Why the Status Quo is Finally Breaking
Another mistake? Forgetting about your 401(k) or IRA. Capital gains and losses do not apply to retirement accounts. If you lose money in your Roth IRA, you can't use that to offset the gain you made in your brokerage account. The IRS treats retirement accounts as their own separate universe.
Actionable Steps for Tax Planning
To make the most of your capital losses and ensure you can actually offset those short-term gains, you need to be proactive. Waiting until you get your 1099-B in February is too late to change the outcome.
First, audit your portfolio in October or November. Look for "paper losses" in positions you no longer want to hold. If you have realized short-term gains from earlier in the year, these losing positions are your best friends.
Second, track your holding periods. If you have a stock that is down and you've held it for 11 months, waiting just one more month makes it a long-term loss. While you can offset short-term gains with long-term losses, sometimes it’s even better to have a short-term loss to offset a short-term gain directly. Why? Because it’s a one-to-one match in the first round of netting.
Third, watch the calendar for the Wash Sale Rule. If you sell for a loss on December 20th, don't touch that stock again until January 21st.
Finally, keep your records clean. If you use multiple brokerage accounts, remember that the IRS views you as one person. A loss in E*TRADE and a gain in Fidelity still get netted together on your tax return. Most software handles this well, but you have to ensure you’re importing all your data.
The goal isn't just to make money; it's to keep as much of it as possible. Understanding how to use your losses strategically is the difference between a successful investor and someone who just gets lucky and then loses half their win to the government.
Check your current year-to-date realized gains. If that short-term number is high, start looking for your "dogs" in the long-term category. Selling them now might be the smartest move you make all year.