Skip to content
ChatRound
  1. ChatRound
  2. Examples
  3. Tax

Sold at a loss, bought back 16 days later: the wash-sale rule, checked

Claude Haiku 4.5 said the $5,000 loss can't be deducted this year. The reviewers agreed, and added two cases where the loss is lost for good or triggered by someone else.

ExampleThe answer below was written for this page by Claude Haiku 4.5, through Anthropic's API and without web search. It isn't from anyone's conversation. ChatRound checked it on October 27, 2026.The reviewers are the two ChatRound picks by default for an answer from this company.

Claude Haiku 4.5's answer I sold my Apple shares at a $5,000 loss on December 20 and bought the same number of shares back on January 5 because I still like the stock. Can I deduct the $5,000 loss on this year's taxes?

Unfortunately, no — this is a "wash sale," and the IRS won't let you deduct the loss.

Here's why: The wash sale rule prohibits deducting a loss if you buy substantially identical securities within 30 days before or after the sale. Your timeline:

  • Sold: December 20
  • Repurchased: January 5 (16 days later) ✗

What happens instead:

  • The $5,000 loss is disallowed for this year
  • The loss gets added to your cost basis in the new shares, deferring it
  • If you eventually sell those shares at a gain, you'll recognize a smaller gain (the deduction carries forward)
  • If you sell at a loss instead, you'd apply it then

To avoid this in the future:

  • Wait at least 31 days before repurchasing, or
  • Buy a different but similar security in the meantime (like a different tech stock)
  • Sell without repurchasing if you're willing to exit the position

The rule applies regardless of whether you buy through the same account or broker, so there's no workaround there.

Trust the conclusion: the wash-sale result is correct, but the answer omits the IRA exception and related-account purchases that may permanently lose the loss.

  • 0 wrong
  • 0 disputed
  • 5 hold up
  • 2 missing

Checked by Gemini 3.5 Flash-Lite and DeepSeek V4.1 Flash · Report written by GPT-5.6 Luna

The reviewers found nothing wrong with this answer.

The rest

What holds up5 points ▾
  • Buying substantially identical Apple shares 16 days after selling at a loss falls within the 30-day wash-sale window.
  • The $5,000 loss is disallowed for the year of the sale.
  • For replacement shares bought in a taxable account, the disallowed loss is added to their cost basis.
  • The loss may be reflected when the replacement shares are later sold, unless another wash sale applies.
  • Waiting at least 31 days before repurchasing is a practical way to avoid the post-sale wash-sale window, provided there were no purchases during the 30 days before the sale.
What it missed2 points ▾
  • If the replacement shares were bought in an IRA or Roth IRA, the loss is permanently disallowed and is not added to the IRA's basis.
  • Wash-sale consequences can also result from replacement purchases by a spouse or a controlled entity, not only purchases in the taxpayer's own brokerage accounts.
Only one reviewer said1 point ▾
  • DeepSeek V4.1 Flash: A spouse's or controlled entity's purchase can also trigger the wash-sale rule. worth checking

Corrected answer

No. Because you repurchased substantially identical Apple shares on January 5, within 30 days after the December 20 sale, the $5,000 loss is a wash sale and is disallowed on the return for the year of the sale.

Assuming the repurchase was in a taxable brokerage account, the disallowed loss is added to the cost basis of the replacement shares. This defers the loss: if you later sell those shares, the adjusted basis can reduce a gain or increase a loss, assuming no new wash sale applies. The loss is not carried forward as a separate deduction.

The wash-sale rule applies across your brokerage accounts, so changing brokers does not avoid it. It can also apply to replacement purchases by your spouse or a controlled entity.

If the January 5 repurchase occurred in an IRA or Roth IRA, the loss is still disallowed, but you generally cannot add it to the IRA's basis; the tax benefit is permanently lost.

To avoid a wash sale in the future, wait at least 31 days before repurchasing, while also avoiding substantially identical purchases during the 30 days before the sale. You could instead buy a security that is not substantially identical, such as a different technology stock, or sell without repurchasing if you are willing to exit the position.

OUR CHECK

We read this report before publishing it

Both added points check out. IRS Publication 550 says it is also a wash sale when your spouse or a corporation you control buys substantially identical stock in the 30-day window, and Revenue Ruling 2008-5 says buying the shares back in your IRA disallows the loss without adding it to the IRA's basis.

Checked against the sources below on October 28, 2026.

Sources:

Each reviewer's full review

Gemini 3.5 Flash-Lite▾
1. Your own answer

Claude's conclusion is correct: selling Apple shares at a loss and buying them back 16 days later triggers the wash sale rule, so the $5,000 loss cannot be deducted on this year's taxes. Instead, that loss is added to the cost basis of the newly purchased shares.


