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?