Wash a $5,000 stock loss and buy it back too soon, and the IRS erases the deduction for 30 days

Business man headache and laptop of stock market crash bankruptcy and financial mistake error or wrong statistics Sad stress or fatigue trader on computer screen data or trading with depression

A taxpayer who sells stock at a $5,000 loss and buys the same shares back within 30 days will see that entire deduction wiped out on their federal return. The wash-sale rule, codified in Section 1091 of the Internal Revenue Code, operates on a strict 61-day window and leaves no room for timing errors. With the 2026 filing season ahead and retail trading volume still elevated, the rule is catching more individual investors off guard, especially those whose brokerage accounts automatically reinvest dividends into the same securities they just sold at a loss.

How the 61-day window erases a $5,000 stock loss

The mechanics are blunt. Under Section 1091, “no deduction shall be allowed” for a loss on stock or securities when the seller acquires substantially identical shares during the period beginning 30 days before the sale and ending 30 days after it. That creates a 61-day blackout zone. Sell 100 shares of a tech ETF on June 1 at a $5,000 loss, then repurchase the same ETF on June 20, and the IRS treats the loss as if it never happened for that tax year.

The disallowed loss does not vanish permanently. It gets added to the cost basis of the replacement shares, which can reduce a future gain or increase a future loss when those shares are eventually sold outside the window. But for the year the investor expected to use the deduction to offset capital gains or up to the annual limit against ordinary income, the tax benefit is gone.

The rule also applies when the investor does not buy back the shares personally but causes an acquisition in another account they control. Purchases in an IRA or a spouse’s account can fall under the “substantially identical” umbrella, even if the taxpayer believed they were keeping the transactions separate. Because the statute focuses on economic exposure rather than account labels, simply shifting the trade to a different platform does not avoid the 61-day restriction.

Broker reporting and Form 8949 code “W” create an automatic paper trail

Brokerages do not wait for the IRS to discover a wash sale. Under the instructions for Form 1099-B, brokers must flag disallowed wash-sale losses and report the adjusted basis of the newly acquired shares directly to the agency. Investors who receive a 1099-B showing a wash-sale adjustment are then required to carry that figure onto Form 8949, entering the nondeductible loss as a positive number in the adjustment column with code “W.” The result is a self-correcting reporting chain: the broker tells the IRS, and the taxpayer must confirm the same numbers on their own return.

This automated trail makes disputes difficult. If a filer ignores the 1099-B flag and claims the full loss anyway, the mismatch between the broker’s report and the individual return is visible to IRS matching systems before a human auditor ever looks at the file. In practice, that can lead to a notice recalculating tax due, along with interest and potential penalties if the underpayment is large enough.

Tax professionals say the coding also narrows their room to maneuver. When the broker has already increased basis for a wash sale and transmitted that figure, preparers must either follow the adjustment or be prepared to document why the broker’s classification of “substantially identical” securities was wrong. For most small retail trades, challenging the broker’s designation is not worth the cost.

Dividend reinvestment plans trigger wash sales that investors never intended

The most common accidental wash sale starts with a feature many investors forget they turned on. Retail brokerage platforms frequently default to automatic dividend reinvestment, or DRIP. When a stock or fund pays a dividend and the account reinvests it into the same security within the 30-day window after a loss sale, the reinvestment counts as an acquisition of substantially identical shares. The Treasury regulation at 26 CFR Section 1.1091-1 confirms that purchases made by contract or option also qualify, broadening the scope of transactions that can undo a loss deduction.

Consider an investor who sells 500 shares of a blue-chip stock on December 15, locking in a $5,000 loss to offset gains elsewhere in the portfolio. On December 28, the company pays a quarterly dividend, and the brokerage automatically uses that cash to buy a handful of new shares. Even if the reinvestment is only a few hundred dollars, it still falls inside the 61-day window and triggers a wash sale for some or all of the loss, depending on the number of replacement shares.

The disallowed portion of the loss attaches to the new DRIP shares as additional basis. That preserves the tax benefit for a later year but undermines year-end tax planning. Investors expecting to reduce their current bill can instead find themselves with a smaller deduction and a 1099-B littered with code “W” adjustments they never consciously chose.

Advisers say the simplest way to avoid this outcome is to turn off automatic reinvestment at least 31 days before realizing a loss in a particular security, then direct any dividends to cash during the blackout period. Others recommend using replacement securities that track the same sector or index without being “substantially identical,” such as rotating between different funds with similar exposure but distinct structures and issuers. For taxpayers who actively harvest losses, that extra step can keep a $5,000 paper loss from disappearing in the fine print of the wash-sale rules.

Leave a Reply

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