EquitiesAmerica.com
Educational disclaimer: This article is for educational purposes only and does not constitute tax advice. Tax laws change frequently and individual circumstances vary widely. Consult a qualified tax professional for guidance specific to your situation before making any financial decisions.

Wash Sale Rule Explained: The 61‑Day Window Every Investor Should Understand

The wash sale rule is one of the most frequently misunderstood provisions in US tax law. It prevents investors from claiming a tax loss on a security sale if they repurchase the same or a substantially identical security within a specific window around the sale date. Getting it wrong can silently eliminate the tax benefit you were counting on — and the rules extend further than most investors realize, reaching across accounts and even into IRAs.

Estimate Your Capital Gains Tax

Model how realized losses — and disallowed wash sale losses — affect your net tax liability for the year.

Open Calculator →

What is the Wash Sale Rule?

The wash sale rule is codified in Internal Revenue Code Section 1091. It provides that a taxpayer may not deduct a loss from the sale or other disposition of shares of stock or securities if, within a period beginning 30 days before the date of that sale and ending 30 days after the sale, the taxpayer acquired — or entered into a contract to acquire — substantially identical stock or securities.

In plain terms: if you sell an investment at a loss and quickly buy the same thing back, the IRS treats the transaction as a round-trip that never really changed your economic position. The loss is therefore disallowed for the current tax year. The term "wash sale" captures the idea that the transaction effectively washes out — nothing economically meaningful changed.

Congress enacted this rule to prevent investors from generating artificial tax losses while maintaining their investment position. Without it, an investor could sell a losing position on December 31, immediately repurchase the same shares on January 1, and claim the tax loss — all while holding the exact same economic position throughout.

Key point: The wash sale rule only applies to losses. If you sell a security for a gain and immediately repurchase it, the gain is fully taxable. The rule is exclusively a loss-deferral mechanism.

The 61-Day Window Explained

The wash sale rule is often summarized as a "30-day rule," but this description understates the actual window. The full restriction spans 61 days:

  • The 30 days before the sale date
  • The sale date itself
  • The 30 days after the sale date

This means the prohibited period is not simply "wait 30 days after selling." Purchasing the same security even a few weeks before you plan to harvest a loss will trigger a wash sale. The rule looks backward as well as forward.

Why the Window Matters for Tax-Loss Harvesting

Investors who practice tax-loss harvesting need to be aware of both directions of the window. If you automatically reinvest dividends in a fund and then attempt to harvest a loss in the same fund, the dividend reinvestment purchase — which occurred within 30 days before the sale — will trigger a wash sale on at least a portion of your sold shares. Dividend reinvestment plans (DRIPs) are a common and overlooked source of inadvertent wash sales.

The safe approach: to fully claim a harvested loss, you must ensure that no purchase of substantially identical securities occurs at any point within the 61-day window centered on the sale date. Practically, many tax professionals recommend waiting at least 31 days after the sale before repurchasing the same security, and confirming no purchases occurred in the 30 days leading up to the sale.

Days are counted using calendar days, not trading days. Weekends and holidays count. The sale date is included in the count.

What Counts as Substantially Identical?

The IRS has never issued a comprehensive list of what constitutes "substantially identical" securities, leaving considerable ambiguity. However, the following principles are generally accepted based on IRS guidance and Tax Court decisions:

Clearly Substantially Identical

  • Selling shares of a company and repurchasing shares of the same company (same ticker)
  • Selling a fund and repurchasing the same fund in a different account
  • Selling shares and purchasing call options that are "in-the-money" enough to give you nearly equivalent economic exposure to the same shares
  • Selling bonds and purchasing bonds that are sufficiently similar in issuer, maturity, and terms

Generally Not Substantially Identical

  • Two ETFs that track different but correlated indexes (e.g., S&P 500 vs. total US stock market — though this is not guaranteed; see below)
  • Two ETFs from different fund families that track the same index — the IRS has not definitively ruled that these are substantially identical, and many practitioners treat them as acceptable replacements, but there is no certainty
  • Preferred stock vs. common stock of the same company (generally different, but depends on conversion features)
  • Stocks in different companies in the same industry
Important: The IRS has not issued definitive guidance on whether two ETFs from different issuers tracking the same benchmark index are substantially identical. Many tax practitioners consider them acceptable replacement securities for wash sale purposes, but this is an unsettled area. Consult a qualified tax professional before assuming any specific replacement security is safe.

Cross-Account Rules (Brokerage + IRA)

One of the most consequential and least-understood aspects of the wash sale rule is that it applies across all accounts you own — not just within a single brokerage account. The IRS looks at the taxpayer, not the account.

Multiple Taxable Accounts

If you sell a stock at a loss in Account A and your spouse or you repurchase the same stock in Account B at another brokerage within the 61-day window, a wash sale has occurred even though the accounts are at different institutions. Brokers only report wash sales within their own systems — they cannot see your other accounts — so the tracking burden falls entirely on you.

