Tax Guides

Schedule D Guide: Reporting Capital Gains and Losses

By Editorial Team — reviewed for accuracy Updated
Last reviewed:

Data Notice: Figures, rates, and statistics cited in this article are based on the most recent available data at time of writing and may reflect projections or prior-year figures. Always verify current numbers with official sources before making financial, medical, or educational decisions.

Schedule D Guide: Reporting Capital Gains and Losses

Tax information is for educational purposes only and does not constitute tax advice. Consult a licensed tax professional for your specific situation.

Schedule D (Capital Gains and Losses) is the IRS form where you report the sale of investments — stocks, bonds, mutual funds, real estate, cryptocurrency, and other capital assets. Whether you sold one stock or executed hundreds of trades, Schedule D determines how much tax you owe on your investment profits and how much loss you can deduct. This guide explains the form section by section.


When You Need to File Schedule D

File Schedule D if during the tax year you:

  • Sold stocks, bonds, ETFs, or mutual fund shares
  • Sold real estate (other than your primary residence, which may qualify for an exclusion)
  • Sold cryptocurrency
  • Had capital gain distributions from a mutual fund or ETF (even if you didn’t sell)
  • Sold collectibles, precious metals, or other capital assets
  • Had a loss carryforward from a prior year

Short-Term vs. Long-Term Capital Gains

The holding period determines your tax rate:

Short-Term (Held 1 Year or Less)

Short-term gains are taxed at your ordinary income tax rate — the same rate that applies to wages and salary. For 2026, this means rates ranging from 10% to 37% depending on your income bracket.

Long-Term (Held More Than 1 Year)

Long-term gains receive preferential tax rates:

Filing Status0% Rate15% Rate20% Rate
SingleUp to ~$48,350~$48,351 – ~$533,400Over ~$533,400
Married Filing JointlyUp to ~$96,700~$96,701 – ~$600,050Over ~$600,050

Additionally, taxpayers with modified AGI above ~$200,000 (single) or ~$250,000 (MFJ) owe the 3.8% Net Investment Income Tax (NIIT) on the lesser of net investment income or the excess over the threshold.

How Schedule D Works

Part I: Short-Term Gains and Losses

Individual transactions are reported on Form 8949 (Sales and Other Dispositions of Capital Assets), which feeds summary totals into Schedule D, Part I.

For each transaction, Form 8949 requires:

  • Description of property sold
  • Date acquired
  • Date sold
  • Proceeds (sale price)
  • Cost basis (what you paid, including commissions)
  • Gain or loss (proceeds minus cost basis)

Most brokerages provide Form 1099-B with this information. If the cost basis was reported to the IRS, transactions go in Box A; if not, they go in Box B or C.

Part II: Long-Term Gains and Losses

Same structure as Part I, but for assets held longer than one year. Summary totals from Form 8949 (long-term sections) flow here.

Part III: Summary

Part III combines short-term and long-term results to calculate your total capital gain or loss. The net figure flows to Form 1040, Line 7.

Capital Loss Rules

If your capital losses exceed your capital gains in a given year:

  • You can deduct up to ~$3,000 of net capital losses against ordinary income ($1,500 if married filing separately)
  • Any excess loss carries forward indefinitely to future tax years
  • Short-term losses offset short-term gains first, then long-term gains (and vice versa)

This means a bad year in the market can provide tax benefits for years to come through loss carryforwards.

Special Situations

Wash Sale Rule

If you sell a security at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the loss is disallowed. The disallowed loss is added to the cost basis of the replacement security. This rule prevents harvesting losses while maintaining the same investment position.

Collectibles and Precious Metals

Long-term gains on collectibles (art, coins, stamps, precious metals) are taxed at a maximum rate of 28%, higher than the standard long-term rates.

Home Sale Exclusion

If you sold your primary residence, you may exclude up to ~$250,000 of gain (single) or ~$500,000 (married filing jointly) if you owned and lived in the home for at least two of the five years before the sale. Gains within the exclusion amount don’t need to be reported on Schedule D.

Tax-Loss Harvesting Strategy

Tax-loss harvesting involves intentionally selling investments at a loss to offset gains:

  1. Identify losing positions in your portfolio
  2. Sell to realize the loss
  3. Use the loss to offset realized gains
  4. Reinvest in a similar (but not substantially identical) security to maintain market exposure
  5. Net losses exceeding gains offset up to ~$3,000 of ordinary income

This strategy is most effective when implemented throughout the year rather than in a last-minute December rush.

For more on investment taxation, see our capital gains tax guide and crypto tax guide 2026.

Final Thoughts

Schedule D is unavoidable for anyone who sells investments. The key to minimizing your tax liability is holding investments for over one year when possible to qualify for lower long-term rates, harvesting losses strategically, and keeping accurate records of cost basis. Your brokerage handles most of the tracking, but understanding how the pieces fit together ensures you never pay more than you owe.