Skip to content
Menu
Finabase Learn

Taxes · Forms and filing

Form 8949 and Schedule D: boxes, codes and a full worked year

How to report 2026 sales on Form 8949 and Schedule D: when 8949 is needed, boxes A to L, columns (a) to (h), adjustment codes, lines 1a to 22 and the tax worksheet.

On this page
  1. When you need Form 8949
  2. Boxes A to L
  3. Columns (a) to (h)
  4. The adjustment codes
  5. Schedule D, line by line
  6. A full worked year
  7. Pitfalls
  8. The two tax worksheets compared
  9. How Finabase does it
  10. Frequently asked questions
  11. Summary
  12. Check your understanding

Every sale of a stock, fund, bond, option or coin in a taxable account is reported through two forms. Form 8949 lists the sales one by one, with the corrections the broker could not make. Schedule D adds them up, nets short-term against long-term, brings in last year's unused losses and fund gain distributions, and decides which tax worksheet sets the rate. The result lands on one line of Form 1040.

Most investors can skip much of Form 8949. Rows the broker reported with basis and no adjustment can go onto Schedule D as one total. The rest, wash sales, old lots without basis, corrections, need a row, a box, and sometimes a one-letter code. This lesson explains each piece and then works one invented investor's year from the 1099-B to the tax owed.

US federal law, tax year 2026. Box, column and line numbers come from the 2025 Form 8949, Schedule D and their instructions, the latest final versions; the 2026 drafts the IRS posted on April 1, 2026 have the same boxes and lines. Form 1099-B explained: every box, covered lots and Form 8949 explains the broker form these rows start from, and Capital gains tax on stocks: 2026 rates, holding periods and basis the rates.

When you need Form 8949

The Form 1040 instructions (2025) give two ways out. Under their Exception 1 you need neither Form 8949 nor Schedule D if your only capital gains are capital gain distributions from Form 1099-DIV box 2a, you have no capital losses, and no 1099-DIV shows an amount in box 2b, 2c or 2d. Form 1099-DIV box by box: where each amount goes on your return covers that case.

Under Exception 1 of the Form 8949 instructions, you need Schedule D but not Form 8949 for any sale that meets all of these:

  • the Form 1099-B shows basis was reported to the IRS (box 12 checked);
  • there is nothing in box 1f (market discount) or 1g (wash sale), and the Ordinary box is not checked;
  • you need no change to the basis, the term or the gain;
  • it is not a sale of collectibles, and no qualified opportunity fund deferral is involved.

You add those sales up and enter the totals of proceeds, basis and gain on Schedule D line 1a or 8a. Everything else goes on Form 8949. Under Exception 2, instead of one row per sale you may attach a statement in the same format, for example the broker's own detail pages, and enter one total row per broker with code M.

Boxes A to L

Form 8949 has two parts: Part I for short-term sales (held one year or less) and Part II for long-term. At the top of each part you check exactly one box, and every row on that page must fit it. Use as many pages as you need.

Sales reported on Short-term (Part I) Long-term (Part II) Totals go to Schedule D
1099-B with basis reported to the IRS A D Lines 1b / 8b
1099-B without basis reported to the IRS B E Lines 2 / 9
No 1099-B at all C F Lines 3 / 10
1099-DA with basis reported G J Lines 1b / 8b
1099-DA without basis reported H K Lines 2 / 9
Digital asset, no 1099-DA I L Lines 3 / 10

The 2025 instructions added boxes G to L and say not to use box C or F for digital assets. Crypto tax reporting: Form 1099-DA, Form 8949 and cost basis covers those. The "Applicable checkbox on Form 8949" field on each 1099-B row gives the broker's view of the right box.

Columns (a) to (h)

  • (a) Description, for example "100 sh. XYZ".
  • (b) Date acquired. "VARIOUS" for a block bought over several dates (with short- and long-term parts split onto the right Parts), "INHERITED" for inherited property, which is long-term.
  • (c) Date sold, the trade date.
  • (d) Proceeds. Always the amount on the 1099-B, even if you think it is wrong.
  • (e) Cost or other basis. The 1099-B amount when basis was reported to the IRS, even if wrong; your own correct figure when it was not.
  • (f) Code, one or more letters in alphabetical order, no spaces ("BW").
  • (g) Adjustment, positive or in parentheses, net of all codes on the row.
  • (h) Gain or (loss) = (d) − (e) + (g).

The adjustment codes

The 2025 instructions list these codes: B, C, D, E, H, L, M, N, O, P, Q, R, S, T, W, X, Y and Z. The ones investors meet:

