Skip to content
Formulaxis

Toolbox

Volume: calculate a cuboid, cylinder, cone or sphere

Calculate the volume of a rectangular cuboid, right circular cylinder, right circular cone or sphere. Enter the solid's dimensions; for a container's capacity, use its internal dimensions.

Created on , Revised on v2.0

Method and validation

Volume: calculate a cuboid, cylinder, cone or sphere

Internal or external cuboid length, depending on the volume required, perpendicular to the width and height.

Cuboid width, measured in a direction perpendicular to its length.

Perpendicular distance between the bases; for a cone, do not enter the slant height.

Initial values are examples.

Results

Cuboid volume V
30L

Substitution in SI units

V=(0.4 m)×(0.3 m)×(0.25 m)=30 L

Strictly positive dimensions.

Dimensions of the selected solid

Volume: calculate a cuboid, cylinder, cone or sphere · Rectangular cuboidPerspective view of the selected shape; dimension ratios follow the inputs.L = 40 cmh = 25 cml = 30 cm

Perspective view of the selected shape; dimension ratios follow the inputs.

Illustrative diagram, not to scale.

Estimated reading time : 4 min · 633 words

Calculation details

The result represents the full volume of the selected shape. Internal dimensions give the geometric capacity before allowing for partial filling.

01 · Cuboid volume

FORMULA

V=L×l×h

NUMERICAL SUBSTITUTION

V=(40 cm)×(30 cm)×(25 cm)

RESULT

V=30 L

Solid dimensions and container capacity

Volume measures the space occupied by a solid. For capacity, use the container's internal dimensions. The radius is half the diameter; a cone's height is perpendicular to its base and differs from its sloping generatrix. The cylinder and cone used here have circular bases.

Formulas and symbols

The following relationships use the symbols defined below.

V=L×l×h(cuboid volume)

V=π×r2×h(cylinder volume)

V=π×r2×h3(cone volume)

V=4×π×r33(sphere volume)

  • L, l, h: length, width and height, in units of length.
  • r: radius of the base circle or sphere.
  • V: volume. Dimensions are converted to metres before the calculations. The volume in cubic metres is then converted to the output unit; 1 litre corresponds to 1 dm3.

Choose the correct dimensions

SolidDataPoint to check
Rectangular cuboidLength, width, heightThree perpendicular directions
Right circular cylinderRadius and heightRadius, not diameter
Right circular coneRadius and heightHeight perpendicular to the base
SphereRadiusSame radius in every direction

OpenStax — volumes of common solids.

Common volume formulas

SolidVolume
CuboidV=L×l×h
Right cylinderV = πr²h ; ≈ 3,142 for r=1 and h=1
Right coneV = πr²h / 3 ; ≈ 1,047 for r=1 and h=1
SphereV=4πr³ / 3 ; ≈ 4,189 for r=1
Cone and cylinderFor equal bases and heights, a cone has one third the volume of the cylinder

Useful conversions

ValueEquivalent
1 m31 000 L
1 L1 dm3
1 L1 000 cm3
1 mL1 cm3
1 cm31 000 mm3

NIST — Guide to the SI, Appendix B.9.

Worked examples

Example 1: A cuboid measuring 40×30×25 cm

The product is 30 000 cm3, or 30 L.

Example 2: Cylinder with a radius of 25 cm

With r=0,25 m and h=1,2 m, the volume is approximately 0,235619 m3, or 235,62 L.

Example 3: Cone with a radius of 10 cm and a height of 30 cm

A cylinder with the same base and height would hold approximately 9,425 L. The cone occupies one third of that volume: approximately 3,142 L.

Example 4: Sphere with a radius of 10 cm

The volume is approximately 4 188,79 cm3, or 4,19 L.

Assumptions and limitations

Strictly positive dimensions. Only four ideal solid shapes: rectangular cuboid, right circular cylinder, right circular cone and sphere. Walls, dished bottoms and partial filling are not modelled. No inverse calculation is provided.

Common mistakes

Divide the diameter by two before entering the radius. A length conversion by a factor of 100 becomes a factor of one million for volume. A cone's height is axial: a length along its lateral surface cannot replace it.

Frequently asked questions

How do you convert cubic metres to litres?

Multiply the number of cubic metres by 1 000. A cube with a side length of 10 cm occupies 1 000 cm3, or one litre.

Which dimensions should be used for capacity?

The usable internal dimensions. External dimensions include the walls and overestimate capacity.

Which cone height is required?

Use the perpendicular distance from apex to base plane. Slant height follows the side and must first be converted geometrically.

Does doubling every dimension double volume?

Doubling every linear dimension multiplies volume by eight. Doubling only cylinder height at fixed radius doubles volume instead.