Wash Sales
Wash Sales
Few rules in the tax code are as widely violated and misunderstood as the wash-sale rule. The rule exists to prevent a simple form of tax gaming: sell a losing stock to claim the loss, then immediately buy it back to recapture the position. The IRS does not allow this maneuver. Yet thousands of investors execute it every year, sometimes without realizing they have triggered the rule, and discover months later that their tax loss was disallowed.
The wash-sale rule is not a penalty. It is a reallocation rule. When you trigger it, the loss is not erased—it is deferred, added to the cost basis of the replacement position, and becomes taxable only when you eventually sell the new position without immediately repurchasing. This deferral can cost you decades of compounding. More troublesome, many investors forget they triggered the rule and later make tax planning decisions based on a nonexistent loss, leading to underpaid taxes and IRS notices.
What the Rule Prohibits
The wash-sale rule states that if you sell a security at a loss, you cannot claim that loss for tax purposes if you repurchase the same security (or a substantially identical security) within 30 days before or 30 days after the sale. The window is thus 61 calendar days centered on the sale date: 30 days before, the sale day itself, and 30 days after.
The rule applies to "substantially identical" securities, a term the IRS interprets broadly but not infinitely. Buying the same stock is obviously substantially identical. Buying the same stock held by a mutual fund or ETF is usually considered substantially identical. Buying a different dividend class of the same stock (Class A vs. Class B) is probably safe. But here is where investor mistakes multiply: buying a similar but different stock—say, selling Apple and buying Microsoft, two large-cap tech stocks—is not a wash sale. Buying Apple call options while holding Apple shares, or after selling Apple, may or may not be substantially identical depending on the specifics. The boundaries are fuzzy, and the IRS polices them unevenly.
The 30-Day Window: Before and After
Many investors misremember the rule as applying only after the sale. In fact, the rule applies both before and after. If you buy a stock, then sell a substantially identical position within 30 days before that purchase, the loss on the sale is disallowed. This creates a trap for traders: if you buy Tesla shares on January 15 and then sell them at a loss on February 10, any loss is disallowed because you purchased within 30 days before the loss-realization sale. The timing matters more than the order.
Consider a practical example: You own 100 shares of Acme Inc., purchased at <$50, now worth <$40. You sell on June 15 to harvest the <$1,000 loss. If you buy Acme shares again on June 20, July 1, or July 14, the loss is disallowed. You must wait until July 15 or later to repurchase and claim the loss. This 30-day discipline is the core requirement, and it can feel uncomfortable—you are exiting a position you believe will rebound, and you cannot easily get back in without forfeiting the tax benefit. That tension is intentional. The rule is designed to make tax-loss harvesting costly unless you are patient.
Deferral, Not Erasure
When a wash sale occurs, the disallowed loss does not vanish. Instead, it increases the cost basis of the replacement shares. If you sell 100 shares at a <$10 loss and immediately buy 100 identical shares at <$40, the new shares are treated as having a cost basis of <$50 (the original <$50 plus the disallowed <$10 loss). When you eventually sell those shares, the loss reappears, either reducing a future gain or offsetting income, depending on the circumstances. The IRS has simply delayed the tax benefit—sometimes for years, sometimes until you forget you ever triggered the rule.
This deferral can compound costs in insidious ways. Suppose you defer a <$10,000 loss for five years by repeatedly triggering wash sales. During those five years, the money you would have used to offset gains could have been deployed elsewhere, growing and compounding. When the loss finally materializes, inflation may have reduced its real value, or your tax bracket may have fallen, making the benefit smaller. Wash-sale deferral is not free.
Why Investors Trigger It
The rule is triggered most often in two scenarios. The first is emotional: an investor sells a losing stock hoping to cut losses, then buys it back within days because they cannot bear to stay out of the market. The second is mechanical: an investor uses dividend reinvestment, which automatically repurchases shares, not realizing this can trigger a wash sale on the original position sold at a loss days before. Brokerage statements rarely warn of wash sales proactively; the burden is on the investor to track their sales and repurchases.
Documentation and Tax Compliance
Many brokers now track wash sales and flag them on tax documents, but the accuracy varies. Some brokers misclassify wash sales; others categorize them as ordinary losses instead of deferred. Your tax software may or may not import this data correctly. Verifying wash-sale status on your own—maintaining a log of all buy and sell transactions and the 30-day windows around each loss sale—is a prudent practice, especially if you are an active trader or frequent tax-loss harvester. Always confirm treatment with the IRS or a qualified tax professional before filing your return.
Rules Change; Consult a Professional
Tax rules are subject to legislative change, and the IRS periodically issues guidance clarifying the boundaries of "substantially identical." This chapter reflects rules as of 2026, but future legislation could alter how the wash-sale rule operates. Before implementing tax-loss harvesting strategies that rely on understanding wash-sale mechanics, confirm current rules with the IRS or a qualified tax professional.
Strategies and Safeguards
The chapters ahead explore practical techniques for avoiding wash-sale traps while still harvesting losses effectively. You will learn about the 30-day rule in detail, how to identify substantially identical securities, and strategies like "boxing out" a position (selling while buying a different but correlated security) to maintain market exposure while safely harvesting losses. You will also see how the wash-sale rule interacts with other tax rules, such as the treatment of short sales, and how to document your compliance for the IRS.
Articles in this chapter
📄️ What Is the Wash Sale Rule?
The wash sale rule prevents investors from claiming tax losses on securities sold and repurchased within 30 days. Learn how it works and impacts your returns.
📄️ Why the Rule Exists
The wash sale rule prevents artificial tax losses without genuine economic change. Understand its history, legislative intent, and ongoing debate in modern investing.
📄️ The 61-Day Window
Wash sales trigger if you repurchase within 30 days before or after a loss sale. Master the exact timing rules and calendar mechanics to avoid disallowance.
📄️ Substantially Identical Securities
The IRS considers securities 'substantially identical' if they represent the same property. Learn which replacements avoid wash sales and which trigger them.
📄️ Wash Sales Across Accounts
Wash sales trigger across all accounts you control—brokerage, IRA, 401k, and spouse accounts. Understand cross-account wash sale rules and traps.
📄️ Wash Sales and IRAs
Wash sales apply to IRA trades, but the consequences are complex. Understand aggregation rules, cost basis treatment, and strategies to avoid IRA wash sales.
📄️ Loss Disallowance & Basis Adjustment
Understand how the IRS adds a disallowed wash sale loss to your new purchase cost basis and what that means for future taxes.
📄️ Holding Period and Wash Sales
Learn how wash sales interact with holding periods, whether they reset timelines, and how to track long-term capital gains after a wash sale.
📄️ Wash Sales with Funds and ETFs
Understand wash sale rules when trading mutual funds and ETFs, including substantially identical definitions and fund family complications.
📄️ Wash Sales and Dividend Reinvestment
Learn how automatic dividend reinvestment triggers wash sales, affects cost basis, and interacts with the 30-day window.
📄️ Wash Sales and Options
Understand how wash sale rules interact with call options, put options, and convertible securities when you realize losses.
📄️ Spousal Wash Sale Trap
Understand how spouses filing jointly can trigger wash sales through each other's trades and why separate filing does not protect you.
📄️ How Brokers Report Wash Sales
Learn how brokers track and report wash sales to Form 1099-B, and why accurate reporting from your brokerage matters for your tax return.
📄️ Reporting Wash Sales on Form 8949
Master the mechanics of reporting wash sales on Form 8949, including deferred loss adjustments and the correct cost-basis entries for accurate tax filing.
📄️ Avoiding Accidental Wash Sales
Practical strategies to sidestep unintended wash sales: timing rules, alternative purchases, record-keeping, and tools to catch mistakes before tax time.
📄️ Wash-Sale Workarounds
Explore legal strategies to harvest tax losses while minimizing wash-sale impact: timing, proxies, paired trades, and creative portfolio management techniques.
📄️ Wash Sales and Crypto
Understand whether wash-sale rules apply to cryptocurrency trades, IRS guidance on digital assets, and how to report crypto losses correctly.
📄️ Wash-Sale Rule Checklist
A step-by-step checklist to identify, calculate, and report wash sales correctly, reducing tax mistakes and IRS audit risk.