Code When Column (g)
W A loss is disallowed by the wash sale rule The disallowed loss as a positive number
B Basis on a basis-reported 1099-B is wrong The correction (box A/D); on box B/E enter the right basis and 0
T The short- or long-term box on the 1099-B is wrong 0 unless another code applies; report on the right Part
E Selling costs or option premiums not reflected on the form Costs as a negative number
D Accrued market discount in 1099-B box 1f From the market discount worksheet
C Sale of collectibles 0
L Another nondeductible loss The loss as a positive number
M Several sales on one row (Exception 2) 0 unless another code applies
N You received the 1099-B as nominee for someone else Cancels the gain or loss
H Excluded gain on the sale of a main home The exclusion as a negative number
Q Excluded gain on qualified small business stock The exclusion as a negative number
O Any other adjustment The adjustment

The rest are narrower: P for a foreign seller of a partnership interest, R for rolling over a gain, S for small business stock losses beyond the ordinary-loss limit, X for gain excluded on DC Zone or qualified community assets, Y for reporting gain previously deferred in a qualified opportunity fund, and Z for electing that deferral.

Two codes deserve a closer look. W is entered even when the broker already showed the wash sale in box 1g, and also for wash sales the broker could not see, such as a repurchase in an IRA. If the broker's box 1g figure is too high, you enter the correct amount and attach an explanation. Wash sale examples: eight worked cases with basis and Form 8949 shows eight 8949 rows. B has two forms: if the broker reported basis to the IRS (box A or D), column (e) keeps the broker's figure and column (g) carries the difference; if it did not (box B or E), you simply enter the right basis and 0 in column (g).

Schedule D, line by line

Part I, short-term: line 1a (Exception 1 totals), 1b, 2 and 3 (Form 8949 totals for boxes A/G, B/H and C/I), line 4 (short-term gain from Forms 6252, 4684, 6781 and 8824), line 5 (from Schedules K-1), line 6 (short-term capital loss carryover), and line 7, the net.

Part II, long-term: lines 8a, 8b, 9 and 10 in the same pattern, line 11 (Form 4797, Form 2439 and long-term gains from Forms 6252, 4684, 6781 and 8824), line 12 (K-1s), line 13 (capital gain distributions), line 14 (long-term capital loss carryover), and line 15, the net.

Part III, summary:

  • Line 16 adds lines 7 and 15. A gain goes to Form 1040 line 7a.
  • Line 17 asks whether lines 15 and 16 are both gains. If not, skip to line 22.
  • Lines 18 and 19 take the 28% Rate Gain Worksheet (collectibles, part of small business stock gain) and the Unrecaptured Section 1250 Gain Worksheet (mostly REIT and real estate depreciation).
  • Line 20. If both are zero and you are not filing Form 4952, use the Qualified Dividends and Capital Gain Tax Worksheet in the Form 1040 instructions. Otherwise use the Schedule D Tax Worksheet, which adds the 28% and 25% layers. Tax brackets for investors: how gains and dividends stack in 2026 shows how either one stacks gains on top of ordinary income.
  • Line 21. If line 16 is a loss, enter the smaller of the loss and $3,000 ($1,500 married filing separately) on line 7a. The rest becomes next year's lines 6 and 14 through the Capital Loss Carryover Worksheet; Capital loss carryovers: netting, the $3,000 limit and the worksheet works it.
  • Line 22 asks about qualified dividends, which send you to the worksheet even in a loss year.

A full worked year

An invented single investor has $120,000 of wages, $1,000 of qualified dividends and the 2026 standard deduction of $16,100. Her 2025 return left a short-term carryover of $4,000 and a long-term carryover of $2,500. In 2026 she made six sales and received $1,500 of capital gain distributions.

Sale Term 1099-B Proceeds Basis Code, (g) Gain or (loss) Goes to
Stock A Short Basis reported $12,000 $9,000 $3,000 Line 1a
Stock F Short Basis reported $4,000 $9,000 ($5,000) Line 1a
Stock C Short 1g shows $1,200 $7,000 $10,000 W, $1,200 ($1,800) 8949 box A → 1b
ETF B Long Basis reported $30,000 $18,000 $12,000 Line 8a
Fund E Long Basis reported $8,000 $14,000 ($6,000) Line 8a
Stock D (bought in 2008) Long Noncovered, no 1e $25,000 $10,000 $15,000 8949 box E → 9

Stock C was sold at a $3,000 loss and partly bought back in the same account within 30 days; the broker disallowed $1,200 in box 1g. Stock D was bought in 2008, before basis reporting began for stock, so the 1099-B leaves basis blank and she enters $10,000 from her old confirmations.

