Math Tools

Volume Calculator

Choose a shape, enter its dimensions and unit, and get the volume, litres, cubic metres, cubic feet and surface area.

Volume Calculator
Seven shapes, five length units, instant conversions
Result
—

Disclaimer. This calculator is provided for educational and general-purpose use. Results assume ideal geometric shapes. Check quantities for construction, plumbing or purchasing decisions independently. Read full disclaimer →

About the Volume Calculator

Volume is the amount of three-dimensional space an object occupies. It tells you how much water a tank can hold, how much soil a raised bed needs, or how much concrete to order for a slab. This calculator covers seven common solids: cube, cuboid (box), cylinder, sphere, cone, pyramid with a rectangular base and hemisphere. Pick a shape, choose the unit you measured in, type the dimensions, and the result updates as you type.

Along with the volume in your own unit, you get conversions to cubic metres, litres, cubic centimetres, cubic feet and cubic inches, plus the total surface area. The surface area is handy when you also need to know how much paint, wrap or sheet material covers the outside of the shape.

The Formulas in Plain English

  • Cube: side × side × side. Surface area is 6 × side².
  • Cuboid: length × width × height. Surface area is 2 × (lw + lh + wh).
  • Cylinder: π × r² × h, which is the circular base area times the height. Surface area is 2πr(r + h).
  • Sphere: 4/3 × π × r³. Surface area is 4πr².
  • Cone: 1/3 × π × r² × h, one third of the cylinder with the same base and height. Surface area is πr(r + s), where the slant height s = √(r² + h²).
  • Rectangular pyramid: 1/3 × length × width × height. Surface area is the base plus four triangles.
  • Hemisphere: half a sphere, 2/3 × π × r³, with a total surface area of 3πr².

Useful conversions: 1 m³ = 1,000 litres, 1 litre = 1,000 cm³, 1 ft³ = 28.3168 litres and 1 in³ = 16.387064 cm³. The length factors used are exact: 1 in = 2.54 cm and 1 ft = 30.48 cm.

Worked Example

A cylinder with radius 5 cm and height 12 cm. The base area is π × 5² = 78.5398 cm². Multiplying by the height gives 78.5398 × 12 = 942.4778 cm³. Since 1,000 cm³ is one litre, that is 0.9425 litres, or 0.000942 m³. The total surface area is 2π × 5 × (5 + 12) = 534.0708 cm². In the calculator, choose Cylinder, set the unit to cm and type 5 and 12 to see these figures.

More Scenarios

Results as shown by the calculator for each shape.
Shape and sizeVolumeIn litresSurface area
Cube, side 5 cm125 cm³0.125 L150 cm²
Box 2 m × 1.5 m × 0.5 m1.5 m³ (52.972 ft³)1,500 L9.5 m²
Sphere, radius 6 in904.7787 in³14.8267 L452.3893 in²
Cone, radius 3 cm, height 4 cm37.6991 cm³0.0377 L75.3982 cm²
Pyramid 6 ft × 4 ft base, height 9 ft72 ft³2,038.813 L117.2646 ft²
Hemisphere, radius 10 cm2,094.3951 cm³2.0944 L942.4778 cm²

Common Mistakes

Where You Would Use This

Tips for Reliable Results

Use internal dimensions when you want capacity, and external ones when you want the space an object takes up. For a tank that is not a perfect shape, split it into simple solids, calculate each, and add the volumes. Only positive values are accepted, and each dimension is capped at one billion units. Large or very small results switch to exponent form, such as 1e27, so they stay readable.

Frequently Asked Questions

The calculator asks for the radius, which is half of the diameter. If you measured across the full width of a pipe, can or ball, divide that number by 2 before typing it in. Entering a diameter by mistake makes a cylinder volume four times too large.
The tool first converts your volume to cubic metres using the exact length factor for your unit, then multiplies by 1,000 because one cubic metre holds 1,000 litres. One litre equals 1,000 cubic centimetres, so a 10 cm cube holds exactly 1 litre.
It assumes a right pyramid, meaning the apex sits directly above the centre of the rectangular base. The area is the base plus the four triangular faces, using the slant heights sqrt(h² + (w/2)²) and sqrt(h² + (l/2)²). A leaning pyramid has a different surface area but the same volume formula.
Yes. The total is 3πr², which is the curved surface 2πr² plus the flat circular base πr². Likewise, the cylinder and cone totals include their circular bases. If you are painting only the outside of an open bowl, use 2πr² for a hemisphere.
Calculations use standard double-precision arithmetic and the full value of π, and results are displayed to about ten significant digits. The accuracy of the answer is limited by how accurately you measured the object, not by the maths. Real containers also have wall thickness, so internal dimensions give the capacity.

Calculators that use the same maths

They all start from area or volume (length x width x depth) and then add a wastage allowance.

Learn more