How to use the volume calculator
Pick the shape first. The fields change to match it, so a sphere asks only for a radius and a box asks for length, width and height. Use the same unit for every measurement.
Round shapes want the radius, which is half the diameter. Cones and pyramids want the straight-up height, not the length of the sloping side.
- Choose a shape: box, cube, cylinder, cone, sphere, hemisphere, triangular prism, rectangular pyramid, frustum or tube.
- Choose the unit: millimeters, centimeters, meters, inches, feet or yards.
- Enter the dimensions shown. For a container, use the inside measurements.
- Set how many identical solids you have, and an occupied percentage if you only want part of the total.
- Press Calculate volume to see the volume, surface area, the formula and a table of units.
Cone volume
A cone holds exactly one third of a cylinder with the same radius and height. A cone with a 3 inch radius and 10 inch height holds pi x 3^2 x 10 / 3 = 94.25 cubic inches. That's about 1.54 liters or 0.41 U.S. gallons.
If you measured the sloping side, that's the slant height, not h. The calculator shows the slant height in the result so you can compare it with your tape.
V = pi x r^2 x h / 3
Cylinder volume
Find the area of the circle, pi x r^2, then multiply by the height. A cylinder with a 1 foot radius and 4 foot height is pi x 1 x 4 = 12.57 cubic feet, or about 94 U.S. gallons.
Got the diameter instead? Halve it first. Entering a diameter as the radius makes the answer four times too big.
V = pi x r^2 x h
Sphere and hemisphere volume
A sphere's volume grows with the cube of its radius, so small radius errors grow fast. A ball with a 10 cm radius holds 4/3 x pi x 10^3 = 4,188.79 cubic centimeters, about 4.19 liters. Half of it, a hemisphere, holds 2,094.40 cubic centimeters.
Sphere: V = 4 x pi x r^3 / 3Hemisphere: V = 2 x pi x r^3 / 3
Tank volume
For a full tank, match it to a shape. A rectangular tank is a box and an upright round tank is a cylinder. A tank measuring 48 x 24 x 24 inches inside holds 27,648 cubic inches, which is exactly 16 cubic feet or about 119.7 U.S. gallons.
The occupied percentage multiplies the full volume. It isn't a fill-depth gauge. In a horizontal cylinder, liquid a quarter of the way up fills only about a fifth of the tank, so don't type a depth reading into that box.
Pool volume
A rectangular pool with a flat floor is a box. A 32 x 16 foot pool, 5 feet deep, holds 2,560 cubic feet, which is about 19,150 U.S. gallons. A round above-ground pool is a cylinder: 24 feet across (12 foot radius) and 4 feet deep gives 1,809.56 cubic feet, about 13,536 gallons.
If the floor slopes evenly from end to end, enter the average depth. A pool running from 3 feet to 7 feet averages 5 feet, so the 32 x 16 example still holds 2,560 cubic feet. Measure to the water line, not the deck, for the water you'll add.
| Shape and size | Volume | Liters | U.S. gallons |
|---|---|---|---|
| Cone, r 3 in, h 10 in | 94.25 in^3 | 1.54 | 0.41 |
| Cylinder, r 1 ft, h 4 ft | 12.57 ft^3 | 355.84 | 94.00 |
| Sphere, r 10 cm | 4,188.79 cm^3 | 4.19 | 1.11 |
| Tank, 48 x 24 x 24 in | 16 ft^3 | 453.07 | 119.69 |
| Pool, 32 x 16 x 5 ft | 2,560 ft^3 | 72,491.13 | 19,150.13 |
| Round pool, r 12 ft, h 4 ft | 1,809.56 ft^3 | 51,240.96 | 13,536.43 |
Formulas for every shape
Here r is radius, R the larger radius, h the perpendicular height, and l, w and a are straight lengths. For the triangular prism, b and t are the two legs that meet at the right angle, and L is the prism's length.
Box: V = l x w x h; cube: V = a^3Right triangular prism: V = L x b x t / 2Rectangular pyramid: V = l x w x h / 3Conical frustum: V = pi x h x (R^2 + R x r + r^2) / 3Tube material: V = pi x (R^2 - r^2) x h
Limits and when to double-check
These are ideal shapes. Real tanks have rounded corners, domed ends and fittings. Pools have steps and coves. Treat the answer as an estimate and use the maker's rated capacity when you have it. Tube mode gives the volume of the tube wall, not the space inside it.
Measurement errors grow. A 1% error in the radius means about 2% error in a cylinder and about 3% in a sphere. Measure at a few spots, and for pressure vessels, chemicals or structural work, rely on approved drawings and a qualified reviewer.
Sources
These references back the formulas and unit definitions on this page.