Where capital gains go on your tax return
Capital gains are reported on Schedule D (Form 1040), which you attach to your main tax return. The IRS uses Schedule D to separate short-term gains (assets held one year or less) from long-term gains (assets held more than one year), because they are taxed at different rates. You then transfer your total gain or loss to line 7 of Form 1040, where it combines with your other income.
If you sold only one or two investments and had a small gain, you might be able to use the simpler Form 8949 (Sales of Capital Assets) instead, but most people end up on Schedule D anyway because the IRS requires you to list every sale. Your brokerage will send you a Form 1099-B in January showing what you sold and for how much — keep this document when you file, because the IRS gets a copy too.
The actual tax you owe depends on your total income for the year, not just the gain itself. A $5,000 gain might be taxed at 0%, 15%, or 20% depending on whether your other income pushes you into a higher bracket. This is why capital gains tax is not a fixed percentage — it is tied to your tax bracket.
Key Takeaways
- Capital gains are reported on Schedule D, which lists each sale separately and distinguishes between short-term gains (taxed as ordinary income) and long-term gains (taxed at preferential rates).
- Your brokerage sends Form 1099-B showing the sale price and original cost; the IRS receives the same form, so your numbers must match or you will receive a notice.
- The tax rate on long-term gains is 0%, 15%, or 20% depending on your total taxable income for the year, not the gain amount alone.
- If you sold at a loss, you can deduct up to $3,000 of losses against other income in the same year, and carry unused losses forward to future years indefinitely.
- Paying estimated tax quarterly may be required if your capital gains are large enough to create a tax bill of $1,000 or more when you file.
Short-term versus long-term gains on Schedule D
Schedule D has two sections: Part I for short-term gains and Part II for long-term gains. A short-term gain happens when you sell an asset you owned for one year or less. A long-term gain happens when you sell an asset you owned for more than one year. The holding period starts the day after you buy and ends the day you sell.
Short-term gains are taxed as ordinary income, meaning they are added to your wages, interest, and other earnings and taxed at your regular tax bracket — potentially as high as 37%. Long-term gains receive preferential rates: 0% if your income is below a certain threshold, 15% for middle-income filers, and 20% for high earners. For 2024, the 15% rate applies to single filers with taxable income between roughly $47,000 and $518,000, but these thresholds change every year.
On Schedule D, you list each sale in the year in the appropriate section. Your brokerage Form 1099-B will show whether the IRS considers each sale short-term or long-term based on your holding period. If you disagree with that classification, you can correct it on Schedule D, but you need to document your purchase date.
Matching your brokerage records to your tax return
Your brokerage sends Form 1099-B to both you and the IRS. The form shows the sale date, the number of shares, the sale price, and the cost basis (what you paid for it). The IRS computer system matches the 1099-B against your Schedule D to make sure the numbers line up. If they do not match, you will receive a notice months or even years later asking you to explain the difference.
The most common mismatch is cost basis. Your 1099-B shows what the brokerage has on record, but if you bought shares over time at different prices, or if you inherited shares, or if you bought before the brokerage started tracking basis, the form may be wrong. You are responsible for calculating the correct basis yourself and reporting it on Schedule D, even if it differs from the 1099-B. Keep your purchase confirmations, statements, and any inheritance documents so you can prove your number if the IRS asks.
If you sold mutual fund shares or stocks through a dividend reinvestment plan, the basis calculation gets more complex because each reinvested dividend bought more shares at a different price. Many tax software programs can import your 1099-B directly, but you should review it for accuracy before filing. If the brokerage basis is clearly wrong, contact them and ask for a corrected form before you file.
Losses and how to use them
If you sold an investment for less than you paid for it, you have a capital loss. Losses offset gains dollar-for-dollar, so if you had $8,000 in gains and $3,000 in losses, your net capital gain is $5,000. You report both on Schedule D, and the net amount goes to your Form 1040.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your wages, interest, and other ordinary income. Any loss beyond $3,000 carries forward to the next year, where you can use it again. This carryforward continues indefinitely — you never lose the loss, but you can only use $3,000 per year against ordinary income. Once you have used all your losses, they are gone.
One trap to watch: the wash sale rule. If you sell a stock at a loss and buy the same or a substantially identical stock within 30 days before or after the sale, the IRS disallows the loss. The loss is added to the cost basis of the new shares instead. This rule catches people who sell a losing position in December to claim the loss on that year's tax return, then when ready buy it back. You must wait at least 31 days to repurchase, or use a different investment in the meantime.
Estimated tax payments for large capital gains
If you expect to owe $1,000 or more in tax when you file, you may be required to pay estimated tax quarterly during the year rather than waiting until April. This applies whether the tax comes from capital gains, self-employment income, or other sources. Estimated tax is due on April 15, June 15, September 15, and January 15 of the following year.
You calculate estimated tax by predicting your total income and tax for the year, then dividing by four. If you have a large capital gain in one quarter but not others, you can pay more in that quarter and less in others. You pay using Form 1040-ES and a payment method like the IRS Direct Pay system, a credit card, or an electronic federal tax payment system (EFTPS).
If you do not pay estimated tax when required and owe a large amount at filing time, the IRS charges a penalty and interest on the unpaid amount. The penalty is small — roughly 3% to 4% annually — but it adds up if you wait until April. If you are unsure whether you need to pay estimated tax, a tax professional can calculate it based on your expected income.
How to file Schedule D step by step
Start by gathering your Form 1099-B from your brokerage and any other documents showing sales you made. Open Schedule D and fill in your name and Social Security number at the top. In Part I (short-term gains and losses), list each sale you made of assets held one year or less. For each sale, enter the date acquired, date sold, sales price, cost basis, and gain or loss.
In Part II, repeat the process for assets held more than one year. At the bottom of each part, add up all the gains and losses. Then on line 15, combine your short-term and long-term totals to get your net capital gain or loss. If the result is a gain, it goes to line 7 of Form 1040. If it is a loss, you deduct up to $3,000 against other income on line 7, and any excess carries to the next year.
Most tax software walks you through Schedule D by asking questions about each sale. You can import your 1099-B directly into many programs, which populates the sales automatically. Review the imported data for accuracy — especially cost basis — before submitting. If you are filing by hand, use the IRS instructions for Schedule D, which explain each line and include examples.
State and local capital gains taxes
Federal capital gains tax is only part of the bill. Some states tax capital gains as ordinary income, some tax them at a lower rate, and some do not tax them at all. Washington State, for example, taxes long-term capital gains at a flat 7% on gains over $250,000 per year. New York taxes capital gains at the same rate as ordinary income, which can be as high as 10.9%. Other states like Florida, Texas, and Wyoming have no capital gains tax at all.
You report state capital gains on your state tax return, usually on a schedule similar to Schedule D. The rules for holding period, cost basis, and loss deductions are often the same as federal rules, but not always — check your state's tax department website or a state-specific tax guide. If you moved during the year, you may owe tax to multiple states depending on when you sold and where you lived.
Frequently Asked Questions
Do I have to report capital gains if I did not receive a 1099-B?
Yes. You are required to report all capital gains, whether or not you receive a form. If your brokerage did not send a 1099-B, you still list the sale on Schedule D. However, the IRS may not know about the sale, so there is a higher risk of an audit if your numbers do not match what the brokerage reported. Contact your brokerage and ask for the form, or reconstruct the sale details from your statements.
What if I inherited stock and sold it right away — is that a capital gain?
No, or very little. When you inherit an asset, your cost basis is "stepped up" to the fair market value on the date of death. If you sell the inherited stock shortly after, your gain is the difference between the sale price and the value on the death date, not the original purchase price. This step-up can eliminate most or all of the gain. Report the sale on Schedule D and use the stepped-up basis as your cost.
Can I deduct investment losses from my regular job income?
Only up to $3,000 per year. If you had $10,000 in capital losses and no gains, you can deduct $3,000 against your wages and other income in that year. The remaining $7,000 carries forward to next year, where you can deduct another $3,000, and so on. You cannot deduct all $10,000 in one year, but you never lose it.
What happens if I sell cryptocurrency or digital assets?
Cryptocurrency is treated as property by the IRS, so sales are reported on Schedule D just like stock sales. You report the date acquired, date sold, sale price in dollars, cost basis in dollars, and gain or loss. If you received cryptocurrency as payment or a gift, you need to determine your basis differently. Keep detailed records of every transaction, including the exchange rate on the date you acquired it, because the IRS expects precise documentation.
Do I need to file Schedule D if I only had losses?
You should file it if you want to claim the loss deduction. If you had $5,000 in losses and no gains, you can deduct $3,000 against other income and carry $2,000 forward. To do this, you must file Schedule D showing the loss, even though you may not owe any tax. If you do not file Schedule D, the IRS will not know about the loss and you cannot use it.