Skip to main content
Lifecycle

Wash Sales

Pomegra Learn

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