Skip to content

Volume Calculator

Find the volume of 10 common shapes — box, cube, sphere, cylinder, cone, frustum, capsule, ellipsoid, pyramid and tube — in any unit, with instant liter and gallon conversions.

Pick a shape, type its measurements, and choose a unit beside each field (every length from miles to angstroms). The volume updates instantly and converts to the unit you choose on the right.
  • miles
  • yards
  • feet
  • inches
  • kilometers
  • meters
  • centimeters
  • millimeters
  • micrometers
  • nanometers
  • angstroms
  • miles
  • yards
  • feet
  • inches
  • kilometers
  • meters
  • centimeters
  • millimeters
  • micrometers
  • nanometers
  • angstroms
  • miles
  • yards
  • feet
  • inches
  • kilometers
  • meters
  • centimeters
  • millimeters
  • micrometers
  • nanometers
  • angstroms

Results

Box V = l × w × h
  • cubic miles
  • cubic yards
  • cubic feet
  • cubic inches
  • cubic kilometers
  • cubic meters
  • cubic centimeters
  • cubic millimeters
  • liters
  • milliliters
  • US gallons
  • imperial gallons
Volume — Box
Cubic meters
Liters
US gallons
Cubic feet
Cubic inches
Milliliters
Calculation

    Quick Answer

    A volume calculator finds the 3D space inside a shape from its measurements: for a box, volume = length × width × height; for a sphere, V = 4⁄3 π r³; for a cylinder, V = π r² h. Enter your dimensions in any length unit (from millimeters to miles) and read the result instantly in cubic units, liters, or gallons.

    Volume calculator chart of formulas by shape: box, cube, sphere, cylinder, cone, frustum, capsule, ellipsoid, pyramid and tube
    The ten shapes this volume calculator solves, each with its formula.

    Volume Formulas for Every Shape

    Volume measures the space a solid occupies, in cubic units. Each shape has its own formula built from its dimensions — a length, a radius, or a set of axes. This calculator covers the ten shapes below, takes every dimension in its own unit, converts to metres before it multiplies, and converts the answer to any of twelve volume units.

    The two relationships worth memorising: a cone is exactly one third of the cylinder with the same radius and height, and a sphere is exactly two thirds of the cylinder that just encloses it. At r = 10 cm that is a 6.283 L cylinder, a 2.094 L cone and a 4.189 L sphere.
    ShapeFormulaExampleVolume
    BoxV = l × w × h50 × 40 × 30 cm60 L
    CubeV = a³a = 10 cm1 L
    SphereV = 4⁄3 π r³r = 10 cm4.189 L
    CylinderV = π r² hr 10, h 20 cm6.283 L
    ConeV = 1⁄3 π r² hr 10, h 20 cm2.094 L
    Cone frustumV = 1⁄3 π h (R² + R·r + r²)R 12, r 6, h 20 cm5.278 L
    CapsuleV = π r² (a + 4⁄3 r)r 5, a 20 cm2.094 L
    EllipsoidV = 4⁄3 π a b ca 10, b 8, c 6 cm2.011 L
    Square pyramidV = 1⁄3 a² ha 12, h 18 cm0.864 L
    Tube / pipeV = π h (R² − r²)R 10, r 8, h 30 cm3.393 L

    A frustum is not simply a cone with the top removed at the same height. Tapering from R 12 cm to r 6 cm over 20 cm gives 5.278 L, while a full cone with the same 12 cm base and the same 20 cm height gives only 3.016 L — the frustum is wider at every level above the base, so it holds 75% more. A capsule works the other way round and is easier: it is a cylinder plus one whole sphere of the same radius, which is why r 5, a 20 cm comes to 2.094 L against the plain cylinder’s 1.571 L.

    Two Mistakes That Change the Answer

    Nearly every wrong volume comes from one of two places, and neither is the formula.

    Typing the diameter where the radius belongs. It is the most expensive slip on this page, because the error is squared or cubed. A cylinder of radius 10 cm and height 20 cm is 6.283 L; enter the 20 cm diameter as the radius and you get 25.133 L — 4 times too big. For a sphere it is worse: 4.189 L becomes 33.51 L, 8 times too big. Measure across the full circle, then halve it before it goes in the box.

    The second is mixing up volume with area. Area covers a surface and is measured in square units; volume fills a space and is measured in cubic units. Paint and flooring are area problems; water, soil, concrete and air are volume problems. If your answer needs to be in m², you are on the wrong calculator — and the section on circles below is the same confusion in its most common form.

    How to Use the Volume Calculator

    1. Pick the shape

      Choose from the ten shapes at the top. The input fields change to match, so you only ever see the dimensions that shape actually needs — one for a cube, three for a frustum.

    2. Enter each dimension in its own unit

      Every field has its own picker covering eleven length units, from miles down to angstroms. A tank measured 4 ft long and 60 cm wide needs no conversion from you; the tool converts each dimension to metres before it multiplies.

    3. Choose the output unit

      Twelve options, from cubic millimetres to cubic miles, plus litres, millilitres, US gallons and imperial gallons. Litres is the default.

    4. Check the working

      The steps card shows the formula, the substitution with your numbers converted to metres, and the result. If a number looks wrong, that middle line is where the mistake will be visible.

    Tube and Pipe Volume: the Wall, or What Fits Inside?

    This is the question that trips people up, and the answer depends on which one you actually want.

    The Tube / pipe shape returns the volume of the material the tube is made of, not its capacity. V = π h (R² − r²) is the ring of wall between the outer and inner radius. For a tube 30 cm long with an outer radius of 10 cm and an inner radius of 8 cm, that wall is 3.393 L — but the space inside it is 6.032 L, 1.78 times as much. To get capacity, choose Cylinder and enter the INNER radius.

    Which one you need depends on the job. The wall volume is what you want for the weight of a length of pipe, or how much material a casting takes. The bore volume is what you want for how much water a run of pipe holds, how long it takes to flush, or how much a heating system needs to fill. Since pipes are specified by internal diameter, this table gives the capacity directly.

    Internal diameterLitres per metreLitres per 10 mUS gallons per 10 m
    10 mm0.078540.78540.20748
    15 mm0.176711.7670.46683
    20 mm0.314163.1420.82992
    25 mm0.490874.9091.297
    32 mm0.804258.0422.125
    50 mm1.96319.6355.187
    75 mm4.41844.17911.671
    100 mm7.85478.5420.748
    150 mm17.671176.71546.683

    Capacity scales with the square of the diameter, which is why the jumps are so large: doubling from 50 mm to 100 mm does not double the capacity, it quadruples it, from 1.963 to 7.854 litres per metre. Once you have the volume, turning it into a weight is a density problem — our grams to mL converter does that step for liquids other than water.

    A Circle Has No Volume

    Searches for a volume of a circle are common, and the honest answer is that a circle cannot have one. A circle is a flat, two-dimensional shape: it has an area, π r², measured in square units. Volume needs a third dimension. At r = 10 cm the circle’s area is 314.159 cm², and that is the end of what a circle can tell you.

    What people usually mean, and which shape to pick: a ball is a sphere (4.189 L at r 10 cm); a tin, tank or round column is a cylinder (6.283 L at r 10, h 20 cm); a funnel or heap is a cone (2.094 L at the same radius and height); a round pipe is a cylinder at the inner radius. If your shape is genuinely flat, you want area, not volume — our square metre calculator handles that.

    Volume Unit Conversions

    The conversions are exact by definition rather than rounded approximations, because they all derive from exact length definitions: a foot is 0.3048 m and an inch is 0.0254 m, as set out in NIST Special Publication 811, Appendix B.8. The two gallons are different sizes and always have been: the US gallon is 3.785411784 L, while the imperial gallon is 4.54609 L, defined in the Schedule to the Units of Measurement Regulations 1995.

    1 cubic metre equalsValue
    Litres1,000 L
    Cubic feet35.315 ft³
    Cubic inches61,023.74 in³
    Cubic yards1.308 yd³
    US gallons264.172
    Imperial gallons219.969

    Going the other way: one cubic foot is 28.317 L, one US gallon is 3.785 L, one imperial gallon is 4.546 L, and one litre is 61.024 cubic inches. The 20% gap between the two gallons is the single most common source of wrong tank figures — the same tank is 20 US gallons or 16.65 imperial, and our aquarium volume calculator reports both for exactly that reason.

    Real Jobs That Are Volume Problems

    Most people arrive here with a job rather than a shape. These are the four that come up most, with the shape each one really is.

    JobShape to pickExampleVolume
    Swimming poolBox, using average depth10 × 4 m, avg depth 1.5 m60 m³ · 60,000 L · 15,850.32 US gal
    Room air volumeBox4.2 × 4.8 m, ceiling 2.4 m48.384 m³ · 1,708.66 ft³
    Shipping crateBox120 × 100 × 100 cm1.2 m³ · 42.378 ft³ · 1.57 yd³
    Round tank or drumCylinderr 10 cm, h 20 cm6.283 L

    The pool row is the one worth explaining. A pool that slopes from 1.0 m at the shallow end to 2.0 m at the deep end has an average depth of 1.5 m, so the plain box formula still applies — length × width × average depth. You do not need a special pool formula, you need the right depth. A smaller 8 × 4 m pool at 1.4 m average is 44.8 m³, or 11,834.91 US gallons.

    For freight, the number a carrier wants is usually cubic feet or cubic yards rather than cubic metres, which is why the output unit picker matters: a 48 × 40 × 45 in crate is 50 ft³ exactly, or 1.852 yd³. And for a fish tank, use the aquarium volume calculator instead — it subtracts substrate and the rim gap, which a plain box calculation will not.

    How to Find the Volume of an Irregular Shape

    None of the ten formulas fits a rock, a casting or a piece of driftwood. Two methods work, and both are more reliable than trying to force an odd shape into a formula.

    1. Break it into shapes you do have

      Most real objects are a few simple solids stuck together. A bottle is a cylinder plus a frustum plus a short neck cylinder. Calculate each part separately and add the results. This is the better method whenever the object is too big or too awkward to submerge.

    2. Or measure by displacement

      Fill a container with enough water to cover the object, note the level, lower the object in fully, and note the new level. The rise is the object’s volume. In a straight-sided container you can work it out as area × rise; in a measuring jug just read the difference in millilitres, since 1 mL is exactly 1 cm³.

    3. Watch the two things that spoil it

      The object must be fully submerged and must not float, so weigh it down with something whose volume you can subtract afterwards. And it must not absorb water — wood, foam and unglazed pottery all soak it up, which makes the rise read low. Seal them, or use the first method.

    Volume Calculator: FAQ

    Multiply the area of the circular end by the height: V = π r² h. With a radius of 10 cm and a height of 20 cm that is π × 0.1² × 0.2 = 0.00628 m³, which is 6.283 litres. Use the radius, not the diameter — halve the diameter first if that is what you measured.

    It depends which volume you mean. The Tube / pipe shape gives the volume of the wall material, V = π h (R² − r²) — for R 10 cm, r 8 cm and 30 cm long that is 3.393 litres. The space inside the same tube is 6.032 litres, 1.78 times more, and you get it by choosing Cylinder and entering the inner radius.

    For a 15 mm internal diameter, 0.17671 litres per metre; at 25 mm, 0.49087; at 50 mm, 1.963; at 100 mm, 7.854. Capacity goes up with the square of the diameter, so a 100 mm pipe holds four times as much per metre as a 50 mm one, not twice.

    A circle has no volume. It is a two-dimensional shape with an area of π r² — 314.159 cm² at a 10 cm radius. If you need a volume you are thinking of a three-dimensional shape: a sphere for a ball, a cylinder for a tin or tank, or a cone for a funnel.

    Each dimension takes any of eleven length units — miles, yards, feet, inches, kilometres, metres, centimetres, millimetres, micrometres, nanometres or angstroms — and each field is independent, so you can mix them. The result comes in any of twelve volume units, including litres, millilitres, US gallons and imperial gallons.

    A cone tapers to a point; a frustum is a cone with the point cut off, so it has two different radii. A frustum of R 12 cm, r 6 cm and height 20 cm holds 5.278 litres, while a full cone with the same 12 cm base and 20 cm height holds 3.016 litres — the frustum is 75% larger, because it stays wider all the way up.

    Exactly 1,000. A cubic metre is also 35.315 cubic feet, 61,023.74 cubic inches, 1.308 cubic yards, 264.172 US gallons or 219.969 imperial gallons. Going the other way, a cubic foot is 28.317 litres, a US gallon is 3.785 litres and an imperial gallon is 4.546 litres.

    Use the Box shape with the average depth: length × width × average depth. A pool sloping from 1.0 m to 2.0 m has an average depth of 1.5 m, so a 10 × 4 m pool is 60 m³ — 60,000 litres, or 15,850.32 US gallons. An 8 × 4 m pool at 1.4 m average is 44.8 m³ or 11,834.91 US gallons. There is no separate pool formula; the only trick is using average depth rather than the deep end.

    7.481 US gallons, or 6.229 imperial gallons, because a cubic foot is 28.317 litres. Going the other way, a US gallon is 0.13368 cubic feet. The two gallons differ by about 20%, so always check which one a figure means before you use it.

    You almost certainly entered a diameter where the radius was asked for. Because the radius is squared, a doubled radius quadruples the answer: a cylinder that should read 6.283 L reads 25.133 L. For a sphere the radius is cubed, so the same slip makes it eight times too big — 4.189 L becomes 33.51 L. Halve the diameter before entering it.

    Either split it into the simple solids it is made of and add the volumes, or measure it by displacement: submerge it in water and read the rise, since 1 mL of rise is 1 cm³ of object. Displacement only works if the object sinks and does not absorb water, so weigh down anything that floats and seal anything porous.
    Made with care

    Want a calculator
    built just for you?

    Share the formula, the inputs, and who it's for — most reader-requested calculators ship within 14 days.

    Calculator illustration