Wash Sale Rule Explained (With Examples)

Turn market losses into tax savings

Key Takeaways

Introduction

When it comes to tax loss harvesting guide, there is no shortage of opinions. But opinions do not pay the bills — data does. In this guide, we break down Wash Sale Rule Explained (With Examples) with real numbers, clear comparisons, and actionable advice.

What You Should Know

Wash Sale Rule Explained (With Examples) is a topic that affects virtually every investor. Yet most articles either oversimplify or push a specific agenda. Our approach is different: we look at the actual data, factor in taxes, inflation, and risk, and let the numbers tell the story.

Key Factors to Consider

1. Risk and Return Trade-Off

Every financial decision involves a trade-off between risk and potential return. The key is understanding which side of that trade-off aligns with your personal situation. Historical data shows that the relationship is not always linear — sometimes taking on more risk does not proportionally increase returns.

2. Tax Implications

Taxes are often the silent killer of investment returns. What looks good on paper can be significantly less attractive after accounting for federal and state taxes, especially for high-income earners in top brackets.

3. Time Horizon

Your investment timeline dramatically changes which strategy is optimal. What works for a 25-year-old may be entirely wrong for someone approaching retirement. We always factor in time horizon when making recommendations.

Real-World Example

Consider an investor with $100,000 to allocate. Under different scenarios, the difference over 20 years can be staggering — often $50,000 to $200,000 depending on the choices made today.

Expert Tips

Try Our Interactive Calculator

See exactly how this affects YOUR finances with our free tool.

Use the Calculator →

The 30-Day Window in Real Time

The wash sale rule in Internal Revenue Code Section 1091 is unforgiving about dates. If you sell a security at a loss, you cannot buy a substantially identical security from 30 days before the sale through 30 days after it — a 61-day window in total. Buy on day 31 after the sale and the loss is allowed; buy on day 30 and it is not. The disallowed loss is not erased, though: it is added to the cost basis of the replacement shares, so it is deferred rather than lost forever.

Worked example: you sell 100 shares of XYZ on October 10 for a $2,000 loss. On October 25 you buy 100 shares back. The loss is disallowed and added to the basis of the new shares, so when you eventually sell them, your gain is $2,000 smaller — or your loss $2,000 larger. You simply moved the tax benefit forward in time, which is why wash sales are a timing problem, not a permanent loss of the deduction.

What Counts as Substantially Identical

The IRS has never defined “substantially identical” with a bright-line rule, so investors rely on guidance and common practice. Shares of the same company or the same CUSIP are clearly substantially identical. Options or contracts to buy the same stock can also trigger the rule. For index funds, the safest interpretation is that two funds tracking the same index from the same provider are substantially identical, while funds from different providers tracking different (even if similar) indexes are generally treated as distinct — which is exactly why VOO-to-IVV-style swaps are the classic harvest partner move.

Be careful with the edges: a mutual fund and an ETF tracking the same index, preferred shares of the same issuer, and even certain convertible securities have all been argued to be substantially identical. When in doubt, wait the full 31 days, or switch to a genuinely different index.

Why 2026 Reminds Us to Check Every Account

Revenue Ruling 2008-5 confirmed that the wash sale rule applies across accounts you control, including IRAs and spouses' accounts. This is the most common surprise for people who harvest in a taxable brokerage account while their retirement accounts automatically reinvest dividends into the same fund. If your IRA buys the fund within the 30-day window, the taxable loss is disallowed, and the disallowed amount quietly increases the basis inside your IRA — where it may never produce a tax benefit at all. Before any harvest, pause dividend reinvestment in every account holding the security you plan to sell.

Disclaimer: This content is for informational and educational purposes only. It does not constitute financial advice. Always consult a qualified financial professional before making investment decisions.