Filed
/
Library
/
Individuals

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.

On this page
“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.

CodeWhen it appliesColumn (g) entry
BBasis shown in box 1e of Form 1099-B (or box 1g of Form 1099-DA) is incorrectBasis 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)
CDisposition of collectiblesEnter -0-
DAccrued 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
ESelling expenses, option premiums or digital asset transaction costs not reflected on the Form 1099-B, 1099-DA or 1099-SNegative number for expenses and premiums paid; positive number for option premium received
HMain home sold at a gain that must be reported on Part II, with some or all of the gain excludedExcluded gain as a negative number
LNondeductible loss other than a wash saleNondeductible loss as a positive number
MMultiple transactions reported on a single row (Exception 2 or the special provision for certain entities)Enter -0- unless another code requires an adjustment
NForm 1099-B, 1099-DA or 1099-S received as a nominee for the actual ownerResulting gain as a negative number, or resulting loss as a positive number, so column (h) is zero
PNonresident alien individual, foreign trust, foreign estate or foreign corporation that sold an interest in a partnership engaged in a U.S. trade or businessAdjustment under Regulations section 1.864(c)(8)-1(b) and (c)
QQualified small business (QSB) stock sold with part of the gain excludedExclusion as a negative number
RElection to postpone gain under a rollover of gain (for example, rollover of gain from QSB stock)Postponed gain as a negative number
SLoss on small business (section 1244) stock that is more than the maximum ordinary lossSee Small Business (Section 1244) Stock in the Schedule D instructions
TType of gain or loss shown in box 2 of Form 1099-B (or box 6 of Form 1099-DA) is incorrectReport on the correct part of Form 8949; -0- if no other adjustment
WNondeductible loss from a wash saleNondeductible loss as a positive number; if box 1g of Form 1099-B is wrong, enter the correct amount
XGain excluded under the rules for DC Zone assets or qualified community assetsExclusion as a negative number
YGain from a QOF investment deferred in a prior tax year is being reportedSee How To Report Gain Previously Deferred in a QOF Investment
ZElection to postpone gain by investing in a QOFSee How To Report an Election To Defer Tax on Eligible Gain Invested in a QOF
OAn adjustment not explained by another code, including a contingent payment debt instrumentThe 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.

Common miss: correcting column (e) when basis was reported to the IRS
When Form 1099-B shows basis reported to the IRS, the 2025 instructions say to enter the reported basis in column (e) even though it is incorrect and to fix it in column (g) with code B. Overwriting column (e) breaks the match to the broker's figures.

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,500W$4,500$0
Sale 2, basis correction, line 1$11,000$9,000B($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.

Every adjustment has a code
Each row with an amount in column (g) shows at least one code in column (f).
2025 Instructions for Form 8949, column (f)
Reported basis stays in column (e)
For box A, G, D or J rows, column (e) equals the Form 1099-B basis and the correction is in column (g) with code B.
2025 Instructions for Form 8949, code B
Wash sale adjustment is positive
A code W amount is a positive number and is no more than the loss on that row.
2025 Instructions for Form 8949, code W
Cross-account repurchases are tested
Purchases in every account within 30 days before or after a loss sale are compared with the sale.
2025 Instructions for Schedule D (Form 1040), Wash Sales
Multiple codes are netted
A row with two or more codes lists them alphabetically and shows the net adjustment in column (g).
2025 Instructions for Form 8949, column (g)
Totals tie to Schedule D
Line 2 totals for box A or G agree with Schedule D, line 1b, after combining columns (d), (e) and (g).
2025 Instructions for Form 8949, line 2

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 demo
Example review item
Loss claimed on a cross-account wash sale

Form 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.

Source: 2025 Form 1099-B, boxes 1d, 1e and 1g; second broker's November 2025 statement

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.

Camron Momeni, CPA
About the author
Camron Momeni, CPA
VP of Tax Experience

Camron Momeni, CPA, has more than 18 years of public accounting and tax startup experience, including 14 years as a CPA serving firms from the Big Four to solo practitioners. He prepared and reviewed returns across partnerships, S corporations, C corporations, exempt organizations, estates and trusts, and as a product manager at Crowe he built K1 Aggregator and C-TRAC, now sold as 990Tracker. At Filed he is VP of Tax Experience, leading customer success, onboarding and solutions engineering.

LinkedIn profile