2. Claim by claim
  • "Unfortunately, no — this is a "wash sale," and the IRS won't let you deduct the loss."
    • Holds
  • "The wash sale rule prohibits deducting a loss if you buy substantially identical securities within 30 days before or after the sale."
    • Holds
  • "- Sold: December 20
    • Repurchased: January 5 (16 days later) ✗"
    • Holds
  • "- The $5,000 loss is disallowed for this year
    • The loss gets added to your cost basis in the new shares, deferring it
    • If you eventually sell those shares at a gain, you'll recognize a smaller gain (the deduction carries forward)
    • If you sell at a loss instead, you'd apply it then"
    • Holds
  • "- Wait at least 31 days before repurchasing, or
    • Buy a different but similar security in the meantime (like a different tech stock)
    • Sell without repurchasing if you're willing to exit the position"
    • Holds
  • "The rule applies regardless of whether you buy through the same account or broker, so there's no workaround there."
    • Holds (The wash sale rule aggregates transactions across all taxable accounts owned by the same taxpayer, and even applies if you buy the replacement shares in an IRA, where the loss is permanently lost rather than deferred).

3. What it missed

Claude missed an important cross-account warning: the wash sale rule applies across all of your brokerage accounts. Crucially, if you had repurchased those Apple shares inside an IRA or Roth IRA instead of a taxable account, you would trigger a wash sale, but you would permanently lose the ability to add that $5,000 to your cost basis, meaning the tax deduction vanishes forever.


4. Corrected answer

(The original answer holds. The minor note regarding account types is integrated below as an expansion of Claude's final point).

The rule applies across all of your taxable brokerage accounts, so switching brokers provides no workaround. Furthermore, be careful which type of account you use: if you repurchase the shares inside an IRA or Roth IRA, the wash sale rule still applies, but you cannot add the disallowed loss to the IRA's cost basis—meaning the tax deduction is lost permanently.

Pages it consulted: intuit.com · reedcorp.tax · fidelity.com

DeepSeek V4.1 Flash▾

1. My own answer

No. Because you repurchased substantially identical Apple shares on January 5, within 30 days after the December 20 sale, the $5,000 loss is a wash sale and is disallowed on the return for the year of the sale. Assuming the repurchase was in a taxable account, the disallowed loss is added to the basis of the replacement shares, so it is deferred until you sell those shares.

2. Claim by claim

  • "Unfortunately, no — this is a 'wash sale,' and the IRS won't let you deduct the loss."
    Holds. This is the correct result under IRC §1091 and IRS Publication 550.

  • "The wash sale rule prohibits deducting a loss if you buy substantially identical securities within 30 days before or after the sale."
    Holds. The wash-sale window runs from 30 days before the sale through 30 days after the sale.

  • Sold December 20, repurchased January 5, 16 days later.
    Holds. January 5 is inside the 30-day post-sale window.

  • "The $5,000 loss is disallowed for this year"
    Holds. The loss is disallowed for the year of the sale, even though the repurchase occurred in the following January.

  • "The loss gets added to your cost basis in the new shares, deferring it"
    Holds for a taxable account. IRS Publication 550 says to add the disallowed loss to the cost basis of the replacement shares, except for shares acquired in an IRA.

  • "If you eventually sell those shares at a gain, you'll recognize a smaller gain (the deduction carries forward)"
    Holds, though this is shorthand. The loss is not carried forward as a separate deduction; it is embedded in the basis of the replacement shares.

  • "If you sell at a loss instead, you'd apply it then"
    Holds. The higher basis makes the later loss larger by the disallowed amount, assuming no new wash sale.

  • "Wait at least 31 days before repurchasing"
    Holds as a practical rule, but you also must avoid purchases in the 30 days before the sale. The answer already states the before-and-after rule elsewhere.

  • "Buy a different but similar security in the meantime (like a different tech stock)"
    Holds with a caveat. It must not be substantially identical. A different tech stock generally is not.

  • "The rule applies regardless of whether you buy through the same account or broker, so there's no workaround there."
    Holds. Different brokers or accounts do not avoid the wash sale. It can also apply to purchases by your spouse or a controlled entity.

3. What it missed

The main missing caveat is the IRA exception. If the January 5 repurchase was inside an IRA or Roth IRA, the loss is still disallowed, but you do not get the basis adjustment. The loss is permanently lost. The answer’s basis-adjustment explanation assumes a taxable account.

It also does not mention that wash sales can be triggered by purchases made by your spouse or a controlled entity, not just by you in the same or a different brokerage account.

4. Corrected answer

The answer is essentially correct. Add this caveat:

Assuming the January 5 repurchase was in a taxable brokerage account, the disallowed $5,000 loss is added to the basis of the new Apple shares. If you repurchased inside an IRA or Roth IRA, the loss is permanently disallowed and no basis adjustment is available. Also, the wash sale can be triggered by purchases made by your spouse or a controlled entity, not only by you in the same or a different brokerage account.

YOUR TURN

Check the answer you're about to rely on.

Paste an answer from ChatGPT, Claude, Gemini or any AI. Two AIs from other companies go through it and show you what's wrong.

Check an answer Add the Chrome extension

It puts a Check button under every ChatGPT, Claude and Gemini answer.

More example checks