Bitget App
Trade smarter
Buy cryptoMarketsTradeFuturesEarnSquareMore
daily_trading_volume_value
market_share58.51%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
daily_trading_volume_value
market_share58.51%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
daily_trading_volume_value
market_share58.51%
Current ETH GAS: 0.1-1 gwei
Hot BTC ETF: IBIT
Bitcoin Rainbow Chart : Accumulate
Bitcoin halving: 4th in 2024, 5th in 2028
BTC/USDT$ (0.00%)
banner.title:0(index.bitcoin)
coin_price.total_bitcoin_net_flow_value0
new_userclaim_now
download_appdownload_now
how does a stock wash sale work — Guide

how does a stock wash sale work — Guide

A clear, practical guide explaining how the wash sale rule works for stocks and related securities, its 61‑day timing, tax mechanics, cross‑account traps, reporting, and avoidance strategies — with...
2026-02-05 01:21:00
share
Article rating
4.2
103 ratings

How does a stock wash sale work

A wash sale is a tax rule that disallows a loss deduction when you sell a stock or substantially identical security at a loss and buy the same or substantially identical security within a 61‑day window surrounding the sale. This article answers the core question of how does a stock wash sale work, explains the purpose and legal basis, covers what counts as a wash sale, describes the tax mechanics and reporting, and offers clear examples and practical steps to avoid accidental triggers. Readers will leave with actionable recordkeeping tips and replacement strategies that balance tax needs with portfolio integrity — and guidance on when to consult a tax professional.

Overview and purpose

The simplest way to answer "how does a stock wash sale work" is to view it as a rule designed to prevent taxpayers from manufacturing deductible losses. The tax-policy rationale is straightforward: without the rule, investors could sell a losing position to claim a tax loss and immediately buy back essentially the same investment, preserving market exposure while gaining a tax benefit. To block this, U.S. tax law disallows losses on sales when the taxpayer acquires substantially identical securities in a 61‑day window centered on the sale.

Key points at a glance:

  • The rule applies to a 61‑day period: 30 days before the sale, the sale date, and 30 days after the sale. Purchasing within any part of that window can trigger a disallowed loss.
  • A disallowed loss is not permanently denied; it is added to the basis of the replacement shares, deferring the loss until a later taxable disposition.
  • The rule targets "substantially identical" securities, a term without an absolute bright-line IRS definition; many practical examples and reasonable interpretations exist.

Why it matters: knowing how does a stock wash sale work helps investors avoid surprise tax outcomes, preserve intended tax-loss harvesting benefits, and maintain accurate cost-basis and holding-period records.

Legal and regulatory basis

The wash sale concept is implemented in the U.S. Internal Revenue Code and explained in IRS guidance (for investors, see IRS Publication 550, Investment Income and Expenses). Brokers report sales and basis information to the IRS on Form 1099‑B and investors report transactions on Form 8949 and Schedule D of Form 1040. As of June 2024, according to IRS Publication 550 and major tax guides, the core 61‑day timing and the basis-addition mechanics remain the governing framework for securities wash sales.

Brokers' responsibilities and limitations:

  • Brokers typically detect and report wash-sale adjustments for transactions within the single account they administer and for accounts at the same brokerage for which they have lot‑level information. They reflect disallowed losses on Form 1099‑B when they have sufficient information.
  • Brokers often cannot detect wash sales across different brokerages or between taxable accounts and retirement accounts (IRAs). Taxpayers are responsible for identifying and reporting cross-account wash sales.

Reporting forms and where wash sales show up:

  • Form 8949: Used by taxpayers to report sales and adjustments, including wash-sale disallowed losses and basis adjustments.
  • Schedule D (Form 1040): Summarizes capital gains and losses, aggregating the Form 8949 lines.
  • Form 1099‑B: Broker reports proceeds and may show disallowed wash-sale adjustments when the broker has the data.

What counts as a wash sale (scope)

Securities covered

The wash sale rule broadly applies to stocks and many other securities. Typical covered instruments include:

  • Individual stocks and common shares.
  • Mutual funds and exchange-traded funds (ETFs) tracking equity or bond baskets.
  • Options and other derivatives when they result in substantially identical economic exposure.
  • Corporate bonds and many fixed‑income instruments when substantially identical.
  • In many cases, brokers use CUSIPs (or other identifiers) to determine identical lots for reporting inside a single firm.

