How to minimize capital gains tax on trading profits and track trades the right way

Been actively trading individual stocks and ETFs this year, probably 200+ trades. My broker sent a consolidated 1099-B and I'm staring at it trying to figure out how to minimize capital gains tax on trading profits and track trades without making a mess of Form 8949. I already know about the long-term vs short-term distinction but I flip positions pretty fast so most of my gains are short-term. I tried exporting my broker's CSV into a spreadsheet to track everything but the wash sale adjustments broke my numbers completely. A few positions I sold at a loss and bought back within a week without realizing that triggered wash sale rules. Is there a systematic way to handle both the tax minimization side and the recordkeeping side before year-end?

37 comments

Form 8949 is your foundation here. Every trade goes on it: proceeds in column (d), basis in column (e), gain or loss in column (h). Short-term trades under a year go in Part I, long-term over a year in Part II. If your broker reports basis to the IRS (covered securities), check box A for short-term or box D for long-term and you can aggregate under Exception 1 and put totals straight on Schedule D line 1a or 8a instead of listing every trade on 8949. That alone saves a lot of manual work.

Elena G.

Author

Most of my trades are covered securities so Exception 1 helps a lot. Do I still need to list the wash sale ones separately even if I use the aggregate method?

Yes. Any trade needing an adjustment, including wash sales, can't go into the aggregated totals. Those have to be listed individually on Form 8949 with code W in column (f) and the disallowed loss as a positive number in column (g).

On the wash sale piece: the rule catches you if you buy substantially identical stock within 30 days before OR after the sale at a loss. The disallowed loss doesn't disappear, it gets added to the basis of the replacement shares. So you haven't lost it forever, it just defers. Your broker's 1099-B box 1g should show the disallowed amount for covered securities bought in the same account with the same CUSIP.

Elena G.

Author

That's the part that confused me. So my basis in the repurchased shares is higher because of this?

Yes, exactly. And the holding period of the original shares carries into the new ones too. So if you held the first lot for 10 months before selling at a loss, that 10 months gets tacked onto the replacement shares' holding period.

For minimizing the tax itself, the clearest lever you have before year-end is harvesting losses to offset gains. Short-term losses offset short-term gains first, then can offset long-term gains. You have to watch the wash sale window though. If you sell something at a loss to harvest it and buy it back within 30 days you've wasted the harvest. Some people swap into a similar but not identical ETF to stay invested while the 30 days runs out.

The not-identical part matters a lot. Two S&P 500 index ETFs from different issuers have been treated as not substantially identical by most practitioners but the IRS hasn't formally ruled on it. There's real uncertainty there.

Fair point. The IRS hasn't defined substantially identical for ETFs explicitly. It's one of those gray areas where being conservative and picking funds tracking different indexes is safer.

1099-B reconciliation is where people get tripped up most. I had Taxr at taxr.ai read my consolidated 1099-B alongside my broker's trade history export. It flagged about a dozen lots where the basis shown didn't match what I expected because of wash sale rollovers from December the year before that crossed into January. It then listed every adjustment I needed in column (g) of Form 8949 and which box to check. Saved me from reporting incorrect basis on covered securities, which under box A means you have to enter the 1099-B basis even if it's wrong and correct it with the column (g) adjustment.

Elena G.

Author

The December-to-January wash sale crossover is exactly what happened to me on two positions. I didn't realize the prior year's disallowed loss rolled the basis into this year's shares.

Specific identification of shares (SpecID) is worth setting up with your broker if you haven't. When you sell, you tell the broker which lot you're selling. That lets you sell the highest-basis lot first to minimize the gain, or pick a lot you've held more than a year to get long-term treatment instead of short-term. You have to elect SpecID before the sale settles though, you can't go back and change it after the fact.

Elena G.

Author

My broker supports it but I've just been letting it default to FIFO. I'll switch going forward.

Yes, do it before your next sale. FIFO often surfaces your oldest, lowest-basis lots first, which can mean bigger gains or more short-term treatment than you need.

Schedule D is where everything nets out. Part I totals net short-term, Part II nets long-term, then they combine on line 16. If you end up with a net capital loss, Publication 550 and the Schedule D instructions both have the Capital Loss Carryover Worksheet. The deductible loss against ordinary income in a single year has a limit, and anything over that carries forward. Worth running the worksheet before year-end if you're close to that limit so you know what actually helps you this year vs next.

Where does the actual deduction show up on the 1040?

