⚠️ Educational only. TaxPlain does not provide tax, legal, or financial advice. Always consult a qualified tax professional about your specific situation.
What this form is
Schedule D (Capital Gains and Losses) is the form you attach to your Form 1040 to report profit or loss from selling investments and other capital assets — stocks, bonds, mutual funds, cryptocurrency, real estate, collectibles, and more. If you sold anything for more (or less) than you paid for it, the IRS wants to know.
The core calculation is simple: sale price minus purchase price (cost basis) equals your gain or loss. But the tax rate on that gain depends entirely on how long you held the asset — and that's where Schedule D gets interesting.
Who must file
✓ You need Schedule D if...
You sold stocks, ETFs, mutual funds, cryptocurrency, investment property, or other capital assets during the tax year — even if the sale resulted in a loss. Your brokerage sends you a Form 1099-B with the details, and the IRS receives a copy too.
↑ You may NOT need it if...
Your only investment sales were inside a tax-advantaged account like a 401(k) or Roth IRA — those trades don't trigger capital gains tax. You also skip Schedule D if your only capital gains came from a mutual fund reported on Form 1099-DIV and already handled elsewhere.
📅 Filing deadline
Schedule D is filed with your Form 1040, due April 15 each year. Brokerages must send your 1099-B by February 15 (or mid-February). Don't file until you have all your 1099-B forms — amended returns are a headache you don't need.
What each section covers
Breaking down Schedule D
Schedule D summarizes your gains and losses. The detailed transaction list lives on Form 8949 — Schedule D is the summary page.
Part I — Short-term gains and losses — Assets you held one year or less. Gains are taxed at your ordinary income rate (10%–37%). Losses offset short-term gains first.
Part II — Long-term gains and losses — Assets held more than one year. Gains qualify for preferential rates: 0%, 15%, or 20% depending on your income. This is why "buy and hold" has a tax advantage.
Line 7 / Line 15 — Net short-term and long-term — Totals from Form 8949 flow here. Short-term net gain or loss on Line 7; long-term on Line 15.
Line 16 — Net capital gain or loss — Combines short-term and long-term results. A net loss can offset up to $3,000 of ordinary income per year, with excess carried forward to future years.
Line 21 — Capital loss carryover — If your losses exceeded your gains by more than $3,000, the excess carries forward indefinitely to offset future gains or $3,000/year of ordinary income.
Form 8949 (companion form) — Lists every individual sale: description, date acquired, date sold, proceeds, cost basis, and gain or loss. Schedule D totals the 8949 numbers.
Short-term vs. long-term rates
How long you held an asset before selling determines your tax rate. This single distinction can mean thousands of dollars in tax difference on the same profit.
Short-term (held ≤ 1 year) — Taxed as ordinary income at your regular tax bracket (10%–37% for 2024). A $10,000 gain in the 24% bracket costs $2,400 in tax.
Long-term (held > 1 year) — Taxed at 0%, 15%, or 20%. For most middle-income filers, the rate is 15%. That same $10,000 gain costs $1,500 — a $900 savings just for holding longer.
0% long-term rate — Available in 2024 if your taxable income is under $47,025 (single) or $94,050 (married filing jointly). Strategic timing can eliminate capital gains tax entirely.
Net Investment Income Tax (NIIT) — An additional 3.8% surtax on investment income if your modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly).
Collectibles and real estate — Gains on collectibles (art, coins, precious metals) are taxed at a maximum 28% rate. Primary home sales have a $250,000/$500,000 exclusion if you meet ownership and use tests.
💡 Tax-loss harvesting
If you have losing investments, selling them before year-end can offset gains and reduce your tax bill. You can even harvest losses and immediately rebuy a similar (but not identical) investment — but watch the wash sale rule, which disallows the loss if you repurchase the same security within 30 days.
Common mistakes to avoid
⚠️ Wrong cost basis
If your brokerage reports an incorrect or missing cost basis on your 1099-B, you may overpay tax on the full sale amount. Always verify cost basis against your own records and correct it on Form 8949 if needed.
⚠️ Forgetting crypto sales
Every cryptocurrency sale — including swapping one coin for another — is a taxable event. The IRS added a digital assets question to Form 1040 specifically to catch unreported crypto gains.
⚠️ Wash sale violations
Buying back the same stock within 30 days of selling it at a loss disallows that loss deduction. The disallowed loss gets added to the cost basis of the replacement shares instead — easy to miss across multiple accounts.
⚠️ Not reporting all sales
Even if you sold at a loss, you must report it. Losses offset gains and can reduce your overall tax bill. Skipping a losing sale means leaving money on the table.
What to do right now
Wait for all your 1099-B forms from brokerages — they arrive by mid-February. Download your full transaction history and verify cost basis before filing. Tax software like TurboTax, FreeTaxUSA, or H&R Block imports 1099-B data automatically and builds Form 8949 and Schedule D for you. If you sold real estate, you'll need your closing statements (HUD-1) for purchase and sale prices. If you traded crypto across multiple platforms, consider crypto tax software like CoinTracker or Koinly. A tax professional is worth it if you have significant gains, complex cost basis issues, or carryover losses from prior years.
Questions to ask your tax professional
01Are my 1099-B cost basis numbers correct, or do I need to adjust them on Form 8949?
02Do I have any capital loss carryforwards from prior years I should be using this year?
03Should I sell any losing positions before year-end to offset my gains (tax-loss harvesting)?
04Did any of my trades trigger wash sale rules that disallow losses I thought I had?
05Do I qualify for the 0% long-term capital gains rate, and should I realize gains strategically?
06If I sold my primary home, do I qualify for the $250,000/$500,000 capital gains exclusion?
Frequently asked questions
What's the difference between Schedule D and Form 8949?
Form 8949 is the detail form — it lists every individual sale with dates, proceeds, and cost basis. Schedule D is the summary that totals your short-term and long-term net gains or losses from Form 8949. You fill out 8949 first, then transfer the totals to Schedule D, which flows to your 1040.
Do I pay tax on stocks if I didn't sell them?
No. Unrealized gains (stocks that went up but you still hold) are not taxable. You only owe capital gains tax when you sell. Dividends received while holding are taxed separately — reported on Form 1099-DIV, not Schedule D.
How much can capital losses reduce my taxes?
Capital losses first offset capital gains dollar for dollar. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income (wages, etc.) each year. Any remaining loss carries forward indefinitely to future tax years.
Is selling cryptocurrency a taxable event?
Yes. The IRS treats cryptocurrency as property, not currency. Selling crypto for dollars, swapping one coin for another, or using crypto to buy goods are all taxable events reported on Schedule D. Only buying and holding is not taxable until you sell.
What if my brokerage didn't report cost basis on my 1099-B?
This happens with older stocks, gifted shares, or assets transferred between brokerages. Box 3 on your 1099-B will be blank or marked with code "B" (basis not reported to IRS). You're still responsible for providing the correct cost basis on Form 8949 — dig up your original purchase confirmations or use your brokerage's historical records.