Bitget App
Trade smarter
Buy cryptoMarketsTradeFuturesEarnSquareMore
daily_trading_volume_value
market_share59.15%
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_share59.15%
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_share59.15%
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
can you sell stock then buy back — Wash Sale

can you sell stock then buy back — Wash Sale

This article answers the question “can you sell stock then buy back” by explaining the U.S. wash sale rule, which disallows tax losses when substantially identical securities are repurchased within...
2026-01-10 10:26:00
share
Article rating
4.3
112 ratings

Selling Stock Then Buying Back — (Wash Sale Rule and Related Considerations)

If you’ve typed “can you sell stock then buy back” into a search bar, you’re looking for a practical, tax-aware answer. This article explains in plain language the tax and trading consequences of selling a security at a loss and repurchasing the same or a substantially identical security (commonly called a wash sale). You’ll learn the U.S. IRS rules, what counts as a “security,” how the 61-day window works, special rules for IRAs and cross-accounts, what to do with crypto, concrete numerical examples, and practical ways to avoid unintentionally triggering a wash sale. By the end you’ll know what to track in your records and how Bitget and Bitget Wallet can fit into a compliant workflow.

Note: whenever you see the phrase can you sell stock then buy back in this article, it refers to the tax question of selling at a loss and repurchasing substantially identical holdings within the IRS wash-sale window.

Definition and Core Principle

When investors ask “can you sell stock then buy back” they’re usually worried about whether a tax loss will be allowed if they repurchase the same or similar security shortly after a sale. The wash sale rule is the answer.

A wash sale occurs when you sell a security at a loss and, within 30 days before or after that sale, you buy substantially identical securities. That creates a 61-day window (30 days before + the sale day + 30 days after). The rule’s core purpose is to prevent taxpayers from creating a deductible loss for tax purposes while maintaining the same economic exposure — in short, to stop people from “manufacturing” tax losses without changing their market risk.

Key takeaways up front:

  • The wash sale rule disallows immediate deduction of losses from sales followed by substantially identical repurchases within the 61-day window.
  • The disallowed loss is not erased; instead it is added to the cost basis of the replacement shares and the original holding period tacks onto the new shares for long-/short-term determination.
  • The rule applies across accounts and, in special ways, interacts badly with IRAs.

This article answers the practical question can you sell stock then buy back from multiple angles: legal, mechanical, and behavioral.

Legal / Regulatory Framework (U.S. IRS)

Under U.S. federal tax rules, the wash sale rule is administered by the Internal Revenue Service. The rule prevents taxpayers from recognizing capital losses when the taxpayer — or a related party — repurchases substantially identical securities within the 61-day window centered on the date of sale.

How the IRS implements it (high-level):

  • If a sale at a loss is a wash sale, the loss cannot be deducted in the year of the sale.
  • The disallowed loss is generally added to the cost basis of the replacement shares. This increases the replacement shares’ basis and defers recognition of the loss until the replacement shares are ultimately sold in a non-wash-sale context.
  • The holding period of the sold shares carries over (tacks) to the replacement shares. This matters for determining long-term vs. short-term gain or loss when replacement shares are later sold.

For reporting, taxpayers generally use Form 8949 and Schedule D to report sales and gains/losses. Broker reporting on Form 1099-B may reflect adjustments for wash sales within a single broker’s accounts, but taxpayers must still account for cross-broker and cross-account wash sales when completing their returns.

Authoritative IRS guidance on investment income and losses, wash sales, and Form 8949 instructions are primary sources for the rule. See the References section for specific IRS publications and form instructions.

Scope — Which Assets Are Covered

When someone asks can you sell stock then buy back, it’s important to know which assets are treated as covered “securities.” Generally included are:

  • Individual company stocks (common and preferred shares).
  • Exchange-traded funds (ETFs) and mutual funds that are securities with CUSIPs.
  • Bonds and other debt instruments that are securities.
  • Options and other derivatives that are directly tied to a particular security (for example, certain options positions may be considered substantially identical to the underlying).

The determining factor is whether the instrument is a security and whether the replacement instrument is substantially identical to the sold security. Instruments with CUSIPs are typically within scope. The “substantially identical” test is fact-specific and can be ambiguous — discussed next.

“Substantially Identical” — Meaning and Examples

The term “substantially identical” is deliberately fuzzy in IRS guidance. The IRS does not provide an exhaustive list, so taxpayers must apply a facts-and-circumstances test.

