ChalksumThe right answer, with the work shown.
Home and DIY › Volume calculator

Volume calculator

A cylinder and tank volume calculator, plus boxes, spheres and cones. Get the answer in gallons and liters as well as cubic units.

Your shape

Shape Units
Diameter Height

Cylinder and cone: diameter and height. Box: length, width (third box) and height. Sphere: diameter. Horizontal tank: diameter, length, and liquid depth in the third box.

2,714.336 cubic inches
11.75US gallons
44.48liters
1.571cubic feet
0.0582cubic yards
volume = π × 6² × 24 = 2,714.3361 cubic inches

How it works

Cylinder: π × radius² × height. Box: length × width × height. Sphere: 4/3 × π × radius³. Cone: one third of the cylinder with the same base and height. A horizontal tank that is partly full uses the area of the circle segment below the liquid, times the tank’s length. Results are converted to gallons, liters, cubic feet and cubic yards.

Related tools

Questions

How do you calculate the volume of a cylinder?

Multiply π by the radius squared and by the height. A cylinder 6 in across and 10 in tall: π × 3² × 10 ≈ 282.7 cubic inches, about 1.22 gallons.

How many gallons does my tank hold?

Measure it in inches, work out the cubic inches, and divide by 231 (cubic inches per US gallon). Pick the horizontal tank shape for a partly full fuel or water tank on its side.

How do I convert cubic feet to gallons?

Multiply by 7.48. For cubic yards to gallons, multiply by about 202.

More home and DIY calculators