Skip to content
Whale Analyzer
Whale Holdings Value Investing Academy Investment Tools
中文
Research tools
Whale Holdings Value Investing Academy Investment Tools
Catalog scope
Investment Tools
Macro ETF Lab Institutional Pulse Whale Consensus
↑↓Select↵Open
← Academy blog
Tools

How a partial wash sale changes U.S. tax basis

Whale Analyzer 2026-11-23 3 min read Beginner
Follow a 100-share sale and a 40-share repurchase to locate the deferred loss in replacement basis.
U.S. taxWash salesCost basis
AaReading settings
Reading settings
Typeface
Type size
Line spacing
In this article
Match the shares that were replacedOpen the calendar on both sides of the sale

Selling a position at a loss and rebuying it moves real cash. U.S. federal income tax can change the timing of loss recognition. Keep separate columns for economic loss, currently recognized loss and replacement tax basis. This illustration involves identical common stock in a U.S. individual taxable account, with no commissions or other transactions.

Match the shares that were replaced

Suppose 100 shares with basis of $50 each are sold at $40, a $1,000 economic loss. Ten days later, 40 identical shares are repurchased for $42. IRS Publication 550 describes the 30 days before and after a loss sale and the substantially identical security standard. The 40 matched shares defer $400. The other $600 is subject to the ordinary capital-loss rules.

IRS Publication 550, Wash Sales

Loss allocation and replacement basis in this taxable-account example
ItemCalculationAmount
Economic loss100 × 10$1,000
Deferred amount40 × 10$400
Total replacement basis40 × 42 + 400$2,080
Basis per replacement share2,080 ÷ 40$52

If the 40 replacement shares are later sold at $55 with no new wash sale, the gain is 40 × (55 − 52) = $120. Using only the $42 cash purchase price would produce $520, a difference of the deferred $400. Under the ordinary rule illustrated here, the earlier holding period also carries over to the replacement shares.

Across both trades, the initial economic loss of 1,000 and the subsequent cash gain of 520 net to a loss of 480. The recognized loss of 600 followed by a taxable gain of 120 produces the same net loss under the stated assumptions. The timing and allocation differ.

Open the calendar on both sides of the sale

Look back thirty days as well as forward, including across year-end. List dates, lots, quantities, bases and account types. An IRA acquisition can have different consequences, including a different treatment of replacement basis. Substantial identity depends on the securities involved, and other tax jurisdictions have their own rules.

Further reading · Michael Burry, Trading Post October 5, 2026

Related · Tracking the cost of multiple purchases

Related Whale Analyzer research pages

  • Berkshire Hathaway 13F portfolio
  • Quarterly changes in institutional holders by stock
  • AAPL whale holders
← Academy blog 中文
Whale Analyzer
Value Investing AcademyAcademy blogAboutPrivacy & analytics