The wash-sale rule is a timing rule disguised as a trading rule. An investor may sell stock at a genuine economic loss, buy back into essentially the same position within the surrounding 61-day window, and discover that the loss cannot reduce this year’s taxes. The tax value is usually postponed, not erased, because the disallowed amount is added to the replacement shares’ basis. That distinction matters for anyone harvesting losses while trying to remain fully invested.
The tax window reaches both sides of the sale date
A wash sale generally occurs when stock or securities are sold at a loss and substantially identical stock or securities are acquired within 30 days before or 30 days after the sale. The rule also covers acquiring a contract or option to buy the replacement. Because the sale date sits in the middle, the practical monitoring period spans 61 calendar days rather than only the month after a trade.
The IRS definition in Publication 550 reaches backward, catching investors who buy replacement shares first and sell the old lot later. Automatic dividend reinvestment can create the same problem by purchasing a small number of shares inside the window. So can recurring purchases in another brokerage account. The rule follows the taxpayer’s transactions, not merely a single account’s trade ticket, which makes a household-wide view essential when similar holdings sit in several places.
“Substantially identical” is more demanding than merely belonging to the same industry, but it is not limited to the exact ticker in every circumstance. Selling one company’s shares and buying a competitor usually changes the investment enough; selling one index fund and immediately buying another fund tracking the same index is less certain. The IRS does not publish a universal fund-pair list, leaving facts and rights attached to the securities to control.
Free retirement updates: One number can cost or save hundreds a month in retirement. The free Retirement Shield newsletter surfaces the ones worth knowing. Sign up free.
Disallowed does not usually mean destroyed
When the rule applies, the investor cannot claim the affected loss in the current year. Instead, the disallowed loss generally increases the cost basis of the replacement shares, and the holding period of the old shares carries over. That higher basis can reduce a later gain or enlarge a later loss when the replacement is eventually sold outside another wash-sale cycle. The tax result moves forward with the investment.
Suppose shares bought for $12,000 are sold for $9,000 and substantially identical shares are repurchased during the window for $9,200. The $3,000 loss is disallowed now and added to the new lot’s basis, producing an adjusted basis of $12,200. If that replacement lot is later sold for $13,000 in a clean transaction, the taxable gain is $800 rather than $3,800. The delay can still be expensive when the expected deduction was meant to offset gains this year.
Broker reporting is helpful but incomplete. Publication 550 notes that Form 1099-B reports certain wash-sale adjustments when covered securities with the same CUSIP are bought in the same account. A broker may not see a spouse’s account, an IRA, a second brokerage or a purchase involving a security it does not classify identically. Taxpayers remain responsible for adjustments even when box 1g does not flag them.
Retirement accounts can turn a postponement into a harsher result
The most damaging version can arise when taxable shares are sold at a loss and the replacement is purchased in an IRA. IRS guidance treats the taxable loss as disallowed, but the IRA’s basis does not receive the usual increase. The loss may therefore fail to reappear when the replacement is sold. Coordinating taxable and retirement-account trading is especially important for households using the same target-date, index or company-stock positions in both places.
A cleaner tax-loss trade changes exposure without immediately recreating the same holding. An investor might wait beyond the window, move temporarily to cash, or select an investment that serves a similar portfolio purpose without being substantially identical. Each choice introduces a real market tradeoff: waiting can miss a rebound, cash changes risk, and a substitute can track differently. The tax rule should not be allowed to disguise those investment consequences.
Partial replacements produce partial wash sales rather than an all-or-nothing answer. If 100 shares are sold at a loss and only 40 substantially identical shares are acquired in the window, the disallowance generally attaches to the matched 40 shares while the remaining loss may stay deductible. The broader IRS capital-loss framework then nets any allowed portion with other gains and losses. Lot-level records determine the answer; the account’s total dollar change is too blunt.
Employee stock plans can create replacements without an ordinary market order. Vesting restricted shares, exercising an option or purchasing through an employee stock purchase plan during the window may acquire substantially identical employer stock. The investor who schedules a loss sale should therefore place payroll-based acquisition dates beside brokerage trades. A purchase that feels automatic still changes ownership, and the wash-sale rule does not provide a broad exception merely because the transaction arrived through compensation rather than a retail trading screen.
The reporting trail runs through Form 8949, where the IRS instructions use code “W” for a wash-sale loss adjustment, and then into Schedule D. Yet the decisive record is built before filing: acquisition dates, sale dates, reinvested dividends, account owners and adjusted basis. A 30-day rule sounds simple only until the investor recognizes that it looks backward, crosses accounts and can follow replacement shares into a later year.
This article was produced with AI assistance and reviewed by The Money Overview editorial team.
More Financial Reading