Can you deduct brokerage fees from capital gains?

So I've been going through my 1099-B for the year and noticed my broker lists commissions separately from the proceeds on a few older trades. I always assumed you could deduct brokerage fees from capital gains somehow, but now I'm not sure if that means adding them to cost basis or taking them as a separate deduction, or what. I tried reading the Schedule D instructions and they kind of just point you back to Form 8949 without really spelling it out. My trades are a mix of stocks I held over a year and a few I flipped in under six months. Does the treatment differ depending on whether it's a purchase commission or a sale commission? And does any of this change for covered vs. uncovered securities where the broker may have already factored it in?

33 comments

Form 8949, column (e) is where this lives. The commission you paid when you bought shares gets added to your cost basis in column (e). The commission you paid when you sold doesn't come out of column (d), which always shows the proceeds exactly as on the 1099-B; if the 1099-B doesn't already reflect it, you enter it as a negative adjustment in column (g) with code E. Either way it reduces the gain — it's just which column it flows through that changes.

Monica T.

Author

So for a sale commission I'd leave the number in column (d) as the 1099-B shows it and put the commission as a negative adjustment in column (g) with code E? That's cleaner than I thought.

Exactly. Proceeds as reported on the 1099-B, the sale commission as a negative column (g) adjustment, basis including the purchase commission. The math comes out the same but putting them in the right columns keeps it consistent with what the 1099-B already shows.

Publication 550 covers this under "Basis of Investment Property." Commissions and load charges you pay to acquire stock are part of your adjusted basis. Fees paid on the sale side reduce your amount realized. Neither is a separate above-the-line or itemized deduction anymore — the Tax Cuts and Jobs Act eliminated miscellaneous itemized deductions subject to the 2% floor, which is where investment expenses used to live.

Monica T.

Author

That explains why I couldn't find a Schedule A line for it. So the only route now is through basis or proceeds, full stop.

Correct. There's no other federal deduction path for those fees on a personal investment account right now.

Covered securities are where it gets a little tricky. If your broker already built the purchase commission into the cost basis they reported to the IRS on the 1099-B, adding it again in column (e) would double-count it. Check the "cost or other basis" box on the 1099-B detail and your original trade confirmation to see whether the reported basis is per-share price only or already includes the commission.

Monica T.

Author

My confirmations show the commission as a line item on top of the principal. So I'd need to check whether the 1099-B basis column already rolled that in.

1099-B reconciliation was making my head spin last year because I had a mix of covered and uncovered lots from the same ticker. I uploaded everything to taxr.ai and it compared each lot's reported basis against my trade confirmations, flagged the ones where the commission wasn't reflected, and drafted the column (g) adjustments I'd need on Form 8949. I still reviewed every line myself before filing, but it saved me a few hours of spreadsheet work.

The covered vs. uncovered split in the same ticker is exactly what gets messy. Different boxes on Form 8949 — Part I box A or B for short-term, Part II box D or E for long-term — and you can't combine them on one section.

Worth noting: if the proceeds your broker reports on the 1099-B are already net of their commission, don't subtract it again in column (d). Some brokers net it out before reporting; others show gross proceeds and list the commission separately. The 1099-B instructions and your year-end account statement usually clarify which method your broker used.

Monica T.

Author

Mine shows gross proceeds and then a separate commission line on the confirmation. So the 1099-B number is pre-fee and I do need to adjust.

Then you'd enter the gross proceeds from the 1099-B in column (d) as required, and reduce your net gain by factoring the commission into your basis or showing it as a negative adjustment in column (g) with the right code.

Does any of this apply to ETF expense ratios? Asking because I see people conflate the brokerage commission with the fund's internal expense ratio and they're totally different things.

ETF expense ratios are deducted inside the fund — they reduce NAV — so they're already baked into your share price when you sell. You don't get a separate deduction and you don't add them to basis. Only the trading commissions you paid directly are adjustments to your proceeds or basis.

