Volume measures how much space a solid takes up — or how much it can hold. This calculator covers twelve shapes: the cube, the rectangular box (cuboid), the cylinder, the cone, the sphere and hemisphere, the square or rectangular pyramid, the triangular pyramid, the triangular prism, the trapezoidal prism, the capsule and the frustum of a cone (a cone with its tip cut off, like a bucket or a flower pot).
Enter the dimensions in mm, cm, dm, m, inches, feet or yards and the volume appears in cubic units of your choice. A second result gives the capacity directly in millilitres, litres, cubic metres or US and UK gallons, so you can answer "how many litres does this tank hold?" without a separate conversion. For prisms, cylinders, pyramids and cones the base area is shown too, since every one of their formulas starts from it.
It is useful for homework, but also for real jobs: sizing a water tank or an aquarium, the amount of concrete for a cylindrical column, the soil for a tapered planter, or the content of a capsule-shaped tank. For the outside area of the same solids, see the surface area calculator; for earthworks and shipping volumes in m³ or cubic yards, the cubic volume calculator.
How to use this calculator
- Choose the solid from the list.
- Enter the requested dimensions. Radii are half the diameter; heights are measured perpendicular to the base.
- For a prism, give the shape of the end face (triangle or trapezoid) and the length of the prism.
- Read the volume, and switch its unit if needed (cm³, m³, in³, ft³…).
- Read the capacity in litres or gallons, and open the steps to see the formula with your numbers.
The formula
| Solid | Volume |
|---|---|
| Cube, edge | |
| Rectangular box | |
| Cylinder | |
| Cone | |
| Sphere | |
| Hemisphere | |
| Rectangular pyramid | |
| Triangular pyramid | |
| Triangular prism | |
| Trapezoidal prism | |
| Capsule | |
| Frustum of a cone |
Two ideas cover almost all of them. A prism or cylinder has the same cross-section all along, so (base area times height). A pyramid or cone narrows to a point, and its volume is exactly one third of the prism with the same base and height: . Units: 1 L = 1 dm³ = 1000 cm³, and 1 m³ = 1000 L.
Worked example
Volume of a cylinder in litres. A cylindrical tank has a radius of 10 cm and a height of 30 cm:
Dividing by 1000 gives 9.42 litres.
Other quick checks, all in centimetres: a cube of edge 3 holds 27 cm³; a 5 × 3 × 4 box, 60 cm³; a cone of radius 3 and height 4, cm³; a square pyramid with a 6 × 6 base and a height of 4, cm³; a triangular pyramid with a base triangle of 6 by 4 and a height of 10, 40 cm³; a triangular prism on a triangle of base 3 and height 4, 10 long, 60 cm³; a trapezoidal prism with parallel sides 3 and 5, trapezoid height 4 and length 10, 160 cm³; a sphere of radius 3, 113.10 cm³; a capsule of radius 1 with a 2 cm straight part, 10.47 cm³; and a frustum with radii 3 and 2 and a height of 4, 79.59 cm³.
Volume of a cylinder in litres
Tanks, barrels, pipes and saucepans are cylinders, and the question is usually how many litres they hold. Compute in centimetres and divide by 1000 (1 L = 1000 cm³), or work in decimetres, where one cubic decimetre is one litre. In metres, multiply the m³ result by 1000. A drum 60 cm across (radius 30 cm) and 90 cm high holds cm³, about 254 L. Measure the inside diameter when the walls are thick, and remember that a horizontal tank that is partly full needs a different calculation. The capacity output above does the conversion for you in litres, millilitres or US and UK gallons.
Pyramids and cones: the one-third rule
Every pyramid and every cone has a volume equal to one third of base area times height, whatever the shape of the base. For a pyramid with a square or rectangular base, the base area is . For a pyramid with a triangular base (a tetrahedron when all faces are equilateral), it is , where is the height of the base triangle — not to be confused with the height of the pyramid, measured from the apex straight down to the base. For a cone, the base is a disc of area . A quick way to remember the factor: three identical pyramids of water fill the prism with the same base and height. A frustum is what remains when the top of a cone is cut off parallel to the base; its formula averages the two bases in a special way, .
Prisms: cube, box, triangular and trapezoidal prisms
A prism is a solid with two identical parallel faces joined by rectangles, and its volume is always base area × length. The cube () and the rectangular box () are prisms with square or rectangular ends. A triangular prism — a tent, a Toblerone box, a roof void — has a triangle at each end: volume . If you only know the three sides of the triangle, find its area first with Heron’s formula in the area calculator. A trapezoidal prism — a ditch, a dam, a sloping-sided trough — has a trapezoid at each end: volume , where and are the two parallel sides.
Frequently asked questions
How do I calculate the volume of a cube or a rectangular box?
Multiply the three dimensions. For a cube, that is the edge cubed: a cube of 3 cm holds 27 cm³. For a box, V = L × W × H: 5 × 3 × 4 cm gives 60 cm³.
How do I find the volume of a cylinder in litres?
Compute V = πr²h with lengths in centimetres, then divide by 1000. A cylinder of radius 10 cm and height 30 cm holds about 9,424.78 cm³, or 9.42 litres.
What is the volume of a cone?
One third of the cylinder with the same base and height: V = πr²h / 3. A cone of radius 3 cm and height 4 cm has a volume of 12π ≈ 37.70 cm³.
How do I calculate the volume of a pyramid with a triangular base?
Find the area of the base triangle (½ × base × height of the triangle), multiply by the height of the pyramid and divide by 3. With a 6 × 4 triangle and a height of 10: 12 × 10 / 3 = 40.
What is the volume of a triangular prism?
Area of the triangular end times the length of the prism: V = ½ × b × hₜ × L. A triangle of base 3 and height 4 on a 10-unit prism gives 6 × 10 = 60 cubic units.
How do I calculate the volume of a trapezoidal prism?
Multiply the area of the trapezoid, (a + b) / 2 × hₜ, by the length of the prism. Parallel sides of 3 and 5, a trapezoid height of 4 and a length of 10 give 16 × 10 = 160 cubic units.
Sources
- OpenStax, Prealgebra 2e — §9.6 Solve Geometry Applications: Volume and Surface Area
- Weisstein, Pyramid — Wolfram MathWorld (V = ⅓ base × height)
- Weisstein, Conical Frustum — Wolfram MathWorld
- Weisstein, Capsule — Wolfram MathWorld
Last updated: