MathsGeometry

Volume
calculator.

Pick a shape and type its size. You get the volume in liters, gallons or cubic units, with every step.

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:

V\displaystyle V=πr2h\displaystyle {}= \pi r^2 h

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:

V\displaystyle V=43πr3\displaystyle {}= \tfrac{4}{3}\pi r^3
ShapeVolumeShare of its box
CubeV=s3V = s^3100%
Rectangular prism (box)V=lwhV = lwh100%
CylinderV=πr2hV = \pi r^2 h78.5%
SphereV=43πr3V = \tfrac{4}{3}\pi r^352.4%
HemisphereV=23πr3V = \tfrac{2}{3}\pi r^352.4%
ConeV=13πr2hV = \tfrac{1}{3}\pi r^2 h26.2%
Rectangular pyramidV=13lwhV = \tfrac{1}{3} lwh33.3%
Triangular prismV=12bhlV = \tfrac{1}{2} bhl50%
CapsuleV=πr2(h+43r)V = \pi r^2\left(h + \tfrac{4}{3}r\right)61.1%
EllipsoidV=43πabcV = \tfrac{4}{3}\pi abc52.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.

Open this example in the tool

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.

Open this example in the tool

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².

Open this example in the tool

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

One cubic foot holds about 7.48 US gallons, or 28.32 liters. A US gallon is defined as exactly 231 cubic inches, so you can also divide a volume in cubic inches by 231. Choose US gallons under the answer and the tool does this for you.

Sources