Back to Blog
Tax FilingMay 2, 202627 min read

Schedule D (Form 1040) + AI Agent Skill: Capital Gains and Losses Guide 2026

Schedule D (Form 1040) + AI Agent Skill: Capital Gains and Losses Guide 2026

Hi, I'm Slava, CEO and co-founder of Jupid. Schedule D is where every capital transaction in your year — every stock sale, every crypto swap, every loss carryover from prior years — finally collapses into one number that lands on Form 1040 Line 7. The math itself is straightforward addition. What people get wrong is which worksheet computes their tax: the Qualified Dividends and Capital Gain Tax Worksheet, the Schedule D Tax Worksheet, or just the regular tax tables. Pick the wrong one and you can overpay by thousands on the same set of trades.

Official IRS resources: Schedule D (PDF) · Instructions (PDF) · About Schedule D

If you filed Form 8949 — for stock sales, crypto, real estate, or any other capital asset disposition — Schedule D is the next stop. It rolls each Box (A through F) total into one short-term and one long-term net figure, applies the $3,000 loss limit if you ended the year underwater, and computes whether your gain falls in the 0%, 15%, 20%, 25% (real estate recapture), or 28% (collectibles) lane.

This guide walks the form Part by Part, covers the LTCG brackets for 2026, shows how loss carryovers work, and ends with a continued worked example: Sam, the same trader from our Form 8949 guide, now flowing his transactions through Schedule D.

What Is Schedule D?

Schedule D (officially "Capital Gains and Losses") is the summary form that aggregates every capital gain and loss into the figure that hits Form 1040. Form 8949 lists each individual disposition; Schedule D adds them up by category, applies prior-year carryovers, applies the loss limit, and routes the result to the correct tax computation.

Legal Basis: IRC §1(h) sets the preferential rate structure for net capital gain. IRC §1211 caps the deduction of capital losses against ordinary income at $3,000 per year ($1,500 for MFS). IRC §1212 lets the unused loss carry forward indefinitely, retaining its short-term or long-term character. IRC §1411 imposes the 3.8% Net Investment Income Tax on top of the regular capital gains rate for higher-income filers.

The form has three Parts:

  • Part I — Short-term gains and losses (assets held one year or less)
  • Part II — Long-term gains and losses (assets held more than one year)
  • Part III — Summary, loss limitation, and routing to the correct tax worksheet

You file Schedule D if:

  • You sold any capital asset and have an entry on Form 8949
  • You received capital gain distributions on Form 1099-DIV Box 2a (mutual funds, REITs)
  • You have a capital loss carryover from a prior year
  • You had any §1256 contracts (futures, broad-based index options) reported on Form 6781
  • You had a §1202 QSBS gain
  • You had unrecaptured §1250 gain from real estate

You don't file Schedule D if:

  • Your only capital gain activity is qualified dividends — those go directly on Form 1040 Line 3a
  • All capital gain activity is inside an IRA, 401(k), HSA, or 529 (no recognition)
  • You sold a primary residence and the gain is fully excluded under §121

If your only capital gain activity is mutual fund capital gain distributions on 1099-DIV Box 2a and you have no other Form 8949 entries, you may be able to skip Schedule D and report directly on Form 1040 Line 7 — check the Schedule D instructions for the exact conditions.


Executive Summary: Schedule D 2026 Key Numbers

