How do you find weight of different dia steel?

to calculate the weight of diffrent dia bars is d2/162 D=dia of bar , and multiply into 2 times then divide it by 162