Practical examples to illustrate the meaning:

  • Clearly substantially identical: selling 100 shares of Company X common stock and buying Company X common stock within 30 days.
  • Likely substantially identical: selling an ETF that tracks a small, narrow index and buying another ETF that tracks the same index with a nearly identical portfolio.
  • Ambiguous cases: selling one provider’s S&P 500 ETF and buying a different provider’s S&P 500 ETF. Some practitioners treat these as substantially identical because both track the same index; others consider differences in tracking methodology, fees, and tax structure and argue they are not substantially identical.
  • Not substantially identical: selling a broad-market S&P 500 ETF and buying a sector ETF (e.g., technology-only) — these usually have materially different exposures and are not substantially identical.

Because the test can be contested, many tax advisers recommend conservative choices when the repurchase is intended to avoid or harvest tax losses. If the economic exposure and index tracked are nearly the same, treat them as substantially identical for wash-sale planning unless your tax advisor concludes otherwise.

Time Window and Practical Mechanics

The wash sale window is explicit and simple in calendar terms but can be tricky in practice.

  • The window runs from 30 days before the sale through the sale date and for 30 days after the sale — a 61-calendar-day span.
  • Buying replacement shares during that 61-day window triggers the wash-sale disallowance for a loss sale.
  • Selling replacement shares later can allow the original disallowed loss to be recognized (but only when the replacement shares are sold in a transaction that does not itself create a wash sale).

Partial repurchases and proportional rules:

  • If you sell 200 shares at a loss and buy back only 50 shares within the wash window, only the portion of the loss attributable to the repurchased shares is disallowed and added to the basis of those 50 replacement shares. The remaining loss attributable to the sold-but-not-replaced shares is allowable.
  • If you repurchase multiple times within the window, the disallowed loss rules apply proportionally across repurchases. Recordkeeping is crucial.

Dividend reinvestments and DRIPs:

  • Automatic dividend reinvestments (DRIPs) that purchase additional shares within the wash sale window can create unintentional wash sales. If you sell shares at a loss and your broker reinvests dividends into substantially identical shares within 30 days, you may trigger a wash sale.

Order of operations matters:

  • Buying within 30 days before a later loss sale creates a wash sale just as surely as buying within 30 days after the sale. So can you sell stock then buy back? Yes — but if you bought first in the prior 30 days, that later loss sale will be a wash sale.

Tax Consequences and Accounting Treatment

Immediate tax effect:

  • A loss disallowed under the wash sale rule cannot be deducted in the year of the sale. That reduces or eliminates current-year capital-loss benefits.

How the disallowed loss is preserved:

  • Rather than being lost forever, the disallowed loss is added to the cost basis of the replacement shares. For example, if you sell shares for a $1,000 loss and then buy replacement shares that trigger a wash sale, that $1,000 increases the basis of the replacement holdings.

Holding-period carryover (tacking):

  • The holding period of the original sold shares tacks onto the replacement shares. This matters because long-term vs. short-term capital gain/loss treatment on a future sale of the replacement shares depends in part on the tacked holding period.

Practical reporting effects:

  • Because the disallowed loss increases the basis of replacement shares, the tax benefit is deferred until you dispose of those replacement shares in a transaction that is not itself a wash sale.
  • If you later sell the replacement shares at a gain, the added basis will reduce the recognized gain. If you sell the replacement at a loss again and trigger another wash sale, the mechanics repeat and basis adjustments continue to carry forward.

Example mechanics (short): you sell A at $10,000 original basis and $7,000 sale proceeds (loss of $3,000). You buy replacement shares that trigger a wash sale. The $3,000 loss is disallowed now and added to the replacement shares’ basis. When you later sell the replacement shares in a non-wash transaction, that $3,000 effect will be reflected in the realized gain/loss calculation.

Special Account and Cross-Account Rules

One frequent practical question is can you sell stock then buy back in another account without triggering a wash sale? The IRS looks across related parties and accounts.

Cross-account detection:

  • The wash sale rule is not limited to a single brokerage. The rule applies across your taxable accounts at different brokers and even across accounts owned by related parties, such as a spouse. That means buying the same or substantially identical security at Broker A within 30 days of selling at a loss at Broker B can still create a wash sale.
  • Broker reports (Form 1099-B) may only reflect wash-sale adjustments for trades executed at that broker. If you trade across brokers, the brokers may not communicate. It is the taxpayer’s responsibility to identify and report cross-broker wash sales correctly.

Spousal and related-party situations:

  • Purchases by a spouse (or other related parties) within the window can trigger the wash-sale rule for you. Married couples filing jointly should coordinate trades to avoid unintended disallowances.

