# WashTax test pack: expected results

Eight small ledgers, tax year 2024, each with its Form 8949 rows and Schedule D totals worked by hand below. Every file is a plain
trade CSV (Date, Action, Symbol, Quantity, Price, Fees). A case with more than one account has one file per account: import each
into an account of the type the file name gives (taxable, Roth IRA, spouse taxable). Prices are round numbers chosen for the
arithmetic; the tickers are real but the trades are invented. Run them through WashTax or any other product and compare.

Rules applied: IRS Publication 550 and §1091 (a loss sale with a purchase of the same stock, or a contract or option to buy it,
within 30 days before or after is a wash sale; the disallowed loss is added to the basis of the replacement shares and their
holding period includes the old shares' holding period); Rev. Rul. 2008-5 (a replacement bought in an IRA disallows the loss with
no basis increase); Publication 550 on a spouse's purchase. Lots are matched first in, first out. Code W is the Form 8949 column
(f) code for a wash-sale adjustment, column (g) the amount. All lots are short-term, so everything lands on Schedule D line 1b
through Form 8949 Part I.

## Case 01: a plain gain (no wash sale)

| Trade | |
|---|---|
| 2024-01-10 | Buy 100 KO at $50 (basis $5,000) |
| 2024-08-01 | Sell 100 KO at $60 (proceeds $6,000) |

Form 8949, Part I: KO, acquired 2024-01-10, sold 2024-08-01, proceeds 6,000.00, basis 5,000.00, no code, gain **1,000.00**.
Schedule D short-term net: **+1,000.00**. Wash sales: none.

## Case 02: a wash sale in one account

| Trade | |
|---|---|
| 2024-01-10 | Buy 100 PEP at $50 (basis $5,000) |
| 2024-02-01 | Sell 100 PEP at $40 (proceeds $4,000; loss $1,000) |
| 2024-02-15 | Buy 100 PEP at $42 (14 days after the loss sale: a replacement) |
| 2024-08-01 | Sell 100 PEP at $45 (proceeds $4,500) |

The whole $1,000 loss is disallowed (100 shares replaced 100). It moves into the new lot: basis 4,200 + 1,000 = 5,200.
Holding period of the new lot includes the old one's (22 + 168 days), still short-term.

Row 1: PEP, 2024-01-10 to 2024-02-01, proceeds 4,000.00, basis 5,000.00, code W, adjustment +1,000.00, gain **0.00**.
Row 2: PEP, 2024-02-15 to 2024-08-01, proceeds 4,500.00, basis 5,200.00, no code, loss **−700.00**.
Schedule D short-term net: **−700.00**. Disallowed in the year: 1,000.00. Check: paid 9,200, received 8,500, economic loss 700.
This is the one case a broker's 1099-B also reports (same account, same security).

## Case 03: a wash sale across two accounts at two brokers

| Account | Trade |
|---|---|
| Schwab taxable | 2024-03-01 Buy 100 JNJ at $50; 2024-04-01 Sell 100 JNJ at $40 (loss $1,000) |
| Fidelity taxable | 2024-04-10 Buy 100 JNJ at $41 (9 days after the loss); 2024-10-01 Sell 100 JNJ at $48 |

Row 1 (Schwab): JNJ, 2024-03-01 to 2024-04-01, proceeds 4,000.00, basis 5,000.00, code W, +1,000.00, gain **0.00**.
Row 2 (Fidelity): JNJ, 2024-04-10 to 2024-10-01, proceeds 4,800.00, basis 4,100 + 1,000 = 5,100.00, loss **−300.00**.
Schedule D short-term net: **−300.00**. Disallowed: 1,000.00. Neither broker's 1099-B shows this wash sale: the IRS requires
brokers to report wash sales within one account only. Check: paid 9,100, received 8,800.

## Case 04: a partial wash sale

| Trade | |
|---|---|
| 2024-05-01 | Buy 100 PG at $50 |
| 2024-06-03 | Sell 100 PG at $40 (loss $1,000, $10 a share) |
| 2024-06-20 | Buy 40 PG at $42 (40 of the 100 shares replaced) |
| 2024-11-15 | Sell 40 PG at $45 |

Only 40 shares' loss is disallowed: 40 × $10 = $400. The other $600 is deductible now.
Row 1: PG, 2024-05-01 to 2024-06-03, proceeds 4,000.00, basis 5,000.00, code W, +400.00, loss **−600.00**.
Row 2: PG, 2024-06-20 to 2024-11-15, proceeds 1,800.00, basis 1,680 + 400 = 2,080.00, loss **−280.00**.
Schedule D short-term net: **−880.00**. Disallowed: 400.00. Check: paid 6,680, received 5,800.

## Case 05: a replacement bought in a Roth IRA (permanent)

| Account | Trade |
|---|---|
| Taxable | 2024-02-01 Buy 100 XOM at $50; 2024-03-04 Sell 100 XOM at $40 (loss $1,000) |
| Roth IRA | 2024-03-15 Buy 100 XOM at $41; 2024-09-03 Sell 100 XOM at $48 |