Item2025 / 2026 ValueSource
LTCG 0% bracket — singleTaxable income up to $48,350 (2025)Rev. Proc. 2024-40
LTCG 15% bracket — single$48,351 – $533,400 (2025)Rev. Proc. 2024-40
LTCG 20% bracket — singleAbove $533,400 (2025)Rev. Proc. 2024-40
LTCG 0% bracket — MFJUp to $96,700 (2025)Rev. Proc. 2024-40
LTCG 15% bracket — MFJ$96,701 – $600,050 (2025)Rev. Proc. 2024-40
LTCG 20% bracket — MFJAbove $600,050 (2025)Rev. Proc. 2024-40
LTCG 0% bracket — HoHUp to $64,750 (2025)Rev. Proc. 2024-40
LTCG 15% bracket — HoH$64,751 – $566,700 (2025)Rev. Proc. 2024-40
LTCG 20% bracket — HoHAbove $566,700 (2025)Rev. Proc. 2024-40
Short-term capital gain rateOrdinary rate (10–37% brackets)IRC §1(h)
Collectibles maximum rate28%IRC §1(h)(4)
Unrecaptured §1250 gain rate (real estate)25% maximumIRC §1(h)(6)
§1202 QSBS exclusionUp to 100% if held more than 5 years (acquired after 9/27/2010)IRC §1202
Net capital loss limit vs ordinary income$3,000/year ($1,500 MFS)IRC §1211(b)
Capital loss carryoverIndefinite, retains short/long characterIRC §1212(b)
NIIT threshold — singleMAGI above $200,000IRC §1411
NIIT threshold — MFJMAGI above $250,000IRC §1411
NIIT rate3.8% on net investment income above thresholdIRC §1411

Note on 2026 figures: The 2026 inflation-indexed brackets are typically published by the IRS in October–November 2025. Verify against the most recent Revenue Procedure (e.g., Rev. Proc. 2025-XX) before filing a 2026 return. The 2025 figures above are from Rev. Proc. 2024-40 and apply to returns filed in spring 2026.

The single most important number on this list is the LTCG bracket cutoff for your filing status. A long-term gain that falls in the 0% bracket is genuinely tax-free at the federal level. The next dollar at $48,351 (single) bumps you into 15%. Bunching gains and losses across years to land in the 0% bracket is one of the few legal tax strategies left for retail investors.


Part I: Short-Term Capital Gains and Losses

Part I lines 1a–7 cover assets held one year or less. These transactions are taxed at your ordinary income rate — same as wages, interest, freelance income.

Line 1a — Totals from 1099-B "covered" Box A summary

This is the optional aggregation line. If you have many short-term transactions reported on Box A of Form 8949 and you're not making any column (g) adjustments to them, you can aggregate the totals on Line 1a instead of itemizing each one. The IRS already has the broker's 1099-B; the totals just need to tie.

If you made any adjustment to a Box A transaction (wash sale, basis correction), it must go on Form 8949 — it cannot ride on Line 1a.

Line 1b — Short-term Box A totals from Form 8949

Sum of column (d), (e), (g), and (h) from all your Form 8949 Part I, Box A pages.

Line 2 — Short-term Box B totals from Form 8949

Same, for Box B (basis not reported to IRS on 1099-B).

Line 3 — Short-term Box C totals from Form 8949

Same, for Box C (no 1099-B issued — typically crypto and private transactions).

Line 4 — Short-term gain from Form 6252 and other forms

Installment sale short-term gains; gains from §1256 contracts (Form 6781) marked-to-market; like-kind exchange gain that fell out (Form 8824).

Line 5 — Short-term gain or loss from partnerships, S-corps, estates, trusts

Schedule K-1 Box 8 (or equivalent) flows here. The pass-through entity already classified it as short-term.

Line 6 — Short-term capital loss carryover

From your prior-year Capital Loss Carryover Worksheet. If your 2024 net short-term loss exceeded what you could use against 2024 income, the unused short-term portion lands here as a negative number.

Line 7 — Net short-term capital gain or (loss)

Sum of Lines 1a column (h) + 1b column (h) + 2 col (h) + 3 col (h) + 4 + 5 + 6.

This is your total short-term result for the year. Positive numbers will combine with long-term in Part III; negative numbers offset long-term gains first, then drop to the $3,000 ordinary-income limit.


Part II: Long-Term Capital Gains and Losses

Part II lines 8a–15 cover assets held more than one year. Net long-term gain qualifies for the preferential 0/15/20% rates (or 25% / 28% for the special asset categories).

Line 8a — Totals from 1099-B "covered" Box D summary

Optional aggregation line for Box D, same logic as Line 1a — aggregate only if you made no adjustments.

Line 8b — Long-term Box D totals from Form 8949

Sum of column (d), (e), (g), (h) from all Form 8949 Part II, Box D pages.

Line 9 — Long-term Box E totals

Box E: long-term, basis NOT reported to IRS on 1099-B. Older mutual fund shares (acquired before 2012), transferred-in lots without basis history.