The IRA Trap

Repurchasing a substantially identical security inside a traditional IRA or Roth IRA within the 61-day window triggers a wash sale — and the consequences are particularly harsh: the disallowed loss is permanently lost. Unlike wash sales in taxable accounts, where the disallowed loss is added to the replacement shares' cost basis and eventually recovered upon a future sale, there is no mechanism to add to the basis of securities inside an IRA for this purpose. The loss evaporates permanently.

Example of the IRA trap:You sell 100 shares of XYZ in your taxable brokerage account at a $2,000 loss. Two weeks later, your traditional IRA's automatic contribution purchases the same ETF. The $2,000 loss in the taxable account is disallowed, and because it occurred in relation to an IRA purchase, it cannot be recovered through adjusted basis. The $2,000 tax benefit is gone permanently.

This risk is particularly acute for investors who make regular automatic contributions to IRAs or 401(k)s that hold the same funds present in their taxable accounts. Review your automatic investment schedules when planning to harvest losses.

Spousal Wash Sale Rules

The wash sale rule applies to purchases made by your spouseas well as to purchases made through entities you control, such as a corporation in which you hold a majority interest. This is not always intuitive, but it follows from the IRS's focus on the economic substance of the transaction: if your household maintains the same investment position through a spousal purchase, the wash sale rule applies.

Practically, this means that if you sell a stock at a loss and your spouse buys the same stock within the 61-day window — even in an entirely separate account that your spouse solely owns — the wash sale rule applies to your loss. Coordination between spouses on tax-loss harvesting activities is therefore important.

Married couples who file separately should be particularly careful, as each spouse's account activity can affect the other's tax position through this rule.

What Happens to the Disallowed Loss?

When a loss is disallowed under the wash sale rule in a taxable account, it is not simply erased. Instead, it is added to the cost basis of the replacement shares you purchased. This is called a basis adjustment, and it means the loss is deferred rather than permanently eliminated (in most cases — see the IRA exception above).

In addition to the basis adjustment, the holding period of the replacement shares is adjusted. The holding period of the shares you sold at a loss is tacked on to the holding period of the replacement shares, which can affect whether a future sale of the replacement shares produces a short-term or long-term gain or loss.

How Basis Adjustment Works

Suppose you sell 50 shares of a stock at a $1,000 loss, and the sale is flagged as a wash sale because you repurchased the same stock within the 61-day window. That $1,000 disallowed loss is added to the cost basis of the newly purchased shares. When you eventually sell those replacement shares (without triggering another wash sale), the higher basis reduces your taxable gain or increases your deductible loss by $1,000 — recovering the deferred tax benefit at that time.

Basis adjustment illustration:
Original purchase: 50 shares at $40 each = $2,000 basis
Sale proceeds: $1,500 (loss of $500 — wash sale triggered)
Replacement purchase: 50 shares at $32 each = $1,600
Adjusted basis of replacement shares: $1,600 + $500 = $2,100
If you later sell the replacement shares at $40 each ($2,000), your loss is $100 rather than a gain of $400 — the deferred $500 has been partially recovered.

The implication: if you never repurchase the security (or repurchase it after the 61-day window closes), you avoid the wash sale entirely and can claim the full loss in the current tax year. The deferral mechanism only applies when you do trigger the rule.

Wash Sales and Options

Options add a layer of complexity to wash sale analysis because both call options and put options can trigger — or be part of — a wash sale transaction.

Call Options as Replacement Securities

If you sell shares at a loss and then buy a call option on the same stock within the 61-day window, the IRS may treat the call option as a substantially identical security — particularly if the option is deep in-the-money and provides near-equivalent economic exposure to owning the shares outright. The threshold is not bright-line, but the general principle is that a contract that gives the right to acquire substantially identical stock can itself be substantially identical.

Selling a Put to Trigger a Wash Sale

Selling a deep-in-the-money put option on the same stock within the 61-day window can also trigger a wash sale, because selling a put creates an obligation to purchase the stock — which the IRS may view as entering into a contract to acquire substantially identical stock. Treasury Regulation 1.1091-1(b) explicitly states that acquiring a contract or option to acquire substantially identical stock triggers the rule.

Options on Related Indexes or Funds

Options on the same ETF or fund you sold are almost certainly substantially identical. Options on a broad index that the fund tracks may also be considered substantially identical in some circumstances. This is an area where the guidance is genuinely unsettled, and the stakes are high enough that consulting a qualified tax professional is strongly recommended before combining options strategies with tax-loss harvesting.

Does the Wash Sale Rule Apply to Crypto?

