can you sell and rebuy the same stock? Guide
Selling and Rebuying the Same Stock
Buying and selling the same security repeatedly is common for traders and investors. This article answers whether can you sell and rebuy the same stock, and explains the two main implications: the trading mechanics and broker rules that govern execution, and the U.S. tax consequences—especially the wash sale rule—when a sale generates a loss. You will learn practical steps to execute trades, how settlement and order types affect funds, when losses are disallowed, how replacement purchases affect basis and holding periods, special cases for cryptocurrency and retirement accounts, and simple strategies to manage or avoid wash sales while staying invested. The guidance is educational and not tax or investment advice.
As of 2026-01-21, according to FINRA, broker and margin rules (including the pattern day trader rule) remain important constraints on frequent same‑day buy/sell activity. As of 2026-01-21, IRS Publication 550 and related guidance continue to describe the wash sale rule that disallows losses on repurchases of "substantially identical" securities within the 61‑day window. Readers with specific tax situations should consult a tax professional.
Basic mechanics and legality of selling and rebuying
Short answer: yes — in most U.S. brokerage accounts you are legally allowed to sell a stock and then repurchase the same stock. The market and brokers permit repeated buy and sell transactions. However, how quickly you can reuse proceeds, whether you can trade the same day, and whether a loss on sale is tax‑deductible depend on trade settlement, order types, broker rules (including margin and pattern day trader designations), and tax rules like the wash sale rule.
The remainder of this section explains how trades are executed, settlement timing, order types, and broker responsibilities so you can understand practical limits on selling and re‑entering a position.
Order execution and settlement
When you place a sell or buy order, your broker routes the order to an exchange, market maker, or internal matching engine that executes the trade. Execution typically occurs almost instantaneously for liquid U.S. equities, but settlement — the exchange of cash and shares — follows a separate timeline.
- Settlement cycle: For most U.S. equities the settlement standard is trade date plus two business days (T+2). Settlement means the seller receives cash and the buyer receives shares on the settlement date. Although you may see proceeds reflected as available cash in your account immediately, settlement timing affects certain actions (for instance, depositing settled cash into a withdrawal or meeting margin requirements).
- Cash vs. margin accounts: In a cash account, you generally cannot use unsettled proceeds from a sale to purchase other securities without risking a free‑riding violation. In a margin account, brokers typically allow you to reuse proceeds immediately because margin provides a temporary loan while settlement completes. Brokers set rules for how unsettled funds can be used; read your broker’s cash‑account policies.
- Broker responsibilities: Brokers are required to follow trade reporting and settlement rules and must enforce margin and day‑trading requirements. They also provide trade confirmations and tax reporting information to customers and the IRS.
Understanding settlement and whether you trade in a cash or margin account helps you plan if you want to sell a security and re‑enter the same position quickly.
Order types and trading strategies (market, limit, stop, buy‑to‑cover)
The order type you use affects execution speed and price control when you sell and rebuy:
- Market order: Executes at the current market price. Fastest execution but no price guarantee. Useful when speed is essential but can lead to slippage in volatile stocks.
- Limit order: Sets the maximum (buy) or minimum (sell) price you’ll accept. Provides price control but may not execute fully or at all if the market moves away.
- Stop / stop‑limit order: Useful to exit a loss or protect gains. A sell stop can trigger a market or limit order when the stop price is reached.
- Buy‑to‑cover: Used when repurchasing stock you shorted (covers the short position). Different rules apply to short sales for settlement and margin.
Choose order types based on whether your priority is immediacy (market) or price certainty (limit/stop). If you plan to sell and rebuy the same stock, consider limit orders to control the entry price of your replacement shares.
Broker rules and day‑trading restrictions
Frequent same‑day trades can trigger broker and regulatory designations that change account requirements:
- Pattern Day Trader (PDT): FINRA defines a pattern day trader as someone who executes four or more day trades within five business days in a margin account, provided those day trades represent more than 6% of the customer’s total trades during that period. As of 2026-01-21, the minimum required equity for a PDT is $25,000. If designated a PDT, your account must maintain at least $25,000 in equity and brokers may restrict trading if equity falls below that level.
- Margin requirements: Day trading on margin can amplify both gains and losses and requires compliance with margin maintenance rules. Brokers may raise margin requirements for certain securities.
- Broker‑imposed limits: Some brokers restrict frequent trading in certain mutual funds or ETFs or may place temporary holds on trading in accounts with excessive short‑term activity.
If you plan to sell and rebuy the same stock multiple times in short periods, monitor your trade count and account equity to avoid automatic PDT designation or other limits.
Tax implications — the wash sale rule (U.S.)
If you sell a security at a loss and repurchase the same or a "substantially identical" security within a short window, the U.S. wash sale rule may disallow the loss for tax deduction. This is the primary tax rule investors face when selling and rebuying the same stock.
What is a wash sale?
A wash sale occurs when you sell a stock or security at a loss and buy substantially identical stock or securities within 30 days before or after the sale. That creates a 61‑day window (30 days before, the sale day, and 30 days after) during which some purchases can trigger the rule. If a transaction is a wash sale, you cannot deduct the loss on that sale for tax purposes. Instead, the disallowed loss is added to the cost basis of the replacement shares, deferring the benefit until those replacement shares are sold in a non‑wash transaction.
This rule applies for U.S. federal income tax purposes and is documented in IRS Publication 550 and related guidance. As of 2026-01-21, the rule remains a core part of U.S. tax treatment for losses on stocks and securities.
“Substantially identical” — scope and examples
The IRS uses the term "substantially identical" without an exhaustive definition, so interpretation matters:
- Clear matches: Shares of the same company with the same ticker (common stock series) are substantially identical. Buying the same ETF or mutual fund share with the same CUSIP is almost always substantially identical.
- Ambiguous cases: Different series of the same issuer, such as different classes of stock (Class A vs. Class B) or different call/put options with similar strike and expiry, can be ambiguous and may depend on facts and circumstances.
- ETFs and funds: Two ETFs that track the same index but are issued by different fund families may be treated differently in practice, but the IRS and tax professionals sometimes treat replacement with a very similar ETF as substantially identical if the economic exposure is effectively the same. Conservative taxpayers treat near‑replicates as potentially substantially identical.
- Corporate actions: Mergers, spin‑offs, and reorganizations can complicate the substantially identical analysis; consult tax guidance when corporate events occur near a loss sale.
Because the definition is fact‑specific and the IRS does not always provide bright‑line rules for every scenario, many investors use conservative choices to avoid inadvertent wash sales.
Effect on loss recognition, cost basis, and holding period
If a loss is disallowed by the wash sale rule:
- Loss is not lost permanently but deferred. The disallowed loss amount is added to the cost basis of the replacement shares. That raises the basis of the new shares and will reduce any future gain (or increase future loss) when those replacement shares are sold.
- Holding period tacks. The holding period of the replaced shares generally includes the holding period of the original shares for purposes of determining short‑term vs. long‑term treatment once the replacement shares are later sold.
Example: You sell 100 shares at a loss and buy 100 replacement shares within the wash sale window. If the disallowed loss is $1,000, the cost basis of the replacement shares increases by $1,000. When you later sell the replacement shares, that added basis affects future gain or loss.
Reporting wash sales to the IRS
- Brokers report sales on Form 1099‑B, and many brokers attempt to indicate disallowed wash sales for transactions they can match within the same broker account. However, brokers may not be able to identify wash sales across multiple accounts or in IRAs, nor may they correctly aggregate transactions across custodians.
- Taxpayers are responsible for ensuring accurate reporting on Form 8949 and Schedule D. If brokers do not capture cross‑account wash sales, you must track them and make appropriate adjustments.
Because broker reporting can be incomplete for cross‑account activity, careful recordkeeping is essential.
Transactions and accounts covered (IRAs, spouses, multiple accounts)
The wash sale rule applies across accounts and controlled entities in many cases:
- IRAs and tax‑advantaged accounts: Buying substantially identical securities in an IRA or other tax‑advantaged account within the wash sale window can trigger disallowance of the loss in the taxable account. Critically, because IRAs have different basis rules, the disallowed loss added to basis cannot be tacked onto the IRA position; the taxpayer effectively loses the tax benefit permanently in many such cases. This is a common trap: realize a loss in a taxable account, then repurchase in an IRA within 30 days — the loss may be permanently disallowed.
- Spouses and related parties: Purchases made by your spouse or certain related parties within the wash sale window can trigger the wash sale rule for your transaction. The rule is designed to prevent using related parties to preserve tax benefits while keeping market exposure.
- Multiple brokerages: Wash sale rules apply across brokerages and accounts. Brokers may not detect cross‑account wash sales, so the taxpayer must monitor purchases across all accounts to ensure accurate reporting.
Be especially careful when coordinating trades between taxable and tax‑advantaged accounts or between spouses.
Practical examples and scenarios
Example 1 — Selling and repurchasing within 30 days at a loss (wash sale):
- You buy 100 shares of XYZ at $50. You sell 100 shares at $40, realizing a $1,000 loss. Within 30 days you repurchase 100 shares at $42. Because you repurchased substantially identical shares within 30 days after the loss sale, the loss is disallowed and added to the basis of the new shares. Your new basis becomes $42 + ($1,000/100) = $52 per share.
Example 2 — Selling at a gain then repurchasing:
- You sell 100 shares at a gain and then repurchase them. The wash sale rule applies only to losses. Selling at a gain does not create a wash sale concern. You must still account for capital gains taxes on the realized profit.
Example 3 — Partial repurchases and proportional wash sales:
- If you sell 200 shares at a loss and repurchase 100 replacement shares within the window, only a proportionate portion of the loss is disallowed (proportionate to the number of replacement shares). The disallowed portion is added to the basis of the replacement shares.
These simplified examples show the mechanics: wash sale disallows the immediate loss and shifts it to the replacement holding.
Exceptions, special cases, and non‑U.S. assets
There are notable exceptions and special treatments to consider.
Cryptocurrency treatment (U.S.)
Historically, IRS guidance has applied wash sale rules to "stocks and securities." As of 2026-01-21, the IRS has not issued clear, specific regulations stating that the wash sale rule applies to cryptocurrencies, and many major tax resources note that the rule has been interpreted as not explicitly covering crypto because crypto is treated as property for tax purposes. However, guidance can change, and some tax professionals recommend acting conservatively.
- Practical reality: Because crypto is highly liquid and traded across many platforms, taxpayers and tax preparers often track trades similarly to securities. The lack of explicit wash sale guidance for crypto means enforcement and interpretation could evolve.
- Recommended action: If you trade cryptocurrency and care about tax‑loss harvesting, consult a tax professional and monitor official IRS updates. Using tax software that supports crypto trade import and lot accounting can help manage cost basis.
Retirement accounts and IRAs
Buying replacement shares in an IRA soon after selling in a taxable account can permanently deny the tax benefit of the loss. Because the disallowed loss cannot be tacked onto an IRA position in the same way it would be tacked onto a taxable replacement holding, this specific interaction is a common and material risk for investors who move exposure between accounts.
International jurisdictions
Other countries treat these transactions differently. For example, the UK historically had "bed and breakfasting" rules and different time windows; many nations have specific rules designed to limit wash sale style tax benefits. If you are outside the U.S., consult local tax rules and advisors.
How to avoid or manage wash sales
Investors who want to realize tax losses while remaining invested commonly use several practical strategies.
Waiting the 31 days (safe‑harbor)
The simplest method to avoid a wash sale is to wait at least 31 days after the sale before repurchasing the same or substantially identical security. That removes the repurchase from the 61‑day window and preserves the loss for tax purposes.
Pros: Simple, reliable, and minimizes tax risk. Cons: Market exposure is reduced during the waiting period.
Buying non‑substantially identical replacements (tax‑efficient alternatives)
To keep market exposure while avoiding a wash sale, investors can buy a security that provides similar but not substantially identical exposure. Examples:
- Use a different ETF that tracks a related but not identical index or uses a different weighting methodology.
- Buy a broad market ETF or sector ETF instead of the same single‑stock position.
- Use derivatives or inverse products carefully and only if you fully understand the risks.
The goal is to keep economic exposure similar while avoiding the "substantially identical" trigger. Be aware of tracking error and cost differences.
Using tax‑loss harvesting services and automated managers
Robo‑advisors and portfolio managers often include tax‑loss harvesting algorithms that automatically choose replacement holdings to avoid wash sales and optimize tax outcomes. These services can monitor across owned holdings and select replacements that are not substantially identical while maintaining portfolio risk/return characteristics.
Rebalancing and wash sale awareness (broker tools and recordkeeping)
- Track your 61‑day windows in a consolidated worksheet or tax software that aggregates trades across accounts.
- Use broker wash sale reporting as guidance, but do not rely on it exclusively—brokers may not detect cross‑account wash sales.
- Coordinate with household or spouse accounts to avoid inadvertent related‑party repurchases.
Interaction with trading strategies (day trading, short‑term trading)
Selling and rebuying the same stock is common for active traders. Understand both regulatory and tax consequences for frequent trading.
Pattern day trader implications
Repeated same‑day buy/sell cycles can cause a broker to designate you as a pattern day trader. If designated:
- You must maintain at least $25,000 in account equity in your margin account.
- Brokers can restrict your ability to trade on margin if equity falls below the requirement.
- Some brokers limit the number of day trades for accounts under the PDT threshold.
If you are an active trader, consider how frequent repurchases interact with margin requirements.
Tax considerations of frequent trading
- Short‑term capital gains: Gains on positions held one year or less are taxed at ordinary income tax rates (short‑term), which can be higher than long‑term rates.
- Wash sale complexity: High turnover increases the frequency of potential wash sales, making bookkeeping and tax reporting more complex.
Active traders should use software and professional tax help to track lots, holding periods, wash sale adjustments, and cross‑account activity.
Practical tips and investor checklist
Use this quick checklist before you sell and rebuy the same stock:
- Confirm whether you trade in a cash or margin account. If cash, avoid using unsettled proceeds for immediate repurchases unless you understand your broker’s policies.
- Ask: did I sell at a loss? If yes, review the 61‑day window (30 days before and after the sale day). Avoid repurchasing substantially identical securities within that window unless you intend to accept the wash sale treatment.
- Track repurchases across all accounts (taxable accounts, IRAs, spouse’s accounts). Brokers may not report cross‑account wash sales.
- If using an IRA, beware: repurchasing the same security in the IRA within the window can permanently disallow the loss.
- Consider replacements that are not substantially identical to maintain exposure (different ETFs or broadly diversified funds).
- Use limit orders if you need price control when re‑entering.
- If you are an active day trader, monitor your trade frequency to avoid unwanted pattern day trader designation.
- Consult a tax professional for large or complex positions.
Frequently asked questions (FAQs)
Q: If I sold at a gain and rebuy, is wash sale applied? A: No. The wash sale rule only applies to sales at a loss. Selling at a gain has no wash sale implication, though capital gains taxes apply.
Q: Does selling and rebuying the same day cause a wash sale? A: If the sale realizes a loss and you repurchase the same or substantially identical security within 30 days before or after the sale (including the same day), it can create a wash sale. Same‑day repurchases after a loss are generally within the wash sale window.
Q: Does the wash sale rule apply to cryptocurrency? A: As of 2026-01-21, the IRS has not issued explicit regulatory language stating the wash sale rule applies to cryptocurrencies. Many tax resources note that the rule historically applies to "stocks and securities," while crypto is treated as property. Guidance may evolve, and taxpayers should consult a tax advisor.
Q: Can a broker automatically fix wash sales for me? A: Brokers commonly report wash sale adjustments for transactions they can match within the same account. They may not detect wash sales across multiple brokerages, taxable and tax‑advantaged accounts, or related‑party transactions. You are ultimately responsible for accurate tax reporting.
Q: If I sell part of a position at a loss and repurchase some shares, how is the loss allocated? A: The wash sale disallowance is generally proportional to the number of replacement shares purchased. Only the portion of the loss attributable to replacement shares is disallowed and added to basis.
References and further reading
- IRS Publication 550 (Investments) — guidance on wash sales and capital gains/losses (check current publication for updates). As of 2026-01-21, Publication 550 continues to be a primary IRS reference for investment tax rules.
- FINRA rules and guidance on pattern day trader designation and margin requirements. As of 2026-01-21, the $25,000 minimum equity rule for PDTs remains applicable.
- TurboTax / major tax resources — practical explanations of the wash sale rule and examples.
- Investopedia, Kiplinger, The Motley Fool — accessible explanations and practical scenarios for wash sales and day trading rules.
- Broker documentation (account agreements, cash account and margin rules) — for details about unsettled funds and broker policies.
Sources cited here are widely used tax and trading references; consult the most recent official publications and a qualified tax advisor for personal circumstances.
Further reading and next steps
If you want to practice selling and rebuying with an easy‑to‑use trading interface and strong wallet support, explore Bitget’s trading platform and Bitget Wallet for account setup, order types, and position monitoring. For tax reporting, consider portfolio and tax tools that consolidate trades across brokerages and wallets to detect potential wash sales and to simplify Form 8949 and Schedule D preparation.
For bespoke situations — complex corporate actions, multi‑account coordination, or crypto tax questions — consult a licensed tax professional.
Explore more Bitget resources to learn about order types, margin rules, and secure wallet options tailored for traders who rebuy positions frequently.
Note: This article is educational and informational. It does not constitute tax, legal, or investment advice. Tax law and regulatory guidance change over time; consult current official sources and a qualified professional for decisions affecting your tax or investment positions.