IRAs and retirement accounts — a special, often harsh rule:

  • A particularly unfavorable interaction exists when you sell a security at a loss in a taxable account and then, within the wash-sale window, buy substantially identical shares inside an IRA (traditional or Roth) or when an IRA buys replacement shares after you sold in a taxable account. The IRS treats that as a wash sale and disallows the loss — but because you cannot add the disallowed loss to the basis of IRA holdings (IRA basis rules are different and contributions have special tax attributes), the practical result is often the permanent loss of the tax benefit.
  • In plain terms: selling at a loss in a taxable account and buying the same security inside an IRA within 30 days commonly results in a permanently disallowed loss. Tax practitioners frequently warn investors strongly to avoid repurchasing the same or substantially identical securities inside IRAs within the 61-day window after a taxable loss sale.

Because IRA interactions are a common pitfall, planners recommend maintaining careful calendars and avoiding repurchases in any retirement account for at least 31 days after a taxable loss sale.

Cryptocurrency Considerations

Many readers asking can you sell stock then buy back are also active in crypto and wonder how wash-sale rules apply to cryptocurrencies.

Current mainstream guidance and practice (subject to future change):

  • Historically, wash sale rules have applied to stocks and securities. Cryptocurrencies are commonly treated by the IRS as property for tax purposes (not securities), and most major tax-preparation platforms and guides have not applied the wash-sale rule to crypto.
  • However, there is legal and administrative uncertainty. The IRS has not issued definitive, comprehensive wash-sale guidance specific to cryptocurrency, and the treatment could change through regulation or statutory updates.
  • Given the uncertainty, many tax advisers recommend conservative recordkeeping and consulting a tax professional for high-volume or complex crypto activity.

If you are trading crypto and also trading securities, be careful not to assume wash-sale principles automatically apply the same way. If legislation or IRS guidance changes to categorize certain digital assets as securities, then wash-sale rules could be extended.

Because rules may change, the practical advice is: document trades carefully, avoid ad hoc wash-sale–like behavior if you want clear tax outcomes, and check with a qualified tax professional who follows crypto tax developments closely.

Examples (Numerical Scenarios)

Below are concise numerical scenarios illustrating the wash-sale mechanics.

Example 1 — Full repurchase within 30 days (basis adjustment):

  • Scenario: On March 1 you sell 100 shares of XYZ Corp at a loss. Original basis was $5,000 (100 shares × $50). Sale proceeds were $3,000 (100 shares × $30). Loss = $2,000.
  • On March 20 (within 30 days after sale) you buy 100 shares of XYZ for $3,200. This purchase is substantially identical and triggers a wash sale.
  • Tax effect: The $2,000 loss is disallowed in the current year. Instead, the $2,000 is added to the basis of the replacement shares: new basis = $3,200 + $2,000 = $5,200. Your holding period for the original shares tacks onto the replacement shares. When you later sell the replacement shares in a non-wash transaction, that basis determines gain/loss.

Example 2 — Partial repurchase and proportional disallowance:

  • Scenario: Sell 200 shares of ABC Fund at a loss of $4,000. Within 30 days you repurchase 50 shares of the same fund.
  • Tax effect: Only the portion of the loss attributable to the 50 replacement shares is disallowed now and added to the basis of those 50 shares. If the $4,000 loss corresponded pro rata to 200 shares, the disallowed loss for 50 shares equals $1,000. The remaining $3,000 loss is allowable in the current year.

Example 3 — Sale at a gain (not a wash sale) vs. sale at a loss:

  • If you sell at a gain and repurchase within the window, the wash-sale rule does not apply — the rule only disallows losses. So can you sell stock then buy back if you sold for a gain? Yes, because the wash-sale rule is about losses, not gains.

Example 4 — Dividend reinvestment creating an accidental wash sale:

  • Sell 100 shares of DEF at a loss on June 1. On June 15 your broker’s DRIP purchases 3 shares of DEF with reinvested dividends. Those 3 shares can create a partial wash sale; the disallowed portion equals the loss proportional to the 3 shares. Check your broker statements and adjust your tax reporting accordingly.

How to Avoid Triggering a Wash Sale