Under current US federal law as of 2025, cryptocurrency is classified as propertyunder IRS Notice 2014-21, not as a security. Because Section 1091 of the Internal Revenue Code applies specifically to "stock or securities," and the IRS has determined that cryptocurrency does not fall into that category, the wash sale rule does not currently apply to Bitcoin, Ethereum, or other digital assets.

What This Means in Practice

A crypto investor can sell Bitcoin at a loss and immediately repurchase it — even on the same day — and still claim the full tax loss. This has made crypto tax-loss harvesting a more flexible tool than loss harvesting in the stock market, where the 61-day window requires careful timing.

Proposed Legislation

Multiple legislative proposals in recent years have sought to extend wash sale treatment to digital assets. The Lummis-Gillibrand Responsible Financial Innovation Act and several budget proposals from the executive branch have included provisions to close the crypto wash sale exemption. As of the publication date of this article, no such legislation has been enacted into law. However, this is an area of active legislative attention, and the current exemption should not be assumed to be permanent.

Investors who rely on crypto loss harvesting should monitor legislative developments closely and consult a qualified tax professional for current guidance.

Common Mistakes Investors Make

The wash sale rule catches many investors off guard because it operates in ways that are counterintuitive or easy to overlook in the course of normal investing activity.

1. Dividend Reinvestment Plans (DRIPs)

If you have automatic dividend reinvestment enabled on a fund and you attempt to harvest a loss in that fund, the recent dividend reinvestment purchase almost certainly falls within the 30-day look-back window, triggering a wash sale on at least the shares purchased via DRIP. Suspending dividend reinvestment before a planned loss harvest is a common best practice.

2. Automatic 401(k) or IRA Contributions

Regular automatic contributions to a retirement account that purchases the same funds you hold in your taxable brokerage account can trigger cross-account wash sales — potentially with permanent loss disallowance if the retirement account is an IRA.

3. Counting Only 30 Days Forward

Many investors mistakenly believe they only need to wait 30 days after the sale to repurchase. The actual rule requires 31 days of clean separation after the sale (to ensure the 30-day post-sale window is fully clear). Waiting exactly 30 days is not sufficient.

4. Ignoring the 30-Day Look-Back

Buying additional shares of a position within 30 days before harvesting the loss disallows the loss on the shares purchased during that look-back period. Investors who dollar-cost average regularly can inadvertently trigger this.

5. Partial Wash Sales

The wash sale rule applies proportionally when the number of replacement shares purchased is less than the number of shares sold. If you sell 100 shares at a loss and repurchase only 60 shares within the 61-day window, the loss on 60 shares is disallowed while the loss on the remaining 40 shares may be claimed. This partial treatment requires careful tracking.

6. Assuming Year-End Losses Are Always Claimable

Selling a position at a loss on December 31 does not guarantee you can claim the loss. If you repurchased that same security in early January — within 30 days after the sale — the wash sale rule will disallow the loss even though the purchase occurred in the new calendar year.

How Brokers Report Wash Sales (Form 1099-B Box 1g)

US brokers are required to track and report wash sales that occur within their own systems and report them on Form 1099-B. The key field is Box 1g, which reports the dollar amount of any wash sale loss disallowed during the year.

How to Handle Box 1g on Your Tax Return

When preparing your tax return, you report securities sales on IRS Form 8949. For any transaction with a disallowed wash sale loss:

  1. Enter the disallowed amount from Box 1g in column (g) of Form 8949
  2. Enter adjustment code W in column (f)
  3. The disallowed loss is added back to the proceeds, reducing the net loss claimed
  4. The totals from Form 8949 flow to Schedule D, which summarizes your overall capital gains and losses

Many tax software programs and tax professionals handle this automatically when you import your 1099-B. However, it is worth reviewing the imported data to ensure all wash sale entries appear correctly — especially if you have accounts at multiple brokerages, since cross-account wash sales will not be reflected in any single 1099-B.

The Limitation of Broker Reporting

Brokers only track wash sales within their own systems. They cannot see your other brokerage accounts, IRA accounts at other institutions, or your spouse's accounts. If a wash sale occurs across accounts at different institutions, it will not appear on any 1099-B — the taxpayer is solely responsible for identifying and correctly reporting it. Failing to do so can constitute an error on your tax return.

For investors with complex portfolios or multiple accounts, working with a qualified tax professional or using specialized portfolio tax software that aggregates activity across all accounts is strongly recommended. See also our guide to capital gains tax reporting for more on Form 8949 and Schedule D.

Worked Examples With Numbers

Example 1: Simple Wash Sale — Loss Disallowed and Deferred

March 1: You buy 200 shares of Company A at $50/share. Total cost basis: $10,000.

September 15: Shares have fallen to $35. You sell all 200 shares for $7,000. Realized loss: $3,000.

September 28: You repurchase 200 shares of Company A at $33/share. Total purchase price: $6,600.

