Home › Calculators › Volume Calculator
🧊

Volume Calculator

Find the volume of any 3D shape — cube, sphere, cylinder, cone or box — in seconds. Free volume calculator with the step-by-step formula shown and no signup needed.

About this tool

This free volume calculator finds how much space a 3D shape takes up — or how much it can hold — for cubes, spheres, cylinders, cones, and boxes. Enter the measurements, and it shows the volume instantly with the formula, so you can work out concrete, water, soil, or storage without manual math.

Pick your shape, enter its dimensions, and this volume calculator gives you the answer instantly, with the formula shown so you can check the work.

By Azhar Hussain · Last updated: 7 November 2026

How to use

Choose your shape — cube, sphere, cylinder, cone, box, and five more including hemisphere, square pyramid, capsule, triangular prism and frustum. Pick your unit (metres, centimetres, feet and more) and fill in only the dimensions that apply: a sphere needs just the radius, a box needs length, width and height.

Press Calculate Volume and the answer appears with the total surface area, plus the volume converted into cubic metres, litres, US gallons, cubic feet and cubic yards.

The math behind it

Cube: side³. Sphere: (4/3) × π × r³. Cylinder: π × r² × h. Cone: (π × r² × h) / 3. Box: length × width × height. The calculator also gives the total surface area for every shape — for example, a cylinder's surface area is 2πrh + 2πr², and a hemisphere's is 3πr² (curved surface plus the flat base).

Keep all dimensions in the same units — mixing centimeters and meters is the most common mistake. All conversions use exact factors: 1 m³ = 1,000 L, 1 US gallon = 3.785411784 L, 1 imperial gallon = 4.54609 L and 1 ft³ = 0.028316846592 m³ (NIST SP 811 and NIST Handbook 44).

Volume and surface area formulas for every shape

ShapeVolume formulaSurface area formulaInputs needed
CubeV = s³SA = 6s²side
SphereV = (4/3)πr³SA = 4πr²radius
CylinderV = πr²hSA = 2πrh + 2πr²radius, height
ConeV = (πr²h) / 3SA = πr² + πr√(r² + h²)radius, height
BoxV = l × w × hSA = 2(lw + lh + wh)length, width, height
HemisphereV = (2/3)πr³SA = 3πr²radius
Square pyramidV = (b²h) / 3SA = b² + 2b√((b/2)² + h²)base side, height
CapsuleV = πr²L + (4/3)πr³SA = 2πrL + 4πr²radius, cylinder length
Triangular prismV = A × L (A from Heron)SA = 2A + (a + b + c)Lthree sides, length
FrustumV = (πh/3)(R² + Rr + r²)SA = π(R² + r²) + π(R + r)√((R − r)² + h²)bottom radius, top radius, height

Worked examples

ExampleMeasurementsResult
Storage tank (cylinder)Radius 1.5 m, height 4 mVolume = π × 1.5² × 4 ≈ 28.27 m³ = 28,274 L; at 95% full ≈ 26,861 L; surface area ≈ 51.84 m²
Concrete pour (box)5 m × 3 m × 0.15 mVolume = 2.25 m³; order 5% extra ≈ 2.36 m³; ≈ 79.46 ft³ ≈ 2.94 yd³
Aquarium (box)120 cm × 50 cm × 60 cmVolume = 360,000 cm³ = 0.36 m³ = 360 L ≈ 95.10 US gal
Capsule tankRadius 1 m, cylinder length 4 mVolume ≈ 16.76 m³ = 16,755 L; surface area ≈ 37.70 m²
Frustum bucketBottom radius 3, top radius 2, height 4Volume ≈ 79.59 cubic units; surface area ≈ 105.61 square units

Volume unit conversions

1 unitIn litresIn US gallonsIn imperial gallonsIn ft³In yd³In m³
1 m³1,000264.172052219.96924835.3146671.3079511
1 ft³28.3168477.4805196.22883510.0370370.028317
1 yd³764.554858201.974026168.1785572710.764555
1 litre10.2641720.2199690.0353150.0013080.001
1 US gallon3.78541210.8326740.1336810.0049510.003785
1 imperial gallon4.546091.20095010.1605440.0059460.004546

