A volume of a shape calculator finds the volume of nine solids, from cubes and boxes to cylinders, cones, spheres and pyramids, and shows the result in cm³, m³, litres, gallons and other units.
Volume of a Shape Calculator
Volume of cubes, boxes, cylinders, spheres, cones, pyramids, prisms, hemispheres and ellipsoids — in cm³, m³, litres, gallons and more.
The starting values are a cube with a side of 5, a box of 8 by 5 by 4, a cylinder with radius 3 and height 10, a sphere of radius 5, a cone with radius 3 and height 4, a square pyramid with a base of 6 and height 4, a triangular prism with a triangle base of 4, triangle height of 3 and length of 10, a hemisphere of radius 5 and an ellipsoid with semi-axes of 5, 4 and 3. Pick a solid, enter its dimensions and read the volume in the unit you need.
The nine solids and their formulas
Cube: V = a³
Box: V = L × W × H
Cylinder: V = πr²h
Sphere: V = (4 ÷ 3) × πr³
Cone: V = πr²h ÷ 3
Square pyramid: V = a²h ÷ 3
Triangular prism: V = ½ × b × h × L
Hemisphere: V = (2 ÷ 3) × πr³
Ellipsoid: V = (4 ÷ 3) × π × a × b × c
Where a is a side or semi-axis, L, W and H are length, width and height, r is a radius, h is a height, b and h in the prism are the triangle base and triangle height, and L is the length of the prism. In the ellipsoid, a, b and c are the three semi-axes, which are half of the full widths.
Starting results for all nine solids
- Cube, side 5: 125
- Box, 8 by 5 by 4: 160
- Cylinder, radius 3 and height 10: 282.74
- Sphere, radius 5: 523.60
- Cone, radius 3 and height 4: 37.70
- Square pyramid, base 6 and height 4: 48
- Triangular prism, 4, 3 and 10: 60
- Hemisphere, radius 5: 261.80
- Ellipsoid, 5, 4 and 3: 251.33
All of these are in cubic units of whatever length unit you entered.
Worked example: a cylinder tank in litres and gallons
Take a cylindrical tank with a radius of 0.5 m and a height of 1.2 m.
V = π × 0.5² × 1.2 = 0.9425 m³
One cubic metre is 1,000 litres, so the tank holds 942.48 litres.
One US gallon is about 3.785 litres, so that is about 249.0 US gallons.
A litre is also 1,000 cm³, which is why the same tank is 942,478 cm³.
Worked example: cone and pyramid compared with their prisms
A cone with radius 3 and height 4 has a volume of π × 9 × 4 ÷ 3 = 37.70. A cylinder with the same radius and height would hold π × 9 × 4 = 113.10, so the cone is exactly one third of it.
The same rule holds for a pyramid. A square pyramid with a base of 6 and height 4 has a volume of 36 × 4 ÷ 3 = 48, while a box with the same base and height would be 144.
Worked example: a hemisphere and an ellipsoid
A hemisphere of radius 5 has a volume of (2 ÷ 3) × π × 125 = 261.80, exactly half of the sphere of the same radius, 523.60.
An ellipsoid with semi-axes of 5, 4 and 3 has a volume of (4 ÷ 3) × π × 60 = 251.33. If all three semi-axes are 5, the ellipsoid is a sphere and the volume is again 523.60, which is a good way to check an entry.
Worked example: a triangular prism
A prism with a triangle base of 4, a triangle height of 3 and a length of 10 has a cross-section of ½ × 4 × 3 = 6, so the volume is 6 × 10 = 60. The triangle height is the perpendicular height of the triangle, not the length of a sloping side.
Converting volume units
The common conversions are simple. One m³ is 1,000 litres, and one litre is 1,000 cm³, so one m³ is 1,000,000 cm³. A gallon depends on the system, with a US gallon at about 3.785 litres. Use one length unit for all the dimensions before you read the result, so that the volume comes out in the matching cubic unit.
Volume is not the same as the amount to buy
The volume of a shape is the space inside it. For concrete, soil or gravel, you normally order more than the calculated volume to allow for spillage and settling, and the allowance depends on the material. For a tank, the usable volume is less than the full volume because of the fill level and the wall thickness.
Mistakes to avoid
- Entering a diameter where the calculator asks for a radius, which makes the volume four times too big
- Mixing units, such as a radius in centimetres and a height in metres
- Using the sloping side of a cone or pyramid instead of the vertical height
Frequently asked questions
How do I find the volume of a cone or pyramid?
Multiply the base area by the height and divide by 3. A cone with radius 3 and height 4 has a volume of π × 9 × 4 ÷ 3 = 37.70, and a square pyramid with a base of 6 and height 4 has a volume of 48. Each is one third of the matching cylinder or box.
How do I convert cubic metres to litres?
Multiply by 1,000. A volume of 0.9425 m³ is 942.48 litres. To get US gallons, divide the litres by about 3.785, which gives about 249 gallons here.
What is the volume of a hemisphere?
It is two thirds of pi times the radius cubed, exactly half the volume of a full sphere. A hemisphere with radius 5 has a volume of 261.80, against 523.60 for the sphere.
Which solids can this calculator handle?
It handles the cube, box, cylinder, sphere, cone, square pyramid, triangular prism, hemisphere and ellipsoid. For surface area as well as volume, use the shape calculator on this site.