If your goal is to realize a tax loss and retain (or quickly regain) similar market exposure without triggering a wash sale, common practical approaches include:

  1. Wait out the safe window:
  • The simplest method is to avoid buying the same or substantially identical security for at least 31 days after the sale (and avoid purchasing within 30 days before the sale). Waiting 31+ days after the sale is the clearest way to avoid a wash sale.
  1. Use a non–“substantially identical” replacement:
  • Buy a different security that provides similar but not substantially identical exposure. For example, instead of repurchasing the same ETF, choose a fund that tracks a different but comparable index or select holdings that provide correlated exposure without being nearly identical. Careful documentation helps support a non-substantially-identical position.
  1. Use tax-loss-harvesting replacement strategies:
  • Tax-loss harvesting commonly uses replacement securities that maintain market exposure while avoiding the substantially identical test (for example, swapping an S&P 500 ETF for a total-market ETF that is not substantially identical). This keeps exposure while preserving the loss for tax purposes.
  1. Time trades across tax years:
  • Selling for a loss late in the year and waiting until the new tax year to repurchase may meet personal objectives and provide bookkeeping clarity. Be mindful of market risk from the exposure gap.
  1. Use inverse or hedged instruments carefully:
  • Some traders use derivatives or inverse products for temporary exposure while avoiding substantially identical purchases. However, derivatives can be complex and may themselves be treated as substantially identical by the IRS depending on structure. Consult a tax adviser.
  1. Coordinate across accounts and with a spouse:
  • Because the wash-sale rule applies across brokers and related parties, coordinate trading plans across taxable accounts and family members to avoid inadvertent wash sales.

Cautions:

  • The biggest trade-off when avoiding wash sales is market risk from being out of the market during the 31+ day wait. Prices can rebound quickly and you may lose the economic benefit. Consider whether the tax benefit justifies the trading risk.
  • Be cautious with automatic reinvestments, scheduled buys, or mobile trading apps that might repurchase within the window.

Broker Reporting and Recordkeeping

Because brokers may only report wash-sale adjustments for transactions executed within the same broker, taxpayers must often do extra work.

What brokers typically report:

  • Form 1099-B usually reports proceeds from sales and may show wash-sale adjustments only for trades that occur within that broker’s accounts. If a broker detects a wash sale among its own accounts, it often adjusts basis on Form 1099-B and includes explanatory codes.
  • Brokers generally do not coordinate wash-sale reporting across different brokerage firms. When you trade across brokers, you must manually track cross-broker wash sales and report them on Form 8949 and Schedule D.

Taxpayer responsibility and best practices:

  • Maintain a consolidated trade ledger that shows dates, quantities, prices, and any dividend reinvestments.
  • Track purchases and sales by account and by related party (including spouses and IRAs).
  • Reconcile broker 1099-Bs against your own records.
  • Use tax software that supports multi-broker imports and wash-sale identification, or work with a tax professional when trades are frequent or complex.

Recordkeeping detail to retain:

  • Trade confirmations and monthly statements.
  • Dividend reinvestment notices and DRIP activity.
  • Notes on rationale for swaps between similar ETFs or funds (helpful if the substantially identical question is later examined).

Good records reduce the risk of mismatches and make it easier to justify positions to the IRS if necessary.

International and Comparative Perspectives

While this article focuses on U.S. IRS rules, many other jurisdictions have anti–loss-harvesting or anti–“bed-and-breakfast” rules that resemble the wash sale concept.

Examples:

  • United Kingdom: The U.K. has anti–bed-and-breakfast rules and rules for associated disposals, which can restrict recognition of losses when shares are sold and repurchased within short time frames.
  • Other countries: Many tax systems prevent rapid sell-and-buy patterns designed solely to realize tax losses. Timeframes and application differ by country.

If you have cross-border holdings or reside outside the United States, consult local tax law and a local tax professional. Do not assume U.S. timing or definitions apply in another jurisdiction.

Practical Considerations and Risks

When deciding whether to sell and repurchase, weigh tax benefits against market and implementation risks.

Trade-offs to consider:

  • Market exposure gap: Waiting to avoid a wash sale can leave you out of the market. If the security rallies, you may lose opportunity costs.
  • Basis-management complexity: Using replacements that avoid the substantially identical test keeps the loss immediate, but it can complicate future basis calculations and recordkeeping.
  • Long-term planning: Adding a disallowed loss to replacement shares’ basis can be beneficial if you intend to hold replacement shares for a long time and want a larger future basis. Conversely, if you frequently trade, the deferred complexity may be a burden.
  • Cross-account coordination: Avoiding wash sales often requires consolidating a trading plan across accounts and with a spouse. If you cannot coordinate, the risk of accidental wash sales increases.

