This Volume Calculator calculates the space occupied by five common three-dimensional shapes: a cube, rectangular box, sphere, cylinder and cone. Select a shape, enter its dimensions in one consistent length unit and read the result in cubic units. The widget does not convert units automatically.
How to Use the Volume Calculator
- Select the shape from the list.
- Enter the required dimensions: side, length, width, radius or height, depending on the shape.
- Use the same length unit for every dimension.
- Read the volume. Its unit is the input length unit cubed, such as cm³ or ft³.
- Convert the result separately if you need liters, gallons or another capacity unit.
Volume Formulas
- Cube: V = a³, where a is the side length.
- Rectangular box: V = l × w × h.
- Sphere: V = (4/3)πr³.
- Cylinder: V = πr²h.
- Cone: V = (1/3)πr²h.
Here, r is the radius, h is height, and π is approximately 3.14159.
Worked Examples
- A rectangular box measuring 2 × 3 × 4 cm has volume 2 × 3 × 4 = 24 cm³.
- A sphere with radius 3 cm has volume (4/3)π × 3³ ≈ 113.0973 cm³.
- A cylinder with radius 2 cm and height 5 cm has volume π × 2² × 5 ≈ 62.8319 cm³.
- A cone with the same radius and height has one-third the cylinder volume: approximately 20.9440 cm³.
Units: Cubic Length and Liquid Capacity
Volume is three-dimensional, so a length unit is cubed. For example, 1 liter = 1,000 cm³ = 1 dm³. A result of 24 cm³ is not 24 cm or 24 cm². For construction and storage, keep the original cubic unit visible and convert only after calculating.
Geometry references such as Calculator.net's Volume Calculator and Omni Calculator's volume guide provide additional shape coverage. This widget currently supports five shapes only; it does not include pyramids, prisms, irregular solids or composite-object decomposition.
For two-dimensional measurements, use the Area Calculator. For the exterior area of solids, use a separate surface-area method rather than this volume result.
Assumptions and Limitations
- All dimensions must use the same length unit.
- Dimensions are non-negative; a zero dimension produces zero volume.
- The box is a rectangular prism; the cylinder and cone are right circular shapes.
- The calculator does not convert units or estimate irregular/composite volumes.
- Displayed precision is rounded; calculations use JavaScript floating-point arithmetic.
