TAXES

Tax-Loss Harvesting Rules: 30-Day Wash Sale Window & Loss Offset Math

Tax-loss harvesting involves realizing capital losses to reduce taxable gains while reinvesting proceeds into non-identical correlated assets.

By Devon Patel, CFA • Reviewed by David Sterling, CFA • Updated November 22, 2026
Tax-Loss Harvesting Rules: 30-Day Wash Sale Window & Loss Offset Math

Key Takeaways

  • Capital losses first offset matching capital gains (short-term vs short-term, long-term vs long-term).
  • Net excess capital losses can offset up to $3,000 of ordinary wage income per tax year, with remaining losses carrying forward indefinitely.
  • The 30-day wash sale rule applies across all accounts you control, including spousal taxable accounts and Roth IRAs.
  • Swapping between different index ETFs tracking distinct benchmark indexes (e.g., S&P 500 to Total Stock Market) maintains equity exposure without triggering wash sale disallowance.

Executive Overview & Mathematical Answer

Tax-loss harvesting allows investors to offset unlimited capital gains plus up to $3,000 in ordinary income annually by selling depreciated assets. Under IRC Section 1091, to claim the loss you must avoid purchasing a substantially identical security within the 61-day wash sale window (30 days before sale, day of sale, and 30 days after sale).

Financial Comparison & Strategic Matrix

Understanding the numerical difference between competing approaches is critical when optimizing personal cash flow:

ScenarioOriginal HoldingReplacement AssetWash Sale Triggered?Tax Treatment
Exact Re-purchaseVanguard S&P 500 (VOO)Vanguard S&P 500 (VOO) in 15 daysYes (Disallowed)Loss added to new asset cost basis
Cross-Broker PurchaseSPDR S&P 500 (SPY)iShares Core S&P 500 (IVV)Substantially Identical (Risk)IRS may disallow loss under shared index rule
Compliant Index SwapVanguard S&P 500 (VOO)Vanguard Total Stock Market (VTI)No (Permitted)Full capital loss realization allowed
Factor / Style ShiftInvesco QQQ (Nasdaq-100)Schwab U.S. Large-Cap Growth (SCHG)No (Permitted)Full capital loss realization allowed

Step-by-Step Implementation Blueprint

Follow this structured execution plan to implement this strategy with minimum friction:

  • Step 1: Identify unrealized capital losses in taxable brokerage accounts using specific-lot cost basis identification.
  • Step 2: Audit automatic dividend reinvestment (DRIP) plans across all taxable and IRA accounts to prevent inadvertent fractional wash buys.
  • Step 3: Select a correlated but distinct proxy replacement asset (e.g., switching from Russell 1000 to CRSP US Large Cap).
  • Step 4: Execute the sale of the depreciated lot and immediately purchase the replacement asset to remain fully invested.
  • Step 5: Track the transaction on IRS Form 8949 (Sales and Other Dispositions of Capital Assets) and transfer net totals to Schedule D.

[!TIP] Practical Advisory & Execution Pitfalls

  • Pro Tip: Never trigger a wash sale inside an IRA account; when a wash sale occurs between a taxable account and an IRA, the realized loss is permanently extinguished rather than being added to the cost basis.
  • Common Mistake: Leaving automated dividend reinvestment active, which automatically buys shares within the 30-day window and disallows an otherwise valid tax loss.

Frequently Asked Questions

What is the 30-day rule for tax-loss harvesting?

The wash sale rule spans 61 consecutive calendar days: 30 days before the sale, the trade date itself, and 30 days after the sale. Purchasing a substantially identical security during this timeframe disallows the immediate loss deduction.

How much tax loss can you write off per year?

You can offset 100% of realized capital gains. If your net capital losses exceed total capital gains, you can deduct up to $3,000 against ordinary income ($1,500 if married filing separately) and carry forward the balance.

Can you harvest losses and buy the same stock back after 31 days?

Yes. Once 31 full calendar days have elapsed following the sale date, you are legally entitled to repurchase the original security without triggering wash sale disallowance.

[!IMPORTANT] Logical Next Step: Completing your financial roadmap? Explore our comprehensive technical breakdown on Capital Gains Tax Calculation & Brackets Guide to Review long-term vs short-term capital gains tax rates to calculate your net savings before year-end rebalancing.

[!NOTE] Editorial Disclaimer: Txtia is an independent financial education and research publication. The information provided in this guide is for informational and educational purposes only and does not constitute personalized investment, legal, tax, or credit advice. Mathematical calculations, yields, and timelines are based on baseline financial formulas and current market conditions. Consult a licensed financial planner, CPA, or fiduciary before executing major credit or tax maneuvers.

Frequently Asked Questions

What is the 30-day rule for tax-loss harvesting?
The wash sale rule spans 61 consecutive calendar days: 30 days before the sale, the trade date itself, and 30 days after the sale. Purchasing a substantially identical security during this timeframe disallows the immediate loss deduction.
How much tax loss can you write off per year?
You can offset 100% of realized capital gains. If your net capital losses exceed total capital gains, you can deduct up to $3,000 against ordinary income ($1,500 if married filing separately) and carry forward the balance.
Can you harvest losses and buy the same stock back after 31 days?
Yes. Once 31 full calendar days have elapsed following the sale date, you are legally entitled to repurchase the original security without triggering wash sale disallowance.

The Bottom Line

Understanding Tax-Loss Harvesting Rules is essential for making sound financial decisions in today's complex markets. The core mechanics, formulas, and real-world scenarios outlined in this guide are regularly reviewed and updated by our credentialed editorial team to reflect the current 2026 rate environment and regulatory landscape. Whether you are a retail investor building long-term wealth or a finance professional sharpening technical knowledge, applying these principles with consistent discipline separates informed decision-making from costly financial mistakes.

Editorial & Financial Disclaimer: TXTIA is an independent financial education and research publisher. The educational content, calculations, and scenarios presented on this page are for informational purposes only and do not constitute individual investment, legal, or tax advice. Consult a licensed fiduciary financial advisor (CFP®) or certified public accountant (CPA) regarding your specific financial situation.