That tracks. The NAV already reflects the drag, so trying to add it to basis would be double dipping.

Short-term vs. long-term doesn't change how commission is treated — it only determines which part of Form 8949 you use and the eventual rate on Schedule D. The commission adjustment logic is the same regardless of holding period.

Schedule D line 1a and 8a — the exception lines — let you skip Form 8949 entirely for covered transactions with no adjustments. But the moment you're adjusting for a commission that the broker didn't include in reported basis, you have an adjustment and you must use Form 8949 instead. Can't use Exception 1 for those lots.

Monica T.

Author

So any lot where I'm adding an omitted commission goes on Form 8949 with a code B in column (f) if box A or D is checked, and I enter the 1099-B basis in column (e) and correct it in column (g)?

Form 8949 adjustments were the part I kept second-guessing, especially with a column (g) that could be positive or negative depending on direction. I had Taxr read through my completed 8949 draft and it caught two rows where I'd put the commission adjustment in the wrong sign — entered a positive where it needed to be in parentheses because my correct basis was higher than what the broker reported. Straightened that out before I sent anything.

The sign on column (g) trips a lot of people. Negative adjustment (in parentheses) when your correct basis is higher than what's on the 1099-B, because a higher basis means a smaller gain — the adjustment is downward from the reported figure.

Publication 551 on basis of assets is the deeper reference if you want the full legal basis for why commissions are capitalized rather than expensed. It walks through adjusted basis in a way that Publication 550's investment chapter summarizes but doesn't fully detail.

One scenario that changes the math: if you're a trader who qualifies for and has made a mark-to-market election under section 475, the rules are entirely different and commissions may flow through ordinary income rather than capital gain treatment. But that's a very specific election and most people reading this thread won't be in that situation.

Good flag. For a regular investor — no 475 election — it's strictly basis and proceeds adjustments on Form 8949, nothing else.

Form 3921 or RSU vest documents don't come into this, right? Just want to make sure because my RSUs sometimes show weird cost basis and I don't want to mix up which fee is which.

Correct, Form 3921 is specific to ISO exercises and RSU vest basis is set at the fair market value on the vest date. Any brokerage commission on the eventual sale of those shares still gets handled the same way on Form 8949 — it's just your starting basis that differs from a regular cash purchase.

The IRS instructions for Form 8949 at irs.gov/instructions/i8949 are actually pretty readable on the column (g) adjustment rules. They give a worked example where the correct basis is higher than reported and show exactly how to enter the difference as a negative number in parentheses.

Monica T.

Author

I found that example after people here pointed me to the right section. Much clearer than trying to reverse-engineer it from Schedule D.

To flag a correction to something earlier: someone might read the thread and think you can still deduct advisory fees or account maintenance fees as investment expenses. You cannot — that deduction was suspended and those fees don't reduce your capital gains either since they're not part of your basis or proceeds. Only transaction commissions tied directly to a specific buy or sell adjust your gain.

Correct and worth making explicit. Advisory fees, platform fees, monthly account fees — none of those flow into Form 8949. Only the per-trade commission that is directly attributable to acquiring or disposing of a specific security.

Topic 409 on the IRS site covers capital gains basics and confirms that your gain or loss is the difference between what you paid (your adjusted basis, which includes purchase commissions) and what you receive (your amount realized, net of sale commissions). Useful short read to have bookmarked.

If you're dealing with a large number of lots and trying to figure out which ones need Form 8949 versus which go on Schedule D line 1a or 8a directly, sorting first by whether the basis was reported to the IRS and then by whether any adjustments are needed keeps it manageable. Covered with no adjustments — straight to Schedule D. Everything else — Form 8949.

Monica T.

Author

That two-step sort is exactly the framework I needed. Covered and clean goes direct, anything with a commission gap or other adjustment goes to 8949. Makes the pile a lot smaller.