Row 1 (taxable): XOM, 2024-02-01 to 2024-03-04, proceeds 4,000.00, basis 5,000.00, code W, +1,000.00, gain **0.00**.
The IRA's purchase gets no basis increase (Rev. Rul. 2008-5) and the IRA's sale produces no Form 8949 row. The $1,000 is lost for good.
Schedule D short-term net: **0.00**. Disallowed: 1,000.00, of it permanent: 1,000.00.

## Case 06: a spouse's purchase (joint return)

| Account | Trade |
|---|---|
| Taxpayer taxable | 2024-01-15 Buy 50 CVX at $100; 2024-02-20 Sell 50 CVX at $80 (loss $1,000) |
| Spouse taxable | 2024-03-01 Buy 50 CVX at $82 (10 days after); 2024-12-02 Sell 50 CVX at $95 |

Publication 550: a purchase by your spouse is a wash sale. Row 1 (taxpayer): CVX, 2024-01-15 to 2024-02-20, proceeds 4,000.00,
basis 5,000.00, code W, +1,000.00, gain **0.00**. Row 2 (spouse): CVX, 2024-03-01 to 2024-12-02, proceeds 4,750.00, basis
4,100 + 1,000 = 5,100.00, loss **−350.00**; holding period 36 + 276 days, short-term.
Schedule D short-term net (joint): **−350.00**. Disallowed: 1,000.00. The spouses' accounts are at different brokers: no 1099-B shows it.

## Case 07: the 30-day boundary

Two identical ledgers whose repurchase falls on day 30 (IBM) and day 31 (HD) after the loss sale of 2024-02-01 (2024 is a leap year:
day 30 is 2024-03-02, day 31 is 2024-03-03).

| Trade | IBM | HD |
|---|---|---|
| 2024-01-02 | Buy 100 at $50 | Buy 100 at $50 |
| 2024-02-01 | Sell 100 at $40 (loss $1,000) | Sell 100 at $40 (loss $1,000) |
| Repurchase | 2024-03-02 Buy 100 at $42 (day 30: wash) | 2024-03-03 Buy 100 at $42 (day 31: no wash) |
| 2024-09-03 | Sell 100 at $45 | Sell 100 at $45 |

IBM row 1: proceeds 4,000.00, basis 5,000.00, code W, +1,000.00, gain **0.00**. IBM row 2: proceeds 4,500.00, basis 5,200.00, loss **−700.00**.
HD row 1: proceeds 4,000.00, basis 5,000.00, no code, loss **−1,000.00**. HD row 2: proceeds 4,500.00, basis 4,200.00, gain **+300.00**.
Schedule D short-term net: **−1,400.00** (IBM −700, HD −700). Disallowed: 1,000.00 (IBM only). The economic result is the same for
both tickers; only the timing of the deduction differs.

## Case 08: a stock loss, then a call on the stock

| Trade | |
|---|---|
| 2024-04-01 | Buy 100 MRK at $50 |
| 2024-05-06 | Sell 100 MRK at $40 (loss $1,000) |
| 2024-05-15 | Buy 1 MRK call, strike 45, expiring 2024-09-20, at $3.00 (premium $300; 100 shares' worth) |
| 2024-07-10 | Sell the call at $5.00 (proceeds $500) |

§1091(a) counts a contract or option to acquire the stock as a replacement. One contract covers 100 shares, so the whole $1,000 is
disallowed and moves into the call's basis: 300 + 1,000 = 1,300.
Row 1: MRK, 2024-04-01 to 2024-05-06, proceeds 4,000.00, basis 5,000.00, code W, +1,000.00, gain **0.00**.
Row 2: MRK Sep 20 2024 45 call, 2024-05-15 to 2024-07-10, proceeds 500.00, basis 1,300.00, loss **−800.00**.
Schedule D short-term net: **−800.00**. Disallowed: 1,000.00. Brokers are not required to match stock to options, and the ones we
checked do not. Check: paid 5,300, received 4,500.

## Totals across the pack

| Case | Disallowed | Permanent | Schedule D short-term net |
|---|---|---|---|
| 01 | 0.00 | 0.00 | +1,000.00 |
| 02 | 1,000.00 | 0.00 | −700.00 |
| 03 | 1,000.00 | 0.00 | −300.00 |
| 04 | 400.00 | 0.00 | −880.00 |
| 05 | 1,000.00 | 1,000.00 | 0.00 |
| 06 | 1,000.00 | 0.00 | −350.00 |
| 07 | 1,000.00 | 0.00 | −1,400.00 |
| 08 | 1,000.00 | 0.00 | −800.00 |

Each case is a separate workspace or a separate set of accounts; do not import them all into one account, or cases 02 and 07
would see each other's tickers (they do not share any, but keep them apart to read the result cleanly).

WashTax generates capital-gains forms and analysis. It is not tax advice and does not file your return. If you find a case where
you read the rule differently, write to hello@washtax.com with the case number.
