Volume Calculator

Pick a solid, enter every length in the same unit, and the calculator returns the volume with a labelled diagram. A box is length × width × height, a cylinder is πr²h, a sphere is 4/3 πr³, a cone or rectangular pyramid is one-third of the base area times the height, and a hemisphere is 2/3 πr³. This is the volume of one closed solid, not a materials heap — use the cubic-yard calculator for mulch, gravel or concrete.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Volume calculator

–

How to use the volume calculator – box, cylinder, sphere, cone and pyramid

  1. Choose the solid. Box, cube, cylinder, sphere, cone, rectangular pyramid, or hemisphere.
  2. Enter the lengths. Radius and height for a cylinder or cone; length, width and height for a box or pyramid. Use one unit throughout.
  3. Read the volume. The result is in cubic units of whatever you typed (m → m³, ft → ft³).
  4. Compare with materials tools. For a pile of mulch or a slab of concrete, switch to the cubic-yard calculator, which also converts to bags and tonnes.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

Formulas on this page

Volume is the measure of a three-dimensional region. As with area, every length on this page must be in the same unit, and the output is the cube of that unit.

A rectangular box is the product of its three edges, lwh. A cube is the special case s³. A right cylinder is the area of its circular base times its height, πr²h. A sphere is 4/3 πr³. A right cone with the same base and height as a cylinder is one-third of that cylinder, ⅓ πr²h. A rectangular pyramid is one-third of the box that has the same base and height, ⅓ lwh. A hemisphere solid (not including a separate base slab) is 2/3 πr³.

The diagram follows the solid you pick: an isometric box, a cylinder, or a circle standing in for a sphere or hemisphere. It is labelled, not a manufacturing drawing. Print / Save PDF keeps the figure with the numbers.

Volume versus materials estimators

A 2 × 3 × 4 box is 24 cubic feet if you typed feet, which is 24 ÷ 27 ≈ 0.889 cubic yards. The cubic-yard calculator starts from a length, width and depth and also applies a waste factor and bag or tonne conversions for common materials. This volume page does not, because a sphere of water and a sphere of gravel are the same geometric volume and very different orders.

The area calculator is the plane counterpart. A circle of radius 2 has area 4π; a sphere of radius 2 has volume 32/3 π. Using the wrong formula is the usual mistake when a radius is written next to an unlabelled solid.

Worked figures

  • Box 2 × 3 × 4 = 24.
  • Cube of side 5 = 125.
  • Cylinder radius 2, height 5: π × 4 × 5 = 20π ≈ 62.832.
  • Sphere radius 3: 36π ≈ 113.097.
  • Cone radius 3, height 6: ⅓ π × 9 × 6 = 18π ≈ 56.549.
  • Rectangular pyramid 4 × 3 × 6: ⅓ × 4 × 3 × 6 = 24.
  • Hemisphere radius 3: 18π ≈ 56.549.

Those identities are unit-tested against the same TypeScript functions the browser runs. There is no look-up table and no live API. Copy result, Copy link (hash only), Reset and Save tool work as on the other GenericCalc tools. Report a mistake from the about box if a figure disagrees with a hand check.

Frequently asked questions

What is the volume of a 2 × 3 × 4 box?

2 × 3 × 4 = 24 cubic units. That is the default worked example.

How is a cylinder different from a box?

A cylinder uses the circular base: V = πr²h. A box uses three straight edges: V = lwh. Both heights are perpendicular heights.

What is the volume of a sphere of radius 3?

V = 4/3 πr³ = 4/3 π × 27 = 36π ≈ 113.097. A hemisphere of the same radius is 2/3 πr³ = 18π ≈ 56.549.

Is a cone one-third of a cylinder?

Yes, when they share the same base radius and the same perpendicular height: V_cone = ⅓ πr²h. A rectangular pyramid is ⅓ × base length × base width × height.

Should I use this to order gravel?

Use it to check a single solid, then convert with the cubic-yard calculator if you are ordering a bulk material. Heaps, waste and bag sizes are not on this page.

Which π is used?

JavaScript’s Math.PI (≈ 3.141592653589793). Results can be shown to 2, 4 or 6 decimal places, or left as calculated.

Can I enter a diameter instead of a radius?

Not as a separate mode. Halve the diameter first, then enter the radius.

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.

Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.

Calculator by CalcTen — free online calculators.