The IRS isn’t in the business of sharing your pain. They’re perfectly happy to take a massive bite out of your winning stocks, but the second you try to write off a bad investment, the rules suddenly get very stingy and very restrictive. It’s annoying. I’ve spent 15 years in the YMYL trenches auditing these claims, and the “Tax Loss Harvesting” strategy is usually sold as some high-level magic trick by guys in expensive suits. It isn’t magic. It’s just basic math that the bureaucracy hopes you’re too tired to do.
I was looking at a portfolio last month for a guy let’s call him Steve who was sitting on a mountain of crypto losses and had no idea he could use them to wipe out the tax bill on his actual stock gains. He was just going to write the check and mope. It was a joke. The US tax system relies on you not knowing how to “harvest” your losers to protect your winners, but once you understand how to offset those gains, the power dynamic shifts. We aren’t here to play nice with the tax code. We’re here to audit your losses and make sure you aren’t subsidizing the government with money you’ve already lost.
The 2026 Capital Gains Offset Calculator
Use this tool to estimate your net tax position and calculate how much of your loss can be used to lower your ordinary income this year.
2026 Capital Gains Offset Estimator
Net your gains and losses to find your $3,000 income shield.
How This Capital Gains Offset Calculator Works
I built this estimator to help you play “3D Chess” with your taxes. This isn’t a simple subtraction tool; it’s a logic-based engine that follows the IRS’s strict “Netting” hierarchy for the 2026 tax season. To get a real number, you’ll need three things:
- Short-Term Gains/Losses: These are from assets you held for one year or less. They’re usually taxed at your high ordinary income rates.
- Long-Term Gains/Losses: Assets held for more than a year. These get the “nice” 0%, 15%, or 20% tax rates.
- Annual Ordinary Income: This helps us calculate exactly how much that $3,000 “income offset” is actually worth to you in cold, hard cash.
The calculator will show you your Net Capital Position and exactly how much of your loss will roll over into 2027 as a “Tax Gift” to your future self.
The Netting Hierarchy: How the IRS Balances Gains and Losses in 2026

