Schedule D nets; Form 8949 lists. The detail form exists because a broker reports some cost basis to the IRS and not other basis, and a return has to be organized around that distinction so a matching program can work. Form 8949 sorts every transaction into lettered boxes recording whether it appeared on a Form 1099-B or Form 1099-DA and whether basis was reported, and the totals from each box land on their own line of Schedule D. That is why the schedule has so many total lines for what is conceptually one calculation.
There is a shortcut, and it is the reason most filers never see Form 8949. Lines 1a and 8a take the totals for all transactions reported on a Form 1099-B or Form 1099-DA "for which basis was reported to the IRS and for which you have no adjustments", entered directly on Schedule D with no detail form at all. A single adjustment of any kind, a wash sale, a corrected basis, an exclusion, pushes that transaction onto Form 8949. You may also choose to report everything on Form 8949 anyway, and many software packages do.
Two categories reach the schedule without passing through a broker form at all. Line 5 and line 12 take net short-term and net long-term gain or loss from partnerships, S corporations, estates and trusts, which arrive on a Schedule K-1. Line 13 takes capital gain distributions, which are paid by mutual funds and real estate investment trusts and reported in box 2a of a Form 1099-DIV. Those are always long-term regardless of how long you have held the fund, which is why they sit in Part II with no acquisition date beside them.
The netting order is a rule, not a preference. Part I nets short-term items against each other and produces one figure on line 7. Part II nets long-term items and produces one figure on line 15. Only then does line 16 combine the two. The consequence is that a short-term loss is applied against short-term gain first, which is where it does the most good because short-term gain is taxed at ordinary rates, and reaches long-term gain only if there is short-term loss left over.
Part III decides what happens next, in three branches. If line 16 is a gain, it carries to Form 1040 and you continue at line 17. If it is a loss, you skip past lines 17 through 20 to the deduction limit. If it is zero, you enter zero on Form 1040 and go straight to the qualified dividend question at the end. Where line 17 confirms that both line 15 and line 16 are gains, the schedule asks one further question before sending you to a worksheet, because the preferential rates are not one rate.
The rate is computed off the form, and the branch depends on what kind of gain you have. If there is no 28% rate gain and no unrecaptured section 1250 gain and you are not filing Form 4952, Part III sends you to the Qualified Dividends and Capital Gain Tax Worksheet in the Form 1040 instructions. Otherwise it sends you to the Schedule D Tax Worksheet, which is longer, because collectibles gain carries a 28% rate ceiling and unrecaptured section 1250 gain from depreciated real estate carries a 25% ceiling. Each of those has its own worksheet feeding lines 18 and 19. So the schedule that is named for capital gains contains no capital gains rate anywhere on its face.
The loss branch is capped, and the cap is on the deduction rather than on the loss. Line 21 allows the smaller of the loss on line 16 or $3,000, halved to $1,500 for a married person filing separately, as a deduction against ordinary income. Neither figure is adjusted for inflation. What is not allowed this year is not lost: it carries forward, keeping its short-term or long-term character, and is computed on the Capital Loss Carryover Worksheet in the instructions before landing on line 6 or line 14 of next year's schedule.
Two things at the top and bottom of the form that are easy to miss. The header carries a yes-or-no question about disposing of an investment in a qualified opportunity fund during the year, which requires Form 8949 and its own additional reporting whatever else you did. And line 22 asks whether you have qualified dividends on Form 1040, because qualified dividends are taxed through the same worksheet as long-term capital gain, which is why a taxpayer with no capital transactions at all can still be routed into it.