Volume Calculator

Pick a shape, enter its dimensions in any mix of units, and get the volume with the formula and common unit conversions.

Quick answer. Volume is the space a shape takes up. A sphere of radius 2 m has 33.51 m³, a cylinder of radius 3 m and height 5 m has 141.37 m³ (about 141,372 litres), and a cone is one third of the matching cylinder.

What volume measures

Volume is the amount of three-dimensional space a shape takes up, written in cubic units such as cubic metres (m³) or cubic feet. It is also how much a container can hold, and for liquids that capacity is usually quoted in litres or gallons: one cubic metre is 1,000 litres, or about 264 US gallons. Choose a shape, type the dimensions, and the calculator shows the volume together with the same value in other common units, so you can move between a technical drawing in cubic metres and a shop that sells by the litre.

Eleven shapes, eleven formulas

Here is each shape on the page with the numbers it opens with. All lengths are in metres, so the volumes are in cubic metres.

ShapeDefault dimensionsFormulaVolume (m³)
Spherer = 24/3 × π × r³33.51
Coner = 3, h = 41/3 × π × r² × h37.70
Cubea = 3a³27.00
Cylinderr = 3, h = 5π × r² × h141.37
Rectangular tankl = 2, w = 3, h = 4l × w × h24.00
Capsuler = 2, h = 54/3 × π × r³ + π × r² × h96.34
Spherical capr = 3, h = 1 (so R = 5)1/3 × π × h² × (3R − h)14.66
Conical frustumr = 2, R = 4, h = 51/3 × π × h × (r² + rR + R²)146.61
Ellipsoida = 2, b = 3, c = 44/3 × π × a × b × c100.53
Square pyramida = 4, h = 51/3 × a² × h26.67
Tube (hollow cylinder)d₁ = 6, d₂ = 4, l = 10π × (d₁² − d₂²) × l ÷ 4157.08
Default volume of each shape on the page (cubic units)The tube, at 157.08 cubic units, is the largest default, then the frustum at 146.61 and the cylinder at 141.37, while the spherical cap is the smallest at 14.66.Default volume of each shape on the page (cubic units)Sphere33.51Cone37.70Cube27.00Cylinder141.37Rectangular tank24.00Capsule96.34Spherical cap14.66Conical frustum146.61Ellipsoid100.53Square pyramid26.67Tube (hollow cylinder)157.08
The default volume of every shape.

Worked example: a sphere

The page opens on a sphere of radius 2 m. The volume is 4/3 × π × 2³ = 32π/3 = 33.510321638291 m³. Below it the tool lists the same volume in other units:

UnitSame volume
Cubic meters (m³)33.510321638291
Liters33510.321638291
Milliliters (cm³)33510321.638291
US gallons8852.490442369
Cubic feet1183.4058403861
Cubic inches2044925.2921872

Worked example: a round water tank

A cylindrical tank has a radius of 3 m and a height of 5 m. The volume is π × 3² × 5 = 141.37 m³. Since 1 m³ is 1,000 litres, the tank holds about 141,372 litres, and as a litre of water has a mass of 1 kg, that is about 141.37 tonnes of water when full.

Cones, cylinders and the one-third rule

A cone holds exactly one third as much as the cylinder with the same base and height. A cone of radius 3 m and height 4 m has a volume of 37.70 m³, while the cylinder with that base and height would hold 113.10 m³, three times as much. The same rule gives the pyramid: a square pyramid with a base edge of 4 m and a height of 5 m has 4² × 5 ÷ 3 = 26.67 m³, a third of the 80 m³ box around it.

Sphere, cone and cylinder together

Archimedes found a neat link. For a sphere of radius 2 m, the cylinder that just contains it has a height of 4 m and a volume of 50.27 m³. The sphere takes up 33.51 m³, exactly two thirds of that. A cone with the same radius and height 2 m has 8.38 m³, so the cone, the hemisphere and the cylinder with the same radius and height are in the proportion 1 : 2 : 3.

How volume grows with size

Volume grows with the cube of the size. Doubling the radius of a sphere multiplies its volume by 8, and tripling it by 27.

RadiusVolume of a sphereCompared with radius 1
14.191 times
233.518 times
3113.1027 times
4268.0864 times
Volume of a sphere as the radius grows (cubic units)Volume grows with the cube of the radius: doubling it from 2 to 4 multiplies the volume by 8, from 33.51 to 268.08.Volume of a sphere as the radius grows (cubic units)radius 14.19radius 233.51radius 3113.10radius 4268.08
Volume rises with the cube of the radius.

