How this volume calculator works
A volume calculator finds the three-dimensional measure of a solid from its dimensions. Choose a shape (default Cube), a length unit (default metres), and enter every required dimension greater than 0. The headline is the volume in the matching cubic unit (m → m³, ft → ft³, and so on), with up to four decimal places. The formula used for that shape is shown as a detail.
Empty or typed 0 on any required dimension is no result. Units are m, cm, km, ft, in, yd, and mi; all dimensions share that unit. Advanced options is GPA-style: a Show surface area checkbox is unused while the section is closed, even if it stays checked.
How to use the volume calculator
- Choose a shape. Cube is the default. Each shape shows only the dimensions it needs.
- Choose a length unit. Volume is reported in that unit cubed. Default is metres.
- Enter every shown dimension greater than 0. Empty or typed 0 is no result.
- Open Advanced options only if you want surface area for a cube, box, sphere, or closed cylinder. Closing the section hides that row even if the checkbox stays checked.
Advanced options, and closing them
This section is GPA-style. Closed, the extra row is unused even if Show surface area stays checked. Open and checked, surface area appears only for cube (6s²), box (2(lw + lh + wh)), sphere (4πr²), and closed cylinder (2πr(r + h)). Cone, square pyramid, ellipsoid, and triangular prism never show a surface-area row, because those solids need extra lengths (slant, extra faces) that are not on the form.
Volume formulas
Cube V = s³. Box V = lwh. Sphere V = ⁴⁄₃πr³. Cylinder V = πr²h. Cone V = ⅓πr²h. Square pyramid V = ⅓a²h. Ellipsoid V = ⁴⁄₃πabc. Triangular prism V = ½bhl. π is the same constant the widget uses (JavaScript Math.PI).
Worked examples
Example: cube with side 5 m
Volume is 5³ = 125 m³. With Advanced options open and Show surface area checked, surface area is 6 × 5² = 150 m². Closing Advanced options hides the 150 m² row even if the checkbox stays checked.
Example: box 10 m × 6 m × 4 m
Volume is 10 × 6 × 4 = 240 m³. With Advanced options open and checked, surface area is 2(10×6 + 10×4 + 6×4) = 248 m².
Example: cone with radius 3 m and height 8 m
Volume is ⅓π × 3² × 8 ≈ 75.40 m³. No surface-area row appears, even if Advanced options is open and the checkbox is checked, because slant height is not on this form.
Things to keep in mind
Every dimension must be greater than 0. A cubic unit matches the length unit you pick. Cylinder surface area assumes a closed cylinder (two bases plus the side). Cone, pyramid, ellipsoid, and triangular-prism surface area are not derived here.
Volume calculator FAQ
Which fields are required?
Every dimension shown for the chosen shape must be greater than 0. Empty or typed 0 on any of them is no result. Shape defaults to Cube and unit defaults to metres. Advanced options are optional.
What happens when I close Advanced options?
The surface-area row is unused even if the checkbox stays checked — the same GPA contract as other calculators on this site. Volume still calculates from the dimensions.
Which shapes can show surface area?
Only cube (6s²), box (2(lw + lh + wh)), sphere (4πr²), and closed cylinder (2πr(r + h)). Cone, square pyramid, ellipsoid, and triangular prism never show that row.
How do units work?
All dimensions share one length unit: m, cm, km, ft, in, yd, or mi. Volume is reported in that unit cubed (m³, ft³, and so on).
Why is there no result when I type 0?
A dimension of 0 is treated as missing. Enter a value greater than 0 for every required field of the selected shape.
Does this volume calculator store my numbers?
Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.