PERQS

Selling at a Loss? Here’s How the Wash-Sale Rule Can Affect Your Taxes

The wash-sale rule is an IRS rule that stops investors from claiming a tax loss if they sell a security at a loss and then buy the same (or “substantially identical”) security too soon. The big idea is simple: you can’t take a deduction for a loss if you didn’t really change your investment position. Wash-sale rules most commonly come up during tax-loss harvesting, when you sell losers to offset gains. The rule doesn’t ban quick trades — it just blocks the immediate tax benefit and adjusts your cost basis instead.

Summary

The wash-sale rule is an IRS rule that stops investors from claiming a tax loss if they sell a security at a loss and then buy the same (or “substantially identical”) security too soon. The big idea is simple: you can’t take a deduction for a loss if you didn’t really change your investment position.

Wash-sale rules most commonly come up during tax-loss harvesting, when you sell losers to offset gains. The rule doesn’t ban quick trades — it just blocks the immediate tax benefit and adjusts your cost basis instead.


🧾 What the wash-sale rule is

The wash-sale rule is a tax requirement designed to prevent investors from selling an investment at a loss and then quickly buying it back to generate a fast tax write-off without meaningfully changing their portfolio. In other words, the IRS doesn’t want you to “create” a deductible loss while staying essentially invested in the same thing. If the rule applies, you can still repurchase the investment — you just can’t claim the loss right away.

Takeaways:

• The rule targets loss deductions when you sell and then quickly re-buy the same or substantially identical security, keeping you from claiming a tax break without really changing your exposure.

Key Terms

• Wash sale: A sale at a loss followed by a repurchase of the same or substantially identical security within the IRS time window.
• Taxable account: A brokerage account where trades can create taxable gains and losses (unlike certain retirement accounts).


⏱️ How a wash sale works (and the 30-day window)

The IRS generally defines a wash sale as selling a security at a loss in a taxable account and then buying the same or a “substantially identical” security within 30 days before or after that sale. That’s a 61-day window total: 30 days before the sale date, the sale date itself, and 30 days after. Wash-sale rules can apply to stocks, bonds, mutual funds, exchange-traded funds (ETFs), and options. And the rule isn’t limited to one account: repurchasing in another account — including an IRA or Roth IRA — can still trigger a wash sale, even if the other account is in your spouse’s name. The result is that the loss is disallowed for now, because the IRS views the rapid sell-and-rebuy as a “wash” that doesn’t reflect a true change in your investment position.

Takeaways:

• The 30-day rule applies both before and after your sale, and repurchases across different accounts (including retirement accounts) can still count.

Key Terms

• Substantially identical: Not precisely defined for every scenario, but generally means close enough that your investment exposure is essentially the same.
• 30-day rule: The timing requirement that can trigger a wash sale when you sell at a loss and re-buy too soon.


📈 Capital gains, capital losses, and why wash sales matter

To see why wash sales are such a big deal, it helps to zoom out to capital gains and losses. When you sell an investment for more than you paid, you have a capital gain; when you sell for less, you have a capital loss. From a tax standpoint, capital gains can be taxable income, and the rate you pay can depend on factors like your filing status, your overall taxable income, and how long you held the investment. A common strategy called tax-loss harvesting uses losses to offset gains, reducing your tax bill. If your losses exceed your gains, you may be able to use up to $3,000 of losses per year to offset ordinary taxable income. Because losses can be valuable at tax time, the wash-sale rule exists to prevent investors from “manufacturing” deductible losses by selling and immediately repurchasing the same investment.

Takeaways:

• Tax-loss harvesting can lower taxes by using losses to offset gains, but the wash-sale rule can block that benefit if you re-buy too quickly.

Key Terms

• Capital gain: Profit from selling an investment for more than you paid.
• Capital loss: Loss from selling an investment for less than you paid.
• Tax-loss harvesting: Selling investments at a loss to offset capital gains (and potentially up to $3,000 of ordinary income per year, if losses exceed gains).


🧮 Wash-sale consequences (with a simple example)

A wash sale doesn’t mean you did anything “wrong” — it just changes how the loss is treated. Quick trades are allowed, but if the trade is flagged as a wash sale, the loss becomes disallowed for now, meaning you can’t use it to offset gains in the current tax year. Instead, the disallowed loss is added to the cost basis of the replacement security. This adjustment can matter later, because a higher cost basis can reduce a future taxable gain (or increase a future loss). For example, imagine you bought 20 shares at $50 ($1,000 total). The price falls to $10, and you sell all shares for $200, realizing an $800 loss. If you then repurchase the same stock within 30 days — say you buy 20 shares for $400 — the IRS can treat that as a wash sale. You can’t claim the $800 loss right away, and your new cost basis becomes $400 + $800 = $1,200. That doesn’t erase the loss forever, but it pushes the tax benefit into the future through the basis adjustment.