Note: While the rule clearly covers stocks, its reach to other instruments often depends on whether the replacement provides substantially identical exposure to the sold position.

“Substantially identical” — meaning and uncertainty

A central practical question is what counts as "substantially identical." The IRS has not published a single bright-line test. Instead, guidance and practice rely on reasoned comparisons and past guidance. Common interpretive points:

  • Identical securities: shares of the same company, same ticker/CUSIP, are clearly substantially identical.
  • Different share classes or serial issues of the same company (e.g., class A vs class B) may be substantially identical if their economic exposure is equivalent.
  • Different funds or ETFs that track the same index but have different managers, expense ratios, or sample methodologies can be ambiguous — many tax professionals treat different funds/ETFs as not substantially identical if tickers/CUSIPs differ and exposure is not exactly the same, but caution is advised.
  • Two ETFs with nearly identical holdings and the same index may sometimes be treated as substantially identical in stringent interpretations.

Given the ambiguity, conservative treatment is often safest: assume substantially identical when in doubt for tax-loss harvesting planning, or document rationale when using different-but-similar replacements.

Timing rules — the 61‑day window

The timing rule is precise: the 61‑day window includes the 30 days before the sale, the sale date, and the 30 days after the sale. Purchases in any of those days that acquire substantially identical securities trigger disallowance of the loss.

Practical timing implications:

  • A purchase 15 days before a loss sale will make the later sale a wash sale if it creates substantially identical exposure.
  • A purchase 5 days after a loss sale triggers a wash sale, disallowing the immediate loss deduction.
  • Partial repurchases: if you repurchase only part of the previously sold position within the window, the disallowed loss is allocated pro rata to the replacement shares (see examples below).

Tax consequences and mechanics

Loss disallowance and basis adjustment

When a wash sale occurs, the disallowed loss amount is not permanently lost. Instead, the disallowed loss is added to the cost basis of the replacement shares you acquired that triggered the wash sale. This rule defers the tax benefit until you eventually sell the replacement shares (outside a future wash-sale situation).

Mechanics in practice:

  • You sell 100 shares at a $1,000 loss and then buy 100 replacement shares within the 61‑day window. The $1,000 loss is disallowed and added to the basis of the replacement shares. If you paid $5,000 for the replacements, their adjusted basis becomes $6,000.
  • If you later sell the replacement shares at a gain, the earlier disallowed loss reduces the taxable gain; if you later sell at a loss, the adjusted basis limits the loss recognized.

This basis addition ensures the economic loss is preserved for tax purposes, just deferred until the replacement shares are disposed of in a taxable transaction.

Carryover of holding period

An important detail is that the holding period of the sold shares "tacks" onto the holding period of the replacement shares for purposes of determining long‑term vs short‑term capital gain or loss. This affects the tax rate applied when you later sell the replacement shares:

  • If you held the sold shares for 200 days (short-term), and have replacement shares that you hold for 200+ days including the tacked period, the combined holding period determines whether a future disposition is short‑term or long‑term.
  • The tacking rule can be beneficial when the original holding period already qualifies for long‑term status.

Examples with numbers

Example A — Triggered wash sale and basis adjustment

  • You bought 100 shares of XYZ at $60 each (basis $6,000).
  • You sold those 100 shares at $40 each (proceeds $4,000), realizing a $2,000 loss.
  • Within 10 days you repurchase 100 shares of XYZ at $45 each (cost $4,500). Tax effects:
  • The $2,000 loss is disallowed for the current tax year.
  • The disallowed $2,000 is added to the basis of the replacement shares: $4,500 + $2,000 = $6,500 adjusted basis.
  • When you later sell these replacement shares, your gain/loss will use the $6,500 basis.

Example B — Partial wash sale

  • You sell 200 shares of ABC at a $2,000 loss.
  • Within the window you buy 50 shares of substantially identical ABC. Allocation:
  • A pro rata portion of the disallowed loss is allocated to the 50 replacement shares: (50 / 200) × $2,000 = $500 disallowed and added to the basis of the 50 shares.
  • The remaining $1,500 of the original loss is allowed immediately.

These examples show how wash-sale adjustments change immediate deductibility but preserve the loss inside the replacement basis for later recognition.

