Use this volume calculator to find the space inside common 3D shapes with the right dimensions, cubic units, and helpful liquid conversions.
Table of contents
How to use our Volume Calculator
- Choose the Shape that matches your solid.
- Select one Length unit. Every dimension you enter must use that same unit.
- For round shapes, choose Round-part input type as radius or diameter before entering values.
- Enter the visible dimensions in Primary dimension (selected unit), Secondary dimension (selected unit), and Tertiary dimension (selected unit). The labels change by shape.
- If you want a different display format, choose Decimal places.
- Click Calculate to see Volume, the matching Formula used, and a plain-language Dimensions used summary.
- If shown, check Equivalent liquid volume for mL, L, or US gal to make the result more practical for containers and tanks.
- Do a quick sanity check: make sure the shape is correct, the dimensions match the summary, and the answer size makes sense for your unit, such as cm^3 being much smaller than m^3.
Definitions
Shape: The 3D solid you want to measure, such as a cube, cylinder, or sphere.
Length unit: The unit used for every dimension you enter, such as mm, cm, m, in, ft, or yd.
Round-part input type: Tells the calculator whether your round measurement is a radius or a diameter.
Volume: The amount of space inside a solid, shown in cubic units like cm^3 or ft^3.
Equivalent liquid volume: A practical conversion of the same space into mL, L, or US gal when that conversion fits the chosen unit.
Formula used: The exact volume rule the calculator applied for the selected shape.
Dimensions used: A plain-language recap of which measurements were used, so you can catch swapped or misunderstood inputs.
Common mistakes and quick fixes
Mistake: Entering mixed units, such as one value in inches and another in feet, while only one Length unit is selected.
Fix: Convert all measurements first, then enter every visible dimension using the same Length unit .
Mistake: Typing a diameter while Round-part input type is still set to radius.
Fix: Change Round-part input type to diameter, or divide your diameter by 2 before entering it in Primary dimension (selected unit) .
Mistake: Using slant height for Shape = Pyramid (rectangular base).
Fix: Enter the vertical height in Tertiary dimension (selected unit) , not the slanted edge length.
Mistake: Reversing the frustum sizes so the smaller top is entered as the larger round measure.
Fix: For Shape = Frustum of a cone, make sure the larger round measure goes in Primary dimension (selected unit) and the smaller one goes in Secondary dimension (selected unit) .
Mistake: Reading Equivalent liquid volume as the main answer and ignoring Volume .
Fix: Use Volume as the exact geometric result in cubic units, and treat Equivalent liquid volume as a practical conversion only.
Mistake: Picking the wrong solid, such as cube instead of rectangular prism, then trusting the number.
Fix: After calculating, read Formula used and Dimensions used to confirm the calculator used the shape and measurements you intended.
Limitations & Key Assumptions / Boundary Conditions
- All entered dimensions must be positive numbers in one shared Length unit; the calculator does not support mixed-unit entry.
- The tool uses ideal geometry formulas, so real containers with rounded corners, wall thickness, dents, or interior parts can hold a different amount.
- For round shapes, choosing the wrong Round-part input type can change the result a lot because diameter must be converted to radius internally.
- For Pyramid (rectangular base) and Frustum of a cone, the height must be vertical height, not slant height.
- For Ellipsoid, the three entered values are semi-axis lengths, not full end-to-end axis lengths.
- Equivalent liquid outputs are convenience conversions. The main geometric answer is still the Volume in cubic units.
- Displayed values are rounded to the selected Decimal places, but the calculator uses full precision before rounding.
Methodology
How the calculator works
The calculator first reads the selected shape, length unit, and round-measure choice. It then uses only the visible dimension fields for that shape, checks that each required value is greater than 0, and applies the matching volume formula.
Formulas used
Rectangular prism: V = l * w * h
Cube: V = s^3
Cylinder: V = pi * r^2 * h
Cone: V = (1/3) * pi * r^2 * h
Sphere: V = (4/3) * pi * r^3
Rectangular pyramid: V = (1/3) * l * w * h
Ellipsoid: V = (4/3) * pi * a * b * c
Frustum of a cone: V = (1/3) * pi * h * (R^2 + R*r + r^2)
If Round-part input type is diameter, the calculator converts diameter to radius first by dividing by 2. That affects cylinders, cones, spheres, and frustums of cones.
Liquid-equivalent conversions
After finding the geometric volume, the calculator may also show a practical liquid conversion.
For cm^3: mL = cm^3 and L = cm^3 / 1000
For mm^3: mL = mm^3 / 1000
For m^3: L = m^3 * 1000
For in^3: US gal = in^3 / 231
For ft^3: US gal = (ft^3 * 12^3) / 231
For yd^3: US gal = (yd^3 * 36^3) / 231
The gallon conversion uses 1 US gallon = 231 cubic inches [4]. Standard solid-volume formulas for common shapes follow standard geometry references [1][3].
Mini example
Suppose you choose Cylinder, set Length unit to meters, choose diameter, enter 2 for the round measure, and 10 for height. The calculator converts diameter 2 m to radius 1 m, then computes the volume.
V = pi * 1^2 * 10 = 31.4159 m^3
Equivalent liquid volume = 31.4159 * 1000 = 31415.9 L
This matches the idea that a fairly tall cylinder with a 2 m diameter holds a large amount of space.
Assumptions behind the result
The result assumes perfect geometric shapes, exact measurements, and one consistent length unit across all inputs. If a real object has wall thickness, tapers that do not match the chosen shape, rounded corners, or measured values that were estimated, the real capacity can differ from the displayed volume.