IRS Schedule D is the form where you report capital gains and losses from selling investments, real estate, and other capital assets on your federal return. It sorts your transactions into two pools, short-term and long-term, because that split decides whether your profit is taxed at ordinary income rates (up to 37%) or at the lower long-term capital gains rates of 0%, 15%, or 20%. The form also nets your gains against your losses and tells you how much loss, if any, you can deduct against your regular income this year.
When You Need to File Schedule D
You need Schedule D any time you sell or exchange a capital asset. That covers nearly everything you own for personal use or investment: stocks, bonds, mutual fund shares, real estate, collectibles, and digital assets like cryptocurrency.1Office of the Law Revision Counsel. 26 USC 1221 – Capital Asset Defined It also handles involuntary conversions of capital assets, nonbusiness bad debts, and capital gain distributions from mutual funds or REITs that aren’t reported directly on Form 1040.2Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
File it even when you lost money. The IRS wants to see those losses reported before letting you use them to reduce your tax bill. And if you received a Form 1099-B from a brokerage or a Form 1099-S from a real estate closing, copies went to the IRS, so your return needs to match.
There is one common exception. If your only capital gains for the year are distributions from mutual funds or REITs (reported on Form 1099-DIV), and you have no losses or other transactions to report, you can often skip Schedule D and put those distributions straight on Form 1040.3Internal Revenue Service. Instructions for Schedule D (Form 1040)
Short-Term vs. Long-Term Holding Period
The single biggest factor in how much tax you owe on an investment gain is how long you held the asset. Federal law draws a bright line: assets held for one year or less produce short-term gains, and assets held for more than one year produce long-term gains.4Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses The statute says “more than one year,” not 365 days, so in a leap year selling on exactly the 366th day could still be short-term if a full calendar year hasn’t passed.
Short-term gains get no special treatment. They’re taxed at the same graduated rates as your wages, which for 2026 range from 10% to 37% depending on taxable income.5Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Long-term gains get the preferential 0%, 15%, or 20% rates. Schedule D is physically split into two parts to keep these pools separate, and that separation is the whole point of the form.
2026 Long-Term Capital Gains Rates
For the 2026 tax year, long-term rates break out by filing status at these income thresholds:6Internal Revenue Service. Topic No. 409, Capital Gains and Losses
- 0% rate: taxable income up to $49,450 single, $98,900 married filing jointly, $66,200 head of household.
- 15% rate: $49,451 to $545,500 single, $98,901 to $613,700 married filing jointly, $66,201 to $579,600 head of household.
- 20% rate: taxable income above those 15%-rate ceilings.
These thresholds adjust for inflation each year. The 0% bracket is especially useful for retirees and lower-income investors who can sometimes sell appreciated assets and owe nothing in federal capital gains tax. If you’re near a bracket boundary, the timing of a sale can make a real difference.
Qualified dividends, reported on Form 1099-DIV rather than as a sale, are taxed at these same preferential rates. When you use Schedule D, the tax calculation worksheet at the end combines your long-term gains and qualified dividends and applies the correct rate to each dollar.
Special Rates and the Net Investment Income Tax
Not all long-term gains qualify for the standard 0/15/20% rates. Two categories get hit harder:
- Collectibles. Long-term gains from selling art, coins, stamps, antiques, gems, and most precious metals are taxed at a maximum rate of 28%.6Internal Revenue Service. Topic No. 409, Capital Gains and Losses
- Depreciation recapture on real estate. If you claimed depreciation deductions on rental property and later sell at a gain, the portion of your profit attributable to that depreciation (unrecaptured Section 1250 gain) is taxed at a maximum rate of 25%.7Office of the Law Revision Counsel. 26 US Code 1 – Tax Imposed
On top of whatever capital gains rate applies, higher-income taxpayers face an additional 3.8% Net Investment Income Tax. It kicks in when your modified adjusted gross income exceeds $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately.8Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax The 3.8% applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. A high-income single filer selling long-term investments could end up at an effective 23.8% (20% + 3.8%).
How to Complete Schedule D
Before touching Schedule D, you fill out Form 8949. Every individual sale goes there, one transaction per row: asset description, date acquired, date sold, gross proceeds, and cost basis.9Internal Revenue Service. 2025 Instructions for Form 8949 Most of this comes straight off the Form 1099-B your brokerage sends you.10Internal Revenue Service. Instructions for Form 1099-B
At the top of each section of Form 8949, you check a box indicating whether your broker reported the cost basis to the IRS. This matters. When the IRS already has your basis on file, any discrepancy between your return and the 1099-B will generate an automatic notice. If the basis was reported correctly, you check Box A (short-term) or Box D (long-term) and move on. If it wasn’t reported, or you need to adjust it, you use different boxes and may need adjustment codes.9Internal Revenue Service. 2025 Instructions for Form 8949
Once Form 8949 is done, the totals flow to Schedule D. Short-term totals go to Part I, long-term totals go to Part II, and the form nets everything at the bottom.9Internal Revenue Service. 2025 Instructions for Form 8949 Cost basis is the number that drives accuracy. For stocks, it’s usually your purchase price plus commissions. For real estate, it’s the purchase price plus improvements, minus depreciation claimed. Getting basis wrong is where underpayment penalties come from.
Reporting Digital Asset Transactions
Cryptocurrency, NFTs, and other digital assets follow the same short-term and long-term rules as any other capital asset. If you sold, exchanged, or otherwise disposed of one, you report it on Form 8949 and Schedule D just like a stock sale.11Internal Revenue Service. Digital Assets Every federal tax return now includes a yes-or-no question asking whether you received, sold, or exchanged digital assets during the year. Answering it incorrectly is a red flag the IRS specifically looks for.
Starting in 2026, brokers that provide custodial services for digital assets must report sales on the new Form 1099-DA. For digital assets acquired after 2025 in a custodial account (called “covered securities”), brokers must also report cost basis. For assets acquired before 2026, transferred in from another source, or held outside custodial accounts, basis reporting stays optional.12Internal Revenue Service. Instructions for Form 1099-DA (2026) If your broker doesn’t report basis, you’re still responsible for calculating and reporting it. Keep records of every purchase date, price, and transaction fee.
Cost Basis for Inherited and Gifted Property
Basis rules change when you didn’t buy the asset yourself. Getting this wrong can cost thousands in unnecessary tax, and it’s one of the most common mistakes on Schedule D.
Inherited Property
When you inherit assets, the cost basis resets to the fair market value on the date of death.13Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent This “stepped-up basis” can wipe out decades of unrealized gains. If your parent bought stock for $10,000 thirty years ago and it was worth $200,000 when they died, your basis is $200,000. Sell for $205,000 and you owe tax on only $5,000 of gain. Inherited assets also automatically qualify for long-term treatment regardless of when the original owner bought them.
If the estate filed an estate tax return, the executor may have elected an alternate valuation date six months after death, which would change the basis to the value on that later date. Check with the executor before assuming the date-of-death value applies.
Gifted Property
Gifts from living donors work differently. You generally take over the donor’s original cost basis, sometimes called a “carryover basis.”14Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If your uncle bought stock for $5,000 and gifted it to you when it was worth $50,000, your basis is still $5,000. Sell for $55,000 and you owe tax on $50,000 of gain.
There’s a wrinkle for gifts where the fair market value at the time of the gift was less than the donor’s basis. In that case, you use the lower fair market value as your basis when calculating a loss. This dual-basis rule prevents donors from shifting unrealized losses to recipients in higher brackets.
The Home Sale Exclusion
Selling your primary residence triggers Schedule D, but most homeowners won’t owe tax thanks to a generous exclusion. You can exclude up to $250,000 in gain ($500,000 for married couples filing jointly) if you owned and lived in the home for at least two of the five years before the sale.15Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For the $500,000 joint exclusion, at least one spouse must meet the ownership requirement, and both spouses must meet the use requirement.
If your gain falls within the exclusion amount and you received a Form 1099-S for the sale, you still need to report the transaction. A surviving spouse who sells within two years of their partner’s death can still claim the $500,000 exclusion even though they’re now filing as single.15Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Many widows and widowers miss this, and it can save tens of thousands in tax.
The Wash Sale Rule
Selling a losing investment to claim the loss on Schedule D is a legitimate strategy, but the IRS won’t let you have it both ways. If you sell a stock or security at a loss and buy back the same or a substantially identical investment within 30 days before or after the sale, the loss is disallowed.16Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The 61-day window catches people more often than you’d think, especially with automatic dividend reinvestment plans that buy shares on a schedule you may not be tracking.
The loss isn’t gone forever. It gets added to the cost basis of the replacement shares, so you’ll recognize it later when you sell those. The holding period of the original shares also tacks onto the replacement shares.16Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities One scenario where this goes sideways: if you buy the replacement shares in an IRA or Roth IRA, the disallowed loss can’t be added to the IRA’s basis, which effectively makes the loss permanent.
Deducting Capital Losses and Carrying Them Forward
After you list your transactions, Schedule D nets your results. Short-term losses offset short-term gains first. Long-term losses offset long-term gains first. If one category still has losses left over, the excess offsets gains in the other category.
If you end up with an overall net capital loss for the year, you can deduct up to $3,000 of it against your other income (wages, interest, retirement distributions). Married taxpayers filing separately are limited to $1,500 each.17Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses The $3,000 cap is written into the statute and has never been adjusted for inflation, so it’s been the same since 1978.
Losses beyond $3,000 aren’t wasted. They carry forward to future tax years indefinitely, keeping their character as short-term or long-term.18Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers If you took a $15,000 net loss this year, you’d deduct $3,000 against income now and carry $12,000 forward. Next year the carryover enters the netting process as if it were a new loss, and again you can deduct up to $3,000 of any remaining excess. Keep careful records. The IRS doesn’t track your carryover balance for you, and if you forget to claim it, nobody will remind you.
Filing Schedule D With Your Return
Schedule D attaches to your Form 1040 (or 1040-SR or 1040-NR) when you file your annual return.19Internal Revenue Service. Schedule D (Form 1040) – Capital Gains and Losses If you e-file, your tax software handles the attachment and transmits everything together. The IRS generally processes electronically filed returns within 21 days.20Internal Revenue Service. Processing Status for Tax Forms
If your return involves many transactions and a capital loss carryover from the prior year, double-check that the carryover amount on this year’s Schedule D matches what you reported last year. The IRS cross-references prior returns, and a mismatch will slow your refund while they sort it out.