Can I Buy the Same Stock After Selling? Wash Sale 61-Day Window

Yes, you can buy the same stock after selling it. No rule forces you to wait, and a repurchase minutes or days later is legal. The catch is tax: if you sold at a loss, the wash sale rule will disallow that loss if you buy the same or a substantially identical security within 30 days on either side of the sale. And in a cash account, settlement timing may hold up the cash before you can redeploy it.

The Wash Sale Rule and the 61-Day Window

The wash sale rule is what makes “sell and rebuy” a tax problem rather than a free move. If you sell a stock or other security at a loss and buy the same or a substantially identical security within 30 calendar days before or 30 days after the sale, the IRS disallows the loss deduction for that tax year.1Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities Count the sale date and 30 days on each side and you have a 61-day window. Any repurchase inside that window trips the rule.

The rule was designed to stop investors from harvesting a paper loss for tax purposes while keeping the same economic position. So the mechanics are aimed at loss trades, not at every sale.

Selling at a Gain Is Different

If you sold at a profit, none of this applies. You can rebuy the stock the same second and the wash sale rule has nothing to say about it. You still owe tax on the gain from the sale, but there is no disallowance and no basis adjustment to worry about. The rule targets only the loss side.

So the first question to ask yourself before buying back is simple: did the sale produce a gain or a loss? If a gain, buy whenever you want. If a loss, keep reading.

What Happens to the Disallowed Loss

A disallowed wash sale loss is usually deferred, not destroyed. Instead of deducting the loss this year, you add it to the cost basis of the replacement shares. If you bought Stock A for $5,000, sold it for $4,000 (a $1,000 loss), and repurchased it inside the 30-day window for $4,200, you cannot deduct the $1,000 loss now. Your new cost basis in the replacement shares becomes $5,200: the $4,200 purchase price plus the $1,000 disallowed loss.2Internal Revenue Service. Case Study 1 – Wash Sales

Because the basis is higher, you will recognize a smaller gain or a larger loss when you eventually sell the replacement shares in a clean transaction. The IRS also tacks the holding period of the original shares onto the replacement shares, so the clock does not restart at zero.3Office of the Law Revision Counsel. 26 USC 1223 – Holding Period of Property If the original shares had been held eight months, the replacement shares inherit that eight months toward long-term capital gains treatment.

What Counts as “Substantially Identical”

The statute uses the phrase “substantially identical stock or securities,” and the IRS has never drawn a bright line. IRS Publication 550 says you weigh all the facts and circumstances. That’s frustrating, but decades of rulings and cases give you some workable guidelines.

Selling shares of a company and rebuying shares of that same company is the clear case. Buying a contract or option to acquire the same stock also triggers the rule.1Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities Beyond that:

  • Shares of one company are generally not substantially identical to shares of another, even inside the same industry. Selling an oil stock at a loss and buying a different oil stock within 30 days is not a wash sale.
  • The IRS has stated that shares of one mutual fund are not ordinarily substantially identical to shares of another. Two S&P 500 index funds with near-identical holdings are a gray area, and many tax advisors recommend switching to a fund tracking a different index to stay clear.
  • Preferred stock or convertible bonds can be substantially identical to common stock if their prices closely track the common shares based on the conversion ratio.
  • Bonds with different interest rates, maturity dates, or other material features are generally not substantially identical to each other.

When you want to hold market exposure through the 30-day window without triggering the rule, the safe path is to buy something meaningfully different. Selling a total U.S. market fund and buying an international fund, for example, leaves no reasonable argument for substantial identity.

Buying It Back in an IRA or Through a Spouse

You cannot escape the rule by repurchasing in a different account. Selling a stock at a loss in your taxable brokerage account and buying it back in your IRA, Roth IRA, or 401(k) still triggers a wash sale. The IRS looks across every account you own or control.

