Skip to main content

Site Navigation

Site Search

global Tax

How Wash Sale Rules Can Disqualify Your Tax Losses and Strategies to Avoid It

July 06, 2026

Don’t let the IRS wash sale rule erase valuable tax deductions; understand how tax-loss harvesting works and how smart planning can help you preserve losses while staying invested.

Many investors are looking for ways to optimize their tax situation, often by selling investments at a loss to offset gains. While this strategy, known as tax-loss harvesting, can offer meaningful tax benefits, it comes with complex rules. One of the most important, and commonly misunderstood, is the IRS wash sale rule. The wash sale rule can invalidate a loss if you buy the same or a substantially identical investment too soon.  

Quick Takeaways

  • Capital losses can offset capital gains, but only if you avoid triggering the wash sale rule.
  • The wash sale rule disallows losses if you buy the same or substantially identical security within 30 days before or after a sale.
  • Planning, careful recordkeeping, and alternative investment strategies can help you preserve deductions while maintaining your portfolio.

Why It Matters

Triggering the wash sale rule can disqualify valuable tax deductions, potentially increasing your tax liability. By understanding the rules and planning carefully, investors can preserve losses, reduce taxes, and stay fully invested without missing market opportunities.

What is Tax-Loss Harvesting?

One common strategy used by high-income earners is tax-loss harvesting, in other words: selling investments that have lost value to offset capital gains and reduce overall tax liability. Beyond the potential tax benefits, this approach can also help investors streamline underperforming assets in their portfolios, making room for more strategic investments.

While it sounds straightforward, tax-loss harvesting has nuances that require careful planning. Without proper guidance from an accountant or financial professional, investors risk triggering rules that can disqualify these deductions entirely.

What is the Wash Sale Rule?

The IRS wash sale rule exists to prevent taxpayers from claiming tax deductions for sales that don’t meaningfully reduce investment risk. Under this rule, a loss from selling a stock, bond, mutual fund, or other security cannot be deducted if you buy a “substantially identical” security within a 61-day window: 30 days before and 30 days after the sale.

Example: 

You sell 100 shares of a stock at a loss on December 10 and repurchase the same stock on December 18. The IRS would disallow the loss for tax purposes, meaning you could not use it to offset capital gains.

This rule also applies across accounts you control, including taxable brokerage accounts, IRAs, and other retirement accounts, making careful planning essential.

Importantly, the wash sale rule currently applies to securities, not cryptocurrency. Under current IRS guidance, cryptocurrency is treated as property rather than a security. As a result, selling crypto at a loss and repurchasing the same asset does not trigger a wash sale under existing rules.

That difference creates unique planning opportunities. Investors holding digital assets may be able to harvest losses and reinvest immediately without waiting 31 days, while maintaining market exposure. However, this area is evolving, and proposed legislation has periodically sought to extend wash sale rules to crypto, so careful monitoring is essential.

Strategies to Avoid Wash Sales

  1. Wait Out the 61-Day Window
    The simplest way to avoid a wash sale is to wait at least 31 days before repurchasing the same security. Timing trades carefully near year-end is crucial for maximizing deductible losses.
  2. Invest in Similar, Not Identical Securities
    If you want to maintain exposure to a sector or market segment while harvesting losses, consider purchasing a similar (but not identical) security. For example, selling one S&P 500 index fund and buying a different S&P 500 fund or a large-cap ETF can keep your portfolio aligned without triggering the rule.
  3. Monitor All Accounts
    Remember that the wash sale rule applies across all accounts you control, including retirement accounts like IRAs or 401(k)s. A purchase in any account during the 61-day window can nullify your deduction, so coordination is key.
  4. Plan Year-Round
    Tax-loss harvesting works best as part of a broader investment strategy rather than a last-minute year-end scramble. Keeping a calendar of potential trades, maintaining accurate records, and consulting a financial professional can help prevent accidental wash sales.

Understanding the wash sale rule and planning ahead allows investors to leverage tax-loss harvesting effectively while maintaining a balanced portfolio. With careful execution, investors can reduce tax liability, reinvest strategically, and stay aligned with long-term financial goals, without falling into IRS traps.

Let's Connect

Looking to trim your tax bill in 2026?

Don’t let the IRS wash sale rule wipe out your hard-earned losses. Connect with Joe to learn how to harvest tax losses smartly and keep your portfolio on track.

Joseph Burnett

Joseph Burnett, CPA

Partner, Tax Services Group

View bio

Also in Tax Blog