Line 10 — Long-term Box F totals

Box F: no 1099-B issued. Most crypto, real estate, collectibles, private transactions.

Line 11 — Long-term gain from Form 4797 (§1231 carve-out), Form 6252, Form 6781, Form 8824

If you sold business-use property (e.g., a piece of equipment from your Schedule C operation) and the result was a net §1231 gain, it gets converted to long-term capital gain and lands here. Net §1231 losses go to ordinary income — they don't appear on Schedule D at all.

Line 12 — Long-term gain or loss from partnerships, S-corps, estates, trusts

Schedule K-1 long-term capital gain box.

Line 13 — Capital gain distributions

Form 1099-DIV Box 2a — mutual fund and REIT capital gain distributions. These are always treated as long-term regardless of how long you've held the fund shares. If your only capital gain activity is Box 2a distributions and Form 8949 has no entries, you may be able to report directly on Form 1040 Line 7 and skip Schedule D entirely.

Line 14 — Long-term capital loss carryover

From prior-year Capital Loss Carryover Worksheet. Long-term portion of the unused loss.

Line 15 — Net long-term capital gain or (loss)

Sum of Lines 8a column (h) + 8b col (h) + 9 col (h) + 10 col (h) + 11 + 12 + 13 + 14.


Part III: Summary

Part III is where the year's verdict comes in. Lines 16–22 combine short and long-term, apply the loss limit, and route to the correct tax computation.

Line 16 — Total net gain or loss (Lines 7 + 15)

This is the headline number. If positive, it flows to Form 1040 Line 7 as a long-term capital gain (assuming Line 15 is positive). If negative, you have a net capital loss for the year.

Line 17 — Are Lines 15 and 16 both gains?

If yes, go to Line 18. Otherwise skip to Line 22.

Line 18 — 28% rate gain worksheet result

If you have any collectibles gain (Form 8949 with code "C") or §1202 QSBS gain that was not fully excluded, the 28%-rate portion gets pulled out here using the 28% Rate Gain Worksheet in the Schedule D instructions. This portion is taxed at maximum 28% — better than ordinary rates if you're in a 32–37% bracket, worse than the regular 20% LTCG rate.

Line 19 — Unrecaptured §1250 gain worksheet result

Real estate sold with prior depreciation: the depreciation taken on the sold property is "unrecaptured" up to a maximum 25% rate. The Unrecaptured §1250 Gain Worksheet pulls this portion out. The remainder of the real estate gain (above the depreciation taken) flows through normally at 0/15/20%.

Line 20 — Use the Schedule D Tax Worksheet?

If Line 18 or Line 19 has any amount, you must compute tax using the Schedule D Tax Worksheet (not the simpler Qualified Dividends and Capital Gain Tax Worksheet). The Schedule D Tax Worksheet is in the Schedule D instructions and walks through the layered rates: ordinary on the ordinary portion, 25% on the §1250 portion, 28% on the collectibles portion, and 0/15/20% on the remainder.

