Title 26 › Subtitle Subtitle A— - Income Taxes › Chapter CHAPTER 1— - NORMAL TAXES AND SURTAXES › Subchapter Subchapter O— - Gain or Loss on Disposition of Property › Part PART VII— - WASH SALES; STRADDLES › § 1091
You cannot take a tax loss on shares or securities you sold if you bought (or agreed to buy) basically the same shares within 30 days before or after the sale. The only exception is if you are a stock dealer and the loss happened in the normal course of that business. Contracts and options to buy or sell count the same as buying or selling. If you bought less than you sold, IRS rules will decide which sales’ losses are denied. If you bought as much or more than you sold, IRS rules will decide which purchases caused the denial. If the loss is denied because of the replacement purchase, the cost (basis) of the replacement shares is set to the old basis adjusted by the difference between the buy and sell prices. The same 30‑day rule also applies to closing short sales, and to contracts or options even if they can settle in cash or other property.
Full Legal Text
Internal Revenue Code — Source: USLM XML via OLRC
Legislative History
Reference
Citation
26 U.S.C. § 1091
Title 26 — Internal Revenue Code
Last Updated
Apr 6, 2026
Release point: 119-73