What does a volume calculator measure?
Volume is the three-dimensional space occupied by a solid or enclosed by a container. It is measured in cubic units, such as cm³ or m³; capacity can also be expressed in litres or gallons. This tool applies geometric formulas to ideal shapes. It is useful for geometry exercises, estimating container capacity and calculating material quantities from dimensions.
Select the shape that matches the object. Measure perpendicular heights rather than sloping edges, and distinguish a radius from a diameter: radius = diameter / 2. For container capacity, use internal dimensions. These calculations do not add allowances for wall thickness, waste or irregular surfaces.
Volume formulas by shape
| Shape | Formula | Dimensions |
|---|---|---|
| Sphere | V = 4πr³/3 | r: sphere radius. |
| Cone | V = πr²h/3 | r: circular base radius; h: perpendicular height. |
| Cube | V = a³ | a: edge length. |
| Cylinder | V = πr²h | r: base radius; h: perpendicular height. |
| Rectangular Tank | V = lwh | l, w, h: internal length, width and height for full capacity. |
| Capsule | V = πr²h + 4πr³/3 | r: radius; h: straight cylinder length, excluding the rounded ends. |
| Spherical Cap | V = πh²(3R − h)/3 | R: original sphere radius; h: cap height, from 0 to 2R. |
| Conical Frustum | V = πh(R² + Rr + r²)/3 | R and r: larger and smaller base radii; h: perpendicular separation. |
| Ellipsoid | V = 4πabc/3 | a, b, c: perpendicular semi-axes, each half a full axis length. |
| Square Pyramid | V = a²h/3 | a: side of the square base; h: perpendicular height. |
| Tube | V = πh(R² − r²) | R: outer radius; r: inner radius; h: length. Result is material volume. |
How the formulas work
A prism or cylinder has volume equal to base area multiplied by height. A cone or pyramid occupies one third of the corresponding base-area-times-height volume. A capsule combines a cylinder with two hemispheres, whose combined volume equals one sphere. A tube subtracts the inner cylinder from the outer cylinder. The spherical cap and conical frustum formulas account for the changing cross-section along their height.
For example, a cylinder with r = 4 cm and h = 10 cm has V = π × 4² × 10 = 160π ≈ 502.654824574 cm³. This is approximately 0.502654824574 L. The calculator follows the same sequence and shows the values used for your selected shape.
Converting volume units
Cube the length conversion factor when converting volume: 1 m = 100 cm, so 1 m³ = 100³ cm³ = 1,000,000 cm³. Also, 1 L = 1,000 cm³, 1 mL = 1 cm³ and 1 m³ = 1,000 L. A US liquid gallon is 3.785411784 L; an Imperial gallon is 4.54609 L. Choose the gallon type explicitly.
Capacity and material volume
Rectangular Tank gives the full interior volume, not the amount of liquid at a partial fill level. Tube gives the solid material between its inner and outer surfaces, without end caps. To find the open bore’s capacity instead, choose Cylinder and enter the inner radius and length.