Volume Calculator

Find the volume of nine 3D shapes, with liters and gallons.

Volume Calculator tool

For a capsule, the length of the straight middle part

—
Volume
—
Liters
—
US gallons
—
Formula

About the Volume Calculator

Water tanks, concrete pours, shipping boxes and aquariums all need volume calculations. This volume calculator handles nine common shapes and converts the answer to liters, gallons and cubic units: a cylindrical tank 1 m across and 1.2 m tall holds about 0.9425 m³, or roughly 942 liters. The formula used for each shape is shown, so you can check the method.

The formulas follow a few patterns. Prisms and cylinders are base area × height: a box is l × w × h and a cylinder is πr²h. Pointed shapes hold a third of the matching prism, so a cone is ⅓πr²h and a pyramid ⅓ × l × w × h. A sphere is ⁴⁄₃πr³ and a hemisphere half of that. A capsule is a cylinder plus a sphere, and a tube is the outer cylinder minus the inner one, π(R² − r²)h.

Example: a box 4 m × 3 m × 2 m holds 24 m³, which is 24,000 liters or about 6,340 US gallons. A cylinder with radius 3 m and height 2 m holds π × 9 × 2 ≈ 56.5487 m³, and a sphere of radius 3 m holds about 113.0973 m³. Since 1 liter is exactly 1,000 cm³, a can 6.6 cm across and 12 cm tall holds about π × 3.3² × 12 ≈ 410 cm³, or 0.41 liters.

For surfaces rather than contents, use the surface area calculator. For concrete and fill, the concrete calculator and cubic yard calculator add bags and cubic yards, and for flat shapes there is the area calculator.

How to use the Volume Calculator

  1. Pick a shapeChoose a cube, box, cylinder, cone, sphere, pyramid, capsule or tube.
  2. Choose the unitSelect the unit your measurements are in.
  3. Enter the dimensionsType the lengths the shape needs, such as radius and height.
  4. Read the volumeSee the volume in cubic units, liters and gallons, with the formula.

Volume Calculator features

  • 9 shapes including capsules and tubes
  • Liters, US gallons and UK gallons
  • Cubic meters, feet, inches and yards
  • Formula shown with your numbers
  • Metric and imperial units
  • Checks that a tube's inner radius is smaller
  • Instant results in your browser

Common uses

  • Tank, pool and container capacity
  • Concrete, soil and gravel estimates
  • Pipe and tube volumes
  • Cooking and brewing vessel sizes
  • Geometry homework

Calculating volume for real jobs: concrete, soil, tanks and shipping

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Volume tells you how much space something fills or how much it holds. It is the number behind ordering concrete, buying soil for a garden, sizing a water tank and paying for freight. This guide covers practical volume calculations, worked examples for a concrete slab and a raised bed, capacity versus volume, shipping in cubic metres and the mistakes that lead to ordering too little or too much.

Concrete and slabs

Concrete is ordered by the cubic metre. A slab's volume is its length times its width times its thickness, all in metres. Thin dimensions are where mistakes creep in: a 10 cm slab is 0.1 m thick, and entering 10 instead multiplies the order by a hundred.

A worked example: a concrete slab

A patio slab measures 5 metres by 4 metres and will be 10 cm thick. Its volume is 5 × 4 × 0.1 = 2 cubic metres. Suppliers and builders usually add a margin of about 5% to 10% for uneven ground and spillage, so about 2.2 cubic metres is a sensible order. Ready-mix trucks carry several cubic metres each, so a small job like this may be cheaper to mix on site or to order as a part load.

Soil for raised beds

A raised garden bed 2.4 metres long, 1.2 metres wide and 0.3 metres deep holds 2.4 × 1.2 × 0.3 = 0.864 cubic metres, which is 864 litres. Bagged compost often comes in 50-litre bags, so the bed needs about 18 bags. Soil settles after watering, so allowing an extra bag or two keeps the bed filled to the top.

Tanks and capacity

Volume and capacity are closely related: capacity is the volume a container can hold, often given in litres. One cubic metre is 1,000 litres. A cylindrical tank's volume is π × radius² × height, using inside measurements. A tank with an inside diameter of 1 metre and a height of 1.2 metres holds about 0.94 cubic metres, or 940 litres, when full to the top.

