Skip to content
BestCalculators
Free online calculators and converters

Math & Statistics

Volume Calculator: Box, Cylinder, Sphere, Cone, Capsule

Work out the volume of a box, cylinder, sphere, cone or capsule, converted into litres, gallons, cubic feet and cubic metres.

A capsule is a cylinder with a hemisphere on each end — the shape of most propane and air tanks.

cm

Radius is half the diameter. Measuring across the top and forgetting to halve it is the usual mistake.

cm
cm

Ignored by every other shape.

Volume

282,743cm³

That is 282.74 litres, or 74.69 US gallons.

In litres
282.74L
In US gallons
74.69gal
In imperial gallons
62.19gal
In cubic metres
0.2827
In cubic feet
9.985ft³
In cubic inches
17,254.1in³
Weight if filled with water
282.74kg

One litre of water weighs one kilogram, which makes water the easiest sanity check on any volume.

Diameter, for the round shapes
60cm

Shown so you can confirm the figure you measured matches the radius you entered.

How to use this calculator

  1. Select your desired shape from the Shape dropdown menu, choosing between a Rectangular box, Cylinder, Sphere, Cone, or Capsule.
  2. Enter your primary dimension into the Radius, or length for a box input field, remembering to halve the diameter if you measured across a circle.
  3. Provide your secondary dimension in the Height, or width for a box input field to define the vertical scale or width of your object.
  4. Enter your final dimension into the Depth — box only input field if you are calculating a rectangular box, which is ignored for all other shapes.
  5. Review your instant results across cubic centimetres, litres, US gallons, imperial gallons, cubic metres, and cubic feet.

Understanding Volume Calculations

Finding the capacity of a three-dimensional space requires converting linear measurements into cubic units. When you use a volume calculator, the underlying mathematics translates height, width, and depth into a single cubic centimeter figure before converting it into practical units like liters, gallons, and cubic feet. Every geometric form uses a specific formula to account for how its boundaries curve or taper inward.

For a rectangular box, the process multiplies length, width, and depth together. Round geometries behave differently. A cylinder volume calculator uses the radius squared multiplied by pi and the height, reflecting the uniform circular cross-section running from bottom to top. Spheres, cones, and capsules introduce fractional multipliers like four-thirds or one-third to account for tapering curves and hemispherical caps.

Formulas for Every Geometric Shape

Different containers and objects require distinct mathematical approaches to determine their true capacity. A standard box relies on straightforward multiplication of its three linear axes: V = length × width × depth. Entering these into the Radius, or length for a box, Height, or width for a box, and Depth — box only fields yields an exact cubic measurement.

Circular and curved objects require formulas rooted in pi. A cylinder calculates as V = π r² h. A sphere volume calculator uses V = 4⁄3 π r³, which accounts for the uniform outward expansion from the center point in all directions. Cones taper to a point, reducing the cylindrical volume by a factor of three via V = ⅓ π r² h. Capsules combine a central cylindrical barrel with two hemispherical ends, calculated using V = π r² (4⁄3 r + h).

ShapeRequired InputsMathematical FormulaCommon Use Case
Rectangular boxLength, width, depthV = length × width × depthShipping boxes, rooms, storage bins
CylinderRadius, heightV = π r² hPipes, drums, round silos
SphereRadius onlyV = 4⁄3 π r³Balls, spherical tanks, globes
ConeRadius, heightV = ⅓ π r² hFunnels, conical hoppers, roofs
CapsuleRadius, straight lengthV = π r² (4⁄3 r + h)Propane tanks, air compressors, silos

A cubic centimeter remains the standard baseline for all computations because it translates directly into liquid volume. One cubic centimeter equals exactly one milliliter, meaning that dividing the total cubic centimeters by one thousand yields liters. A cubic feet calculator takes that same base figure and divides it by 28,316.85 to determine large imperial or architectural volumes.

Liquid measurements introduce regional variations that can easily cause confusion. A US liquid gallon contains 3,785.41 cubic centimeters, whereas an imperial gallon—historically used in the United Kingdom and Canada—contains 4,546.09 cubic centimeters. Relying on a tank volume calculator prevents costly errors by automatically applying these exact divisors rather than rough approximations.

Common Measurement Mistakes

The single most frequent error in geometric sizing involves confusing the radius with the diameter. Measuring straight across the top of a round container gives you the diameter, but formulas require the radius, which is precisely half that distance. Forgetting to divide by two doubles your radius input, which gets squared or cubed in the formula, resulting in a volume calculation that is four to eight times too large.

Another frequent oversight involves mixing up the input fields for non-box shapes. When calculating a cylinder or cone, the Depth — box only field is completely ignored by the algorithm. Users who enter their height values into the depth box instead of the height field will find their calculations failing or returning zero because the mathematical engine looks specifically for the height and radius parameters.

Wall thickness also introduces hidden discrepancies in practical applications. Mathematical formulas calculate interior or exterior space based strictly on the outer boundaries you measure. If you are calculating how much water a thick-walled concrete cistern can hold, measuring the outside dimensions rather than the interior cavity will yield a significantly inflated capacity.

When to Seek Professional Verification

Geometric formulas assume perfect, unyielding shapes with flat walls and precise right angles. Standard mathematical outputs should not be relied upon for high-stakes engineering, legal property boundaries, or hazardous material storage without professional verification. If you are ordering custom commercial storage infrastructure, pouring structural concrete, or managing regulated chemical containment, consult a licensed civil engineer or certified surveyor.

Deformed tanks, bulging walls, and internal baffles will always alter real-world capacity compared to pristine mathematical models. When precision is mandatory for safety or financial auditing, physical calibration using flow meters or weight verification is necessary. Use mathematical tools for initial estimates and planning, but defer to industry professionals for critical operational deployments.

The formula

box V = length × width × depthcylinder V = π r² hsphere V = 4⁄3 π r³cone V = ⅓ π r² hcapsule V = π r² (4⁄3 r + h)

Frequently asked questions

How do I convert my measurements if I did not use centimeters?

You can convert any linear unit into centimeters before running your calculation to ensure complete accuracy. Multiply inches by 2.54, multiply feet by 30.48, and multiply meters by 100 to find the correct centimeter value for your input fields.

Why is my calculated volume so much larger than expected?

The most common reason for an inflated result is entering the diameter instead of the radius for circular shapes. Because the radius is squared or cubed in formulas like those used in a sphere volume calculator, using the full diameter will multiply your final volume error exponentially.

What is the difference between US gallons and imperial gallons in the results?

US gallons are smaller than imperial gallons, containing about 3.78 liters compared to the imperial gallon's approximately 4.55 liters. The calculation engine applies distinct divisor constants for each system to ensure your liquid conversion matches regional standards.

Can I use this tool for irregular shapes or dented tanks?

Mathematical formulas assume ideal geometric proportions and cannot account for dents, internal bracing, or irregular tapering. For damaged containers or complex industrial shapes, the output should only be used as a rough preliminary estimate rather than an exact measurement.

How does the tool calculate the weight of water if filled?

Pure water has a density of one gram per cubic centimeter at standard temperature, meaning every cubic centimeter equals one gram of mass. Dividing the total cubic centimeters by one thousand converts that mass directly into kilograms of water weight.

Last reviewed . Results are for general guidance and are not professional advice.