Skip to content
Menu
Finabase Learn

Taxes · Capital gains and losses

Wash sale examples: eight worked cases with basis and Form 8949

Eight wash-sale cases for tax year 2026 worked to the dollar: partial and early buybacks, DRIPs, IRAs, calls, a year-end chain and a spouse, with 8949 entries.

On this page
  1. How every case is reported
  2. Case 1: a full repurchase
  3. Case 2: a partial repurchase
  4. Case 3: buying before selling
  5. Case 4: a dividend reinvestment
  6. Case 5: the IRA buys it back
  7. Case 6: buying a call option
  8. Case 7: a chain across New Year's
  9. Case 8: a spouse's account
  10. The eight cases side by side
  11. How Finabase does it
  12. Frequently asked questions
  13. Summary
  14. Check your understanding

The wash-sale rule fits in one sentence: a loss on stock or securities is disallowed if you acquire substantially identical ones within 30 days before or after the sale. The rule itself, its 61-day window and its main traps are explained in Wash sale rule: the 61-day window, basis adjustment and traps. This page assumes you have read it and does something different: it works eight concrete cases from start to finish.

For each case you get the dates, share counts and prices, the loss that is disallowed and the part that stays deductible, the basis and holding period of the replacement shares, and what shows up on Form 1099-B and Form 8949. The cases run from the simple (a full repurchase) to the ones that catch experienced investors: buying before selling, a dividend reinvestment, an IRA, a call option, a chain of sales across New Year's, and a spouse's account.

Everything is US federal law, tax year 2026, from IRC §1091, Treasury Regulation §1.1091-1, Publication 550 (2025 edition) and the 2026 Form 1099-B and 2025 Form 8949 instructions. The investors and tickers are invented, prices are round, and none of this says whether any sale or purchase is a good idea.

Eight wash-sale cases: what is disallowed and where it goes Case Loss Disallowed Deductible now Replacement basis 1 Full repurchase $2,000 $2,000 $0 $8,200 (100 sh) 2 Partial (40 of 100) $2,000 $800 $1,200 $3,280 (40 sh) 3 Bought before selling $2,800 $2,800 $0 $7,800 (100 sh) 4 Dividend reinvestment $1,600 $12 $1,588 $75 (1.5 sh) 5 IRA buys it back $2,000 $2,000 $0 no increase 6 Call option bought $1,500 $1,500 $0 $1,800 (call) 7 Chain into 2027 $3,000 + $3,400 $6,400 in 2026 $2,500 in 2027 $10,200 → $10,000 8 Spouse buys $4,000 $4,000 $0 see text
The eight cases on this page. Invented investors, US federal rules for tax year 2026.

How every case is reported

The reporting is the same in every case, so it is worth stating once. You report the sale on Form 8949 like any other: Part I if short-term, Part II if long-term, with the box for whether basis was reported to the IRS. Proceeds go in column (d) and the full cost in column (e). Then you enter W in column (f) and the disallowed loss as a positive number in column (g), which cancels it. If the 1099-B shows a disallowed amount in box 1g that is wrong, the Form 8949 instructions say to enter the correct amount and, if yours is smaller, attach an explanation. Publication 550 adds that a wash-sale loss is not deductible just because the broker did not report it.

Case 1: a full repurchase

  • June 1, 2025: buy 100 shares at $80 = $8,000.
  • March 3, 2026: sell all 100 at $60 = $6,000. Loss $2,000.
  • March 24, 2026: buy 100 shares at $62 = $6,200, 21 days after the sale.

All 100 shares sold are matched with 100 bought, so the whole $2,000 is disallowed. Replacement basis: $6,200 + $2,000 = $8,200, or $82 a share. Holding period: the old shares were held 275 days (June 2, 2025 through March 3, 2026), and the replacement shares include those days. They pass one year after 91 more days of their own, so a sale on or after June 23, 2026 is long-term. The 20 days without shares do not count.

Reporting: same account, same CUSIP, covered shares, so the 1099-B shows $6,000 proceeds, $8,000 basis and $2,000 in box 1g. Form 8949 Part I: W in column (f), $2,000 in column (g), gain or loss $0.