One investor’s 2026 trades through Form 8949 and Schedule D 1099-B: A + F (covered, ST) no adjustments → line 1a 1099-B: C (covered, ST) wash sale, box 1g $1,200 1099-B: B + E (covered, LT) no adjustments → line 8a 1099-B: D (noncovered, LT) no basis on the form 1099-DIV box 2a $1,500 2025 carryover worksheet ST $4,000 · LT $2,500 8949 Part I, box A code W, (h) −$1,800 8949 Part II, box E basis from records, (h) $15,000 Line 1a −$2,000 Line 1b −$1,800 Line 6 ($4,000) Line 7 net short-term −$7,800 Line 8a $6,000 Line 9 $15,000 Line 13 $1,500 Line 14 ($2,500) Line 15 net long-term $20,000 Line 16 → 1040 line 7a $12,200 Lines 15 and 16 both gains, no 28% or 25% gain → Qualified Dividends and Capital Gain Tax Worksheet Tax on $117,100 of taxable income: $19,550.00
An invented single filer, tax year 2026, using the 2025 Form 8949 and Schedule D lines and the 2026 brackets.

Part I. Line 1a gets Stocks A and F: proceeds $16,000, basis $18,000, a $2,000 loss. Form 8949 Part I with box A holds one row, Stock C, totalling a $1,800 loss on line 1b. Line 6 brings in the $4,000 carryover. Line 7 is −$2,000 − $1,800 − $4,000 = −$7,800.

Part II. Line 8a gets ETF B and Fund E: proceeds $38,000, basis $32,000, a $6,000 gain. Form 8949 Part II with box E holds Stock D, a $15,000 gain on line 9. Line 13 adds the $1,500 of distributions and line 14 subtracts the $2,500 carryover. Line 15 is $20,000.

Part III. Line 16 is $20,000 − $7,800 = $12,200, entered on Form 1040 line 7a. Lines 15 and 16 are both gains, so line 17 is Yes; there is no collectibles or §1250 gain, so lines 18 and 19 are zero and line 20 sends her to the Qualified Dividends and Capital Gain Tax Worksheet. Her net capital gain is the smaller of lines 15 and 16, $12,200, and with the $1,000 of qualified dividends, $13,200 is taxed at preferential rates.

The tax. Taxable income is $120,000 + $1,000 + $12,200 − $16,100 = $117,100. The ordinary part, $103,900, is taxed on the 2026 brackets of Rev. Proc. 2025-32 at $17,570.00. Because that ordinary income already fills the 0% band (which ends at $49,450 for a single filer), all $13,200 falls in the 15% band: $1,980.00. Total federal income tax: $19,550.00. Taxed as ordinary income the same $117,100 would cost $20,702.00, so the worksheet saves $1,152.00. Without any of the six sales, distributions or carryovers, her tax would be $17,720.00: the year's investing added $1,830.00. Her modified AGI of $133,200 is below the $200,000 threshold of the net investment income tax, so none applies.

Two details of the example matter outside it. The carryover losses reduced the gains before the rate was applied, and they did so by character: the short-term carryover absorbed short-term results first. And the noncovered sale, the largest gain of the year, depended entirely on a basis the broker did not have.

Pitfalls

  • Changing column (d) or (e) to "fix" the broker. The IRS matches the 1099-B figures. Corrections belong in column (g) with a code.
  • Putting adjusted rows on line 1a or 8a. Anything with box 1f, 1g, a code or a noncovered lot needs Form 8949.
  • Mixing boxes on one page. Each Part takes one checked box; use another copy for another box.
  • Forgetting the carryover. Lines 6 and 14 come from last year's worksheet, not from any form.
  • Using the simpler worksheet with 28% or 25% gain. Box 2b or 2d on a 1099-DIV, or collectibles sales, require the Schedule D Tax Worksheet.

The two tax worksheets compared

Worksheet Used when Rates it applies
Qualified Dividends and Capital Gain Tax Lines 18 and 19 zero and no Form 4952; or qualified dividends in a year with no net gain Ordinary brackets, then 0%, 15%, 20%
Schedule D Tax Any 28% rate gain or unrecaptured §1250 gain, or Form 4952 Ordinary brackets, 25% and 28% caps, 0%, 15%, 20%
None (regular tax only) No qualified dividends and no net capital gain Ordinary brackets

How Finabase does it

Finabase does not prepare tax forms. The portfolio shows realized gains on positions you record, matching sales against the earliest purchases first (FIFO), split-adjusted. It does not split results into short- and long-term, choose lots, or apply wash sale adjustments, so its totals will differ from a Schedule D wherever your broker used a different lot method, a sale crossed the one-year line, or a wash sale moved a loss. It is a cross-check for your own records, not a substitute for the 1099-B.

Frequently asked questions

Do I have to file Form 8949 if my broker reported everything?

