Use this volume calculator to find geometric volume and capacity equivalents from a shape’s dimensions.
Measure the dimensions for your shape
Volume calculator results describe the geometric space of the shape you measure. Start with a box, or choose the solid that matches your object. Each dimension has its own unit selector, so mixed measurements can be entered directly.
Select radius or diameter to match your measurement. For a spherical cap, enter the parent sphere radius or diameter, matching the selected measurement, and the cap height, not the radius of the cut face. A cap with h = R is a hemisphere; h = 2R reaches the entire sphere.
Measure height at a right angle to the base, not along a sloping edge. For a triangular prism, t is the triangle’s altitude and L is the distance between its triangular ends.
Ellipsoid a, b and c are semiaxes, each half the corresponding full width. Capsule L is the straight body length between the rounded ends; total length is L + 2r.
Volume formulas by shape
Use consistent length units before substituting. V is volume and π is the circle constant. The formulas follow MathWorld’s volume table; the triangular prism combines triangle area with prism volume. The linked sources appear below and in References.
| Shape | Required dimensions | Volume formula |
|---|---|---|
| Box / rectangular prism | L = length; W = width; H = height | L × W × H |
| Cube | a = edge length | a^3 |
| Cylinder | r = radius; h = perpendicular height | π × r^2 × h |
| Sphere | r = radius | 4 × π × r^3/3 |
| Cone | r = base radius; h = perpendicular height, not slant height | π × r^2 × h/3 |
| Triangular prism | b = triangle base; t = triangle perpendicular altitude; L = prism length perpendicular to end face | b × t × L/2 |
| Square pyramid | a = square base edge; h = perpendicular apex height | a^2 × h/3 |
| Conical frustum | R and r are the end radii; h is the perpendicular separation of the ends | π × h × (R^2+R × r+r^2)/3 |
| Ellipsoid | a, b and c are semiaxes along three perpendicular axes | 4 × π × a × b × c/3 |
| Capsule | r = radius; L = straight cylindrical body length excluding rounded ends | π × r^2 × L+4 × π × r^3/3 |
| Spherical cap | R = parent sphere radius; h = cap height measured from sphere top | π × h^2 × (3 × R-h)/3 |
| Hollow cylinder / tube material | R = outer radius; r = inner radius; h = axial length | π × (R-r) × (R+r) × h |
For circular measurements, the radius is half the diameter. Capsule volume adds a cylinder and a sphere. Tube material subtracts the inner cylinder from the outer cylinder. Why is the sphere coefficient 4/3? Slice a hemisphere of radius r parallel to its flat face. At distance z from that face, the slice area is π(r²−z²). This equals a cylinder slice πr² minus a cone slice πz² when the cone tip is centered on the flat face. The hemisphere therefore has the volume of a cylinder of radius r and height r minus that cone: πr³−πr³/3 = 2πr³/3. Doubling gives 4πr³/3 for the whole sphere. The calculator uses full available π precision. See References for the Cavalieri comparison and sphere equations.
Read cubic units, liters and gallons
The formulas above follow MathWorld’s volume table. For a triangular prism, combine triangle area with prism volume.
The primary result uses the cubic unit of the first dimension. The equivalents list expresses the same volume in cubic millimeters, cubic centimeters, cubic meters, cubic inches, cubic feet, cubic yards, milliliters, liters, US liquid gallons and Imperial gallons. A cylinder entered in centimeters still has a cubic-yard equivalent.
Volume uses cubic units because it combines lengths in perpendicular directions. Cube the linear conversion factor when converting a volume. US liquid gallons and Imperial gallons have different definitions; choose the labeled equivalent that matches your task. NIST’s conversion tables document the unit factors.
Every shape uses nearest rounding to at most six significant digits. Small and large results use scientific notation. Calculations retain full available precision before display rounding; copied values use the same presentation. Extra digits do not make measured dimensions more accurate. Extremely small or large values outside the supported numerical precision return a range error instead of a result. If you need floor or wall area without depth, the square footage calculator measures that different quantity.
If you already know the volume, the Volume Converter changes its unit without asking you to reconstruct the shape dimensions. Keep the original measurement and its unit together when transferring the value.
Once you have the sample volume and a known mass, the Density Calculator divides that mass by the volume. Transfer the volume with its unit and use the mass of the same sample; the shape alone does not determine its density.
Check box and cylinder calculations
For a box measuring 2 by 3 by 4 , V = 2 × 3 × 4 = 24 . The capacity equivalent is 24000 when those are internal dimensions.
For a cylinder with diameter 6 and height 12 , radius = 6 ÷ 2 = 3 . V = π × 3² × 12 ≈ 339.292 , or 0.339292 . The cubic-yard equivalent is approximately 0.000443777 .
For a mixed-unit box measuring 2 by 30 by 40 , normalize the lengths to 0.6096 , 0.3 and 0.4 . Multiplying gives 0.073152 , or 73.152 . The primary result is approximately 2.58334 , because the first dimension uses feet.
Full capacity, tube material and unsupported shapes
Capacity equivalents describe a full ideal shape. To estimate a container’s full capacity, enter internal dimensions for the matching solid and read liters or the appropriate gallon equivalent. Exterior dimensions include the walls and overstate the available space. The calculator does not infer wall thickness, headspace, packing gaps or safe working capacity.
Tube mode returns the volume of the wall material between concentric cylinders, not the hollow interior. For the interior capacity of a straight tube, use cylinder mode with its internal radius or diameter and length. The inner radius in tube mode must be smaller than the outer radius.
A liquid depth in a partly filled tank needs a fill-level calculation suited to the tank’s shape and orientation. This tool does not calculate liquid remaining from a dipstick reading, irregular objects, composite solids or missing dimensions from a target volume. For a concrete order, the concrete calculator adds the material-estimation choices that geometric volume alone cannot supply.
For liquid remaining at a measured depth, the Tank Volume Calculator combines internal dimensions with the liquid level and tank orientation. Full geometric capacity alone cannot tell you how much liquid remains in a partly filled horizontal tank.
Surface area measures the boundary of a solid, while volume measures the space it encloses. The Surface Area Calculator uses the solid dimensions to add its faces or curved surfaces and lets you specify whether closing faces are included.