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 and converts the answer to any volume unit you need.

    Box volume: V = l × w × h  ·  Sphere: V = 4⁄3 π r³  ·  Cylinder: V = π r² h
    ShapeVolume formulaYou measure
    Box (cuboid)V = l × w × hlength, width, height
    CubeV = a³edge a
    SphereV = 4⁄3 π r³radius r
    CylinderV = π r² hradius r, height h
    ConeV = 1⁄3 π r² hradius r, height h
    Cone frustumV = 1⁄3 π h (R² + R·r + r²)radii R & r, height h
    CapsuleV = π r² (a + 4⁄3 r)radius r, side a
    EllipsoidV = 4⁄3 π a·b·csemi-axes a, b, c
    Square pyramidV = 1⁄3 a² hbase edge a, height h
    Tube / pipeV = π h (R² − r²)outer R, inner r, length h

    How to Use the Volume Calculator

    1. Pick your shape.

      Tap a shape — box, sphere, cylinder, cone and seven more. Only the fields that shape needs appear, so there’s nothing extra to fill in.

    2. Enter each measurement and its unit.

      Type a number in every field and choose its unit beside it — any length from millimeters to miles. You can even mix units between fields.

    3. Choose how to show the result.

      Pick the output unit (liters, US gallons, cubic feet, m³, and more). The volume updates instantly and also lists the most common conversions.

    Worked Examples: Box, Cylinder, Sphere & Cone

    ShapeDimensionsFormulaVolume
    Box50 × 40 × 30 cml × w × h60,000 cm³ = 60 L
    Cylinderr = 10 cm, h = 20 cmπ r² h6,283 cm³ ≈ 6.28 L
    Spherer = 10 cm4⁄3 π r³4,189 cm³ ≈ 4.19 L
    Coner = 10 cm, h = 20 cm1⁄3 π r² h2,094 cm³ ≈ 2.09 L

    Example math for the cylinder: V = π × r² × h = π × 10² × 20 = π × 2,000 ≈ 6,283 cm³, and since 1,000 cm³ = 1 liter, that is about 6.28 L.

    Volume Calculator: FAQ

    Multiply pi by the radius squared by the height: V = π r² h. A cylinder with a 10 cm radius and 20 cm height holds π × 10² × 20 ≈ 6,283 cm³, which is about 6.28 liters.

    Every dimension takes any length unit — miles, yards, feet, inches, kilometers, meters, centimeters, millimeters, micrometers, nanometers or angstroms — and you can mix them between fields. The result can be shown in cubic units, liters, milliliters, or US and imperial gallons.

    A frustum is a cone with its pointed top sliced off parallel to the base, leaving two circular ends. Its volume is V = 1⁄3 π h (R² + R·r + r²), where R and r are the bottom and top radii; set the top radius to zero and it reduces to the cone formula.

    Break it into the standard shapes here, calculate each, and add them up — for example a silo is a cylinder plus a cone. For a truly irregular solid, water displacement (the rise in water level when you submerge it) gives the volume directly.

    Exactly 1,000 liters, because a cubic meter is 100 cm on each side (100³ = 1,000,000 cm³, and 1,000 cm³ = 1 liter). One cubic meter is also about 264.2 US gallons or 219.97 imperial gallons.
    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