Volume
calculator.
Pick a shape and type its size. You get the volume in liters, gallons or cubic units, with every step.
The radius is squared and the height is not, so doubling the radius makes the volume 4 times larger, while doubling the height only doubles it. The cylinder fills 78.54% of the smallest box around it.
Side view, to scale
The cylinder is 10 cm across and 10 cm tall from the side. It fills 78.54% of a 1,000 cm³ bounding box.
Working
- 1Volume of a cylinderV = πr²h
- 2Put in your numbersV = π × 5² × 10= 785.4 cm³
- 3Surface areaA = 2πr(r + h)= 471.24 cm²
- 4Share of the bounding boxVbox=785.41,000= 78.54%
- 5Check: the same cylinder measured in inches, same litersr = 1.9685 in, h = 3.937 inV = 47.93 in³ = 0.785 L
- 6AnswerV = 785.4 cm³
How the volume changes
Volume against radius r from 0 to 10 cm, with the other dimensions fixed. At your r = 5 cm the volume is 785.4 cm³ (the brass point); at half that, r = 2.5 cm, it is 196.35 cm³.
What if r changes
| r (cm) | cm³ | L |
|---|---|---|
| 2.5 | 196.35 | 0.196 |
| 3.75 | 441.79 | 0.442 |
| 5 (yours) | 785.4 | 0.785 |
| 6.25 | 1,227.18 | 1.23 |
| 7.5 | 1,767.15 | 1.77 |
| 8.75 | 2,405.28 | 2.41 |
| 10 | 3,141.59 | 3.14 |
From half your r to double it in quarter steps, with every other dimension kept. Halving r gives 196.35 cm³; doubling it gives 3,141.59 cm³.
Every unit
| Unit | Volume |
|---|---|
| Cubic centimeters | 785.4 cm³ |
| Milliliters | 785.4 mL |
| Liters | 0.785 L |
| Cubic meters | 0.000785 m³ |
| US gallons | 0.207 gal |
| Imperial gallons | 0.173 imp gal |
| Cubic inches | 47.93 in³ |
| Cubic feet | 0.0277 ft³ |
| Cubic yards | 0.00103 yd³ |
Exact definitions: 1 in = 2.54 cm and 1 US gallon = 231 in³.
Volumes for a list
Type or paste rows of radius r, height h in cm, for example several cylinders from a spreadsheet. Each row gets its own volume.
| # | r (cm) | h (cm) |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 |
Volume of each row
| r × h (cm) | cm³ | L | gal |
|---|---|---|---|
| 5 × 10 | 785.40.785 L0.207 gal | 0.785 | 0.207 |
| 10 × 30 | 9,424.789.42 L2.49 gal | 9.42 | 2.49 |
| 25 × 90 | 176,714.59176.71 L46.68 gal | 176.71 | 46.68 |
Keyboard shortcuts
- Up and Down in a dimension box change it by 1. Hold Shift for 10, Alt for 0.1.
- Tab to the brass point on the chart, then use Left and Right to resize. Shift moves it further.
- Plus and Minus zoom the focused chart; 0 resets it.
How it’s worked out
Volume is the space inside a solid, counted in cubes. A box 3 cm long, 2 cm wide and 1 cm tall holds six 1 cm cubes, so its volume is 6 cm³. Every formula here is a shortcut for that count.
Shapes with straight sides from top to bottom (boxes, cylinders and prisms) all follow one rule: the area of the base times the height. A cylinder's base is a circle of area πr², so:
Here r is the radius, half the width across the circle, and h is the height. Shapes that taper to a point (cones and pyramids) hold exactly a third of the matching prism. A cone of radius 3 and height 10 holds 94.25 cubic units, and the cylinder around it holds 282.74. A sphere fills two thirds of the cylinder that just contains it, which Archimedes proved more than 2,000 years ago:
| Shape | Volume | Share of its box |
|---|---|---|
| Cube | 100% | |
| Rectangular prism (box) | 100% | |
| Cylinder | 78.5% | |
| Sphere | 52.4% | |
| Hemisphere | 52.4% | |
| Cone | 26.2% | |
| Rectangular pyramid | 33.3% | |
| Triangular prism | 50% | |
| Capsule | 61.1% | |
| Ellipsoid | 52.4% |
The last column is the share of the smallest box around the shape that the shape fills. The tool shows it for your own numbers too, as the split bar under the side view.
Units follow the same cube rule. A foot is 12 inches, so a cubic foot is 12 × 12 × 12 = 1,728 cubic inches, or 28.32 L. A cubic meter is 1,000 L. Conversions use the exact definitions 1 in = 2.54 cm and 1 US gallon = 231 in³.
Worked examples
How much does the water tank hold?
Sam has an upright tank with an inside radius of 0.5 m and a height of 2 m. The volume is π × 0.5² × 2 = 1.5708 m³. That is 1,571 L, or about 415 US gallons. Measure inside the walls, or the answer includes the plastic.
Soil for a raised bed
Maria is filling a bed 8 ft long, 4 ft wide and 1 ft deep. The volume is 8 × 4 × 1 = 32 ft³. Bulk soil is sold by the cubic yard, and a cubic yard is 27 ft³, so she needs 1.19 yd³. Soil settles after watering, so most growers order a little extra. In bags it is about 906 L.
Why a bigger ball holds so much more air
A basketball has a radius of about 4.7 in. Its volume is 434.9 in³, or 7.13 L. A ball twice as wide, with a radius of 9.4 in, holds 3,479 in³. That is eight times as much, because the radius is cubed. Its surface grows only four times, from 278 to 1,110 in².
Reading your result
The volume comes out in your length unit cubed: centimeters in gives cm³, feet in gives ft³. Pick another unit under the answer to see liters, gallons or cubic yards, or read them all in the table of every unit. One cm³ is exactly one milliliter.
US and imperial gallons differ. A US gallon is 3.785 L and an imperial gallon is 4.546 L, about 20% more. Use US gallons for products sold in the United States and imperial gallons for older UK figures.
The surface area is the outside skin in square units, useful for paint, insulation or sheet material. It is exact for every shape except the ellipsoid, which has no simple formula. There the tool uses Knud Thomsen's approximation, which stays within about 1%. The triangular prism assumes the two sloping faces are equal.
The box share tells you how much space the shape wastes in a crate. A sphere fills just over half of its box, so packing balls in boxes leaves almost half the space empty.
The chart shows how the volume responds to one dimension. A straight line means that dimension counts once; a curve that bends up means it is squared or cubed, so small measuring errors there matter most.
Common mistakes
- Typing the diameter as the radius. Every round shape here asks for the radius. A 30 cm wide pot has a radius of 15 cm. Using 30 makes a cylinder four times too big.
- Mixing units. A bed 8 ft long and 6 in deep must go in as 8 ft and 0.5 ft, or as 96 in and 6 in. Pick one unit and convert the rest before you type.
- Measuring the outside of a container. For how much it holds, measure inside the walls. On a thick tank the difference can be several percent.
- Confusing square and cubic units. Square feet measure an area to cover; cubic feet measure a space to fill. Multiply an area by a depth to get a volume.
- Treating a tapered tub as a cylinder. A bucket wider at the top is a frustum, not a cylinder. The frustum calculator handles two different radii.
- Rounding the radius first. The radius is squared or cubed, so a 5% rounding error in r becomes about 10% in a cylinder's volume and about 16% in a sphere's.
Questions people ask
Sources
- NIST Special Publication 811 (2008), Appendix B: exact conversion factors (1 in = 2.54 cm, 1 US gallon = 231 in³)
- Stewart, Calculus: Early Transcendentals, 8th edition, section 6.2 (volumes by cross-sections)
- Knud Thomsen, approximation for the surface area of an ellipsoid, p = 1.6075 (2004)