The Wash-Sale Rule: IRC Section 1091 61-Day Guide
How the 61-day wash-sale window disallows tax losses, the mechanics of cost basis adjustments, and avoiding year-end tax-loss harvesting traps.
Executive Forensic Summary
- Codified under **Section 1091 of the Internal Revenue Code (26 U.S.C. § 1091)**, the Wash-Sale Rule is the federal tax code's primary anti-abuse mechanism designed to prevent investors from manufacturing artificial tax deductions while maintaining an uninterrupted economic investment position.
- Under Section 1091, if an investor realizes a capital loss on the sale or exchange of stock or securities, and within a **61-day statutory window** (beginning 30 days before the sale date, the day of the sale, and ending 30 days after the sale date) acquires substantially identical stock or securities (or enters into a contract or option to acquire them), **the loss is legally disallowed for tax purposes today**.
- Crucially, in standard taxable accounts, a wash sale does not permanently destroy the loss; instead, under IRC Section 1091(d), **the disallowed loss is added directly to the cost basis of the replacement shares**, and the holding period of the original shares is tacked onto the replacement shares.
- However, executing wash sales during year-end tax-loss harvesting in December can accidentally defer tax deductions into the following calendar year, ambushing traders with massive unexpected capital gains tax bills on April 15.
- This forensic guide breaks down Section 1091 statutory mechanics, models the exact 61-day calendar timeline, details cost basis adjustment algorithms, and provides an institutional framework for executing compliant tax-loss harvesting.
§Table of Contents (10 sections)▾
#Congress's Century-Old Anti-Abuse Shield Against Fictitious Tax Losses
During the early days of the federal income tax following the ratification of the 16th Amendment in 1913, Wall Street speculators discovered an effortless tax loophole: on December 31, an investor would sell an underwater stock at 3:55 PM to claim a massive capital tax loss on their tax return, and simultaneously buy back the exact same stock at 3:56 PM.[1]
The investor claimed a major tax deduction that erased their tax liability on wage income, while their economic ownership of the company remained virtually uninterrupted for 60 seconds.
Recognizing that this maneuver was an economic sham designed solely for tax avoidance, Congress enacted the **Wash-Sale Rule in the Revenue Act of 1921**, now codified as **Section 1091 of the Internal Revenue Code (26 U.S.C. § 1091)**.
Under Section 1091(a):
*'In the case of any loss claimed to have been sustained from any sale or other disposition of shares of stock or securities where it appears that, within a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date, the taxpayer has acquired... or has entered into a contract or option so to acquire, substantially identical stock or securities, then no deduction for the loss shall be allowed...'*
Section 1091 operates as a strict statutory prohibition: if the triggering conditions are met, loss disallowance is **automatic and non-negotiable under federal tax law**.
The Statutory Disallowance Mandate
The Wash-Sale Rule prevents taxpayers from claiming tax deductions for paper losses while maintaining an unbroken economic position. If you rebuy substantially identical securities within the 61-day window, your tax loss is disallowed.
| Scenario | Transaction Timeline | Loss Recognition Status | Cost Basis Adjustment | Holding Period Impact |
|---|---|---|---|---|
| Repurchase Within 30 Days | Buy Day 1, Sell Day 20 (-$2k loss), Buy Day 35 | Loss disallowed on current tax return | $2,000 disallowed loss added to replacement share basis | Original holding period tacked onto replacement shares |
| Prior Acquisition (Pre-Sale) | Buy 100 sh Day 1, Buy 100 sh Day 15, Sell Day 25 (-$1k loss) | Loss disallowed under 30-day pre-sale rule | $1,000 disallowed loss added to Day 15 purchase basis | Tacks holding period of original shares to Day 15 lot |
| Sale at a Gain | Buy Day 1, Sell Day 20 (+$3k gain), Buy Day 25 | Gain fully recognized and taxable | No basis adjustment (replacement shares take cost) | Holding period starts fresh on replacement shares |
| Replacement After 31 Days | Buy Day 1, Sell Day 20 (-$4k loss), Buy Day 52 | Loss fully recognized on Schedule D / Form 8949 | No adjustment (clean transaction) | New holding period begins on Day 52 |
Source: IRS Statutory Code, Treasury Regulations & Revenue Procedures • Illustrative figures.
Key Analysis Points
- Codified under IRC Section 1091, the rule originated in the Revenue Act of 1921.
- Disallows current-year tax deductions for capital losses if replacement shares are bought.
- Applies to stocks, bonds, mutual funds, ETFs, and option derivative contracts.
#Why the Wash-Sale Rule Operates Before, On, and After the Loss Date
The single most pervasive misconception among retail investors is that the wash-sale rule applies only to purchases made *after* selling stock for a loss (the '30-day post-sale rule').[2]
In reality, the statute establishes a **symmetric 61-day calendar window** centered directly on the loss sale date:
$$\text{Total Wash-Sale Window} = 30\text{ Days Before} + 1\text{ Day of Sale} + 30\text{ Days After} = \mathbf{61\text{ Calendar Days}}$$
**1. The 30 Days Before the Sale Date (The 'Pre-Sale' Trap):**
If you own 100 shares of Apple at a $10 loss, and on Day 1 you buy an *additional* 100 shares of Apple (planning to sell your original 100 shares next week), and then on Day 10 you sell your original 100 shares at a loss, **a wash sale has occurred**! You acquired replacement shares within 30 days *before* the sale. The loss on the original shares is disallowed.
**2. The Day of the Sale:** Buying shares on the same trading session before or after the loss sale triggers a wash sale.
**3. The 30 Days After the Sale Date:** If you sell shares for a loss on June 1, any purchase of substantially identical shares up to and including **July 1 (the 30th full calendar day following the sale date)** triggers a wash sale.
Crucially, **the IRS counts calendar days, not trading days**. Weekends and federal market holidays are fully counted in the 30-day countdown.
For foundational market context and trade execution mechanics, examine our core research on Trailing Stop Dollar vs. Trailing Stop Percentage, Market-on-Close (MOC) and Limit-on-Close (LOC) Orders, and Market-on-Open (MOO) and Limit-on-Open (LOO) Orders.
The Pre-Sale Trap
The wash-sale window looks 30 days BACKWARD as well as forward. Buying shares today and selling an older lot for a loss 10 days later triggers an automatic wash sale.
Key Analysis Points
- The wash-sale window spans exactly 61 calendar days (30 days before, sale date, 30 days after).
- Counts full calendar days, including Saturdays, Sundays, and market holidays.
- Buying replacement shares within 30 days before the loss sale triggers full loss disallowance.
#How IRC Section 1091(d) Preserves the Tax Loss for the Future
Contrary to popular belief, in standard taxable brokerage accounts, a wash sale **does not permanently destroy your tax loss**.[3]
Under **IRC Section 1091(d)**, the disallowed loss is preserved through an automatic **Cost Basis Adjustment**:
$$\text{New Cost Basis of Replacement Shares} = \text{Purchase Price of Replacement Shares} + \text{Disallowed Loss}$$
**The Mathematical Walkthrough:**
- *Trade 1 (Original Purchase):* You buy 100 shares of Microsoft at **$400/share** ($40,000 cost basis);
- *Trade 2 (The Loss Sale):* The stock drops, and you sell all 100 shares at **$320/share** ($32,000 proceeds), realizing an apparent **-$8,000 loss**;
- *Trade 3 (The Wash Sale):* 15 days later, you change your mind and repurchase 100 shares of Microsoft at **$330/share** ($33,000 purchase price);
- *The Tax Consequence:* The -$8,000 loss is disallowed on your current-year tax return. However, under Section 1091(d), the $8,000 disallowed loss is **added directly to the cost basis of the replacement shares**:
$$\text{New Cost Basis} = \$33,000 + \$8,000 = \mathbf{\$41,000\text{ (or }\$410/\text{share)}}$$
**Holding Period Tacking (IRC Section 1223(4)):** Furthermore, under Section 1223(4), the holding period of the original shares is **tacked onto** the holding period of the replacement shares. If you held the original lot for 9 months, and hold the replacement lot for 4 months before selling, the combined holding period is 13 months—qualifying the eventual gain or loss as **Long-Term**.
The Basis Addition Shield
Under Section 1091(d), disallowed losses are added to the cost basis of the replacement shares. You will eventually claim the loss when you ultimately sell the replacement shares outside the 61-day window.
Key Analysis Points
- Disallowed losses are added directly to the cost basis of the replacement shares under Section 1091(d).
- The higher cost basis ensures that when replacement shares are sold, taxable gains are reduced.
- Holding periods tack under Section 1223(4), preserving progress toward long-term tax status.
#How a Wash Sale in January Erases December Tax Deductions
While cost basis adjustments protect taxpayers who hold shares indefinitely, **wash sales can cause catastrophic financial damage during year-end tax planning**.[4]
Consider the classic **December Year-End Ambush**:
1. On December 20, 2025, an active trader sells underwater tech stocks to harvest **$50,000 in capital losses**, intending to use those losses to offset $50,000 in realized capital gains generated earlier in 2025;
2. On January 10, 2026 (21 calendar days later), the trader repurchases the tech stocks because prices look attractive;
3. **The Catastrophe:** Because the January 10 purchase occurred within 30 days of the December 20 sale, **it triggers a wash sale retroactively disallowing the $50,000 loss for tax year 2025**!
4. The $50,000 loss is moved out of 2025 and added to the cost basis of the shares in 2026. On April 15, 2026, the trader suddenly discovers they owe taxes on $50,000 of capital gains for 2025—a surprise cash tax bill of **$11,900 to $18,500** that they did not plan for!
To preserve December tax-loss deductions, **investors must wait at least 31 full calendar days into the new calendar year before repurchasing the security**.
The January Wash-Sale Clawback
A purchase made in January can retroactively invalidate a tax loss harvested in December! To protect December tax-loss deductions, you must stay out of the stock until Day 31 in January.
Key Analysis Points
- Repurchasing stock in January within 30 days of a December loss sale invalidates the prior-year deduction.
- Disallowed losses are deferred into the new tax year, leaving prior-year gains fully taxable.
- Taxpayers must enforce a strict 31-day cooling-off period spanning year-end to preserve losses.
#How the IRS Allocates Disallowed Losses When Share Counts Do Not Match
In real-world active trading, investors rarely buy and sell identical share blocks. When the number of replacement shares acquired differs from the number of shares sold at a loss, **Treasury Regulation § 1.1091-1** mandates proportional matching.[5]
**Case 1: Buying Fewer Replacement Shares Than Sold**
- You sell 1,000 shares of stock at a $10,000 loss ($10/share loss);
- 12 days later, you repurchase only **400 shares**;
- *Result:* A wash sale occurs on exactly 400 shares. A proportional **$4,000 loss is disallowed** and added to the basis of the 400 new shares. The remaining **$6,000 loss on the un-replaced 600 shares is fully deductible on your current tax return**!
**Case 2: Buying More Replacement Shares Than Sold**
- You sell 500 shares at a $5,000 loss;
- 10 days later, you purchase **1,200 shares**;
- *Result:* 100% of the $5,000 loss is disallowed. The $5,000 basis addition is attached to the first 500 replacement shares acquired (matched chronologically), while the remaining 700 shares carry their normal cost basis with zero wash-sale taint.
**Chronological Lot Matching:** When multiple acquisitions or sales occur within the 61-day window, the IRS matches shares in strict chronological order based on trade execution time.
Proportional Disallowance Rule
If you sell 1,000 shares for a loss and buy back only 300 shares, only 30% of your loss is disallowed. The remaining 70% loss is fully deductible on Schedule D.
Key Analysis Points
- When replacement share counts are lower, disallowance is strictly proportional.
- Un-replaced shares retain full current-year capital loss deductibility.
- Multiple lots within the 61-day window are matched in strict chronological order under Treasury rules.
#How Entering Into Contracts or Options to Acquire Stock Triggers Section 1091
Novice traders frequently attempt to outsmart Section 1091 by selling stock at a loss and immediately buying an in-the-money call option, believing that options are not 'stock'.[1]
This strategy fails completely under federal law. Section 1091(a) explicitly provides that entering into a **'contract or option so to acquire'** substantially identical stock triggers a wash sale.
**1. Buying Call Options Within the 61-Day Window:** If you sell stock at a loss and buy a call option (at any strike price) within 30 days before or after, the stock loss is disallowed, and the disallowed loss is added to the premium cost basis of the call option.
**2. Selling In-The-Money Put Options:** Under **Revenue Ruling 85-87**, if an investor sells stock at a loss and writes (sells) an in-the-money put option on the same stock, **a wash sale occurs** if, at the time the put is written, there is a substantial likelihood that the put will be exercised, forcing the investor to repurchase the stock.
**3. Closing an Option at a Loss and Buying Stock:** Under Section 1091, options on stock are themselves classified as 'securities'. If you close an option contract at a loss and buy the underlying common stock within 30 days, the option loss is disallowed.
Derivatives provide zero escape from Section 1091; options are fully integrated into the statutory wash-sale grid.
The Call Option Trap
Buying a call option within 30 days of selling stock at a loss triggers an automatic wash sale. The stock loss is disallowed and tacked onto the cost basis of the call option.
Key Analysis Points
- Section 1091(a) explicitly captures contracts and options to acquire stock.
- Writing deep in-the-money puts triggers wash sales under Revenue Ruling 85-87.
- Losses on option trades are disallowed if underlying equity is purchased within 30 days.
#How Automatic $15 Dividend Reinvestments Invalidate $10,000 Tax Losses
One of the most insidious, accidental wash-sale traps in retail investing is the **Dividend Reinvestment Plan (DRIP)**.[2]
Suppose an investor owns 1,000 shares of Pfizer. On November 15, the investor sells 500 shares at a **-$5,000 loss** for tax-loss harvesting purposes, leaving 500 shares in their account.
On December 1 (16 days later), Pfizer pays its quarterly dividend. Because the investor has automated DRIP enabled, the brokerage automatically uses the $200 dividend to purchase **6.5 new shares of Pfizer**.
**The Ambush:** Because the automated DRIP purchase occurred within 30 days of the loss sale, **it triggers an automatic wash sale on 6.5 shares**!
While only a proportional loss is disallowed ($65), the wash sale creates immense tax reporting chaos: the brokerage Form 1099-B flags the transaction with Wash Sale Code 'W', splitting the lot into complex basis adjustment schedules.
Before harvesting losses on dividend-paying stocks, **investors must temporarily disable automated dividend reinvestment** across all accounts.
Disable DRIPs Before Loss Harvesting
Always turn off automatic dividend reinvestment (DRIP) before harvesting tax losses. A $20 automated dividend purchase within 30 days will trigger a wash sale on Form 1099-B.
Key Analysis Points
- Automated DRIP purchases constitute statutory acquisitions of replacement shares.
- Reinvesting dividends within 30 days of a loss sale triggers partial wash-sale disallowance.
- Turn off DRIP automation across accounts before executing tax-loss harvesting sales.
#Step-by-Step Risk Management Protocol for Clean Tax-Loss Harvesting
To harvest millions in capital tax losses without triggering Section 1091 disallowance, institutional wealth managers deploy an eight-step compliance routine:[3]
**Step 1: Check Pre-Sale Purchases Over the Past 30 Days:** Before executing a loss sale, audit all purchases in that ticker over the preceding 30 calendar days to avoid the pre-sale acquisition trap.
**Step 2: Disable Automated DRIP and Recurring Buys:** Turn off dividend reinvestment and recurring weekly/monthly automated purchase plans for that security across all accounts.
**Step 3: Execute the Loss Sale via Specific Lot Identification (SpecID):** Sell the specific high-cost lots (HIFO) to maximize the realized capital loss.
**Step 4: Establish a 31-Day Calendar Lockout:** Set a calendar alert for **Day 31 following the trade date**. Do not purchase the stock, call options, or write in-the-money puts until the lockout expires.
**Step 5: Maintain Market Exposure via Non-Substantially Identical Assets:** To avoid missing a market rally during the 31-day lockout, immediately invest the sale proceeds into a proxy asset (e.g., selling Microsoft and buying Apple, or selling an S&P 500 ETF and buying a Total Stock Market ETF).
**Step 6: Audit Form 1099-B Box 1g Disclosures:** When tax forms arrive in February, review Form 1099-B Box 1g (Wash sale loss disallowed). Confirm whether your broker recorded unexpected wash sales.
**Step 7: Year-End Deadline Lockdown:** Ensure all loss harvesting sales intended for the current tax year settle cleanly, and avoid repurchasing the asset in January before the 31-day window closes.
**Step 8: Reconcile on Form 8949 (Sales and Dispositions):** Report disallowed wash-sale losses on Form 8949 Part I or Part II with Code 'W' in Column (f) and the adjustment in Column (g).
The Proxy Reinvestment Strategy
Never sit in cash for 31 days. Sell your loss position and immediately buy a non-substantially identical competitor or broader index ETF to stay 100% invested while capturing the tax deduction.
Key Analysis Points
- Check 30-day pre-sale purchase history before executing any tax-loss sale.
- Enforce a strict 31-day lockout window before repurchasing the asset or call options.
- Deploy proxy assets (competitor stocks, alternative ETFs) to maintain market exposure.
Quantitative Verification Suite
Forensic Valuation Tools for this Research
Apply deterministic financial algebra to verify the balance sheet mechanics explored in this research.
CAPM Calculator
Model risk-adjusted returns during mandatory 30-day waiting periods
#Frequently Asked Questions (FAQ)
What is the Wash-Sale Rule under IRC Section 1091?
The Wash-Sale Rule is a federal tax regulation that disallows a tax deduction for a capital loss if an investor purchases substantially identical stock, securities, or options within a 61-day window spanning 30 days before the sale date, the sale date itself, and 30 days after the sale date.
Does a wash sale permanently destroy my tax loss?
No. In a standard taxable brokerage account, the disallowed loss is not destroyed; it is added to the cost basis of the replacement shares under IRC Section 1091(d). The loss is deferred until the replacement shares are eventually sold outside a wash-sale window.
How long must I wait to buy back stock to avoid a wash sale?
You must wait at least 31 full calendar days after the sale trade date before repurchasing the stock, purchasing call options, or writing in-the-money puts on that security.
Does buying a call option trigger a wash sale?
Yes. Under IRC Section 1091(a), entering into a contract or option to acquire stock (such as purchasing a call option) within the 61-day window triggers an automatic wash sale, disallowing the stock loss and adding it to the option premium basis.
How does automated dividend reinvestment (DRIP) trigger wash sales?
If an automated DRIP purchases new shares of a company within 30 days before or after you sold shares of that same company at a loss, the DRIP purchase is legally classified as an acquisition of replacement shares, triggering a partial wash sale.
#Primary Regulatory Sources & Statutory Citations
Every legal, execution, and clearing claim in this guide is derived directly from verified US regulatory statutes:
IRS Revenue Procedure 2025-32: 2026 Inflation Adjustments & Statutory Tax Brackets ↗
Official 2026 cost-of-living adjustments, statutory income tax brackets, standard deductions, and capital gains thresholds.
Internal Revenue Code: Section 1091 (Loss from Wash Sales of Stock or Securities) ↗
Foundational federal statutory provision establishing the 61-day wash-sale disallowance window and cost basis adjustment rules.
Treasury Regulation § 1.1091-1: Losses from Wash Sales of Stock or Securities ↗
Codified federal tax regulations detailing proportional share matching math, chronological lot order, and cost basis calculations.
IRS Revenue Ruling 85-87: Put Options and the Wash-Sale Rule ↗
Landmark IRS revenue ruling establishing that writing in-the-money put options triggers statutory wash-sale loss disallowance.
IRS Publication 550: Investment Income and Expenses (Wash Sales) ↗
Official IRS taxpayer guidance detailing 61-day timeline rules, holding period tacking, and Form 8949 reporting.
What We Checked: Statutory Audit & Verification
This research report was cross-audited against certified SEC EDGAR releases, DTCC Continuous Net Settlement (CNS) operational manuals, and the FINRA Manual. Market figures and data points are provided for informational and educational purposes under the Broadsheet editorial standard.