Cross-account and related-party considerations

Trades across your taxable accounts

The wash sale rule applies across all taxable accounts you control. If you sell at a loss in one brokerage and buy substantially identical securities in another brokerage within the 61‑day window, the rule applies. Important practical notes:

  • Many brokers only detect and report wash sales within accounts they manage. They may not flag cross-broker transactions on Form 1099‑B.
  • The taxpayer is responsible for tracking cross-account activity and reporting required adjustments on Form 8949.
  • Coordinating buy/sell timing across accounts is essential to avoid inadvertent wash sales.

IRAs and retirement accounts

Buying substantially identical securities inside an IRA (or Roth IRA) within the window creates a particularly unfavorable outcome: the loss is disallowed and the disallowed loss is not added to the basis of the IRA securities (because IRA basis rules operate differently), effectively permanently denying the tax benefit.

Example: You sell a taxable account holding at a loss and buy the same security inside your traditional IRA within the 61‑day window. The original loss is disallowed and you cannot add it to the IRA basis — the loss deduction is forfeited. For this reason, repurchasing in IRAs during the window is not a safe workaround to harvest losses.

Spouse and related entities

Transactions by a spouse or by entities you control can trigger wash sales because the rule covers related parties. Specific points:

  • Purchases by your spouse are treated as your purchases for wash-sale purposes.
  • Transactions involving entities where you hold substantial control (e.g., partnerships, corporations you control) can also be implicated.

Because family and related-entity purchases can trigger the rule, coordinate trading across household accounts if you are harvesting losses.

Special situations and traps

Dividend reinvestment plans (DRIPs)

Automatic dividend reinvestments can inadvertently create wash sales. If you sell a holding at a loss and then a dividend reinvestment plan purchases additional shares for you within the 61‑day window, that automatic buy may trigger a wash sale. Practical advice:

  • Temporarily disable DRIPs before a planned loss sale if you intend to claim the loss.
  • Track dividend reinvestments as purchases for wash-sale calculations.

Options, short sales, and contracts

Options and other derivatives can create wash-sale concerns in several ways:

  • Buying call options that are substantially identical to the stock can be treated as acquiring substantially identical securities.
  • Writing covered calls or using options to replicate exposure complicates the analysis — consult a tax professional for complex option strategies.
  • Short sales generally have separate rules; covering a short position can interact with wash-sale concepts in non‑intuitive ways.

When using options as replacements or hedges around a loss sale, document intent and consult a professional if exposure looks identical.

Multiple lots and FIFO vs specific identification

When you sell multiple lots of the same security, the matching method matters:

  • First-In-First-Out (FIFO) is the default for many brokers unless you make a specific identification at the time of sale.
  • Specific-identification lets you select which lot(s) you sold for tax purposes, which can help manage wash-sale exposure and harvest losses selectively.

Important points:

  • To use specific identification, you must clearly identify the lots at the time of sale and retain broker confirmations.
  • When a partial repurchase occurs, the disallowed loss is allocated to replacement shares pro rata; knowing which lots were sold helps determine the correct allocation.

How to report wash sales

Reporting requirements and practical steps:

  • Review Form 1099‑B from your broker. Many brokers will show adjustments for wash-sale disallowances they detect and report.
  • Use Form 8949 to report each sale and any adjustments (code W for wash sale) and transfer the totals to Schedule D.
  • If a broker does not report an adjustment you believe applies (e.g., cross-broker wash sale), you still must report correctly on Form 8949 and adjust basis as required.

Recordkeeping tips:

  • Keep lot-level trade confirmations, dividend reinvestment records, and IRAs/household account statements.
  • Use tax software or spreadsheets to reconcile brokerage reports with your aggregate activity, especially across firms.
  • If you rely on a CPA or tax preparer, provide complete cross-account trading history and DRIP records.

Strategies to avoid triggering a wash sale

Waiting periods

The simplest way to avoid a wash sale is to wait at least 31 days after the sale before repurchasing the same or substantially identical security. This removes the 61‑day overlap and preserves the immediate loss deduction.

Tradeoffs:

  • Waiting exposes you to potential market movement and tracking error if you repurchase too late.
  • The 31+ day approach is the most conservative and easiest to implement.

Using non‑substantially identical replacements