Case 2: a partial repurchase

Same sale as Case 1, but on March 24 the investor buys back only 40 shares at $62.

Regulation §1.1091-1(c) matches the shares bought, in order of purchase, with an equal number of shares sold. Forty of the 100 shares sold are matched, so 40% of the loss is disallowed: $800. The other $1,200 is deductible in 2026. The 40 new shares have a basis of $2,480 + $800 = $3,280, still $82 a share, and carry the 275-day holding period. The 1099-B instructions use a nearly identical example: 100 shares sold at a $400 loss, 75 repurchased, $300 disallowed.

When the repurchases come in several pieces, the order matters. Publication 550's example has 50 shares bought on each of four days after a 100-share loss sale: half the loss attaches to the first day's purchase and half to the second's, and the last two purchases are untouched.

Case 3: buying before selling

  • June 1, 2025: buy 100 shares at $80.
  • November 20, 2026: the price has fallen to $50; buy another 100 at $50 = $5,000.
  • December 10, 2026: sell the original 100 at $52 = $5,200. Loss $2,800.

The November 20 purchase is 20 days before the sale, inside the window. The investor still holds 100 shares, the same number as before, so the whole $2,800 is disallowed. This is the regulation's own first example: buy, buy more, sell the first lot within 30 days. The November 20 lot is the replacement: its basis becomes $5,000 + $2,800 = $7,800, and its holding period includes the 557 days the original shares were held, so a sale of it is long-term at once.

Two points follow. First, telling the broker to sell the high-cost lot (specific identification, see Cost basis methods: FIFO, specific ID, average cost, HIFO and LIFO) does not avoid the rule; it is what triggers it here. Second, the broker will usually catch this one, because both trades are in one account.

Case 4: a dividend reinvestment

  • January 2025: buy 300 shares at $50, with dividends set to reinvest.
  • April 6, 2026: sell 200 shares at $42. Loss 200 × $8 = $1,600.
  • April 15, 2026: a $63 dividend on the remaining 100 shares buys 1.5 shares at $42.

The reinvestment is a purchase of substantially identical shares nine days after the sale. It is matched with 1.5 of the 200 shares sold, so 1.5/200 of the loss is disallowed: $12. The other $1,588 is deductible. The 1.5 new shares have a basis of $63 + $12 = $75 and the old holding period.

The amount is small, but it shows why a sale of part of a position with reinvestment switched on almost always produces a wash sale: reinvestments in the 30 days before the sale count as well, and any dividend paid in the 30 days after does too. Reinvestment in a different account, such as an IRA that holds the same fund, has the far worse result of Case 5. A fund's distributions tab shows when it usually pays.

Case 5: the IRA buys it back

  • September 1, 2026: sell 100 shares in a taxable account at $50, bought at $70. Loss $2,000.
  • September 15, 2026: the investor's IRA buys 100 shares of the same stock.

Publication 550 lists an IRA or Roth IRA purchase as one of the four triggers, so the loss is disallowed. Revenue Ruling 2008-5 holds that the IRA's basis is not increased by the disallowed loss. Since gains and losses inside an IRA are not taxed, the $2,000 is gone permanently, not deferred. The taxable account's 1099-B will not show it: the purchase is in another account. On Form 8949 the investor enters W and $2,000 in column (g) without a broker figure to rely on.

Case 6: buying a call option

  • January 5, 2026: buy 100 shares at $75.
  • June 1, 2026: sell them at $60. Loss $1,500.
  • June 10, 2026: buy one call option on 100 shares of the same stock, premium $300.

Acquiring "a contract or option to buy" substantially identical stock is a trigger, so the loss is disallowed. Sections 1091(d) and 1223(3) refer to the stock "or the contract or option to acquire" it, and the common reading is that the $1,500 is added to the call's basis, $1,800, and the old holding period attaches to the call. Publication 550 gives no option example, so this treatment, and how many shares a call counts for when it is far out of the money, are points to confirm with a tax professional. If the call is later exercised, its adjusted basis becomes part of the stock's basis; if it expires, the loss is recognized then.