Shipping and freight

Freight companies charge by weight or by volume, whichever is greater, and sea freight is often priced per cubic metre, called a CBM. A carton measuring 60 × 40 × 40 cm has a volume of 0.096 cubic metres. A standard 20-foot shipping container holds roughly 33 cubic metres inside, though the usable volume is less once boxes are stacked. Calculating the total CBM of a shipment helps compare quotes and choose between shared and full containers.

Irregular shapes

For irregular objects, the displacement method works: submerge the object in water and measure how much the water level rises. For irregular spaces, such as a pond with sloping sides, divide the shape into simpler sections and add their volumes, or average several depth measurements and multiply by the surface area.

Cones, spheres and how they compare

A cone holds exactly one third of the cylinder with the same base and height, and a sphere holds two thirds of the cylinder that just encloses it, a result Archimedes was so proud of that he reportedly wanted it marked on his tomb. These relationships help estimate the volume of piles of sand or grain, which form roughly conical heaps.

Units

Keep all dimensions in the same unit before multiplying, then convert the result. Cubic conversion factors are large: one cubic metre is 1,000,000 cubic centimetres and about 35.3 cubic feet. Converting each dimension first, and multiplying afterwards, avoids the most common errors.

Common mistakes

  • Entering thickness in centimetres when the other dimensions are in metres.
  • Using outside dimensions for a container's capacity.
  • Forgetting a margin for waste and settling.
  • Converting volumes with length factors.

Related tools

For concrete specifically, use Concrete Calculator. For unit conversions, try Volume Converter, and for surface areas, Surface Area Calculator.

Pools with sloping floors

A swimming pool with a shallow end and a deep end has a sloping floor, so use the average depth: a pool 10 metres long and 5 metres wide, 1 metre deep at one end and 2 metres at the other, has an average depth of 1.5 metres and a volume of 75 cubic metres, or 75,000 litres. Pool chemicals are dosed by volume, so getting this figure right matters for safe and clear water.

Water expands when it freezes

Water expands by about 9% when it freezes, which is why bottles left in a freezer can crack and why pipes burst in cold weather. When filling containers that will be frozen, such as ice packs or food storage boxes, leave about a tenth of the volume empty. The same expansion breaks up rocks and road surfaces in cold climates as water in cracks freezes and thaws.

Checking your figures

A quick sanity check catches most volume errors. Picture the result: 2 cubic metres of concrete would fill a box about 1.26 metres on each side, and 864 litres of soil would fill about four large wheelie bins. If the picture does not match the job, a dimension was probably entered in the wrong unit. Checking before ordering is far cheaper than dealing with a delivery that is ten times too large.

Limits

Formulas are exact for ideal shapes; real ground, containers and piles vary, so measure carefully and allow a margin.

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 with radius 5 cm and height 10 cm holds π × 25 × 10 ≈ 785.4 cm³, about 0.785 liters.

What is the volume of a sphere?

V = ⁴⁄₃πr³. A ball with a radius of 10 cm has a volume of about 4,188.8 cm³, or roughly 4.19 liters. Doubling the radius multiplies the volume by eight.

How do I convert cubic meters to liters?

Multiply by 1,000, because one cubic meter holds exactly 1,000 liters. One liter is 1,000 cm³, so a milliliter is the same as a cubic centimeter.

How many gallons are in a cubic foot?

About 7.48 US gallons, or 6.23 UK gallons. One US gallon is 3.785411784 liters and one UK gallon is 4.54609 liters, so check which your source means.

Why is a cone one third of a cylinder?

A cone with the same base and height as a cylinder holds exactly one third as much, a fact Archimedes proved. The same is true for a pyramid compared with a box.

How do I find the volume of an irregular object?

Submerge it in water and measure how much the water level rises, or how much water overflows. That displaced volume equals the object's volume. This is Archimedes' principle, and it works best for objects that do not absorb water.

How do I calculate the volume of a pipe?

Use the tube shape: π × (outer radius² − inner radius²) × length gives the volume of the material. For the space inside the pipe, use a cylinder with the inner radius.