Volume Calculator

Volume Calculator: Cube, Box, Cylinder, Sphere and More

Choose a shape, enter its measurements and get the volume. See the result in cubic units, litres and US gallons, with the formula and the steps. Free, runs in your browser.

Volume formulas

ShapeFormulaVariables
CubeV = s³s = side
Rectangular boxV = l × w × hlength, width, height
CylinderV = π r² hr = radius, h = height
Hollow cylinder (tube)V = π (R² − r²) hR = outer radius, r = inner radius
SphereV = 4/3 π r³r = radius
HemisphereV = 2/3 π r³r = radius
ConeV = 1/3 π r² hr = base radius, h = height
Pyramid (rectangular base)V = 1/3 × l × w × hbase length, base width, height
CapsuleV = π r² h + 4/3 π r³r = radius, h = height of the straight part
EllipsoidV = 4/3 π a b ca, b, c = semi-axes

How to use the Volume Calculator

  1. Choose a shape from the list.
  2. Pick the unit you measured in, then enter the dimensions. Radius means half the width across the circle.
  3. Read the volume in cubic units, plus litres, US gallons and other common units.
  4. Check the formula shown above the result, and the formula table below for every shape.

Frequently asked questions

How do I calculate volume?

Pick the formula for the shape and put the measurements in the same unit. A box is length times width times height, a cylinder is pi times radius squared times height, and a sphere is 4/3 times pi times radius cubed.

What is the cylinder volume formula?

V = pi x r squared x h, where r is the radius of the circular end and h is the height. For a radius of 3 and a height of 5, the volume is pi x 9 x 5, about 141.37 cubic units.

What is the cone volume formula?

V = 1/3 x pi x r squared x h. A cone holds exactly one third of the cylinder with the same base and height.

What is the volume of a rectangular prism or box?

V = length x width x height. A box that is 2 by 7 by 3 has a volume of 42 cubic units.

How do I convert cubic units to litres or gallons?

The calculator does it for you. 1 cubic metre is 1,000 litres, and 1 US gallon is exactly 3.785411784 litres. Cubic centimetres are the same as millilitres.

Why does the unit matter so much?

Volume scales with the cube of length. Doubling every side makes the volume eight times larger, and a result in cubic feet is 1,728 times smaller than the same result counted in cubic inches.

Everything runs in your browser. Nothing you enter is uploaded or stored by Nexatoolbox.