
Form 8949 + AI Agent Skill: Capital Gains & Crypto Guide 2026
Form 8949 reports stock, crypto, and capital asset sales. Complete 2026 guide with wash sales, basis reporting, short vs long-term, and worked examples.

Schedule D (Form 1040) is the IRS form that totals your capital gains and losses from Form 8949, applies the $3,000 loss limit, and routes the result to Form 1040 Line 7a. For 2026, the 0% long-term capital gains bracket covers taxable income up to $49,450 (single) or $98,900 (married filing jointly) per Rev. Proc. 2025-32; for 2025 returns filed in spring 2026, the cutoffs are $48,350 and $96,700. The tax itself is not computed on Schedule D: it comes from one of three worksheets, and picking the wrong one can cost thousands on the same set of trades.
Key takeaways:
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 determines whether your gain falls in the 0%, 15%, 20%, 25% (real estate recapture), or 28% (collectibles) lane. The worked example below continues with Sam, the same trader from our Form 8949 guide, now flowing his transactions through 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:
You file Schedule D if:
Schedule D is not required in these cases:
| Item | Tax Year 2025 | Tax Year 2026 |
|---|---|---|
| LTCG 0% bracket, single | Up to $48,350 | Up to $49,450 |
| LTCG 15% bracket, single | $48,351 – $533,400 | $49,451 – $545,500 |
| LTCG 20% bracket, single | Above $533,400 | Above $545,500 |
| LTCG 0% bracket, MFJ | Up to $96,700 | Up to $98,900 |
| LTCG 15% bracket, MFJ | $96,701 – $600,050 | $98,901 – $613,700 |
| LTCG 20% bracket, MFJ | Above $600,050 | Above $613,700 |
| LTCG 0% bracket, HoH | Up to $64,750 | Up to $66,200 |
| LTCG 15% bracket, HoH | $64,751 – $566,700 | $66,201 – $579,600 |
| LTCG 20% bracket, HoH | Above $566,700 | Above $579,600 |
| Short-term capital gain rate | Ordinary rate (10–37%) | Ordinary rate (10–37%) |
| Collectibles maximum rate | 28% | 28% |
| Unrecaptured §1250 gain rate (real estate) | 25% maximum | 25% maximum |
| Net capital loss limit vs ordinary income | $3,000 ($1,500 MFS) | $3,000 ($1,500 MFS) |
| NIIT threshold (not indexed) | $200,000 single / $250,000 MFJ | $200,000 single / $250,000 MFJ |
| NIIT rate | 3.8% | 3.8% |
Sources: 2025 brackets from Rev. Proc. 2024-40; 2026 brackets from Rev. Proc. 2025-32 (published October 2025). Rate structure from IRC §1(h); loss limits from IRC §1211(b) and §1212(b); the §1202 QSBS exclusion (up to 100% if held more than 5 years, acquired after 9/27/2010) from IRC §1202.
The LTCG bracket cutoff for your filing status decides whether a long-term gain is genuinely tax-free at the federal level. A single filer whose 2026 taxable income stays at or below $49,450 pays 0% on long-term gains; the next dollar lands in the 15% bracket. Bunching gains and losses across years to stay inside the 0% bracket remains one of the few legal tax strategies available to retail investors. Run your own numbers in our capital gains tax calculator.
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, and freelance income.
Line 1a 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.
Sum of column (d), (e), (g), and (h) from all your Form 8949 Part I, Box A pages.
Same, for Box B (basis not reported to IRS on 1099-B).
Same, for Box C (no 1099-B issued, typically crypto and private transactions).
Installment sale short-term gains; gains from §1256 contracts (Form 6781) marked-to-market; like-kind exchange gain that fell out (Form 8824).
Schedule K-1 Box 8 (or equivalent) flows here. The pass-through entity already classified it as short-term.
From your prior-year Capital Loss Carryover Worksheet. If your prior-year net short-term loss exceeded what you could use against that year's income, the unused short-term portion lands here as a negative number.
Sum of Lines 1a column (h) + 1b column (h) + 2 col (h) + 3 col (h) + 4 + 5 + 6.
Line 7 is your total short-term result for the year. Positive numbers 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 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).
Optional aggregation line for Box D, same logic as Line 1a. Aggregate only if you made no adjustments.
Sum of column (d), (e), (g), (h) from all Form 8949 Part II, Box D pages.
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.
Box F: no 1099-B issued. Most crypto, real estate, collectibles, private transactions.
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.
Schedule K-1 long-term capital gain box.
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 7a and skip Schedule D entirely.
From the prior-year Capital Loss Carryover Worksheet. Long-term portion of the unused loss.
Sum of Lines 8a column (h) + 8b col (h) + 9 col (h) + 10 col (h) + 11 + 12 + 13 + 14.
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 is the headline number. If positive, it flows to Form 1040 Line 7a as capital gain. If negative, you have a net capital loss for the year and continue to Line 21.
If yes, go to Line 18. Otherwise skip to Line 22.
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 a maximum 28%: better than ordinary rates if you're in a 32–37% bracket, worse than the regular 20% LTCG rate.
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%.
If yes, compute tax with the Qualified Dividends and Capital Gain Tax Worksheet in the Form 1040 instructions. If no, the Schedule D Tax Worksheet in the Schedule D instructions is mandatory. The next section explains both.
If Line 16 is a loss, enter the smaller of:
That capped amount is your deduction against ordinary income this year. The remainder carries forward.
Even without a Schedule D gain, qualified dividends on Form 1040 Line 3a still get preferential rates through the Qualified Dividends and Capital Gain Tax Worksheet. Line 22 routes you there.
Use the Qualified Dividends and Capital Gain Tax Worksheet (in the Form 1040 instructions) unless Schedule D Line 18 or Line 19 has an amount; in that case the Schedule D Tax Worksheet (in the Schedule D instructions) is mandatory. This routing is the most-overlooked piece of Schedule D: the form itself only produces inputs, and the actual capital gains tax is computed on one of three worksheets.
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. It walks through:
Most retail investors with a stock and crypto portfolio use this worksheet. It lives in the Form 1040 instructions, not the Schedule D instructions.
Use when: Schedule D Line 18 (28% rate gain) or Line 19 (unrecaptured §1250 gain) is greater than zero.
The Schedule D Tax Worksheet layers four rate levels: ordinary, 25%, 28%, and 0/15/20%. Anyone selling rental real estate (depreciation recapture) or collectibles must use it. Find it in the Schedule D instructions; the bracket cutoffs inside the worksheet update each year ($49,450 / $545,500 for single filers in 2026), so always use the instructions revision that matches your tax year.
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 the overpayment and send a refund; you're expected to use the right worksheet yourself. Software like TurboTax, FreeTaxUSA, and IRS Free File Fillable Forms picks the right worksheet automatically. Paper filers must run it manually.
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:
Schedule D's net capital gain is part of net investment income. Form 8960 computes the NIIT and routes it to Schedule 2, which flows into Form 1040 Line 23.
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 has been frozen at $200K / $250K since the tax was enacted in 2013, so each year more filers cross into NIIT territory through nominal income growth alone.
The Capital Loss Carryover Worksheet in the Schedule D instructions computes how much of an unused capital loss moves to the next tax year. If your net capital loss exceeds $3,000 ($1,500 MFS) under IRC §1211, the unused portion carries forward indefinitely under IRC §1212, retaining its short-term or long-term character.
Worksheet inputs:
Worksheet output:
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, which is why many investors deliberately harvest losses in down years and gains in up years to manage carryforward inventory.
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 on his 2025 return.
Inputs from Form 8949:
| Form 8949 Box | Holding period | Net (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, a straight loss with no replacement purchase. So his short-term picture is:
Schedule D Part I (Short-Term):
| Line | Source | Amount |
|---|---|---|
| 1b | Box A totals | $0 |
| 2 | Box B totals | $0 |
| 3 | Box C totals | ($3,200) |
| 6 | Prior-year ST loss carryover | $0 |
| 7 | Net short-term capital loss | ($3,200) |
Schedule D Part II (Long-Term):
| Line | Source | Amount |
|---|---|---|
| 8b | Box D totals | $15,000 |
| 9 | Box E totals | $0 |
| 10 | Box F totals | $7,500 |
| 13 | Capital gain distributions (1099-DIV 2a) | $0 |
| 14 | Prior-year LT loss carryover | $0 |
| 15 | Net long-term capital gain | $22,500 |
Schedule D Part III (Summary):
| Line | Calculation | Amount |
|---|---|---|
| 16 | Line 7 + Line 15 = ($3,200) + $22,500 | $19,300 → Form 1040 Line 7a |
| 17 | Both 15 and 16 are gains? | Yes |
| 18 | 28% rate gain | $0 |
| 19 | Unrecaptured §1250 gain | $0 |
| 20 | Lines 18 and 19 both zero → Qualified Dividends and Capital Gain Tax Worksheet | Yes |
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 gain in the 15% LTCG bracket (the 20% bracket starts at $533,400 for single filers in 2025; $545,500 in 2026).
| Step | Math | Result |
|---|---|---|
| LTCG tax | $19,300 × 15% | $2,895 |
| NIIT base (Form 8960) | Lesser of $19,300 net investment income or $20,000 MAGI excess over $200,000 | $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.
Suppose instead that Sam's BTC and AAPL didn't generate any gain, but his NVDA and ETH losses were larger. Reworked:
| Schedule D Line | Amount |
|---|---|
| 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 7a: ($3,000), which reduces ordinary income.
Capital Loss Carryover Worksheet output:
The remaining $5,000 short-term loss carries to the next tax year and retains short-term character. There 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%, the $3,000 deduction saves him $960 this year. The $5,000 carryforward will save more later.
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.
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 it, 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.
Problem: Single filer with $250,000 MAGI and $40,000 long-term gain pays 15% LTCG and stops there, missing the 3.8% NIIT on 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.
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.
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, verify QSBS qualification before selling: 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"; the excluded portion comes off in column (g).
Schedule D breaks down when the bookkeeping underneath it is incomplete. Jupid connects your banks and brokerages (Schwab, Fidelity, Robinhood, Coinbase) so every trade, swap, and crypto disposal streams into one timeline, categorized by holding period and tax treatment at 95.9% accuracy. Crypto-to-crypto swaps get flagged as taxable events, and cost basis follows transfers between your own accounts. Last year's net loss carries forward automatically instead of living in a forgotten PDF. And because Jupid's AI accountant answers in WhatsApp or iMessage in real time, you can ask "what's my net long-term gain after carryovers?" in December, while there's still time to harvest losses.
Schedule D is short, but the consequences of getting it wrong are big. Three things decide whether the form takes 20 minutes or two weekends:
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.
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. 2025 figures are from Rev. Proc. 2024-40; 2026 figures are from Rev. Proc. 2025-32. For advice specific to your situation, consult a qualified tax professional.
Tax Years: 2025 (returns filed in 2026) and 2026 Last Updated: July 7, 2026

CEO & Co-Founder
Fintech CEO with 10+ years building accounting and financial technology products. Previously co-founded and scaled an AI-powered accounting platform to $30M revenue and 100K+ business users, achieving 30,000 customers per accountant through automation — recognized by CNBC as a top fintech company. Holds a Master's in Management Information Systems. At Jupid, he leads the development of AI-native bookkeeping, tax, and compliance tools designed for freelancers and small business owners.

Form 8949 reports stock, crypto, and capital asset sales. Complete 2026 guide with wash sales, basis reporting, short vs long-term, and worked examples.

Form 1040 is the main US individual tax return. Complete 2026 line-by-line guide covering filing status, dependents, income, deductions, credits, and refund.

Schedule 1 reports income outside W-2 wages and above-the-line adjustments. Complete 2026 line-by-line guide for self-employed, gig workers, and side hustlers.
New here? Enter this code at checkout and your first month is on us — full AI bookkeeping, tax filing, and a 24/7 accountant, $0 for 30 days.
New customers. First month free with code NEW2026, cancel anytime.
Join 1,000+ businesses using Jupid to save time and money. Start simplifying your finances today.
30-day money-back guarantee