You can maintain market exposure while avoiding the wash sale by buying a different security that provides similar, but not substantially identical, exposure. Examples:

  • Sell a broad-market ETF and buy a non‑identical ETF that targets a slightly different index or uses different sampling techniques.
  • Replace a single-stock position with a sector ETF or a diversified fund that captures similar market exposure without being substantially identical.

Considerations:

  • Tracking error: replacements may not move exactly like the sold security.
  • Fees and liquidity: replacement funds may have different expense ratios or trading spreads.

When choosing replacements, document the distinctions to support the non‑substantially identical argument if questioned.

Tax‑loss harvesting alternatives (tax-aware substitutions)

Tax-aware substitution strategies aim to preserve exposure while avoiding wash-sale status:

  • Harvest losses, then buy a similar (but distinct) fund or ETF to keep market exposure.
  • Use inverse or leveraged funds cautiously — they can create materially different exposure and heightened risk.

The goal is to balance tax efficiency with portfolio objectives; choose replacements consistent with your risk profile and investment policy.

Using tax-advantaged accounts carefully

Never assume that repurchasing inside an IRA is a safe way to sidestep the wash sale rule — it will usually permanently disallow the loss. Avoid buying replacement securities inside IRAs within the 61‑day window if you intend to claim a loss in a taxable account.

Wash sale and cryptocurrency

How does a stock wash sale work compared to crypto? As of June 2024, the IRS generally treats most cryptocurrencies as property for U.S. tax purposes, and the statutory wash-sale rule specifically targets stocks and securities. Consequently, mainstream guidance before mid‑2024 has typically held that the traditional securities wash-sale rule does not apply to cryptocurrencies.

Important caveats:

  • The tax treatment of crypto is evolving. New legislative proposals, IRS rulemaking, or enforcement guidance could change whether wash-sale‑style restrictions apply to crypto.
  • Even if the wash-sale rule does not apply, other tax rules (like constructive sales doctrine or transaction‑specific sourcing rules) may affect crypto activity.

If you trade crypto and engage in loss harvesting or frequent trading, monitor IRS guidance and consult a tax professional for up‑to‑date advice. For on‑chain custody or wallet solutions, Bitget Wallet is a practical option to manage holdings, but remember that using an exchange or wallet does not change the need for accurate tax reporting.

International comparisons

Other jurisdictions have similar anti‑abuse timing rules:

  • United Kingdom: Historically used "bed-and-breakfast" rules that required a 30‑day separation for certain shares; rules and implementations differ from U.S. wash‑sale rules.
  • Canada, Australia, and many EU countries have their own anti‑avoidance rules that prevent immediate repurchases to claim realized losses.

Cross-border investors should consult local rules or a cross-border tax professional because timing windows, definitions of identical securities, and reporting requirements vary by jurisdiction.

Common FAQs

Q: If I sell at a loss and buy a different company's shares, is that a wash sale? A: Generally no — the replacement must be substantially identical. Buying a different company’s shares typically does not trigger a wash sale.

Q: Do brokers always detect wash sales? A: Brokers detect wash sales within the accounts they control and when they have lot‑level data. They may not detect cross‑broker or cross‑custodian wash sales; the taxpayer bears responsibility.

Q: What happens if a DRIP reinvests dividends inside the 61‑day window? A: The automatic purchase can create a wash sale. Keep DRIP records and consider suspending reinvestment when harvesting losses.

Q: Are wash-sale losses permanently lost if I accidentally trigger one? A: No — disallowed losses are added to the basis of replacement shares, unless the replacement occurs in an IRA, which may permanently forfeit the loss.

Q: How should I handle an inadvertent wash sale on my tax return? A: Report the transaction on Form 8949 with the disallowed loss adjustment and retain documentation. If you are uncertain, consult a CPA.

Practical recordkeeping and compliance tips

  • Track trades at the lot level across all brokerages and taxable accounts. Use broker export tools or spreadsheet reconciliation.
  • Keep DRIP, dividend, and options exercise records — these purchases count for wash-sale timing.
  • Make sure specific-identification elections are documented at trade time if you want to avoid FIFO.
  • If you use multiple brokerages, either coordinate trades to avoid the 61‑day overlap or maintain clear records to make proper Form 8949 adjustments.
  • Consider tax software that imports Form 1099‑B data and allows manual adjustments for cross‑broker wash sales.
  • When in doubt, consult a CPA or tax attorney — especially for complex derivatives, cross-border issues, or substantial positions.