Case 7: a chain across New Year's

  • March 2, 2026: buy 100 shares at $100 = $10,000.
  • December 1, 2026: sell 100 at $70 = $7,000. Loss $3,000.
  • December 15, 2026: buy 100 at $72 = $7,200. The $3,000 is disallowed; basis $10,200.
  • December 30, 2026: sell 100 at $68 = $6,800. Loss $10,200 − $6,800 = $3,400.
  • January 12, 2027: buy 100 at $66 = $6,600. The $3,400 is disallowed; basis $10,000.
  • February 16, 2027: sell 100 at $75 = $7,500, with no purchase in the next 30 days. Loss $10,000 − $7,500 = $2,500, allowed.

The 2026 return shows two sales, each with code W, and no deductible loss. The whole economic loss arrives on the 2027 return. It is the right total: the investor put in $10,000 and took out $2,500 less over the whole sequence. The December 15 shares were also bought within 30 days before the December 30 sale, but §1.1091-1(e) says an acquisition that has already caused one loss to be disallowed is disregarded for any other.

The holding period also tacks through the chain: 274 days on the first shares, 15 on the second and 35 on the third, 324 days in total, so the 2027 loss is short-term. If the broker holds every trade in one account, the 2026 1099-B should show both disallowed amounts in box 1g, since the rule looks 30 days past the December 30 sale.

Case 8: a spouse's account

  • October 5, 2026: one spouse sells 200 shares at a $4,000 loss.
  • October 20, 2026: the other spouse buys 200 shares of the same stock in an account in their own name.

Publication 550 states that if you sell stock and your spouse buys substantially identical stock, you have a wash sale. The publication does not limit this to joint filers, and it does not say how basis moves to the spouse's shares. The usual reading of §1091(d) is that the disallowed loss is added to the spouse's replacement shares, but that is not stated in the IRS publications we read, and couples filing separately should ask a tax professional. Neither broker sees both trades, so nothing appears in box 1g; the selling spouse reports W and $4,000 on Form 8949.

The eight cases side by side

Case (2026) Loss Disallowed Deductible now Replacement basis On the 1099-B?
1 Full repurchase $2,000 $2,000 $0 $8,200 (100 sh) Yes, same account
2 Partial, 40 of 100 $2,000 $800 $1,200 $3,280 (40 sh) Yes, same account
3 Bought before selling $2,800 $2,800 $0 $7,800 (100 sh) Yes, same account
4 Dividend reinvestment $1,600 $12 $1,588 $75 (1.5 sh) Usually, same account
5 IRA repurchase $2,000 $2,000 $0, ever No increase No
6 Call option bought $1,500 $1,500 $0 $1,800 (the call) Usually not
7 Chain into 2027 $3,000+$3,400 $6,400 in 2026 $2,500 in 2027 $10,200 → $10,000 Yes, if one account
8 Spouse buys $4,000 $4,000 $0 See case No

How Finabase does it

A Finabase portfolio records buys and sells with their dates and matches sells against the earliest buys first. It does not detect wash sales, does not add disallowed losses to basis, and does not tack holding periods, so its realized gain for a position with a wash sale will differ from the 1099-B. What it can do is hold the dates of every trade, from every broker and from an IRA or a spouse's account if you record them there, in one place: a portfolio per account, with the 61-day window checked by hand, catches the cases brokers miss. The options page shows chains, which matters for Case 6.

Frequently asked questions

Does a dividend reinvestment trigger a wash sale?

Yes, if it buys the same security within 30 days before or after a loss sale. Only the matched fraction of the loss is disallowed; in Case 4, 1.5 reinvested shares disallowed $12 of a $1,600 loss.

Can a wash sale move a loss into the next tax year?

Yes. A loss sale in late December followed by a purchase in January is a wash sale, and if the replacement shares are still held at year-end the loss is deferred into the year they are sold, as in Case 7.

What if I buy back fewer shares than I sold?