If Lines 18 and 19 are both zero, use the Qualified Dividends and Capital Gain Tax Worksheet (in the Form 1040 instructions, not Schedule D's). This is the simpler, more common path — it stacks long-term gain and qualified dividends on top of ordinary income and applies 0/15/20% to the gain portion based on which brackets it spans.

Line 21 — Capital loss limitation

If Line 16 is a loss, enter the smaller of:

  • The loss as a positive number, or
  • $3,000 ($1,500 if married filing separately)

That capped amount is your deduction against ordinary income this year. The remainder carries forward.

Line 22 — Qualified dividends consideration

Even if you don't have a Schedule D Line 16 gain, you might still benefit from the Qualified Dividends and Capital Gain Tax Worksheet if you received qualified dividends. The instructions point you to the right worksheet based on your situation.


The Three Tax Worksheets — Pick the Right One

This is the most-overlooked piece of Schedule D. The capital gain rate isn't computed on Schedule D itself; the form just produces the inputs. The actual tax computation happens in one of three worksheets:

Worksheet 1: Qualified Dividends and Capital Gain Tax Worksheet (in Form 1040 instructions)

Use when: You have any net long-term gain (Line 15 positive) and/or qualified dividends, and Schedule D Lines 18 and 19 are both zero (no collectibles, no §1250 unrecaptured gain).

This is the simplest path. Walks through:

  1. Compute taxable income.
  2. Subtract the long-term gain + qualified dividends.
  3. Compute regular tax on the remainder (ordinary income only).
  4. Add 0/15/20% on the gain/dividend layer based on which brackets it spans.

Most retail investors with a stock and crypto portfolio use this worksheet.

Worksheet 2: Schedule D Tax Worksheet (in Schedule D instructions)

Use when: Schedule D Line 18 (28% rate gain) or Line 19 (unrecaptured §1250 gain) is greater than zero.

Layers four rate levels: ordinary, 25%, 28%, and 0/15/20%. Used by anyone selling rental real estate (depreciation recapture) or collectibles.

Worksheet 3: Tax tables / Tax Computation Worksheet (regular)

Use when: Schedule D Line 16 is zero or a loss, and you have no qualified dividends. No preferential rate applies; tax is computed on ordinary income only via the standard tax tables.

Where filers go wrong: Defaulting to the regular tax tables when they have a long-term gain. The IRS won't catch this and refund the overpayment — you're expected to use the right worksheet yourself. Many DIY filers using paper or basic software miss this and overpay by thousands.

Software like TurboTax, FreeTaxUSA, and the IRS Free File Fillable Forms compute the right worksheet automatically. Paper filers and basic spreadsheet preparation must run the correct worksheet manually.


Net Investment Income Tax (NIIT) — Form 8960

If your modified adjusted gross income (MAGI) exceeds $200,000 single or $250,000 MFJ, an additional 3.8% tax under IRC §1411 applies to the lesser of:

  • Your net investment income, or
  • The amount your MAGI exceeds the threshold

Schedule D's net capital gain is part of net investment income. Form 8960 computes the NIIT and routes it to Schedule 2 → Form 1040.

The NIIT is paid on top of the regular capital gains rate. A taxpayer in the 20% LTCG bracket with NIIT exposure pays an effective 23.8% federal rate on long-term gains, plus state income tax.

The NIIT threshold is not indexed for inflation — it's been frozen at $200K / $250K since the tax was enacted in 2013. Each year, more filers cross into NIIT territory by virtue of nominal income growth alone.


Capital Loss Carryover

If your net capital loss exceeds $3,000 ($1,500 MFS) under IRC §1211, the unused portion carries forward indefinitely under IRC §1212. The carryover retains its short-term or long-term character — short-term loss stays short-term in the carryforward year, long-term stays long-term.

The Capital Loss Carryover Worksheet in the Schedule D instructions handles the math. Inputs:

  • Prior-year Form 1040 Line 15 (taxable income), Line 11 (AGI)
  • Prior-year Schedule D Lines 7, 15, 16, 21
  • Prior-year carryover (if any)

Output:

  • Short-term carryover to next year (negative number if applicable)
  • Long-term carryover to next year (negative number if applicable)

Order of operations matters. Within a year, short-term losses first offset short-term gains; long-term losses first offset long-term gains. Then any net loss in one category offsets net gain in the other. Only if both Part I and Part II are net negative do you reach the $3,000 limit.

A $50,000 net loss with no offsetting gains takes more than 16 years of $3,000 applications against ordinary income to absorb. Realizing capital gains in future years accelerates absorption. Many investors deliberately harvest losses in down years and gains in up years to manage carryforward inventory.


Schedule D flow showing Form 8949 boxes feeding into Part I and Part II, then Part III summary applying 0%/15%/20%/25%/28% rates and the $3,000 loss limit before flowing to Form 1040 Line 7

Worked Example: Sam, Day Trader and HODLer (Continued)

Sam is the same single filer from our Form 8949 guide. He's in the 32% federal bracket with about $220,000 of taxable ordinary income (so MAGI puts him over the $200K NIIT threshold for single filers). Here's how his four 8949 entries flow up to Schedule D.

Inputs from Form 8949:

Form 8949 BoxHolding periodNet (h)
Box B (NVDA wash sale)Short-term$0
Box C (ETH loss)Short-term($1,200)
Box D (AAPL gain)Long-term$15,000
Box F (BTC gain)Long-term$7,500

Updated for this guide: Sam also realized an additional ($2,000) short-term loss during a separate NVDA flip in October 2025 outside the wash-sale window — straight loss with no replacement. So his short-term picture is:

  • Box B: $0
  • Box C: ($1,200)
  • Box C (additional NVDA): ($2,000)

Schedule D Part I (Short-Term):

LineSourceAmount
1bBox A totals$0
2Box B totals$0
3Box C totals($3,200)
6Prior-year ST loss carryover$0
7Net short-term capital loss($3,200)

Schedule D Part II (Long-Term):

LineSourceAmount
8bBox D totals$15,000
9Box E totals$0
10Box F totals$7,500
13Capital gain distributions (1099-DIV 2a)$0
14Prior-year LT loss carryover$0
15Net long-term capital gain$22,500

Schedule D Part III (Summary):

LineCalculationAmount
16Line 7 + Line 15 = ($3,200) + $22,500$19,300
17Both 15 and 16 are gains?Yes
1828% rate gain$0
19Unrecaptured §1250 gain$0
20Use Qualified Dividends and Capital Gain Tax WorksheetYes
22Form 1040 Line 7$19,300

Tax computation (Qualified Dividends and Capital Gain Tax Worksheet):

The $19,300 gain is treated as long-term net gain (the short-term loss reduced it inside Schedule D). Sam's $220,000 taxable income puts the long-term gain in the 15% LTCG bracket (the 20% bracket starts at $533,400 for single filers in 2025).

LTCG tax: $19,300 × 15% = $2,895

NIIT (Form 8960):
  MAGI excess over $200,000:        $20,000
  Net investment income:            $19,300 (the cap)
  NIIT base = lesser:               $19,300
  NIIT:  $19,300 × 3.8% =           $733

Total federal tax on capital activity: $2,895 + $733 = $3,628

The short-term loss of $3,200 was already used against long-term gain inside Schedule D — it didn't separately reduce ordinary income because there was net long-term gain to absorb it.


Alternate Scenario: What If Sam Had Bigger Losses?

Suppose instead that Sam's BTC and AAPL didn't generate any gain, but his NVDA and ETH losses were larger. Reworked:

  • Box B: $0
  • Box C: ($8,000) net short-term loss
  • Box D: $0
  • Box F: $0
Schedule D LineAmount
Line 7 (net short-term)($8,000)
Line 15 (net long-term)$0
Line 16 (total)($8,000)
Line 21 (capital loss limitation)($3,000)

On Form 1040 Line 7: ($3,000) — reduces ordinary income.

Capital Loss Carryover Worksheet output:

  • Short-term carryforward to next year: $5,000
  • Long-term carryforward: $0

The remaining $5,000 short-term loss carries to 2026 and retains short-term character. In 2026, it first offsets any short-term gains, then long-term gains, then up to $3,000 of ordinary income.

If Sam's effective marginal rate is 32%, that $3,000 deduction saves him $960 this year. The $5,000 carryforward will save more later.


Common Mistakes

Mistake #1: Using the wrong tax worksheet

Problem: Filer has $30,000 of long-term gain and uses the regular tax tables, computing tax at the 24% ordinary rate instead of 15% LTCG.

Impact: Overpayment of $2,700 ($30,000 × 9% rate gap). The IRS won't send a refund — you have to amend with Form 1040-X within 3 years.

Solution: If Schedule D Line 16 is positive and Line 15 is positive, use the Qualified Dividends and Capital Gain Tax Worksheet (or Schedule D Tax Worksheet if §1250 or 28% gain is in play). Tax software does this automatically; paper filers must run the worksheet manually.

Mistake #2: Forgetting prior-year capital loss carryover

Problem: Filer had a $20,000 net loss in 2024, used $3,000 against ordinary income, but forgets to enter the remaining $17,000 carryover on Schedule D Line 6 or 14 in 2025.

Impact: Pays tax on gains the carryover should have offset. Permanent loss of the carryover (a 1040-X within 3 years can recover, but only if you remember).

Solution: Save the prior-year Capital Loss Carryover Worksheet every year. Tax software keeps this tracked across years if you carry the same software forward; otherwise, transcribe manually.

Mistake #3: Not computing NIIT on Form 8960

Problem: Single filer with $250,000 MAGI and $40,000 long-term gain pays 15% LTCG and stops there. Misses the 3.8% NIIT on the net investment income above the $200K threshold.

Impact: Roughly $1,520 underpayment ($40,000 × 3.8%, capped by MAGI excess of $50,000). Eventual IRS notice with interest.

Solution: If your MAGI exceeds $200K single / $250K MFJ, complete Form 8960 alongside Schedule D. The form is short — net investment income (interest, dividends, capital gains, rental net) less allocable expenses, then 3.8% on the lesser of NII or MAGI excess.

Mistake #4: Mixing §1231 gains into Schedule D incorrectly

Problem: Filer sells a piece of business equipment from their Schedule C activity at a gain, classifies it as long-term capital gain, and reports on Form 8949. Actually, business property goes on Form 4797 first; only the net §1231 gain (after depreciation recapture as ordinary income) is then converted to long-term capital and routed to Schedule D Line 11.

Impact: Wrong characterization. Depreciation recapture income gets the 0/15/20% rate instead of the higher ordinary rate it should have gotten.

Solution: Business-use property: Form 4797 first. Investment property (passive holding): Form 8949 and Schedule D directly. If unsure, ask whether the asset was used in a trade or business — if yes, 4797.

Mistake #5: Missing the §1202 QSBS exclusion

Problem: Filer sells founder stock in a qualified C-corp, held 6 years, $2M gain. Reports the full $2M on Schedule D as long-term gain at 20% + 3.8% NIIT.

Impact: Pays $476,000 in federal tax. Under §1202, gains on Qualified Small Business Stock acquired after September 27, 2010 and held more than 5 years are excluded up to 100% (subject to a per-issuer cap of $10M or 10× basis). Properly claimed, the gain could be fully excluded — saving the entire $476,000.

Solution: If you hold founder stock or angel-invested stock in a C-corp, before selling, verify QSBS qualification: the company met the §1202 small-business asset test ($50M of gross assets at issuance), engaged in a qualified active business, and you held the stock more than 5 years. The exclusion is reported on Form 8949 with code "Q" (partial) or "X" (full); the excluded portion comes off in column (g).


How Jupid AI Helps with Schedule D

Schedule D filers usually need three things: a complete picture of every disposition (Form 8949 detail), the right carryover from last year, and the right tax-rate computation. Jupid handles the bookkeeping side — the half that almost always breaks down with manual prep.

Bank and brokerage connection — Connect every account where you had taxable activity (Schwab, Fidelity, Robinhood, Coinbase, banks). Trades, swaps, and crypto disposals stream into one timeline you can audit.

Auto-categorization with 95.9% accuracy — Each transaction is classified by holding period and tax treatment. Crypto-to-crypto swaps are flagged as taxable events; cost basis is tracked across transfers between your own accounts.

Year-over-year carryover tracking — Last year's net loss isn't a number you have to remember. Jupid carries it forward and shows the offset against this year's gains.

AI accountant in WhatsApp / iMessage — Ask "How does my Schedule D look so far this year?" or "What's my net long-term gain after carryovers?" and get the answer with the underlying transactions linked. Real-time chat means you can plan the December tax-loss harvest knowing exactly how much short-term loss you've already booked.

Example conversation:

  • You: "What's my realized capital gain through November? I want to know if I should sell my MSFT loss before year-end."
  • Jupid: "Realized year-to-date: $24,500 long-term gain (mostly AAPL and BTC), $1,800 short-term loss. Selling MSFT at today's price would realize a $4,200 short-term loss — that fully offsets your short-term position and reduces long-term gain by another $2,400, dropping net taxable gain to $22,100."

Try Jupid →


Action Checklist: Filing Schedule D

Pre-tax-time

  • Pull every 1099-B, 1099-DIV (Box 2a), and 1099-DA from every brokerage and exchange
  • Locate prior-year Capital Loss Carryover Worksheet (if any net loss last year)
  • Pull Schedule K-1 capital gain boxes from any partnerships, S-corps, estates, or trusts
  • Identify any §1250 unrecaptured gain (real estate sold this year with prior depreciation)
  • Identify any collectibles gains (28% rate)
  • Identify any §1202 QSBS sales held more than 5 years

Throughout the year

  • Track holding period on every position so you know when each crosses the one-year line
  • Document wash sales across all accounts (broker tracks only in-account)
  • Harvest losses in December if you have offsetting gains realized earlier in the year
  • If MAGI is approaching $200K single / $250K MFJ, model the NIIT exposure before realizing big gains

At tax-time

  • Complete Form 8949 first; Schedule D rolls up its totals
  • Enter prior-year carryover on Lines 6 and 14
  • Run Lines 7, 15, 16 — the year's net result
  • If Line 16 is a loss, apply Line 21 cap ($3,000 / $1,500 MFS), compute carryforward
  • If Line 18 or 19 has any amount, use Schedule D Tax Worksheet — otherwise Qualified Dividends and Capital Gain Tax Worksheet
  • Complete Form 8960 (NIIT) if MAGI exceeds the threshold and net investment income is positive
  • Schedule D Line 16 → Form 1040 Line 7

Resources and Citations

IRS Forms and Instructions

IRS Publications

Tax Code References

  • IRC §1(h) — Maximum capital gains rate structure (0/15/20%, 25% §1250, 28% collectibles)
  • IRC §1202 — Partial / full exclusion for Qualified Small Business Stock (QSBS)
  • IRC §1211 — Limitation on capital losses ($3,000 / $1,500 MFS)
  • IRC §1212 — Capital loss carryback and carryforward (indefinite, retains character)
  • IRC §1411 — Net Investment Income Tax (3.8%)
  • IRC §1231 — Property used in trade or business (carve-out to long-term capital)
  • IRC §1250 — Recapture of depreciation on real estate
  • Rev. Proc. 2024-40 — 2025 inflation-adjusted long-term capital gain brackets (verify 2026 figures against the most recent Revenue Procedure)

Companion Reading


Final Thoughts

Schedule D is short, but the consequences of getting it wrong are big. The three things that decide whether the form takes 20 minutes or two weekends:

  1. Clean Form 8949 detail underneath — Schedule D adds; if 8949 is wrong, Schedule D is wrong
  2. Carryover discipline — last year's leftover loss is real money; don't let it lapse silently
  3. Right tax worksheet — the difference between the regular tables and the Qualified Dividends and Capital Gain Tax Worksheet can be thousands of dollars on a single return

A Schedule D filed correctly with cooperative software takes a few minutes. A Schedule D filed with messy bookkeeping and no prior-year worksheet takes hours and risks an IRS notice nine months later. The fix isn't tax knowledge — it's bookkeeping during the year so the form populates itself at filing time.

Use This with Your AI Agent

If you're using Claude, ChatGPT, or another AI agent to help fill out Schedule D, we've published an open-source skill that gives the agent exact line-by-line instructions, validation checks, ask-don't-guess prompts, and worked examples — the same logic Jupid uses internally.

jupid-tax/jupid-skills on GitHub — forms/schedule-d/SKILL.md

For Claude Code: cp -r jupid-skills/forms/schedule-d ~/.claude/skills/. For the Anthropic SDK, load SKILL.md into the system prompt and the references/ files on demand. For browser-automation runtimes, filing.md covers the e-file or paper-file workflow.


Disclaimer

This article provides general information about Schedule D (Form 1040) and capital gains taxation. It is not tax advice and does not establish a CPA-client relationship. Tax laws change frequently, and individual circumstances vary significantly. Inflation-indexed figures for tax year 2026 should be verified against the most recent IRS Revenue Procedure before filing. For advice specific to your situation, consult a qualified tax professional.

Tax Year: 2026 (covering 2025 income) Last Updated: April 28, 2026

Table of Contents

Ready to simplify your finances?

Join 1,000+ businesses using Jupid to save time and money. Start simplifying your finances today.

30-day money-back guarantee