Form 8949 codes: column (f) adjustment codes and column (g) entries
Form 8949 codes are the letters a taxpayer enters in column (f) of Form 8949 to explain an adjustment to gain or loss in column (g), such as B for incorrect basis, W for a wash sale and H for an excluded home sale gain. The 2025 instructions list 18 codes, and each has its own rule for the column (g) amount and sign.
“If more than one code applies, enter all the codes that apply in alphabetical order (for example, “BOQ”).” IRS, Instructions for Form 8949 (2025)
What are the Form 8949 codes in column (f)?
Form 8949 codes are the letters entered in column (f) to explain an adjustment to gain or loss in column (g). According to the 2025 Instructions for Form 8949, most transactions need no code, and columns (f) and (g) stay blank. A code may be needed when a Form 1099-B, Form 1099-DA or Form 1099-S is incorrect, when a gain is excluded or postponed, when a loss is disallowed, and in certain other situations.
The instructions list 18 codes in the table titled How To Complete Form 8949, Columns (f) and (g): B, C, D, E, H, L, M, N, O, P, Q, R, S, T, W, X, Y and Z. Column (h) is then figured by subtracting column (e) from column (d) and taking the column (g) adjustment into account. The box-by-box layout of the form is covered on the Form 8949 page, and the basis box itself on the Form 1099-B box 1e page.
What does each column (f) code mean, and what goes in column (g)?
Each column (f) code has its own column (g) rule in the 2025 Instructions for Form 8949. The table follows the order of the IRS table, which puts code O last because it covers any adjustment not explained by another code. Negative amounts go in parentheses on the form.
| Code | When it applies | Column (g) entry |
|---|---|---|
| B | Basis shown in box 1e of Form 1099-B (or box 1g of Form 1099-DA) is incorrect | Basis reported to the IRS (box A, G, D or J): keep the reported basis in column (e) and enter the correction in (g) from the Worksheet for Basis Adjustments. Basis not reported (box B, H, E or K): enter the correct basis in (e) and -0- in (g) |
| C | Disposition of collectibles | Enter -0- |
| D | Accrued market discount shown in box 1f of Form 1099-B (or box 1h of Form 1099-DA) | Amount from the Worksheet for Accrued Market Discount Adjustment, entered as a negative number; -0- if market discount was included in income currently |
| E | Selling expenses, option premiums or digital asset transaction costs not reflected on the Form 1099-B, 1099-DA or 1099-S | Negative number for expenses and premiums paid; positive number for option premium received |
| H | Main home sold at a gain that must be reported on Part II, with some or all of the gain excluded | Excluded gain as a negative number |
| L | Nondeductible loss other than a wash sale | Nondeductible loss as a positive number |
| M | Multiple transactions reported on a single row (Exception 2 or the special provision for certain entities) | Enter -0- unless another code requires an adjustment |
| N | Form 1099-B, 1099-DA or 1099-S received as a nominee for the actual owner | Resulting gain as a negative number, or resulting loss as a positive number, so column (h) is zero |
| P | Nonresident alien individual, foreign trust, foreign estate or foreign corporation that sold an interest in a partnership engaged in a U.S. trade or business | Adjustment under Regulations section 1.864(c)(8)-1(b) and (c) |
| Q | Qualified small business (QSB) stock sold with part of the gain excluded | Exclusion as a negative number |
| R | Election to postpone gain under a rollover of gain (for example, rollover of gain from QSB stock) | Postponed gain as a negative number |
| S | Loss on small business (section 1244) stock that is more than the maximum ordinary loss | See Small Business (Section 1244) Stock in the Schedule D instructions |
| T | Type of gain or loss shown in box 2 of Form 1099-B (or box 6 of Form 1099-DA) is incorrect | Report on the correct part of Form 8949; -0- if no other adjustment |
| W | Nondeductible loss from a wash sale | Nondeductible loss as a positive number; if box 1g of Form 1099-B is wrong, enter the correct amount |
| X | Gain excluded under the rules for DC Zone assets or qualified community assets | Exclusion as a negative number |
| Y | Gain from a QOF investment deferred in a prior tax year is being reported | See How To Report Gain Previously Deferred in a QOF Investment |
| Z | Election to postpone gain by investing in a QOF | See How To Report an Election To Defer Tax on Eligible Gain Invested in a QOF |
| O | An adjustment not explained by another code, including a contingent payment debt instrument | The appropriate adjustment amount |
The sign of the adjustment follows the direction of the fix. An amount that reduces gain, such as an excluded gain or an unreported selling expense, is negative. An amount that removes a loss, such as a wash sale or other nondeductible loss, is positive. Code B can go either way: the Worksheet for Basis Adjustments gives a negative number when the correct basis is higher than the reported basis and a positive number when it is lower. In the instructions' Example 4, a reported basis of $900 against a correct basis of $100 produces a positive $800 in column (g).
How are two codes on one row handled?
Two codes on one row are entered together in column (f), in alphabetical order with no space or comma, and column (g) shows the net of the adjustments. The 2025 Instructions for Form 8949 give the arithmetic: if one adjustment is $5,000 and another is ($1,000), enter $4,000. The instructions' own example is a main home sale with $20,000 of selling expenses not on the Form 1099-S and a $200,000 exclusion, entered as "EH" with ($220,000) in column (g).
Codes also decide whether a sale can skip the form. Under Exception 1, transactions with basis reported to the IRS and no adjustments can be summarized directly on Schedule D, line 1a or 8a. A row that needs any code doesn't qualify, so one wash sale or basis correction puts that transaction on Form 8949. Code M marks a row that summarizes multiple transactions under Exception 2, with -0- in column (g) unless another code applies.
When does a broker leave a wash sale off Form 1099-B?
A broker can leave a wash sale off Form 1099-B when the sale and the repurchase are in different accounts or involve securities with different CUSIP numbers. The 2025 Instructions for Form 1099-B require box 1g reporting only when both transactions occur in the same account with covered securities that have the same CUSIP number. Reporting any other disallowed loss is permitted but not required.
The taxpayer's rule is wider than the broker's. The 2025 Instructions for Schedule D say a wash sale occurs when stock or securities are sold at a loss and, within 30 days before or after the sale, the taxpayer buys substantially identical stock or securities, including for an IRA or Roth IRA. The loss isn't deductible, and the basis of the replacement shares is their cost increased by the disallowed loss, except for an IRA purchase. If box 1g is wrong, the Form 8949 instructions say to enter the correct nondeductible loss with code W, and to attach a statement when the amount is less than the form shows.
What does a wash sale and a basis correction look like on Form 8949?
For example, Lee has two short-term sales on a 2025 Form 1099-B with basis reported to the IRS, so both go on Part I with box A checked. Sale 1: 200 shares sold November 10, 2025 for $14,000, basis $18,500, box 1g blank. Lee bought 200 shares of the same stock for $13,600 on November 24, 2025 in an account at another broker. Sale 2: proceeds $11,000, reported basis $9,000, correct basis $10,200 after reinvested dividends the broker missed.
| Row | (d) Proceeds | (e) Basis | (f) Code | (g) Adjustment | (h) Gain or (loss) |
|---|---|---|---|---|---|
| Sale 1, wash sale, line 1 | $14,000 | $18,500 | W | $4,500 | $0 |
| Sale 2, basis correction, line 1 | $11,000 | $9,000 | B | ($1,200) | $800 |
| Totals, line 2, to Schedule D line 1b | $25,000 | $27,500 | $3,300 | $800 |
The line 2 totals carry to Schedule D (Form 1040), line 1b, where combining columns (d), (e) and (g) gives the same $800. Sale 1's $4,500 loss is fully disallowed because the repurchase came 14 days after the sale, and Lee's basis in the replacement shares becomes $18,100 ($13,600 plus $4,500). For Sale 2, the Worksheet for Basis Adjustments puts $9,000 on line 1 and $10,200 on line 2, and the $1,200 difference goes in column (g) as a negative number.
What do reviewers check on Form 8949 codes?
Reviewers check that every amount in column (g) has a code in column (f) and that every code has a document behind it. The broker statement supports B, D, T and W. A closing statement supports E and H. Excluded or postponed gain under Q, R, X, Y and Z needs the election or the holding period support in the file.
The second check is the sign. A positive number under code H or a negative number under code W reverses the result, and the totals on Schedule D will still foot. Reviewers also compare purchases across all of the client's accounts for the 30 days on each side of a loss sale, since a broker only has to flag wash sales inside one account. The same test covers purchases made for an IRA or Roth IRA.
Which guides go with Form 8949 adjustment codes?
Preparers working on Form 8949 adjustment codes usually need these library guides next. Each one covers the related form or rule line by line, with a worked example and review checks.
Every line checked against the documents the client sent
Filed reads the client's Forms 1099-B, broker statements and purchase confirmations, then checks every column (f) and column (g) entry on Form 8949 against them. Anything that doesn't tie comes back as a review item with a citation to the source.
Book a demoForm 8949 reports a $4,500 short-term loss on 200 shares sold November 10, 2025, with columns (f) and (g) blank. A second brokerage statement shows 200 shares of the same stock bought for $13,600 on November 24, 2025, inside the 30-day window. Confirm the purchase, then enter code W with $4,500 in column (g) and carry an $18,100 basis on the new shares.
Common questions
What does code W mean on Form 8949?
Code W on Form 8949 means a nondeductible loss from a wash sale. The 2025 Instructions for Form 8949 say to report the sale as usual and enter the nondeductible loss as a positive number in column (g). If the wash sale amount in box 1g of Form 1099-B is incorrect, the correct amount goes in column (g) instead.
What does code B mean on Form 8949?
Code B on Form 8949 means the basis shown on Form 1099-B or Form 1099-DA is incorrect. The 2025 Instructions for Form 8949 say that when basis was reported to the IRS, the reported basis stays in column (e) and the correction goes in column (g). When basis wasn't reported, the correct basis goes in column (e) with -0- in column (g).
Can Form 8949 column (f) have more than one code?
Form 8949 column (f) can have more than one code on a row. The 2025 Instructions for Form 8949 say to enter all the codes that apply in alphabetical order without a space or comma, and to enter the net adjustment in column (g). A home sale with unreported selling expenses and an exclusion is entered as EH.