The IRS has a very specific order of operations. You can’t just throw all your numbers in a bucket. You have to net “Like for Like” first.
The Math Formula
First, we calculate your Net Short-Term (NST) and Net Long-Term (NLT) positions:
If one is a gain and the other is a loss, we net them against each other to find your Total Net Position (TNP):
If TNP is negative, you can deduct up to $3,000 ($1,500 if married filing separately) against your ordinary income. Anything left over becomes your Carryforward:
Note on the $3,000 Shield: > While the $3,000 deduction against your salary is the standard, it’s not universal. If you are Married Filing Separately (MFS), the IRS cuts that shield in half. You are limited to a $1,500 deduction per year. This is a common trap for couples trying to "hack" their tax brackets make sure you've crunched the numbers before splitting your returns.
The Wash Sale Rule: Avoiding IRS Section 1091 Disallowance Pitfalls
Here is the 500-word secret that your big-box brokerage and the IRS don’t want to broadcast: The “Wash Sale” rule is a trap designed to catch the impatient, and your broker isn’t always on your side.
The Wash Sale rule (IRS Section 1091) says that if you sell a stock for a loss and buy it back or buy a “substantially identical” one within 30 days before or after the sale, your loss is “disallowed.” The IRS treats it as if the sale never happened. Banks and brokers love this because they profit from your high trading frequency. They want you “churning” your account.
But here’s the secret: your broker’s 1099-B form only tracks wash sales within that specific account. If you sell Apple for a loss in your Charles Schwab account and buy it back an hour later in your Robinhood account, Schwab won’t flag it. You’ll get a tax form saying you have a deductible loss. This is a ticking time bomb. If you get audited, the IRS will pull your data from every “Modernized 1099-DA” (the new 2026 digital asset form) and 1099-B across all your accounts. They use AI-driven cross-referencing that didn’t exist five years ago. If they find that “cross-account” wash sale, they’ll not only disallow the loss but hit you with penalties and interest that date back to the day you filed.
The Pro Secret: To beat the wash sale without staying out of the market, use the “Substituted ETF” strategy. If you sell a tech stock like Nvidia at a loss, don’t buy Nvidia back for 31 days. Instead, buy a semiconductor ETF (like SOXX). The IRS doesn’t consider an ETF “substantially identical” to an individual stock. You stay invested in the sector, but you keep your tax loss. The banks won’t suggest this because they’d rather you just stay inactive or pay for their “Tax-Loss Harvesting” automated services that charge a 0.25% fee just to do what I just told you for free.
Case Study: Harvesting $55,000 in Losses to Create a 10-Year Tax Shield
Let me tell you about Elena. Elena is a software engineer in Austin, Texas. In 2024 and 2025, she went “all-in” on a few speculative alt-coins and a high-growth AI startup. By early 2026, her “moon-shot” portfolio had crashed. She was sitting on $55,000 in “unrealized” losses.
She was ready to delete the app and forget it ever happened. But Elena also had a big win: she sold her primary residence in late 2025 and had a $20,000 capital gain that exceeded her $250k exclusion. She was looking at a $3,000 tax bill just on that house gain, plus her regular 35% tax bracket on her $180k salary.
I told Elena to “realize” her failure. She sold her losing positions in February 2026.
The Math of Elena’s Recovery:
- Total Loss: $55,000
- Gain Offset: She used $20,000 of that loss to wipe out her $20,000 house gain. Tax bill on the house? Zero.
- Income Offset: She used another $3,000 to lower her taxable salary from $180k to $177k. At her 35% bracket, that was over $1,000 in immediate cash savings.
- The Carryover: She still had $32,000 left in her “IRS Piggy Bank.”
Because capital loss carryovers in the US never expire, Elena has effectively pre-paid her taxes for the next decade. If she sells a stock for a $5,000 profit in 2027, she pays $0 in tax. If she has no more gains, she’ll keep taking that $3,000 income deduction every year until 2036.
Elena didn’t lose $55,000; she bought a 10-year insurance policy against the IRS. The “secret” was her timing. She made sure she didn’t buy any of those coins back for 31 days (avoiding the wash sale), and she filed Form 8949 and Schedule D with surgical precision. She even used the new Box G on Form 8949 for her digital assets to stay ahead of the 2026 audit bots. Elena turned a portfolio disaster into a strategic tax shield.
IRS Form 8949 Variables: Box G Digital Assets and Short-Term Holding Rules
Why is your loss worth more than your neighbor’s? It’s not just the amount; it’s the “Character” of the money.
1. The Short-Term vs. Long-Term Hierarchy
Short-term losses are your “Gold.” Because they offset short-term gains (taxed up to 37%) first, they are mathematically more valuable. If you have a choice to sell a 11-month-old loser or a 13-month-old loser, sell the 11-month-old one. You want that “Short-Term” label on your Form 8949.
2. The $3,000 “Ordinary” Cap
This is the most annoying number in the US tax code. It hasn’t been adjusted for inflation since 1978. While you can offset unlimited capital gains, you can only offset $3,000 of your “regular” income (salary, tips, interest). It’s a drop in the bucket, but over 10 years, it’s $30,000 of tax-free income.
3. Digital Assets and Form 1099-DA
For 2026, the IRS is obsessed with crypto. If you sell Bitcoin at a loss, you’ll receive a Form 1099-DA. The “Inside Scoop” here? Unlike stocks, the Wash Sale rule does not yet officially apply to cryptocurrency in the same way (though the “Economic Substance” doctrine is a grey area). This means in 2026, you can often sell your crypto for a loss and buy it back much sooner but check with a pro, because the IRS is looking for an excuse to change this mid-season.
⚠️ The “Economic Substance” Warning Even though the 30-day Wash Sale rule isn’t strictly codified for crypto yet in 2026, don’t get reckless. The IRS uses the “Economic Substance Doctrine” to disallow losses that have no “meaningful change in your economic position.” If you sell Bitcoin at 2:00 PM for a loss and buy it back at 2:05 PM, you’re poking the bear. If the trade exists solely to dodge taxes, the IRS can (and will) hit the “disallow” button.
Timing the Harvest: Dec 31 vs. Jan 1 Tax Impact Comparison
| Scenario | Gains | Losses | Final Taxable Gain/Loss | Tax Impact (35% Bracket) |
| Wait until Jan 1st | $10k | $10k | $0 (In 2027) | $0 Savings Now |
| Sell Dec 31st | $10k | $10k | $0 (In 2026) | $3,500 Saved Now |
| The “Max Move” | $0 | $15k | -$3k (Income Offset) | $1,050 Refund + Carryover |
State Capital Gains Rules: Deductions in New York, California, and Texas
- California & New York: These states do not give you a break on capital gains. They tax them as regular income. This makes your loss offsets twice as valuable. In NYC, a $3,000 loss offset could save you nearly 50% in combined taxes.
- Texas & Florida: With no state income tax, you only care about the federal 15-20% rate. Your losses aren’t quite as “potent” here, but they still help.
- Pennsylvania: Be careful. PA has its own weird rules about “netting” losses. They don’t always allow the $3,000 carryover against ordinary income in the same way the feds do.
FAQ: Questions from the Red Zone
Q: Can I sell a stock at a loss in my IRA and use it to offset my salary? A: No. Losses in a 401(k) or IRA are “invisible” to the IRS. Tax-loss harvesting only works in “Taxable” brokerage accounts.
Q: What if I have a $100,000 loss? Do I lose the rest? A: No! You use it to offset any gains this year, then $3,000 against your salary, and the remaining $97,000 rolls over to 2027, 2028, and beyond. It never expires.
Q: If I sell a stock at a loss, can my wife buy it back? A: No. The IRS considers you and your spouse as one person for the Wash Sale rule. If she buys it within 30 days, your loss is disallowed.
Q: What is Form 8949? A: This is the “Journal” where you list every single trade. The totals from this form move to Schedule D. If you don’t file 8949, your loss doesn’t exist.
External Resources
- IRS.gov: Topic No. 409 Capital Gains and Losses
- ConsumerFinance.gov: For help understanding how investment losses impact your credit and overall net worth.
- SEC.gov: To verify the “Substantially Identical” status of ETFs.
Disclaimer: I am a financial researcher, not a licensed attorney or CPA. This tool provides estimates for educational purposes only. Always consult a professional before filing a legal claim.