Volume Calculator – Cylinder, Cone, Sphere, Pyramid & More

Calculate the volume and surface area of cubes, boxes, cylinders, cones, spheres, hemispheres, pyramids, frustums and capsules, with capacity in litres or gallons.

Updated · Free · Runs in your browser

For a capsule, the length of the straight middle section.

Volume —
Volume with units —
Total surface area —
Capacity —
Formula —
    Was this calculator helpful?

    The formula

    Cube: V = a³;  box: V = l × w × h
    Cylinder: V = πr²h;  cone: V = ⅓πr²h;  sphere: V = 4⁄3πr³;  hemisphere: V = 2⁄3πr³
    Rectangular pyramid: V = ⅓ × l × w × h
    Frustum: V = ⅓πh(R² + Rr + r²);  capsule: V = πr²(4⁄3 r + h)
    1 litre = 1,000 cm³;  1 US gallon = 231 in³

    Worked example

    1. A cylinder with radius 5 cm and height 12 cm:
    2. V = π × 5² × 12 = 942.48 cm³, which is 0.94 litres.
    3. Surface area = 2π × 5 × (5 + 12) = 534.07 cm².
    4. A cone with the same radius and height holds a third as much: 314.16 cm³.

    How volume is calculated

    Volume measures how much space a 3D object takes up, in cubic units such as cubic centimetres (cm³), cubic metres (m³) or cubic feet (ft³). For any prism or cylinder, where the cross-section is the same all the way through, the volume is the area of the base times the height. Shapes that taper to a point, such as cones and pyramids, hold exactly one third of the matching prism or cylinder. Spheres follow their own formula, 4⁄3πr³, which Archimedes discovered by comparing a sphere to the cylinder that fits around it.

    Cylinders and pipes

    Cylinders are everywhere: tanks, pipes, cans, columns and swimming pools. Their volume is πr²h. Measure the inside diameter for capacity, halve it to get the radius, and use the same units for every measurement. A 30 cm diameter, 1 m tall water butt holds π × 0.15² × 1 = 0.0707 m³, or about 71 litres. For pipes, the volume per metre tells you how much water fills a pipe run, and our pool volume calculator handles round and oval pools with sloping floors.

    Cones, pyramids and frustums

    A cone or pyramid holds one third of the volume of a cylinder or box with the same base and height. A frustum is a cone with its top cut off parallel to the base, the shape of a bucket, a lampshade or a flower pot. Its volume uses both radii: ⅓πh(R² + Rr + r²). Rectangular pyramids follow the same one-third rule, so a pyramid with a 10 × 6 base and a height of 12 has a volume of 240 cubic units, compared with 720 for the box.

    Spheres and hemispheres

    A sphere's volume is 4⁄3πr³ and its surface area is 4πr². Because volume grows with the cube of the radius, doubling the size of a ball multiplies its volume by eight. A hemisphere holds half a sphere's volume; its total surface area, including the flat circular face, is 3πr². A capsule, a cylinder with a hemisphere on each end, is the shape of many pills, propane tanks and storage tanks, and its volume is the sphere plus the cylinder between the two halves.

    Converting volume to capacity

    Once you have a volume, converting to capacity is straightforward in metric: 1 cm³ is 1 millilitre, 1,000 cm³ is a litre and 1 m³ is 1,000 litres. In US units, 1 US gallon is 231 cubic inches and 1 cubic foot holds about 7.48 US gallons; an imperial gallon is larger, at 277.4 cubic inches. The calculator shows the capacity in litres for metric units and US gallons for imperial units. For other conversions, use our volume converter.

    Units matter

    Volume scales with the cube of length, so converting units multiplies by the cube of the length factor: 1 m³ is 100³ = 1,000,000 cm³, and 1 yd³ is 27 ft³.

    Measuring real objects

    Measure in a single unit and use internal dimensions for containers, since walls take up space. Real objects rarely match ideal shapes exactly, so for irregular shapes, split them into simpler shapes and add the volumes, or measure the water they displace. When ordering bulk materials such as concrete, soil or mulch, add a margin of 5–10% for settlement and waste. Our concrete calculator and mulch and topsoil calculator handle those jobs, and the circle calculator finds the area of a circular base.

    Frequently asked questions

    How do I calculate the volume of a cylinder?
    Multiply π by the radius squared and by the height: V = πr²h. A cylinder 10 cm across and 20 cm tall holds π × 5² × 20 = 1,571 cm³, or 1.57 litres.
    What is the formula for the volume of a cone?
    V = ⅓πr²h, one third of a cylinder with the same base and height.
    How do I find the volume of a sphere?
    V = 4⁄3πr³. A ball with a 10 cm radius has a volume of about 4,189 cm³, or 4.19 litres.
    How many litres are in a cubic metre?
    1,000 litres. A cubic foot holds about 28.3 litres or 7.48 US gallons.
    How do I find the volume of an irregular shape?
    Split it into simple shapes and add their volumes, or submerge it in water and measure how much the water level rises.

    ↑↓ to navigate · Enter to open