Volume Calculator
This volume calculator measures the space inside a rectangular box, cylinder, or sphere using standard solid-geometry formulas. Enter the required dimensions in a consistent unit to obtain cubic centimeters or cubic inches.
By Dr. Hassan Khames EliwaLast updated
Result
How it works
Choose the solid before measuring
A rectangular box has volume length × width × height. All three measurements must describe mutually perpendicular directions. A cylinder has volume πr²h, where r is the circular base radius and h is the perpendicular separation between the bases. A sphere has volume 4πr³ ÷ 3 and needs only its radius. The shape selector determines which entries participate in the calculation.
The first field is box length or circular radius. The second is box width or cylinder height. The third is needed only for a box. Unused fields are ignored, so a stored box height will not silently change a sphere result. Required measurements must be positive finite numbers no greater than one billion. Zero dimensions are rejected because this tool models three-dimensional solids rather than collapsed surfaces.
Capacity depends on the measured boundary
Use internal dimensions when estimating the capacity of a container. External dimensions include its walls and can overstate the space actually available. A cylindrical vessel with a thick base, rounded bottom, sloped wall, or domed top may not be represented well by a single ideal cylinder. The formula is exact for the mathematical shape, not automatically for the manufactured object.
The output is in cubic units because three length dimensions are multiplied. The unit selector assigns centimeters or inches to the entries and does not convert the numbers already present. Changing all linear dimensions by the same factor changes volume by the cube of that factor. Results use the full built-in value of π and display up to six decimal places, without a packing factor, fill allowance, or allowance for material displacement.
Worked example
Example 1: a small rectangular storage compartment
An internal compartment measures 8 centimeters long, 5 centimeters wide, and 3 centimeters high. Select rectangular box and metric units, then enter 8, 5, and 3. Its volume is 8 × 5 × 3 = 120 cm³. This describes unobstructed internal geometric space; a divider or rounded corner would reduce the usable capacity.
Example 2: a cylindrical insert
A cylindrical insert has radius 3 inches and height 10 inches. Select cylinder and imperial units, enter 3 and 10, and leave the box-height field unused. The volume is π × 3² × 10, or 90π, displayed as 282.743339 in³. The first input is a radius, meaning a center-to-edge distance. A six-inch diameter therefore corresponds to this three-inch radius; entering six would quadruple the calculated cylinder volume.
Expert tips
Common mistakes
- A cylinder’s height is perpendicular to its circular base, not measured along a sloping edge. An oblique or irregular vessel needs a geometric model that actually matches its shape.
- Geometric volume and usable capacity are different specifications. Cubic inches are not fluid ounces, and a vessel’s dimensions do not establish its safe fill level or commercial capacity.
- Volume conversions require the length conversion factor cubed. Using a linear factor leaves the answer in the wrong scale and can turn a sound takeoff into a costly order.
Frequently asked questions
Does this calculate surface area?
No. Volume measures enclosed three-dimensional space. Surface area measures the covering of the solid and needs different formulas, including decisions about whether a container has an open top.
Can I calculate a sphere using its diameter?
Divide the diameter by two first and enter the result as the radius. Sphere mode uses only that first dimension; other fields do not affect the answer.
Why is the box-height field ignored for a cylinder?
A cylinder needs only its radius and height, supplied in the first two fields. The third field belongs exclusively to the rectangular-box calculation.
Can I estimate liquid mass from the result?
Only with a suitable density and consistent units. Density varies by substance and sometimes by temperature, so this calculator deliberately reports volume rather than assuming a liquid or mass.
How should I model an irregular container?
Break it into justified geometric pieces or use a measured capacity method. Do not expect an ideal box or cylinder to account automatically for tapers, curved ends, or internal obstructions.
Related calculators
Related guides
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee