How to Report Stock Sales on Your Tax Return
How to Report Stock Sales on Your Tax Return
If you sold stocks, ETFs, mutual funds, or bonds during the tax year, you need to report those sales on your federal tax return — even if your broker already reported the transactions to the IRS. The process involves Form 8949 (Sales and Other Dispositions of Capital Assets) and Schedule D (Capital Gains and Losses), which flow to your Form 1040. Getting this right affects how much tax you owe, whether you can offset gains with losses, and whether you avoid an IRS notice for mismatched reporting.
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.
The Key Documents: 1099-B and Consolidated Statements
After the tax year ends, your brokerage sends you a Form 1099-B (Proceeds From Broker and Barter Exchange Transactions) — usually as part of a consolidated tax statement. This form reports:
- Box 1a: Description of the security sold
- Box 1b: Date acquired
- Box 1c: Date sold
- Box 1d: Proceeds (sale price minus commissions)
- Box 1e: Cost or other basis (what you paid, including commissions)
- Box 1f: Gain or loss (if reported)
- Box 2: Whether the gain/loss is short-term or long-term
- Box 12: Whether the basis was reported to the IRS (“covered” vs. “non-covered”)
Covered vs. Non-Covered Securities
This distinction is critical:
- Covered securities — Your broker reported the cost basis to the IRS. Stocks purchased after January 1, 2011, mutual funds and ETFs purchased after January 1, 2012, and other securities with later effective dates are generally covered. The IRS already has both your proceeds and your basis.
- Non-covered securities — Your broker reported the proceeds to the IRS but not the cost basis. You are responsible for determining and reporting the correct basis yourself. This typically applies to securities purchased before the covered dates.
Form 8949: Reporting Each Transaction
Form 8949 is where you list individual capital asset sales. It has two parts:
- Part I: Short-term transactions (assets held one year or less)
- Part II: Long-term transactions (assets held more than one year)
Each part has three checkbox categories based on 1099-B reporting:
| Box | Situation | What to Do |
|---|---|---|
| (A) | Short-term, basis reported to IRS (covered) | Report if your figures match the 1099-B, or use this box to make adjustments |
| (B) | Short-term, basis NOT reported to IRS (non-covered) | You must supply the correct basis |
| (C) | Short-term, no 1099-B received | Report the transaction and your basis |
| (D) | Long-term, basis reported to IRS (covered) | Same as (A) for long-term |
| (E) | Long-term, basis NOT reported to IRS (non-covered) | Same as (B) for long-term |
| (F) | Long-term, no 1099-B received | Same as (C) for long-term |
Columns on Form 8949
For each transaction, you report:
- Description — “100 sh AAPL” or “XYZ Corp”
- Date acquired — The purchase date (or “VARIOUS” for lots acquired on different dates)
- Date sold — The sale date
- Proceeds — What you received
- Cost basis — What you paid (including commissions)
- Adjustment code and amount — Used for wash sales, basis corrections, and other adjustments
- Gain or loss — Proceeds minus basis, adjusted for any codes
When You Can Skip Form 8949
If all of your transactions are covered securities (basis reported to the IRS) and you have no adjustments to make, you can skip Form 8949 and enter the totals directly on Schedule D, Lines 1a (short-term) or 8a (long-term). Most tax software handles this automatically.
Schedule D: The Summary
Schedule D summarizes your capital gains and losses from all sources:
- Part I (Lines 1-7): Short-term capital gains and losses
- Part II (Lines 8-15): Long-term capital gains and losses
- Part III (Lines 16-22): Summary — combines short-term and long-term to determine net capital gain or loss
The net result flows to your Form 1040, Line 7.
Cost Basis Methods: How They Affect Your Tax
When you sell shares of a security you purchased at different times and prices, you need to determine which shares you sold. The method you choose directly affects your gain or loss.
FIFO (First In, First Out)
The default method. The shares you purchased first are treated as sold first.
- When it helps: When your earliest purchases were at the highest prices (you report larger gains from newer, cheaper lots)
- When it hurts: When your earliest purchases were at the lowest prices (you report larger gains because those shares had the most appreciation)
Specific Identification
You designate exactly which shares (lots) you are selling at the time of the sale.
- Maximum control — You can choose the highest-cost lots to minimize gains or the lowest-cost lots to maximize losses
- Requires identification at the time of sale — You must instruct your broker which lots to sell before or at the time of the trade
- Best for tax optimization — This is what tax-loss harvesting strategies depend on
Average Cost (Mutual Funds and ETFs Only)
Available only for mutual fund shares and, in some cases, ETFs.
- Your basis = total amount invested ÷ total shares owned
- Simple to calculate but offers no ability to selectively harvest losses
Choosing the Right Method
| Method | Best For | Tax Optimization |
|---|---|---|
| FIFO | Simplicity, default | Low — no control over which lots are sold |
| Specific ID | Active investors, tax planning | High — full control |
| Average cost | Mutual fund investors who want simplicity | Medium — smooths out basis but no selectivity |
Important: Once you use the average cost method for a fund, you can change to specific identification going forward, but you cannot retroactively change the basis of shares already sold.
Short-Term vs. Long-Term: Tax Rate Differences
The holding period determines which tax rate applies to your gain:
| Holding Period | Tax Rate |
|---|---|
| Short-term (≤1 year) | Your ordinary income tax bracket (up to ~37%) |
| Long-term (>1 year) | ~0%, ~15%, or ~20% depending on income |
The difference is substantial. A taxpayer in the 32% bracket who sells stock for a $10,000 gain would owe:
- Short-term: ~$3,200 in tax
- Long-term: ~$1,500 in tax (at the 15% rate)
This makes holding period management one of the most effective legal tax reduction strategies. See our capital gains tax strategies guide for more approaches.
Handling Common Situations
Reinvested Dividends
If you reinvested dividends to buy additional shares, each reinvestment is a separate purchase with its own cost basis and acquisition date. When you sell, you must account for these additional lots. Your broker’s 1099-B should reflect this for covered shares, but double-check — reinvested dividend shares are a common source of basis errors.
Stock Splits and Mergers
- Stock splits: Your total basis does not change, but it is divided among more shares (e.g., a 2-for-1 split cuts your per-share basis in half)
- Mergers and acquisitions: If you received cash and/or stock in a merger, the tax treatment depends on whether it was a taxable or tax-free reorganization. Your broker should report the correct basis, but verify.
Inherited Stock
Stock you inherited receives a stepped-up basis to the fair market value on the date of the decedent’s death. This means if the decedent bought the stock for $10 and it was worth $100 at death, your basis is $100. If you sell for $105, your gain is only $5. The holding period for inherited stock is always treated as long-term, regardless of how long you held it. See capital gains strategies for more on the step-up in basis.
Gifted Stock
Your basis in gifted stock depends on whether you sell at a gain or loss:
- Gain: Your basis is the donor’s original basis (carryover basis)
- Loss: Your basis is the lesser of the donor’s basis or the fair market value on the date of the gift
- If the FMV on the gift date was lower than the donor’s basis and you sell between those two amounts, there is no gain or loss
Wash Sales
If you sell a security at a loss and purchase the same or substantially identical security within 30 days before or after the sale, the loss is disallowed under the wash sale rule. The disallowed loss is added to the basis of the replacement shares. Your broker reports wash sales on the 1099-B with an adjustment code “W” on Form 8949.
What If Your 1099-B Is Wrong?
1099-B errors happen, particularly with:
- Non-covered securities where the broker estimated the basis
- Corporate actions (mergers, spinoffs, return-of-capital distributions) where the basis was not adjusted correctly
- Transfers between brokers where the basis was not carried over
How to Handle
- Contact your broker to request a corrected 1099-B
- If a corrected form is not available in time, report the correct basis on Form 8949 with an adjustment in column (g) and the appropriate code in column (f)
- Keep your own records (purchase confirmations, account statements) as backup
The $3,000 Capital Loss Deduction
If your capital losses exceed your capital gains for the year, you can deduct up to $3,000 of the net loss ($1,500 if married filing separately) against your ordinary income. Any excess loss carries forward to future years indefinitely.
Example: You had $5,000 in capital gains and $12,000 in capital losses. Net loss = $7,000. You deduct $3,000 this year and carry forward $4,000 to next year.
This is a valuable tool for reducing your tax bill — see our tax-loss harvesting guide for strategies to maximize it.
Reporting Tips to Avoid IRS Notices
- Match your 1099-B: The IRS matches 1099-B data to your return. If you don’t report a sale, you will get a CP2000 notice
- Don’t skip Form 8949 when adjustments are needed: If your basis differs from what the broker reported, you must show the adjustment — otherwise the IRS will calculate your tax based on the broker’s number
- Report all sales, even losses: The IRS expects to see every transaction from your 1099-B
- Use consistent methods: If you use specific identification, make sure your broker records match your Form 8949
- Verify wash sale reporting: Your broker may not catch wash sales across different accounts. You are responsible for the overall wash sale calculation across all accounts. For comprehensive deduction strategies, review the full deductions list
Frequently Asked Questions
Do I need to report stock sales if I lost money?
Yes. All stock sales must be reported regardless of whether you had a gain or loss. Losses are actually beneficial — they offset gains and up to $3,000 can offset ordinary income each year.
My broker reported my cost basis wrong. What do I do?
Report the correct basis on Form 8949, column (e), and enter the adjustment amount in column (g) with code “B” (basis reported incorrectly). The IRS will see that you are correcting the broker’s figure. Keep documentation of the correct basis.
I sold stock in a company that went bankrupt. How do I report a total loss?
Report the sale on Form 8949 with $0 proceeds (or whatever you received in the liquidation). If the stock became truly worthless, you can claim the loss in the year the stock became worthless. Worthless securities are treated as sold on the last day of the tax year for capital loss purposes.
How do I report cryptocurrency sales?
Cryptocurrency sales follow the same Form 8949 and Schedule D process as stock sales. The IRS treats crypto as property, not currency. See our cryptocurrency tax guide for crypto-specific reporting details including mining, staking, and DeFi transactions.
Can I offset my stock gains with losses from other investments?
Yes. Capital gains and losses from all sources — stocks, bonds, crypto, real estate (non-personal use), collectibles — are combined on Schedule D. Long-term and short-term gains/losses are first netted within their categories, then cross-netted if needed. Review all options in our capital gains tax strategies guide.
Key Takeaways
- Every stock sale must be reported on Form 8949 and summarized on Schedule D
- The cost basis method you use (FIFO, specific ID, average cost) directly affects your tax bill
- Long-term gains (held >1 year) are taxed at preferential rates (~0/15/20%) vs. ordinary rates for short-term
- Covered securities have basis reported to the IRS; non-covered securities require you to supply the basis
- Net capital losses up to $3,000/year can offset ordinary income, with unlimited carryforward
- Always verify your 1099-B against your own records, especially for non-covered securities and corporate actions
Tax information is for educational purposes only and does not constitute tax advice. Consult a licensed tax professional for guidance specific to your situation.