### Formula

r1

middle radius

V

volume of barrel

r2

top or bottom radius

h

height

r1

middle radius

V

volume of barrel

r2

top or bottom radius

h

height

A barrel or cask is a hollow cylindrical container.

V

r2

h

r1

Precision

- C
- C#
- C++
- Java
- JavaScript
- LaTeX
- PHP