Volume calculator: diagrams, formulas, units and worked examples
Choose the solid and enter its dimensions in the labelled boxes, selecting the unit beside each value. Measurements are converted to metres before applying the formula. For a spherical cap, enter exactly two of its base radius r, ball radius R and height h; leave the third blank. Plain decimals, fractions and scientific notation are supported, within the stated input limits.
Choose the shape and identify its dimensions
Match each measurement to the letter on the original diagram. Radius, diameter, perpendicular height, straight capsule length and ellipsoid semi-axis are different quantities. Choose each input’s unit independently; for example, a radius in inches and a height in metres are converted to compatible metre values before multiplication. Use positive dimensions, except the expressly supported zero-length or zero-radius boundaries below.
Formulas and examples for all 12 solids
Each example below uses metre dimensions and cubic-metre output. The diagram is schematic and is not a claim about the scale of your own object. π is evaluated with high working precision. The squared radius measures base area; multiplying by a length produces cubic units. The formula reference above the calculator follows the selected shape and also exposes the complete formula list.
Solid formulas and worked examples
Sphere
Measure the radius r from the centre to the surface. A diameter is twice the radius. The formula gives the space inside the ball, not its surface area.
V=4πr³/3
Worked example
r=3 m ⇒ V≈113.097 m³
Cone
Enter the base radius r and perpendicular height h of a right circular cone. Height runs from the apex straight to the base plane; it is not the sloping side length.
V=πr²h/3
Worked example
r=3 m; h=4 m ⇒ V≈37.6991 m³
Cube
Enter the common edge a. Three equal perpendicular dimensions make the volume a × a × a. Doubling the edge multiplies its volume by eight.
V=a³
Worked example
a=3 m ⇒ V≈27 m³
Cylinder
Enter the circular base radius r and perpendicular height h. Multiplying base area πr² by height gives the full cylinder volume.
V=πr²h
Worked example
r=3 m; h=4 m ⇒ V≈113.097 m³
Rectangular tank / box
Enter length l, width w and perpendicular height h. Use inside dimensions for the capacity of a rectangular tank; outside dimensions include its walls.
V=lwh
Worked example
l=2 m; w=3 m; h=4 m ⇒ V≈24 m³
Capsule
The capsule has a cylindrical middle and two hemispherical ends. Enter radius r and only the straight cylindrical length h. Overall end-to-end length is H = h + 2r. A straight length of zero gives a sphere.
V=πr²(h+4r/3); H=h+2r
Worked example
r=2 m; h=5 m ⇒ V≈96.3422 m³
Spherical cap
A spherical cap is part of a ball cut by a plane. Its base-circle radius r differs from the ball radius R. Height h is measured from the cutting plane to the cap’s pole. Two supplied radii can describe both a small and a large cap.
V=πh²(3R−h)/3=πh(3r²+h²)/6; r²=h(2R−h)
Worked example
r=3 m; R=5 m ⇒ V1≈14.6608 m³; V2≈508.938 m³
Conical frustum
A conical frustum is a right circular cone cut parallel to its base. Enter the two end radii r and R and perpendicular height h. Either end may be larger; equal radii give a cylinder and one zero radius gives a cone.
V=πh(R²+Rr+r²)/3
Worked example
r=2 m; R=4 m; h=6 m ⇒ V≈175.929 m³
Ellipsoid
Enter semi-axis lengths a, b and c, each measured from the centre to the surface along a principal axis. Full axis lengths are twice these values. Equal semi-axes give a sphere.
V=4πabc/3; a,b,c>0
Worked example
a=2 m; b=3 m; c=4 m ⇒ V≈100.531 m³
Square pyramid
Enter the side a of the square base and perpendicular height h from its plane to the apex. Slant height is a different measurement. Volume is one third of the matching square prism.
V=a²h/3
Worked example
a=3 m; h=4 m ⇒ V≈12 m³
Hollow tube material
Enter outer diameter Dₒ, inner diameter Dᵢ and length l. The result is the volume of tube material: outer cylinder minus bore. To find the bore’s liquid capacity, use the Cylinder mode with radius Dᵢ/2.
V=π(Dₒ−Dᵢ)(Dₒ+Dᵢ)l/4
Worked example
Dₒ=4 m; Dᵢ=2 m; l=5 m ⇒ V≈47.1239 m³
Hemisphere
A hemisphere is half a ball. Enter its radius r; the volume is half the sphere volume with the same radius. This is a solid-volume calculation, not the curved surface area.
V=2πr³/3
Worked example
r=3 m ⇒ V≈56.5487 m³
Understand the two spherical-cap solutions
A cap satisfies r² = h(2R − h). With ball radius R = 5 m and base radius r = 3 m, the valid heights are 1 m and 9 m. Both are reported, with their own volume and capacity figures; they add to the full ball’s volume. When r = R there is one hemisphere. With R known, h = 0 is an empty boundary cap and h = 2R is the full ball. Supplying R and r = 0 gives those two boundaries. Supplying only r and h = 0 cannot identify the ball radius.
Cubic units, litres and the two gallons
A litre is 0.001 m³, so 1 m³ = 1000 L. The US liquid gallon is exactly 231 cubic inches, or 3.785411784 L; the Imperial gallon is 4.54609 L. These are different units and are labelled separately. The international inch is exactly 0.0254 m and the foot is 0.3048 m. Cubic conversion factors are the cubes of the corresponding length factors. Capacity requires interior measurements and a full container; this tool does not calculate a partly filled horizontal tank.
Check dimensions, scaling and rounding
For similar solids, multiplying every length by k multiplies volume by k³. A cone is one third of a cylinder with the same base and height; a hemisphere is half a matching sphere. The capsule’s straight length may be zero, and a frustum may have one zero end radius, but not two. Tube diameters must satisfy Dₒ > Dᵢ ≥ 0. Inputs support at most 50 coefficient digits per numeric or fractional component and exponent magnitudes up to 40. Results describe ideal solids; rounding does not remove measurement uncertainty.
Check further calculations and the reference definitions
The steps show the shape formula, the conversion of each supplied dimension to metres, the volume and the capacity-unit relationship. Copy and CSV retain labelled solution and unit information; printing includes the expanded numeric details. For a composite object, calculate its components separately and add or subtract only volumes expressed in compatible units. Keep surface-area calculations separate from volume.
Use Scientific Calculator to combine simple component volumes or check a substituted formula. Exponent Calculator helps explain cubic powers, while Root Calculator can recover a dimension from a known volume. Use Ratio Calculator when scaling a model and Percentage Calculator when applying a stated allowance. For a triangular component, calculate its base area with Triangle Calculator, then multiply by the perpendicular prism length with the scientific calculator. To compare areas of flat shapes and convert to square feet or hectares, use the Area Calculator. Use the Surface Area Calculator to measure the curved and flat surfaces of these solids.
ISO 80000-2:2019 supplies notation context, without certifying this tool. BIPM SI Brochure defines SI conventions and the litre. NIST SP 811 — Unit Conversion Factors documents international length units and the Imperial gallon; NIST Handbook 44 (2026), Appendix C defines the US liquid gallon as 231 cubic inches. OpenStax — Volume and Surface Area explains elementary solid volumes. The specialist formulas and dimension definitions are covered by Wolfram MathWorld — Spherical Cap, Wolfram MathWorld — Conical Frustum, Wolfram MathWorld — Capsule and Wolfram MathWorld — Ellipsoid.
Common questions
Can I mix units in one volume calculation?
Yes. Select the unit beside each measurement. The calculation converts them to metres and reports cubic metres, litres, US liquid gallons, Imperial gallons, cubic feet and cubic inches. Do not put a diameter into a radius field.
Why can a spherical cap have two answers?
A ball radius and base-circle radius can define a cut on either side of the centre. The minor and major caps have different heights and volumes. Both are shown. A base radius equal to the ball radius produces one hemisphere.
Does capsule height mean the full length?
No. Enter the straight cylindrical length h between the hemispherical ends. The full length is h + 2r. If you measured the full length H, first subtract 2r; a negative straight length is invalid.
What is the difference between tank capacity and tube volume?
Tank capacity uses the internal space. The Tube mode gives material volume between its outer and inner diameters. Its hollow bore capacity can be calculated as a cylinder with the inner radius and the same length.
What does significant digits mean here?
It controls rounding of the displayed answer, counting from the first nonzero digit. At 3 significant digits, 123.456 becomes 123 and 0.00123456 becomes 0.00123. It does not improve measurement accuracy. Full numeric details retain more calculation digits.
Can I use the result for partial filling or irregular shapes?
The tool gives complete ideal-solid volumes. It does not model a partially filled horizontal tank, wall deformation, irregular boundaries or density. Interior dimensions can estimate full capacity; composite shapes can be split into suitable simple components.
Explore related tools
- Right Triangle Calculator
- Pythagorean Theorem Calculator
- Surface Area Calculator
- Circle Calculator
- Distance Calculator
- Area Calculator
- Slope Calculator
- Triangle Calculator
- Confidence Interval Calculator
- Z-score Calculator
- Permutation and Combination Calculator
- Mean, Median, Mode & Range Calculator
- Statistics Calculator
- Probability Calculator
- Sample Size Calculator
- Number Sequence Calculator
- Standard Deviation Calculator
- Random Number Generator
- Scientific Notation Calculator
- Big Number Calculator
- Root Calculator
- Log Calculator
- Matrix Calculator
- Rounding Calculator
- Exponent Calculator
- Fraction Calculator
- Scientific Calculator
- Percentage Calculator
- Percent Error Calculator
- Quadratic Formula Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Ratio Calculator