Result: The repurchase on September 28 falls within 30 days after the September 15 sale. The $3,000 loss is disallowed. The basis of the replacement shares becomes $6,600 + $3,000 = $9,600 (i.e., $48/share). The holding period of the replacement shares includes the period you held the original shares.

Future sale:If you later sell the replacement shares at $50 ($10,000 total), your gain is $10,000 − $9,600 = $400. Without the wash sale adjustment, your gain would have appeared to be $10,000 − $6,600 = $3,400 — you would have been overtaxed.

Example 2: Year-End Trap

December 29:You sell 100 shares of an ETF at a $1,500 loss, expecting to claim the loss on this year's tax return.

January 10 (next year): You repurchase the same ETF.

Result:January 10 is only 12 days after the sale — well within the 30-day post-sale window. The $1,500 loss is disallowed. It does not appear as a deduction on either year's tax return (the loss does not carry back to the prior year). Instead, it is added to the basis of the January replacement shares.

Example 3: The IRA Trap — Permanent Loss

November 1: You sell 100 shares of an index fund in your taxable brokerage account at a $2,400 loss.

November 8:Your Roth IRA's monthly automatic contribution purchases the same index fund.

Result:The purchase in the Roth IRA within 30 days triggers a wash sale. The $2,400 loss is disallowed. Because the replacement purchase occurred inside a Roth IRA, there is no mechanism to add the $2,400 to the IRA's basis. The loss is permanently gone.

Example 4: Partial Wash Sale

Sale: You sell 100 shares at a total loss of $2,000.

Repurchase within 61-day window: You buy back only 40 shares.

Result: 40% of the loss ($800) is disallowed and added to the basis of the 40 replacement shares. The remaining 60% ($1,200) can be claimed as a deductible loss on your current tax return.

Example 5: Clean Harvest — No Wash Sale

October 5: You sell 200 shares of ETF Alpha at a $3,500 loss. You confirm no purchases of ETF Alpha in the prior 30 days and no DRIP activity.

October 6: You purchase ETF Beta, which tracks a different but correlated index, to maintain your market exposure during the 31-day waiting period.

November 10 (36 days after sale): If you wish, you may repurchase ETF Alpha without triggering a wash sale, or continue holding ETF Beta.

Result: The $3,500 loss is fully deductible. ETF Beta maintained your approximate market exposure during the waiting period. This is the intended tax-loss harvesting workflow.

Frequently Asked Questions

Does the wash sale rule apply to gains as well as losses?

No. The wash sale rule exclusively disallows the recognition of a capital loss — it does not affect gains in any way. If you sell a security for a profit, you owe tax on that gain regardless of whether you repurchase the same security within the 61-day window. The rule is a loss-deferral mechanism, not a gain-deferral mechanism.

If my loss is disallowed because of a wash sale, is it gone forever?

Not in most cases. When a loss is disallowed, the disallowed amount is added to the cost basis of the replacement shares you purchased. This adjusted basis means the loss is deferred, not permanently lost — you will effectively recoup it when you eventually sell the replacement shares, provided you do not trigger another wash sale at that point. The one exception is a wash sale inside an IRA: if you sell at a loss in a taxable account and repurchase the same security in an IRA within the 61-day window, the disallowed loss is permanently lost because the IRA basis cannot be increased.

How do brokers track wash sales across multiple accounts?

Brokers are only required to track and report wash sales within the same account. If you have accounts at multiple brokerages — or if wash sale activity spans a taxable brokerage account and an IRA at the same or different institution — the broker may not automatically detect it. The legal obligation to identify and disclose all wash sales across all accounts falls on you, the taxpayer. This is one reason why investors who use tax-loss harvesting strategies often consolidate accounts or work with a tax professional who can track positions holistically.

Does the wash sale rule apply to cryptocurrency in 2025?

Under current law as of 2025, cryptocurrency is classified as property — not as a security — so the wash sale rule does not apply. This means an investor can sell Bitcoin at a loss, immediately repurchase it, and still claim the tax loss. However, multiple legislative proposals have sought to extend wash sale treatment to digital assets, and this could change. Tax law in the crypto space is evolving rapidly; consult a qualified tax professional to understand the current status of any applicable legislation.

What does Box 1g on Form 1099-B mean, and what should I do with it?

Box 1g of Form 1099-B reports the amount of any wash sale loss that was disallowed by your broker during the tax year. When you prepare your tax return using IRS Form 8949, you must enter this amount in column (g) and use adjustment code W in column (f). The disallowed loss is added back so that it does not reduce your taxable gain or increase your deductible loss on that specific sale. The IRS uses these codes to verify that disallowed losses are not being claimed. If your broker has flagged wash sales, review the entries carefully and consult a qualified tax professional if any amounts appear incorrect.

Estimate Your Capital Gains Tax

Model how wash-sale-adjusted losses interact with gains and the $3,000 ordinary income deduction.

Open Calculator →