# Barrel Volume Calculator

Calcuator computes the volume of barrel for given radius (middle and top & bottom) and height of barrel

The barrels are cylindrical containers with flat top and bottom of equal diameter. The barrels are to be in the shape of a right circular cylinder having same radius for bottom and top but the middle may have different radius.

The volume of any container is generally understood to be the capacity of the container.

## Formula

Volume of barrel = πH(2**R2**^{2} + **R1**^{2})/3.

H = height of barrel,

R2 = middle radius and

R1 = top and bottom radius.