Volume Calculator

Find the volume of cubes, boxes, cylinders, cones, spheres, pyramids, prisms, capsules and tubes, with results in cubic units, litres and gallons.

Volume calculator
Volume

    Uses π to full precision. Litres: 1 litre = 1,000 cm³. Gallons are US liquid gallons (3.785411784 litres); UK gallons are 4.54609 litres.

    On this page

    A volume calculator works out how much space a 3D shape takes up, from its dimensions, for cubes, boxes, cylinders, cones, spheres, hemispheres, pyramids, prisms, capsules, frustums and tubes. It converts the answer into cubic metres, cubic centimetres, litres, US and UK gallons, cubic feet and cubic inches, and gives the surface area for shapes where it’s useful.

    For example, a cylinder with a radius of 5 cm and a height of 10 cm has a volume of 785.398 cm³, which holds about 0.785 litres. A box 2 × 3 × 4 metres holds 24 m³, or 24,000 litres, and a sphere with a 6-inch radius has a volume of about 904.78 cubic inches, nearly 14.83 litres.

    How to use the volume calculator

    1. Choose the shape.
    2. Choose the unit you measured in: millimetres, centimetres, metres, inches, feet or yards.
    3. Enter the measurements asked for. Use the radius for round shapes, which is half the diameter.
    4. Press Calculate to see the volume in your unit and in other common units.

    Volume formulas

    ShapeFormulaExample
    CubeV = a³a = 3: 27
    Rectangular boxV = l × w × h2 × 3 × 4 = 24
    CylinderV = πr²hr = 5, h = 10: 785.398
    ConeV = ⅓πr²hr = 3, h = 4: 37.699
    SphereV = 4⁄3 πr³r = 6: 904.779
    HemisphereV = ⅔πr³r = 1: 2.094
    Rectangular pyramidV = ⅓ × l × w × h3 × 4 × 5 ÷ 3 = 20
    Triangular prismV = ½ × b × h × l½ × 3 × 4 × 10 = 60
    CapsuleV = πr²(4⁄3 r + a)r = 2, a = 5: 96.342
    Conical frustumV = ⅓πh(R² + Rr + r²)r = 2, R = 4, h = 6: 175.929
    TubeV = π(R² − r²)lR = 5, r = 4, l = 100: 2,827.433

    Understanding the formulas

    Prisms and cylinders

    Any shape with the same cross-section all the way through, such as a box, a cylinder or a triangular prism, has a volume equal to the area of its cross-section times its length. A cylinder’s cross-section is a circle with area πr², so its volume is πr²h. A triangular prism’s cross-section has area ½ × base × height.

    Pyramids and cones

    A pyramid or cone holds exactly one third of the prism or cylinder with the same base and height. That’s why their formulas include ⅓. A cone with a radius of 3 and a height of 4 has a third of the volume of the matching cylinder: 113.097 ÷ 3 = 37.699.

    Spheres

    A sphere’s volume is 4⁄3 πr³, two thirds of the cylinder that just contains it. Because the radius is cubed, doubling the radius makes the volume eight times larger.

    Frustums and tubes

    A frustum is a cone with its tip cut off, like a bucket or lampshade. A tube, such as a pipe, is the volume of the outer cylinder minus the hollow inner cylinder.

    Converting volume units

    • 1 cubic metre = 1,000 litres = 1,000,000 cubic centimetres
    • 1 litre = 1,000 cm³ = 1,000 millilitres
    • 1 US gallon = 3.785411784 litres; 1 UK gallon = 4.54609 litres
    • 1 cubic foot ≈ 28.3168 litres ≈ 7.4805 US gallons
    • 1 cubic inch ≈ 16.3871 cm³

    Be careful when converting cubic units: because volume has three dimensions, 1 m³ isn’t 100 cm³ but 100 × 100 × 100 = 1,000,000 cm³. The calculator does these conversions for you.

    Everyday uses

    • Water tanks, pools and aquariums: find how many litres or gallons they hold. A round pool 3.6 m across and 1 m deep holds π × 1.8² × 1 ≈ 10.18 m³, or about 10,179 litres.
    • Concrete and soil: work out how much material you need for a slab, post holes or a raised bed, usually in cubic metres or cubic yards.
    • Shipping and storage: compare the capacity of boxes, containers and rooms.
    • Cooking and baking: compare cake tins and pans of different shapes.
    • Science: density calculations need volume, and lab containers are often cylinders or spheres.

    Worked examples

    Concrete for a patio slab

    A patio slab 4 metres long, 3 metres wide and 10 centimetres thick is a rectangular box. Convert the thickness to metres first: 0.1 m. The volume is 4 × 3 × 0.1 = 1.2 m³. Adding 10% for waste and uneven ground, you’d order about 1.32 m³ of concrete.

    A fish tank

    A tank measuring 100 cm × 40 cm × 50 cm holds 100 × 40 × 50 = 200,000 cm³, which is 200 litres or about 52.83 US gallons. In practice you fill it a little below the top, and gravel and decorations take up some of the space.

    A grain silo

    A silo is often a cylinder with a cone on top. For a cylinder 6 metres across and 10 metres tall, the volume is π × 3² × 10 ≈ 282.74 m³. A cone roof 2 metres tall adds ⅓ × π × 3² × 2 ≈ 18.85 m³, for a total of about 301.59 m³. Splitting a complex shape into simple parts like this works for almost any object.

    How size affects volume

    Volume grows much faster than length. If you double every dimension of a shape, its volume becomes 2 × 2 × 2 = 8 times larger, while its surface area becomes only 4 times larger. A sphere with a radius of 2 holds eight times as much as one with a radius of 1. This is why a slightly bigger pizza box, pot or water tank can hold a lot more, and why large animals lose heat more slowly than small ones: they have less surface area for their volume.

    Measuring volume without a formula

    For small irregular objects, such as a stone or a piece of jewellery, use water displacement. Fill a measuring jug part way, note the level, drop the object in and read the new level. The difference is the object’s volume: a rise from 500 ml to 560 ml means the object has a volume of 60 cm³. This is the method Archimedes is said to have used to test whether a crown was pure gold.

    Volume versus capacity versus surface area

    • Volume is the amount of space a solid object takes up, measured in cubic units.
    • Capacity is how much a container can hold, usually measured in litres, millilitres or gallons. For a thin-walled container, it’s almost the same as the inside volume.
    • Surface area is the total area of the outside, measured in square units. You need it for painting, wrapping or insulating an object, not for filling it.

    Common mistakes

    • Using the diameter instead of the radius in a circle or sphere formula, which makes the answer four or eight times too big.
    • Mixing units, such as metres for length and centimetres for thickness.
    • Converting cubic units like ordinary ones: 1 m³ is 1,000,000 cm³, not 100.
    • Forgetting the ⅓ for cones and pyramids.
    • Confusing US and UK gallons when comparing tank or fuel capacities.

    Measuring tips

    • Measure inside dimensions for capacity and outside dimensions for the space an object takes up.
    • Use the same unit for every measurement.
    • For round objects, measure the diameter across the widest point and halve it to get the radius.
    • For irregular shapes, split them into simpler shapes, find each volume and add them up.
    • Add a margin for waste when ordering materials such as concrete or gravel, typically 5% to 10%.

    Related calculations

    Two other tools work well alongside this one: the area calculator, to find the area of common shapes, and the circle calculator, to find a circle’s radius, diameter, circumference and area.

    Frequently asked questions

    Use the formula for the shape. For a box, multiply length × width × height; for a cylinder, π × radius² × height.

    V = πr²h. A cylinder with a radius of 5 cm and a height of 10 cm has a volume of about 785.4 cm³.

    Multiply by 1,000. A volume of 24 m³ holds 24,000 litres.

    About 28.3168 litres, or roughly 7.48 US gallons.

    V = 4⁄3 πr³. A sphere with a radius of 6 inches has a volume of about 904.78 cubic inches.

    A cone holds exactly one third of the volume of a cylinder with the same base and height, which is why its formula includes ⅓.

    Split it into simple shapes, calculate each volume and add them. For small objects, you can also measure the water they displace.

    A US gallon is 3.785 litres and a UK (imperial) gallon is 4.546 litres, about 20% larger.

    Multiply length × width × thickness in metres. A 4 m × 3 m slab 10 cm thick needs 1.2 m³, plus about 10% extra for waste.

    Doubling every dimension multiplies the volume by eight, because volume depends on three dimensions.

    200,000 cm³, which is 200 litres or about 52.83 US gallons.

    Volume measures the space inside a shape in cubic units; surface area measures the outside in square units.

    The formulas use the radius, which is half the diameter. A pipe 10 cm across has a radius of 5 cm.