Volume Calculator
This volume calculator finds the volume of a rectangular box, cylinder, sphere, cone or square pyramid from its measurements. A cone with a radius of 5 and a height of 12 has a volume of 100π ≈ 314.159 cubic units.
Sources: OpenStax Prealgebra 2e Updated
Calculate the volume of various 3D shapes using their mathematical formulas.
Cube / Rectangular Prism
Formula: V = l × w × h
┌─────────┐
/│ /│
/ │ / │ h (height)
┌─────────┐ │
│ │ │ │
│ └──────│──┘
│ / │ / w (width)
└─────────┘
l (length)
Cylinder
Formula: V = π × r² × h
╭─────╮
│ │
│ │ h (height)
│ │
╰─────╯
└─┘
r (radius)
Sphere
Formula: V = (4/3) × π × r³
The sphere volume formula calculates the space inside a perfect ball by using the radius cubed, multiplied by π and 4/3.
╭───╮
╱ ╲
│ •────│ r (radius)
╲ ╱
╰───╯
Cone
Formula: V = (1/3) × π × r² × h
╱╲
╱ ╲
╱ ╲ h (height)
╱ ╲
╱________╲
└──┘
r (radius)
Pyramid (Square Base)
Formula: V = (1/3) × b² × h
╱╲
╱ ╲
╱ ╲ h (height)
╱ ╲
╱________╲
└────────┘
b (base edge)
Volume formulas
| Shape | Volume |
|---|---|
| Rectangular box | V = length × width × height |
| Cylinder | V = πr²h |
| Cone | V = ⅓πr²h |
| Square pyramid | V = ⅓b²h |
| Sphere | V = 4⁄3 πr³ |
The box, cylinder, cone and sphere formulas are the ones in OpenStax Prealgebra. Each is a base area times a height, scaled for how the shape narrows.
How to find the volume of a cone: radius 5, height 12
- Square the radius: 5² = 25.
- Multiply by π and the height for the matching cylinder: π × 25 × 12 = 300π ≈ 942.478.
- Take one third for the cone: 300π ÷ 3 = 100π ≈ 314.159 cubic units.
The base of a cylinder or cone is a circle, so the first two steps are the circle area times the height. The cone calculator adds the slant height and surface area.
Why cones and pyramids take a third
A box or cylinder has the same cross-section all the way up. A cone or pyramid shrinks to a point, and adding up its slices gives exactly one third of the matching prism or cylinder.
That is why the cone above, 100π, is exactly a third of its cylinder, 300π.
Volume of a sphere: radius 6
V = 4⁄3 × π × 6³ = 4⁄3 × π × 216 = 288π ≈ 904.779 cubic units. Because the radius is cubed, doubling it multiplies the volume by 2³ = 8.
The sphere calculator also works back from a volume or surface area to the radius.
The square pyramid
The pyramid here has a square base, so V = ⅓ × b² × h with b the length of one base edge. A pyramid with a base edge of 6 and a height of 10 holds ⅓ × 36 × 10 = 120 cubic units.
For another base shape, work out the base area first and use V = ⅓ × base area × height. The outside of a cylinder, rather than what it holds, is the job of the cylinder surface area calculator.
Questions about volume
What is the formula for the volume of a cylinder?
V = π × r² × h: the area of the circular base times the height. A cylinder with radius 5 and height 12 holds π × 25 × 12 = 300π ≈ 942.478 cubic units.
Why is the volume of a cone one third of a cylinder?
A cone narrows evenly from its base to a point. Adding up its circular slices from bottom to top gives exactly one third of the cylinder with the same base and height. The same is true of a pyramid and its prism.
What units is volume measured in?
Cubic units: cm³ if the lengths are in centimetres, m³ for metres. One litre is 1,000 cm³.
Sources
- OpenStax Prealgebra 2e, 9.6 Solve Geometry Applications: Volume and Surface Area — volume of rectangular solids, spheres, cylinders and cones (checked October 16, 2026)