Only the matched shares' loss is disallowed. Sell 100 at a $2,000 loss and buy 40 back, and $800 is disallowed while $1,200 is deductible.

How do I report a wash sale my broker did not catch?

On Form 8949, report the sale with the 1099-B figures, enter W in column (f) and the disallowed loss as a positive amount in column (g). Then add the disallowed loss to your own record of the replacement shares' basis.

Summary

Worked through eight cases for tax year 2026, the wash-sale rule behaves consistently: the matched part of a loss is disallowed, added to the replacement shares' basis, and their holding period includes the old shares'. Buying before selling, a few reinvested shares and a call option are all replacements; an IRA repurchase destroys the loss under Rev. Rul. 2008-5; a chain of sales can carry a December loss into the next year; and a spouse's purchase counts. Brokers report box 1g only for covered shares in the same account with the same CUSIP, so every other case is reported by the investor with code W on Form 8949.

Check your understanding

5 questions on this lesson. Each answer comes with the reason, and nothing is scored.

  1. You sell 100 shares at a $2,000 loss and buy back 40 shares two weeks later. How much of the loss is deductible this year?

    1. None of it
    2. $1,200
    3. $800
    Show the answer

    B. $1,200 Regulation §1.1091-1(c) matches the 40 shares bought with 40 of the shares sold. Their $800 share of the loss is disallowed and added to the new shares; the other $1,200 is deductible.

  2. You buy 100 more shares of a stock that has fallen, then sell your original 100 shares at a loss 20 days later. Is it a wash sale?

    1. No, because you bought before you sold
    2. Yes, because the window covers 30 days before the sale as well as after
    3. Only if you buy again after the sale
    Show the answer

    B. Yes, because the window covers 30 days before the sale as well as after The 61-day window runs 30 days before and after the sale. The new lot is the replacement and takes the disallowed loss and the old holding period.

  3. You sell a stock at a loss in your brokerage account and your IRA buys it ten days later. What happens to the loss?

    1. It is added to the IRA shares’ basis and recovered later
    2. It is disallowed and permanently lost under Rev. Rul. 2008-5
    3. Nothing, because the IRA is a different account
    Show the answer

    B. It is disallowed and permanently lost under Rev. Rul. 2008-5 The IRA purchase is a trigger, and Rev. Rul. 2008-5 holds that the IRA’s basis is not increased, so the loss is never recovered.

  4. In the lesson’s chain, losses of $3,000 and $3,400 are realized in December 2026 and the last shares are sold in February 2027 at a $2,500 loss. What does the 2026 return show?

    1. A $6,400 deductible loss
    2. Two sales with code W and no deductible loss
    3. A $2,500 deductible loss
    Show the answer

    B. Two sales with code W and no deductible loss Each December loss was disallowed because replacement shares were bought within 30 days. The losses moved into the replacement shares and became the $2,500 loss on the 2027 return.

  5. Which wash sale will your broker report in box 1g of Form 1099-B?

    1. Any wash sale in any of your accounts
    2. A wash sale where the sale and repurchase are covered shares with the same CUSIP in the same account
    3. Only wash sales involving options
    Show the answer

    B. A wash sale where the sale and repurchase are covered shares with the same CUSIP in the same account The 2026 Form 1099-B instructions require box 1g only for same-account, same-CUSIP covered securities. Purchases elsewhere are the taxpayer’s to report with code W.

Sources and further reading

  1. IRS — Publication 550 (2025), chapter 4: Wash Sales (including More or less stock bought than sold, Nondeductible wash sale loss, How to report)
  2. 26 CFR §1.1091-1, Losses from wash sales of stock or securities (Cornell LII, read 2026-11-18)
  3. 26 U.S. Code §1091 and §1223(3) (Cornell LII, read 2026-11-18)
  4. IRS — Rev. Rul. 2008-5, Internal Revenue Bulletin 2008-3
  5. IRS — Instructions for Form 1099-B (2026), Box 1g: Wash Sale Loss Disallowed
  6. IRS — Instructions for Form 8949 (2025), column (f) code W and column (g)