Takeaways:

• A wash sale doesn’t ban the trade — it postpones the loss by adding it to the replacement investment’s cost basis, which can affect taxes later.

Key Terms

• Disallowed loss: A loss you can’t deduct right now because of the wash-sale rule.
• Cost basis: The amount used to calculate gain or loss (often what you paid, adjusted for certain events like wash-sale losses).


🧩 What counts as “substantially identical”

For single-company investments, the concept is usually straightforward: buying back the same company’s stock after selling it at a loss is typically considered substantially identical. But real life gets messy fast. Corporate actions can blur the lines — for instance, if two companies merge, stock from the “old” and “new” company could be treated as substantially identical. Preferred shares are often not considered substantially identical to common shares, but if preferred shares can convert into common shares, there may be situations where the IRS would see them as close enough. The grayest area is pooled investments like mutual funds and ETFs. Funds can hold hundreds of stocks, and the IRS has not provided crystal-clear guidance on when two funds are substantially identical. Mutual funds may differ based on how a manager builds and adjusts holdings, which can create enough variation in some cases. ETFs often track indexes, and two ETFs that track the same index may have extremely similar holdings, which can raise wash-sale questions. Because “substantially identical” isn’t always sharply defined for funds, this is an area where careful planning — and sometimes professional advice — can help you avoid accidental surprises.

Takeaways:

• The definition is clearer for individual stocks but can become murky with mutual funds and ETFs, especially when they track the same index.

Key Terms

• Mutual fund: A pooled investment typically managed by a fund manager (or team) who chooses holdings.
• ETF: A pooled investment that often tracks an index and trades like a stock during market hours.
• Index: A benchmark (like the S&P 500, Dow Jones, or Russell 1000) that some funds aim to track.


🛡️ How to avoid a wash sale while staying invested

If you want to capture a loss for tax purposes but don’t want to sit out of the market for 30 days, you may have a few practical options. One approach is to sell an individual stock at a loss and then buy an ETF (or mutual fund) that gives you exposure to the same general sector. That way, you’re not repurchasing the same security, but you can still participate if the broader industry rebounds. Another approach is to swap market exposure across indexes. For example, if you sell an ETF that tracks one major index, you might consider buying a different ETF that tracks a different index with broadly similar exposure — potentially reducing the chance it’s considered “substantially identical.” The key is that these approaches live in the real-world gray area of what counts as substantially identical, especially for funds. If you’re doing larger tax-loss harvesting moves or you’re unsure whether a swap is “too similar,” a tax or financial professional can help you pressure-test the plan before you pull the trigger.

Takeaways:

• Sector ETFs or switching to a different index can help you maintain exposure without immediately rebuying the same security, but fund “similarity” can still be a gray area.

Key Terms

• Sector exposure: Investing in a basket of companies within the same industry (like technology or healthcare).
• Market exposure: Staying invested in the market broadly, even if you swap the specific investment you hold.


🪙 Is cryptocurrency subject to the wash-sale rule in 2025?

As described in the source material you provided, cryptocurrency is not currently treated the same way as stocks and other securities for wash-sale purposes, so the wash-sale rule does not apply to crypto — for now. Crypto is generally treated as property for tax purposes (which means capital gains taxes can still apply), but it is not broadly treated as a security under the wash-sale framework at this time. That said, the regulatory landscape around digital assets has been actively debated and could evolve, so it’s worth keeping an eye on changes that could affect how crypto transactions are treated in the future.

Takeaways:

• Crypto isn’t currently subject to the wash-sale rule based on the provided article, but rules and definitions can change, so staying alert to updates matters.

Key Terms

• Cryptocurrency: A type of digital asset that can be bought and sold, often triggering capital gains or losses.
• Property (tax definition): An asset category that can still be subject to capital gains taxes even if it isn’t treated as a security.


Conclusion

The wash-sale rule is all about timing and similarity: if you sell a security at a loss and repurchase the same or substantially identical investment within the 30-day window, you may lose the ability to claim that loss right away. The good news is the loss isn’t necessarily gone — it’s typically rolled into the cost basis of the replacement investment, which can help you later. If you’re tax-loss harvesting, planning your replacement investment carefully (and understanding the gray areas around funds and indexes) can help you stay invested while reducing the odds of an expensive tax surprise.