Net loss flows from Schedule D line 16 to Form 1040 line 7a. The limit applies there. The IRS topic page on capital gains, Topic no. 409, lays it out if you want to read the rule directly.

Track the acquisition date carefully for every lot. The holding period starts the day AFTER the trade date you bought, and it ends on the trade date you sold, not settlement. For securities on an established market those are the dates that count. Getting the date wrong by even one day on a position you held close to a year can flip a gain from long-term to short-term.

Elena G.

Author

This is the part my spreadsheet kept getting wrong. I was using settlement dates from my confirmations instead of trade dates.

If your volume is high enough that you're thinking about trader tax status, that's a separate and complicated election. It changes what deductions you can take, though trading gains aren't subject to self-employment tax either way, and the IRS looks at frequency, holding period and intent. That's really a conversation for a CPA or enrolled agent before you file, not something to decide from a forum thread.

Yes, trader status has a lot of conditions and courts have been strict about it. For most active retail traders the standard investor rules apply.

Form 8949 instructions at irs.gov/instructions/i8949 are actually pretty readable. I uploaded mine to Taxr along with my 1099-B and my broker's gain-loss summary PDF. It went through each section and pointed out that my short-term crypto trades needed boxes G, H or I on the new 2025 form, not box C, and that my stock trades with basis reported went in box A. It also drafted a column (g) reconciliation worksheet I could check against my broker's numbers before entering anything.

Elena G.

Author

Wait, crypto has its own boxes now on Form 8949?

Yes, on the 2025 Form 8949 digital asset transactions go in boxes G through I for short-term and J through L for long-term. Stock and other securities still use A through F. The IRS digital assets page has more background if you want context on the reporting framework.

One recordkeeping habit that actually works: export your broker's trade history to CSV every month and store it somewhere that isn't just your brokerage's website. Brokers can and do change their platforms, merge or close accounts, and reconstructing your basis years later from memory is a nightmare. Keep the trade confirmations too.

No argument there. I had a broker get acquired and the online history only went back 18 months on the new platform.

Publication 550 chapter 4 covers the wash sale rules in detail if you want to read the actual rule rather than a summary. The IRS page on it also covers how the holding period transfers to the replacement shares, which matters if you're close to the one-year mark on a position.

Something people miss: wash sales also apply to purchases in an IRA or Roth IRA. If you sell at a loss in your taxable account and buy substantially identical stock in your IRA within the 30-day window, it's still a wash sale. But in that case the disallowed loss does NOT get added to the IRA's basis in the shares. It's just gone. So that's a worse outcome than a regular wash sale.

Elena G.

Author

That's genuinely alarming. I have a Roth IRA at the same brokerage and I haven't been thinking about cross-account wash sales at all.

Yes, the broker usually won't track that for you either because they don't have visibility across your taxable and retirement accounts. You have to track it yourself.

Publication 551 is the place to go if you need to reconstruct basis on old lots or inherited shares. Inherited property gets a step-up to fair market value at the date of death as the starting basis, which is long-term regardless of how long you actually held it. Gift basis works differently and depends on whether the gift's FMV was above or below the donor's basis when you received it.

If your wash sale situation is complicated enough that you're not sure your 1099-B is right, an enrolled agent who handles securities returns is worth the fee before you file. The IRS can match your 1099-B proceeds to what you report and if the numbers don't match it creates a notice. Getting it right the first time is cheaper than responding to a CP2000.

Yes, CP2000 notices are surprisingly common for people with a lot of trades. The IRS computer matching compares what you report against the broker's 1099-B, which includes basis for covered securities, so if your proceeds or reported basis look different from what the broker reported, it flags the return.

For tracking going forward: some brokers let you tag lots and add notes. Using that at the time of each trade for things like "loss harvest, watching 30-day window" saves a huge amount of reconstruction later. Your future self will thank you at tax time.

No kidding. A short note at the time of the trade is worth an hour of digging in December.

To put the tax minimization side together: maximize long-term treatment where you can with SpecID, harvest losses before year-end while watching the 30-day wash sale window, check whether any losses offset gains already realized this year on Schedule D, and carry forward what you can't use. The IRS Topic no. 409 page on capital gains walks through the netting order clearly.

Elena G.

Author

This is a solid checklist. My plan now is to fix my spreadsheet to use trade dates, switch to SpecID going forward, and get a CPA to review the wash sale adjustments from this year before I file.