weighted average costs shares
the total cost is $ 9600 which when divided by 600 shares gives an average cost basis of $ 16 per share if you sell 300 shares at $ 30 each your capital gain is $ 30 minus $ 16 times 300 or $ 4200he total cost is $ 9600 which when divided by 600 shares gives an average cost basis of $ 16 per share if you sell 300 shares at $ 30 each your capital gain is $ 30 minus $ 16 times 300 or $ 4200