Fully virtual · Serving business owners in Oklahoma and beyond Make a Payment(405) 844-6442brooks@cannon-brown.comClient Portal

Key takeaways

  • Selling an investment that is down creates a capital loss that offsets capital gains dollar for dollar, plus up to $3,000 a year of other income.
  • Unused capital losses carry forward to future years with no expiration for individuals.
  • The wash sale rule disallows the loss if you buy substantially identical stock within 30 days before or after the sale, including purchases by your spouse or a corporation you control.
  • Buying the same stock in your IRA or Roth IRA within the window can make the loss disappear for good, not just delay it.
  • For a high earner, a harvested loss that offsets a short-term gain is worth the most, because short-term gains are taxed at ordinary rates.

The short answer: tax-loss harvesting means selling investments that are worth less than you paid, so the loss can offset gains you’ve already taken. For a high earner in the top brackets, every dollar of loss that offsets a long-term gain saves up to 23.8 cents of federal tax (20% plus the 3.8% net investment income tax), and every dollar that offsets a short-term gain can save up to 40.8 cents. The catch is the wash sale rule. Buy the same investment back too soon, and the IRS disallows the loss.

Below, we cover how losses are used, how the wash sale rule works, and the mistakes that cost investors the most.

How capital losses offset gains

The IRS sorts your gains and losses into two groups: short-term (assets held one year or less) and long-term (held more than one year). Losses first offset gains of the same type. Any net loss left in one group then offsets net gain in the other.

If your losses are larger than your gains for the year:

  • Up to $3,000 of net capital loss ($1,500 if married filing separately) can offset other income, such as wages or business income.
  • The rest carries forward to future years. For individuals, there is no time limit on the carryforward, and the loss keeps its short-term or long-term character.

That carryforward is why harvesting can make sense even in a year with few gains. A loss banked today can offset a large gain later, such as the sale of a rental property or a block of company stock.

Why short-term gains are the best target

Short-term gains are taxed at ordinary income rates. For 2026, the top 37% rate begins above $768,700 of taxable income for married couples filing jointly and above $640,600 for single filers. Long-term gains top out at 20%. Both can also carry the 3.8% net investment income tax once modified adjusted gross income passes $250,000 (married filing jointly) or $200,000 (single). The IRS notes those thresholds aren’t indexed for inflation.

So a loss that wipes out a short-term gain is usually worth more than one that offsets a long-term gain. The netting order above decides where a loss lands, so it helps to look at your whole year before you sell.

The wash sale rule, in plain language

Under Section 1091 of the tax code, you can’t deduct a loss on stock or securities if, within 30 days before or after the sale, you:

  • buy substantially identical stock or securities,
  • acquire them in a fully taxable trade,
  • enter into a contract or option to acquire them, or
  • acquire them for your IRA or Roth IRA.

That is a 61-day window: 30 days before the sale, the day of the sale, and 30 days after. Publication 550 adds that a purchase by your spouse or by a corporation you control also triggers a wash sale.

What happens to the disallowed loss

In an ordinary taxable account, the loss isn’t gone. It is added to the basis of the new shares, and your holding period for the old shares carries over. You get the benefit later, when you sell the replacement shares. That delay can still hurt if you were counting on the loss to offset this year’s gains.

The IRA trap

The IRA case is worse. In Revenue Ruling 2008-5, the IRS ruled that when your IRA or Roth IRA buys the replacement shares, the disallowed loss is not added to the basis of the IRA’s shares. In practice, the loss is lost for good. This is easy to trigger by accident, for example when an IRA has automatic investments or dividend reinvestment in the same fund you just sold at a loss in your taxable account.

What counts as “substantially identical”

The IRS looks at all the facts and circumstances. Publication 550 says stock of one corporation ordinarily isn’t substantially identical to stock of another corporation. That is why many investors sell a losing position and buy something similar but not the same, such as a different company in the same industry, and hold it for at least 31 days. Funds are less clear-cut: two funds that track the same index from different sponsors can raise questions. When in doubt, choose a replacement that is meaningfully different, or wait out the 31 days.