Example scenarios and worked calculations

Scenario 1 — Single-lot repurchase

  • Bought 100 shares at $50 (basis $5,000).
  • Sold 100 shares at $40 (proceeds $4,000): $1,000 loss.
  • Repurchased 100 shares at $42 within 10 days (cost $4,200). Result:
  • $1,000 loss disallowed and added to replacement basis: $4,200 + $1,000 = $5,200 adjusted basis.
  • Future sale of replacement shares will use $5,200 for gain/loss.

Scenario 2 — Partial repurchase

  • Sold 200 shares at an aggregate $2,000 loss.
  • Within window, bought 50 replacement shares. Result:
  • (50/200) × $2,000 = $500 disallowed and added to the basis of the 50 shares.
  • $1,500 of the initial loss is allowed immediately.

Scenario 3 — DRIP triggers wash sale

  • You sell a losing stock position and leave dividend reinvestment enabled.
  • A dividend reinvestment plan purchases shares 5 days after your sale. Result:
  • The reinvested shares can trigger a wash sale. The dividend shares’ cost is increased by the disallowed amount, or the loss is otherwise allocated to the reinvested shares per IRS rules.

Scenario 4 — Replacement in an IRA

  • You sell a taxable holding at a loss and repurchase the same stock inside your traditional IRA within 20 days. Result:
  • The loss is disallowed and cannot be added to the IRA basis in a way that preserves the tax benefit. The deduction may be permanently lost.

Each worked example follows the same principle: the timing and substantially identical test determine whether a loss is disallowed, and disallowed losses become basis adjustments for replacement shares (except problematic IRA cases).

Recent developments and policy considerations

As of June 2024, there have been ongoing public discussions in the tax community about expanding or clarifying wash‑sale rules to include digital assets or to refine broker reporting requirements. However, no major statutory overhaul had been enacted as of that date. Taxpayers should monitor IRS announcements and legislative updates because the treatment of cryptocurrencies and enhanced broker reporting are areas of active interest.

Sources of commentary include IRS guidance (Publication 550), broker and advisor explainers, and tax‑policy briefings. Always verify the latest authoritative guidance when planning tax-sensitive trades.

References and further reading

Primary sources and helpful guides used to prepare this article include IRS Publication 550 (Investment Income and Expenses), tax‑prep resources and broker explainers, and investor education sites. Readers should consult the IRS and their tax advisor for authoritative, personalized advice.

As of June 2024, according to IRS guidance and professional tax outlets, the treatments described here reflect prevailing rules and common industry practice.

More practical advice and next steps

If you want to incorporate tax-loss harvesting into your strategy or ensure you're handling wash sales correctly:

  • Keep clear, lot-level trade records across accounts.
  • Consider waiting 31 days to repurchase the same security or choose a non‑substantially identical replacement.
  • Avoid repurchasing in IRAs within the 61‑day window.
  • Use broker and tax‑reporting tools to reconcile Form 1099‑B and Form 8949.

For Web3 and crypto holdings, track guidance changes closely. For account custody and wallet needs, consider Bitget Wallet for secure on‑chain storage and bitget exchange services if you trade tokenized securities or other digital assets. When tax matters are material or complex, consult a CPA or tax attorney.

Further exploration: explore Bitget features that help with trade execution and custody — and consult a tax pro for questions about cross‑account wash sales or complex derivatives.

Thank you for reading — explore more practical tax‑aware investing guidance and Bitget resources to manage trades and custody effectively.

The content above has been sourced from the internet and generated using AI. For high-quality content, please visit Bitget Academy.
Buy crypto for $10
Buy now!

Trending assets

Assets with the largest change in unique page views on the Bitget website over the past 24 hours.
BNB to usdBNBBitcoin to usdBitcoinWorld Mobile Token to usdWorld Mobile TokenXRP to usdXRP
Fidelity Digital Dollar to usdFidelity Digital Dollar
Ethereum to usdEthereumSui to usdSui
MetaSoilVerse Protocol to usdMetaSoilVerse Protocol

Popular cryptocurrencies

A selection of the top 12 cryptocurrencies by market cap.