What is the formula for calculating weight using a mild steel cylinder?

gear with shaft dia40mm length 230 teeth 14 shaft dia 25mm width 6.5mm length 168mm