Capital Gains

#21
does brokerage is also be part of capital gain tax?

i mean if made say 900 excluding brokerage and 800 including, so capital gain tax would be done on which money i.e. 900 0r 800