Volume Calculator
Calculate volume of cubes, cylinders, spheres, cones, and rectangular boxes.
Written by Golam Rabbani, Founder & Lead Engineer
How to use this volume calculator
- Select a shape — Cube, Cylinder, Sphere, Cone, or Box.
- Enter the required dimensions (side, radius, height, length, or width).
- Choose your output unit using the unit toggle (cm³, m³, liters, gallons, in³, or ft³).
- Press Calculate to see the volume result.
- Use Copy result to copy the answer, or Reset to clear and start over.
About this volume calculator
The volume calculator finds the three-dimensional space enclosed by five common geometric shapes: cube, cylinder, sphere, cone, and rectangular box. Enter your measurements, pick an output unit, and the tool instantly returns the calculated volume.
Each shape uses its standard geometric formula. A cube computes s³ (side cubed); a cylinder uses πr²h (pi times radius squared times height); a sphere uses 4/3 × πr³; a cone uses 1/3 × πr²h; and a rectangular box multiplies length × width × height. The raw result is computed in the unit you entered, then converted to your chosen output unit using exact metric and imperial conversion factors — for example, 1 cm³ equals 0.001 liters or approximately 0.0000353 ft³.
For example, a cylinder with radius 5 cm and height 10 cm has a volume of π × 5² × 10 ≈ 785.398 cm³, which the tool converts to roughly 0.785 liters if you switch the unit toggle to liters. Anyone studying geometry, planning a construction project, calculating fluid capacity, or checking packaging dimensions will find this tool useful.
FAQ
- What formulas does the volume calculator use?
- The volume calculator applies the standard geometric formulas: s³ for a cube, πr²h for a cylinder, 4/3πr³ for a sphere, 1/3πr²h for a cone, and l×w×h for a rectangular box. The formula label is shown on each shape button.
- Which units does the tool support?
- You can output results in cm³, m³, liters, gallons (US liquid), in³, or ft³. Click any unit button before or after entering dimensions — the conversion is applied automatically to the computed result.
- How accurate is the volume calculator?
- Results use JavaScript double-precision arithmetic and are rounded to six decimal places. For everyday geometry and estimation purposes this is more than sufficient; for engineering or scientific work, verify with a professional tool.
- What happens if I enter zero or a negative dimension?
- The calculator requires all dimensions to be positive numbers greater than zero. If you leave a field empty or enter an invalid value, an error message appears and no result is shown until you correct the input.
- Does the volume calculator store my measurements?
- No. The volume calculator runs entirely in your browser — your inputs are never sent to a server, logged, or saved between visits. Closing the page clears everything.
- Is the volume calculator free?
- Yes. It is completely free to use with no signup, no account, and no usage limit.