Sell a losing stock and buy it back within 30 days, and the IRS wash-sale rule cancels the deduction

a person holding a cell phone in their hand

Investors who sell a stock at a loss and repurchase it within 30 days lose the tax deduction they expected to claim. The wash-sale rule, codified in federal statute as 26 U.S. Code Section 1091, blocks the write-off whenever a taxpayer buys “substantially identical” shares inside a 61-day window that spans 30 days before through 30 days after the sale. The disallowed loss does not vanish, but the timing shift can catch filers off guard during the 2026 tax season, especially those who traded actively through volatile stretches earlier this year.

How the 61-day window erases a tax break investors count on

The core mechanic is straightforward. A taxpayer sells shares at a loss, then acquires the same or a substantially identical security within the 61-day window. At that point, the IRS treats the loss as disallowed for the current tax year. The statute, maintained in the official federal code, states plainly that “no deduction shall be allowed” when the repurchase falls inside those 30 days on either side of the sale.

What makes this rule bite harder than a simple lost deduction is the basis adjustment that follows. Under Treasury regulations interpreting Section 1091, the disallowed loss gets added to the cost basis of the replacement shares. That means the economic loss is not erased; it is deferred into the new position. If a trader sells those replacement shares later at a gain, the inflated basis reduces the taxable profit. But if the trader triggers another wash sale on those replacement shares, the basis climbs again, and the cycle compounds. Over multiple rounds of selling and rebuying, the basis inflation stacks, pushing the real tax consequence further into the future while denying deductions along the way.

This compounding effect matters most for frequent traders. Someone who sells and rebuys the same stock several times in a year can accumulate a string of disallowed losses, each folded into the next lot’s basis. The single-year hit looks modest on paper, but the cumulative deferral means the investor carries a growing unrealized tax benefit that only pays off when the position is finally closed without triggering another wash sale. No publicly available IRS enforcement dataset breaks out how often this pattern occurs across taxpayer returns, so the scale of compounding basis inflation remains an open question.

While the broad rule is in the statute, details on how to compute disallowed losses and basis adjustments appear in the Treasury’s implementing regulations. Those rules walk through examples of partial wash sales, situations where only part of a share lot is replaced, and how to allocate the disallowed loss across multiple replacement purchases. Active traders who rely on complex strategies or staggered orders can find that several different trades, executed over days, are linked together for wash-sale purposes once the math is done.

Broker reporting and the paper trail the IRS already has

Brokers do not leave wash-sale tracking to the taxpayer alone. The IRS instructions for Form 1099-B require brokerages to flag wash-sale adjustments on the forms they send to both the filer and the agency. When a wash sale is reported, the basis of the acquired securities is increased by the disallowed loss amount, and that adjusted figure appears on the 1099-B. For investors using a single brokerage account, the adjustment is largely automatic.

The gap appears when an investor holds accounts at multiple firms. A sale at one broker and a repurchase at another can still constitute a wash sale, but neither broker may have visibility into the other’s transactions. In that scenario, the taxpayer bears the responsibility to reconcile the trades and apply the rule correctly, even if no single 1099-B shows the full picture. The statutory language preserved by the Office of the Law Revision Counsel does not carve out exceptions for trades spread across different platforms.

Tax software can help, but only if all accounts are imported and reconciled. When investors omit a smaller account or a newer trading app, the program may miss cross-account wash sales entirely. That mismatch between what the IRS can infer from multiple 1099-B filings and what the taxpayer reports on Schedule D can draw scrutiny, especially when large losses appear without corresponding basis adjustments in later years.

Planning around the rule before 2026 filings

For investors looking ahead to their 2026 returns, the most practical step is to track holding periods and recent trades before realizing losses. Waiting more than 30 days to repurchase a position breaks the wash-sale link and locks in the deduction. Alternatively, some traders choose to harvest losses by rotating into similar but not “substantially identical” securities, aiming to maintain market exposure while avoiding the rule. Because the statute and regulations leave room for interpretation on what counts as substantially identical, investors often consult tax professionals when designing these strategies.

Ultimately, the wash-sale rule does not change the underlying economics of an investment, but it can sharply alter the timing of when tax benefits show up on a return. As markets remain volatile and trading apps keep volumes high, the 61-day window around each loss realization will continue to decide whether a deduction lands in the current year or is pushed, silently, into an adjusted cost basis that may not be realized for years to come.


Free tool for readers: You check your blood pressure — when did you last check your retirement? You can get your free Retirement Safety Score in about five minutes, with no sign-up to see it.

Leave a Reply

Your email address will not be published. Required fields are marked *