For ex:
If you make $8K by selling a certain stock and then lose $3K in another stock.
Do you pay taxes on $5K? Or, since my capital losses do not exceed gains, I still have to pay taxes on the $8K gain?