How to calculate volume, step by step

  1. Pick your shape from the list — a tank is a cylinder, a room is a box, a ball is a sphere.
  2. Measure every dimension in the same unit: metres, centimetres or feet — pick one and stick to it.
  3. Use the formula from the table above, or let the calculator do it: enter the numbers and press Calculate Volume.
  4. Convert the answer into the unit you need: 1 m³ = 1,000 litres, and 1 ft³ = 7.48052 US gallons.
  5. Sanity-check the result: if you measured a diameter, halve it to get the radius first — using the diameter as the radius makes a sphere’s volume 8 times too big.

Sources and method

All formulas are standard geometry. Conversions use exact factors: 1 ft = 0.3048 m, 1 in = 0.0254 m, 1 m³ = 1,000 L, 1 US gallon = 3.785411784 L, 1 imperial gallon = 4.54609 L and 1 ft³ = 0.028316846592 m³ (NIST SP 811 and NIST Handbook 44, Appendix C). The calculator rounds displayed answers to 2 decimal places; full precision is used internally. Hemisphere surface area includes the flat circular base, and capsule surface area includes both hemispherical ends.

Frequently asked questions

What units does the answer come in?
Cubic units of whatever you measured with: centimeters give cubic centimeters, meters give cubic meters, inches give cubic inches. One cubic meter equals 1,000 liters, which is handy for tanks and pools.
What is the difference between volume and surface area?
Volume measures the space inside an object (cubic units), while surface area measures the outside skin (square units). A box's volume tells you how much it holds; its surface area tells you how much paint you need.
How do I find the volume of an irregular shape?
For odd shapes, the water displacement method works: submerge the object in a measured container and note how much the water level rises. That rise equals the object's volume - the same principle Archimedes famously discovered.
How do I calculate the volume of a cylinder?
Multiply pi by the radius squared, then by the height: V = pi x r^2 x h. For example, a tank with a radius of 0.5 meters and a height of 2 meters holds pi x 0.25 x 2 = about 1.57 cubic meters, which is 1,571 liters.
What is the formula for the volume of a sphere?
V = (4/3) x pi x r^3, where r is the radius. For a sphere with a radius of 3 cm, the volume is (4/3) x pi x 27 = about 113 cubic centimeters.
How many gallons are in a cubic foot?
One cubic foot holds 7.48052 US gallons (exactly 7.480519 gallons). So 10 cubic feet is about 74.81 US gallons. In imperial gallons, 1 cubic foot is about 6.23 gallons. This calculator shows the volume in US gallons automatically.
Is a cubic centimetre the same as a millilitre?
Yes, exactly: 1 cm³ = 1 mL. A 500 cm³ bottle holds 500 mL, and 1 m³ equals 1,000,000 cm³, which is 1,000,000 mL — the same as 1,000 litres.
What happens if I use the diameter instead of the radius?
The answer comes out 8 times too big for a sphere, because the radius is cubed (2³ = 8). A sphere with a diameter of 6 cm has a radius of 3 cm and a volume of about 113.10 cm³ — but if you enter 6 as the radius, you get about 904.78 cm³. Always halve the diameter first.
How do I find the volume of a combined or irregular shape?
Split it into standard shapes, work out each part, and add them — or subtract a hole. For example, a box 10 × 8 × 6 cm with a cylindrical hole of radius 2 cm drilled through the 6 cm side: the box is 480 cm³, the hole is π × 2² × 6 ≈ 75.40 cm³, so the remaining solid is about 404.60 cm³.
How do I work out the volume of a partly-filled tank?
For a rectangular tank, multiply length × width × the depth of the water: a 2 m × 1 m tank with water 0.6 m deep holds 1.2 m³, which is 1,200 litres. For a horizontal cylindrical tank, the filled cross-section is a circular segment: area = r²·arccos((r − h)/r) − (r − h)·√(2rh − h²), times the tank length. For a tank with radius 1 m, water 0.5 m deep and length 3 m, the filled area is about 0.61 m², so the volume is about 1.84 m³ (1,843 litres).

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.