A hypothetical example

Take a hypothetical married couple whose taxable income is already in the top bracket. Earlier in the year, they sold a long-held stock for a $200,000 long-term gain. Their taxable portfolio also holds two positions that are down a combined $80,000.

No harvestingHarvest $80,000 of losses
Net long-term gain$200,000$120,000
Federal tax at 23.8%$47,600$28,560
Federal tax saved—$19,040

To stay invested, they buy shares of different companies in the same sectors right away, so the wash sale rule doesn’t apply, and they turn off dividend reinvestment in their IRAs for those positions. This is a simplified federal example; their Oklahoma return is figured separately.

How Oklahoma treats harvested losses

Oklahoma starts from your federal adjusted gross income, so net capital losses allowed on your federal return generally flow through to your Oklahoma return. Oklahoma tax is figured on its own return, separate from your federal tax. If you own pass-through businesses, any business-level tax, such as the Oklahoma pass-through entity tax, is a separate calculation as well.

Common mistakes to avoid

  1. Forgetting the 30 days before. If you bought more of a stock in the last month, selling the older shares at a loss can be a wash sale.
  2. Reinvested dividends. An automatic dividend reinvestment within the window is a purchase.
  3. Accounts you don’t watch. Your spouse’s accounts and your IRAs count. Brokers generally track wash sales only within the same account, so the job of checking across accounts falls to you.
  4. Harvesting just to harvest. Selling resets your basis lower, so the gain you avoid now can come back later. Harvesting works best when it offsets high-rate gains now, when you expect a lower rate later, or when you plan to hold the replacement until death or give it to charity.
  5. Letting tax drive the investment. A loss sale should still fit your investment plan.

Pair harvesting with your other year-end moves

Harvesting works well alongside other strategies. If you plan to give to charity, give your winners, not your losers. Our guide to donating appreciated stock explains how giving shares with large gains can avoid the capital gains tax on them, while selling a losing position and giving the cash lets you keep the loss. And because harvested losses lower your net investment income, they can also reduce the 3.8% tax covered in our guide to the net investment income tax.

Trades on an exchange generally count in the year of the trade date, so a sale made on the last trading day of the year can still create a loss for that year. Check the date with your broker before relying on it.

How we help

At Cannon & Brown Tax Advisors, we look at your gains, losses, carryforwards, and income for the whole year before you sell, so each harvested loss lands where it saves the most, and we flag wash sale risk across your accounts. If you’d like to see how our strategies can help you accomplish your goals, start with a free tax analysis.

Illustrative example. The people and figures in this article are hypothetical, used to explain how the rules work. They are not a client and not a promise of results.

This article is educational and is not tax advice for your situation. Tax law may change, which may change these rules and numbers.

Want to know how this applies to you?

In a free tax analysis, we’ll look at your numbers and show you the strategies that fit your business and your goals.

Get My Free Tax Analysis

Common questions

How much capital loss can I deduct in a year?

Capital losses offset capital gains without limit. If losses exceed gains, up to $3,000 of the net loss ($1,500 if married filing separately) can offset other income, and the rest carries forward.

Do unused capital losses expire?

For individuals, no. A net capital loss carries forward to future years until it is used, and it keeps its short-term or long-term character.

Does the wash sale rule apply if I buy the stock back in my IRA?

Yes. Buying substantially identical stock in your IRA or Roth IRA within 30 days before or after the sale is a wash sale, and under Revenue Ruling 2008-5 the loss is not added to the IRA’s basis, so it is effectively lost.

Can I sell a stock at a loss and buy a similar one right away?

Generally yes, if the replacement isn’t substantially identical. Stock of a different corporation ordinarily isn’t substantially identical, but funds tracking the same index deserve more care.

Brooks Brown, EA, Tax Strategist

Brooks Brown, EA, Tax Strategist

Brooks leads Cannon & Brown Tax Advisors, a forward-thinking tax firm serving business owners in Oklahoma and beyond. He builds year-round tax strategies that help business owners keep more of what they earn and reach their goals. More about Brooks

Free Tax Analysis