Not for sales with basis reported to the IRS and no adjustments. Their totals go directly on Schedule D lines 1a and 8a. Any sale with a wash sale, market discount, a noncovered lot or a correction still needs a row.

What does code W mean on Form 8949?

It marks a loss disallowed by the wash sale rule. You enter the sale normally, put W in column (f) and the disallowed amount as a positive number in column (g), which reduces the loss in column (h).

Where does a capital loss carryover go on Schedule D?

The short-term part goes on line 6 and the long-term part on line 14, as negative amounts, from the Capital Loss Carryover Worksheet in the prior year's Schedule D instructions.

Which worksheet figures my capital gains tax?

The Qualified Dividends and Capital Gain Tax Worksheet, unless you have 28% rate gain (line 18) or unrecaptured section 1250 gain (line 19) or file Form 4952; then the Schedule D Tax Worksheet.

Summary

Form 8949 lists the sales that need explaining, grouped by box A to L, with the broker's numbers in columns (d) and (e) and every correction in column (g) under a code. Sales with reported basis and nothing to adjust skip it and go straight to Schedule D lines 1a and 8a. Schedule D adds the carryover on lines 6 and 14 and fund distributions on line 13, nets everything on line 16, and points to the worksheet that applies the 0%, 15%, 20%, 25% and 28% rates. In the worked year, six sales, a distribution and two carryovers became one line of $12,200 and $1,830 of tax.

Check your understanding

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

  1. A 1099-B row shows basis reported to the IRS, but the basis is $900 too high. How do you report it on Form 8949?

    1. Cross out the broker’s basis and enter the right one in column (e)
    2. Keep the broker’s basis in column (e), enter code B in column (f) and the correction in column (g)
    3. Report it on Schedule D line 1a without changes
    Show the answer

    B. Keep the broker’s basis in column (e), enter code B in column (f) and the correction in column (g) For box A or D rows the instructions keep the broker’s figure in column (e), so the IRS can match it, and correct the error in column (g) with code B.

  2. Which of these sales can go on Schedule D line 8a without a Form 8949 row?

    1. A long-term sale of stock bought in 2008, with no basis on the 1099-B
    2. A long-term sale with basis reported to the IRS, nothing in box 1f or 1g and nothing to adjust
    3. A long-term sale of a gold ETF
    Show the answer

    B. A long-term sale with basis reported to the IRS, nothing in box 1f or 1g and nothing to adjust Exception 1 covers basis-reported rows without adjustments. Noncovered lots need box E, and collectibles are excluded from the exception.

  3. In the worked year, line 7 is a $7,800 loss and line 15 a $20,000 gain. What reaches Form 1040 line 7a, and how much of it is taxed at capital gain rates?

    1. $20,000, all at capital gain rates
    2. $12,200, all of it net capital gain taxed at preferential rates
    3. $12,200, of which only $4,400 is preferential
    Show the answer

    B. $12,200, all of it net capital gain taxed at preferential rates Line 16 nets the two parts to $12,200. Net capital gain is the smaller of lines 15 and 16, so the whole $12,200 gets the 0/15/20% rates.

  4. A 1099-DIV shows $300 in box 2d (collectibles gain). Which worksheet figures the tax?

    1. The Qualified Dividends and Capital Gain Tax Worksheet
    2. The Schedule D Tax Worksheet, because line 18 is not zero
    3. No worksheet; collectibles gain is ordinary income
    Show the answer

    B. The Schedule D Tax Worksheet, because line 18 is not zero Box 2d feeds the 28% Rate Gain Worksheet and Schedule D line 18. Any amount there sends you to the Schedule D Tax Worksheet, which applies the 28% cap.

Sources and further reading

  1. IRS — Instructions for Form 8949 (2025), dated January 20, 2026: boxes A to L, Exceptions 1 and 2, columns (a) to (h), adjustment codes
  2. IRS — Form 8949 (2025) and Schedule D (Form 1040) (2025)
  3. IRS — Form 8949 (2026) and Schedule D (2026) drafts of April 1, 2026
  4. IRS — Instructions for Schedule D (Form 1040) (2025): capital gain distributions, Capital Loss Carryover Worksheet, 28% Rate Gain Worksheet, Unrecaptured Section 1250 Gain Worksheet, Schedule D Tax Worksheet
  5. IRS — Instructions for Form 1040 (2025): line 7a, Exceptions 1 and 2; Qualified Dividends and Capital Gain Tax Worksheet
  6. 26 U.S. Code § 1211(b) and § 1212(b), loss limit and carryover (Cornell LII)
  7. IRS — Rev. Proc. 2025-32 (tax year 2026 brackets, capital gain thresholds, standard deduction)