AskANumber.com

Volume Calculator

The defaults describe a 4 × 3 × 2 box with a volume of 24 cubic units. This calculator computes the volume of a box (A × B × C), a sphere (4/3 πr³, with A as the radius), or a cylinder (πr² × height, with A as the radius and C as the height); as with any pure geometry, the result is in the cube of whatever length unit you enter.

Volume
24
cubic units
Inputs
Shape
× ×
Keep all three sides in one unit
Length, width, and depth must share a unit. Centimeters throughout give cubic centimeters; mixing units gives a meaningless figure.
Turning cubic units into capacity
The result is in cubic units — the cube of your length unit. To read it as capacity, 1,000 cubic centimeters = 1 liter, and 1 cubic foot ≈ 7.48 gallons.
Ask a follow-up
Uses your inputs above
24 volume. Want to try a variation?

The math

Reviewed 2026
Formula
box: w·h·d; sphere: 4/3·πr³; cylinder: πr²·h

Related calculators

Example: how volume is calculated

Step-by-step with default inputs

Suppose you put the default values into Volume Calculator:

Shape
Box
Width / radius
4
Height
3
Depth (box only)
2

Plug those into the formula box: w·h·d; sphere: 4/3·πr³; cylinder: πr²·h and the result is:

Volume
24

How does the volume calculator work?

Volume Calculator uses the formula shown in the math card and is computed from first principles. Inputs are validated for sensible ranges; results are computed client-side for instant feedback and do not leave your browser.

Last reviewed July 2, 2026 · Editorial policy

Frequently asked questions

How do you calculate the volume of a cylinder?

Multiply the area of the circular base by the height: V = πr²h. Choose the cylinder shape, put the radius in A and the height in C — a radius of 4 and a height of 2 gives π × 16 × 2 ≈ 100.53 cubic units.

Does the sphere formula use radius or diameter?

Radius: V = 4/3 πr³, so field A takes the radius. A radius of 4 gives about 268.08 cubic units. If you measured the diameter, divide by 2 before entering it — using the diameter by mistake inflates the volume eightfold.

How do I convert cubic units to liters?

Convert after computing: a result in centimeters is cubic centimeters, and 1 cm³ is exactly 1 milliliter, so 1,000 cm³ = 1 liter. For other unit pairs, compute the geometric volume here first, then run it through a volume converter.

How accurate is this volume calculator?

The math is deterministic — the same inputs always produce the same output, and the formula is shown above. Accuracy of the answer for your situation depends on how well your inputs match reality and how well the formula models the question.

How do I share my result?

Hit Share at the top of the page. Every input you change is encoded in the URL, so a permalink reproduces exactly what you see. No account needed.