The IRA version is the worst-case scenario. In a normal wash sale between two taxable accounts, the disallowed loss moves to the replacement shares’ basis and you get the benefit back later. But when the replacement purchase happens inside an IRA, the IRS ruled in Revenue Ruling 2008-5 that the loss is permanently disallowed.4Internal Revenue Service. Revenue Ruling 2008-5 – Section 1091 Loss From Wash Sales of Stock or Securities IRAs do not track cost basis the way taxable accounts do, so there is no mechanism to add the disallowed loss to any basis. The deduction simply vanishes.

The IRS also treats purchases by your spouse as your own for wash sale purposes. If you sell at a loss and your spouse buys the same stock inside the 61-day window, expect a wash sale. The statute itself refers only to “the taxpayer,” and some older cases read that narrowly, but the IRS enforces it against spousal purchases and this is not a fight most investors want.

For other related parties, the statute does not explicitly extend to their purchases, and courts have generally applied Section 1091 taxpayer by taxpayer. The IRS has still disallowed losses where the taxpayer kept dominion and control over the purchasing account. If you are effectively orchestrating the repurchase, the substance can override the form.

Options Can Trigger It Too

The wash sale rule reaches past ordinary stock. Section 1091 explicitly covers “contracts or options to acquire or sell stock or securities.”1Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities

Sell a stock at a loss and buy a call option on the same stock inside the 61-day window and you have a wash sale, whether the option is in the money or not. Selling a deep-in-the-money put, where exercise is highly likely, is effectively holding the stock according to IRS guidance and can trigger the rule. An out-of-the-money put is less likely to be treated as substantially identical, but there is no guaranteed safe harbor. The reverse also applies: close an options position at a loss and buy the underlying stock or another option on it within 30 days, and the wash sale rule catches that loss.

Settlement Timing in a Cash Account

Even if taxes are not an issue, the mechanics of the trade can slow you down. Most securities transactions now settle one business day after the trade date under the T+1 settlement cycle that took effect in May 2024.5U.S. Securities and Exchange Commission. Shortening the Securities Transaction Settlement Cycle Sell on Monday and the cash is not fully settled until Tuesday. In a cash account, Regulation T requires that securities be paid for with settled funds.6eCFR. 12 CFR Part 220 – Credit by Brokers and Dealers (Regulation T)

Two violations trip up cash-account traders who move too fast:

  • A good faith violation happens when you buy a security using unsettled funds and then sell it before those funds settle. Three good faith violations in a rolling 12-month period result in a 90-day restriction to settled cash only.
  • A freeriding violation happens when you buy a security and pay for it using the proceeds from selling that same security. One freeriding violation triggers the same 90-day settled-cash restriction.

Margin accounts largely sidestep this because the broker extends credit for unsettled trades. They come with their own rules.

Day Trading the Same Stock in a Margin Account

Buying and selling the same security on the same day in a margin account is a day trade. Execute four or more day trades within five business days and your broker will classify you as a pattern day trader, provided those day trades are more than 6 percent of your total trades in that period.7FINRA.org. Day Trading

Pattern day traders must keep at least $25,000 in equity in the margin account at all times, and the equity must be there before the day trades are placed. Drop below and the broker issues a margin call. Fail to meet it within five business days and the account gets restricted to cash-available trading for 90 days.

Cash accounts work differently. FINRA defines day trading as occurring in margin accounts, so buying a security with settled cash, paying for it in full, and selling it later the same day is not a day trade under those rules.7FINRA.org. Day Trading The practical limit is T+1 settlement, which caps how often you can turn the same cash over.

Crypto Is Not Covered

One boundary worth knowing. Cryptocurrency and other digital assets are classified as property for federal tax purposes, not as stock or securities. Section 1091 applies only to stock or securities, so the wash sale rule does not cover crypto as of 2026. You can sell Bitcoin at a loss and rebuy it the next day, and the loss is deductible. Legislative proposals to extend the rule to digital assets have been introduced but none have been enacted. That could change, so if you rely on this treatment, watch for changes in a future tax year.