Rooms, pools and everyday containers

  • A room. A room 4 m by 3 m with a 2.5 m ceiling has 30.00 m³ of air, which is 30,000 litres or 1,059.44 cubic feet.
  • A swimming pool. A pool 8 m by 4 m filled to 1.5 m holds 48.00 m³, about 12,680 US gallons.
  • A bucket. A bucket is a conical frustum. With a top radius of 15 cm, a bottom radius of 12 cm and a height of 30 cm, it holds about 17.25 litres (enter the lengths in centimetres).
  • A pipe. The tube shape gives the volume of material in a hollow cylinder, such as a concrete culvert 10 m long with an outer diameter of 6 m and an inner diameter of 4 m: 157.08 m³. For the space inside it, use the cylinder with the inner diameter.

Capsule, spherical cap and frustum

  • Capsule. A cylinder of height 5 with a hemisphere on each end, radius 2: the two hemispheres make a sphere of 33.51 and the middle is 62.83, a total of 96.34.
  • Spherical cap. A slice of a ball. Give any two of the base radius, the ball radius and the height. With base radius 3 and height 1 the ball radius is 5 and the volume is 14.66. If you give the base radius and the ball radius there can be two possible caps, and the tool shows both.
  • Conical frustum. A cone with its top cut off, with top radius 2, bottom radius 4 and height 5: 146.61.
  • Ellipsoid. Unlike its surface area, the volume has an exact formula: 4/3 × π × a × b × c = 100.53 for axes 2, 3 and 4.

Volume, capacity and weight

Volume tells you how much space a liquid takes, and from that its mass. Water has a mass of 1 kg per litre, so a US gallon (3.785 litres) of water has a mass of about 3.785 kg, or 8.35 lb, and a cubic foot of water has a mass of about 62.43 lb. The default sphere of 33.51 m³ would hold 33,510 kg of water, or 33.51 tonnes. For other materials, multiply the volume by the density, which the Density Calculator and the Mass Calculator do for you.

Mixing units

Each dimension has its own unit menu, so you can enter a length in feet, a width in inches and a height in metres. The calculator converts everything to a common unit and shows the answer in each unit you used. A box 6 feet long, 24 inches wide and 1 metre high has a volume of 39.37 ft³, which is 68,031 in³ or 1.11 m³, and the same volume in litres, gallons and other units appears underneath.

Units and conversions

UnitEquals
1 cubic metre1,000 litres = 264.17 US gallons = 35.31 cubic feet
1 litre1,000 millilitres = 1,000 cm³ = 0.2642 US gallons
1 US gallon3.785 litres = 231 cubic inches
1 cubic foot28.317 litres = 7.48 US gallons
1 cubic yard27 cubic feet = 0.7646 cubic metres

Common mistakes

  • Using the diameter where the radius is expected. Check the label on each box.
  • Mixing up volume (cubic units) with area (square units).
  • Using the wrong unit for a liquid: cubic metres and litres differ by a factor of 1,000.
  • Forgetting the one-third for cones and pyramids.
  • Giving the same length as both outer and inner diameter of a tube.

How to read your result

The large number is the volume with its unit, and a formula box repeats the equation used. For shapes where there are two answers, such as a spherical cap, both are shown. At the bottom the same volume appears in cubic metres, litres, millilitres, US gallons, cubic feet and cubic inches. The Density Calculator turns a volume into a mass.

The formulas are exact for ideal shapes. Real tanks, pools and containers have thickness, slopes and fittings, so allow a margin before you order materials or liquids.

What to do next

Common questions

How do I find the volume of a cylinder?

Multiply pi by the radius squared and by the height. For a radius of 3 and a height of 5 the volume is about 141.37 cubic units.

How many litres are in a cubic metre?

There are 1,000 litres in a cubic metre, which is about 264 US gallons.

Why is a cone one third of a cylinder?

A cone with the same base and height as a cylinder always holds exactly one third as much. The same applies to a pyramid and the box around it.

Can I mix units?

Yes. Each dimension has its own unit menu. The calculator converts to a common unit and shows the answer in each unit you used.

What does the tube shape calculate?

It gives the volume of the material in a hollow cylinder, from the outer diameter, the inner diameter and the length.

How does the spherical cap work?

Fill in any two of the base radius, the ball radius and the height. If you give the base radius and the ball radius, there can be two caps, a small one and a large one.

Sources: Wikipedia: Volume; Wikipedia: Spherical cap; Wikipedia: Frustum; Wikipedia: On the Sphere and Cylinder

More Math Calculators

Pick another tool to jump straight to it.