Volume Calculator
Pick a shape, enter its dimensions in any length unit and get the volume with the formula filled in, plus the same volume in liters, gallons and other units.
How to use the Volume Calculator
- Pick what you want to work out using the tabs: Sphere, Cone, Cube, Cylinder, Rectangular tank, Capsule, Spherical cap, Conical frustum, Ellipsoid, Square pyramid or Tube.
- Enter Radius (r).
- Choose Unit of length (Enter every length in this unit).
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
Volume formulas
| Shape | Volume |
|---|---|
| Sphere | 4/3 × π × r³ |
| Cone | π × r² × h ÷ 3 |
| Cube | a³ |
| Cylinder | π × r² × h |
| Rectangular tank | l × w × h |
| Capsule | π × r² × h + 4/3 × π × r³ |
| Spherical cap | π × h² × (3R − h) ÷ 3 |
| Conical frustum | π × h × (r² + rR + R²) ÷ 3 |
| Ellipsoid | 4/3 × π × a × b × c |
| Square pyramid | a² × h ÷ 3 |
| Tube | π × (D² − d²) ÷ 4 × l |
Two patterns are worth remembering. A prism or cylinder is base area × height. A cone or pyramid with the same base and height holds exactly one third as much. A sphere fills two thirds of the cylinder that just encloses it.
Worked examples
A ball with radius 5 cm: V = 4/3 × π × 5³ = 4/3 × π × 125 ≈ 523.60 cm³, a little over half a liter.
A round tank 3 ft in radius and 10 ft tall: V = π × 3² × 10 ≈ 282.74 ft³. One cubic foot is about 7.48 US gallons, so the tank holds roughly 2,115 gallons. The table under each result does these conversions for you.
Units
Enter every length in the same unit and the volume comes out in that unit cubed: centimeters give cm³, feet give ft³. Because volume is three lengths multiplied together, converting is not linear. One meter is 100 cm, but one cubic meter is 100 × 100 × 100 = 1,000,000 cm³. Useful anchors: 1 liter = 1,000 cm³, 1 m³ = 1,000 liters, and 1 US gallon ≈ 3.785 liters.
Practical tips
- Measure the inside of a container if you want its capacity, and the outside if you want the space it takes up.
- For a pipe or hose, the tube mode gives the volume of the wall material. For the water it holds, use a cylinder with the inner radius.
- A spherical cap is the slice of a ball cut off by a plane, such as the liquid in a round-bottomed bowl. Its height cannot exceed the ball’s diameter.
- Radius is half the diameter. Entering a diameter as a radius makes the answer eight times too big for a sphere.
Frequently asked questions
How do I calculate the volume of a cylinder?
Multiply the area of the circular base by the height: V = π × r² × h. A cylinder 4 cm in radius and 10 cm tall holds π × 16 × 10 ≈ 502.65 cm³.
How many liters are in a cubic meter?
Exactly 1,000 liters. A liter is the volume of a 10 cm cube, which is 1,000 cm³.
How do I convert cubic feet to gallons?
Multiply by about 7.4805 for US gallons or 6.2288 for UK gallons. The calculator lists these conversions under every result.
What is a conical frustum?
A cone with its tip cut off by a cut parallel to the base, like a bucket or a lampshade. It has two different radii, r at the top and R at the bottom.