Behavioral note:

  • Media-driven or emotional buying (such as snapping back into a previously sold position after regret) is a common cause of wash sales. For example, institutional buying after a dip or headline-driven repurchases can cause individual investors to buy back too quickly. As of Nov. 6, 2025, according to Barchart’s coverage reported on Benzinga, institutional moves into sectors such as advanced air mobility (e.g., purchases by funds into stocks like Joby Aviation and Archer Aviation) have changed market dynamics and caused opportunistic repurchases after dips. These sorts of shifts illustrate how market psychology can drive quick repurchases that have tax consequences if done without planning.

Frequently Asked Questions (FAQ)

Q: Does buying before the sale matter?
A: Yes. Buying within 30 days before a later loss sale can trigger a wash sale. The 61-day window includes 30 days before the sale date, the sale date, and 30 days after.

Q: Does the wash-sale rule apply to gains?
A: No. The wash sale rule disallows losses, not gains. Selling at a gain and repurchasing is not a wash sale for tax-loss-disallowance purposes.

Q: What if I buy the replacement shares in an IRA?
A: Buying replacement shares inside an IRA after a taxable-account loss commonly causes the loss to be disallowed permanently. The disallowed loss cannot usually be added to IRA basis in a way that the taxpayer can later deduct. Avoid buying substantially identical securities inside IRAs within 30 days before or after taxable loss sales.

Q: If brokers report different basis amounts, which do I use?
A: You should use accurate consolidated records. Broker 1099-Bs may not reflect cross-broker wash-sale adjustments; the taxpayer must ensure Form 8949 and Schedule D reflect all applicable adjustments. Keep detailed trade records and reconcile all broker statements.

Q: Does the wash-sale rule apply to crypto trades?
A: At present, many tax guides treat crypto as property and do not apply wash-sale rules to crypto. However, guidance could change. Consult a tax professional and maintain thorough records.

Q: How long do I have to keep records?
A: The IRS recommends keeping tax records for at least three years, but many advisers recommend keeping detailed investment records longer (5–7 years) because of deferred-basis calculations and potential extended audits.

References and Further Reading

Authoritative and widely used resources (no external hyperlinks included):

  • Internal Revenue Service — Publication 550 (Investment Income and Expenses) and instructions for Form 8949 and Schedule D.
  • IRS Form 8949 instructions and Form 1099-B reporting guidance.
  • Major tax-preparation guides and firm explainers: TurboTax, Charles Schwab, Fidelity, Investopedia, J.P. Morgan, Motley Fool, Kiplinger, Zacks.
  • Tax commentary on IRA interactions and wash-sale rulings from major tax firms and CPA sources.

Practical news coverage and market context (example used in this article):

  • As of Nov. 6, 2025, according to Barchart’s coverage reported on Benzinga, institutional fund moves and manager buying (for example, ARK’s purchases of advanced-air-mobility names) illustrate market events that can lead investors to repurchase previously sold positions quickly — a behavior that can create wash-sale issues if done without planning.

When using these references, consult the original IRS materials and qualified tax professionals for case-specific guidance.

See Also

  • Tax-loss harvesting
  • Capital gains and losses
  • Form 8949
  • Basis rules for securities
  • Cryptocurrency taxation (property treatment)
  • Dividend reinvestment plans (DRIPs)

Practical next steps and recordkeeping checklist

If you’re asking can you sell stock then buy back because you want to harvest losses or rebalance positions, follow these steps:

  1. Review your trade ledger and identify any purchases within 30 days before or after planned loss sales across all brokers and accounts (including spouse and IRAs).
  2. If you use DRIPs, temporarily suspend automatic reinvestment for the relevant security until after the 31-day safe period.
  3. Consider alternative replacement securities that provide similar exposure without being substantially identical.
  4. Log the sale and replacement trades with dates, quantities, prices, and rationale to support your tax return.
  5. If an IRA purchase may be involved, avoid repurchasing the same security in the IRA within 31 days of a taxable loss sale.
  6. If you use Bitget for trading, keep consolidated exports of your Bitget trade history and Bitget Wallet transaction logs to reconcile with other brokerages or accounts.

Further explore Bitget features: Bitget offers trading platforms and custody options that help you maintain consolidated trade histories. For on-chain assets, Bitget Wallet can serve as a place to hold and export transaction histories that support tax and basis calculations. If you trade both securities and digital assets, maintain clear separation and documentation to make tax reporting straightforward.

Thank you for reading. To dive deeper into recordkeeping templates, practical loss-harvesting replacement sets, or how Bitget can help centralize trading records, explore Bitget’s learning resources or consult a qualified tax advisor.

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.

Popular cryptocurrencies

A selection of the top 12 cryptocurrencies by market cap.