Volume Calculator
This volume calculator works in three steps: pick a shape, enter its dimensions, choose the unit. You get the volume, litres, gallons, surface area and the working.
Source: Wolfram MathWorld – Cylinder: volume, lateral and surface area. Updated: .
How it is calculated
The volume of a solid is its base area times its height – for pointed solids such as cones and pyramids, one third of that. A cylinder with a 5 cm radius and 20 cm height holds π × 5² × 20 ≈ 1,571 cm³, or about 1.57 litres.
Volume formulas
- Cube: V = a³ · Rectangular box: V = l × w × h
- Cylinder: V = πr²h · Pipe (hollow cylinder): V = π(R² − r²)h
- Sphere: V = 4/3 πr³ · Hemisphere: V = 2/3 πr³
- Cone: V = 1/3 πr²h · Frustum: V = πh/3 (R² + Rr + r²)
- Pyramid: V = 1/3 × l × w × h
If you measured the diameter, switch to “Diameter” and the calculator halves it for you. Using d instead of r is the classic cylinder mistake – it makes the answer four times too large.
Converting volume to litres and gallons
One litre is exactly 1 dm³ = 1,000 cm³, and 1 m³ = 1,000 litres. The calculator also shows millilitres, cubic metres and US gallons (1 gal = 3.785411784 L, NIST) plus UK gallons (4.54609 L). In feet, 1 ft³ = 28.3168 L ≈ 7.48 US gallons. Round pool example: 12 ft across, 3 ft of water → r = 6 ft, V = π × 6² × 3 ≈ 339.3 ft³ ≈ 2,538 US gallons.
Surface area
You also get the surface area – useful for paint, liner or insulation. A cylinder’s surface is two circles plus the lateral surface 2πrh; a cone’s is the base plus πrs with slant height s = √(r² + h²). For a cylinder solved from any two values, use the cylinder calculator.
Limits
The formulas assume ideal shapes. Real tanks have wall thickness, domed bottoms or slopes – measure the inside and add up simple parts. To turn volume into mass, use the density calculator; to add several parts, the calculator.
Prism, ellipsoid, horizontal tank and mixed units
Three more shapes are available: the triangular prism (V = a × b ÷ 2 × h, with base a and height b of the triangle), the ellipsoid (V = 4/3 × π × a × b × c; with semi-axes 3, 2 and 1 cm that is ≈ 25.13 cm³) and the horizontal, partly filled tank: radius, length and fill height give the contents and the fill level in percent – when the fill height equals the radius, the tank is exactly half full. A sketch for each shape shows which dimension is meant. Next to each dimension you can pick its own unit: with a 5 cm radius and a height of 2 ft, the calculator converts 2 ft to 60.96 cm and gets ≈ 4.79 litres. The table also gives the result in cubic feet (ft³).
Dedicated calculators for each shape
This page is the overview. To work backwards from a volume or surface area to a dimension, use the dedicated calculator:
Frequently asked questions
How do you calculate the volume of a cylinder?
Base area times height: V = πr²h. For a 5 cm radius and 20 cm height: 3.14159 × 25 × 20 ≈ 1,570.8 cm³ ≈ 1.57 litres. From the diameter: V = π(d/2)²h.
How do I convert cubic feet to gallons?
Multiply by 7.48052: 1 ft³ = 28.3168 litres = 7.48 US gallons. A 10 ft³ tank holds about 74.8 gallons.
How do I find the volume of a rectangle box?
Length × width × height. All three must be in the same unit – convert first if needed (e.g. 1.2 m = 120 cm). 50 × 40 × 30 cm = 60,000 cm³ = 60 litres.
How many litres are in a cubic metre?
Exactly 1,000 litres. One litre equals one cubic decimetre (10 cm × 10 cm × 10 cm).
What is the formula for the volume of a sphere?
V = 4/3 πr³. A sphere with a 10 cm radius holds 4/3 × π × 1,000 ≈ 4,188.8 cm³, just under 4.19 litres.
Sources and legal basis
- Wolfram MathWorld – Cylinder: volume, lateral and surface area
- Wolfram MathWorld – Sphere
- Wolfram MathWorld – Hemisphere
- Wolfram MathWorld – Cone
- Wolfram MathWorld – Conical frustum
- Wolfram MathWorld – Pyramid
- Wolfram MathWorld – Ellipsoid
- Numericana – Surface area of an ellipsoid, Knud Thomsen’s approximation
- Wolfram MathWorld – Horizontal cylindrical segment (partly filled tank)
- Wolfram MathWorld – Cuboid
- NIST SP 811: NIST SP 811, Appendix B – Conversion factors (inch, foot, litre, gallon)
As of: · Editorial policy
Related tools
- Cylinder CalculatorCylinder calculator from any two values: radius, diameter, circumference, height, volume, lateral or surface area – with formulas, litres and working.
- Sphere calculatorSphere calculator: enter the radius, diameter, volume, surface area or circumference and get every measure of the sphere with formulas and steps. Free.
- Rectangular prism calculatorRectangular prism calculator: from length, width and height (or volume) get surface area, lateral area, space diagonal and edge sum, with formulas and steps.
- Cone calculatorCone calculator: from radius and height, radius and slant height, or height and slant height get volume, lateral area, surface area and angle with formulas.
- Horizontal Tank Volume CalculatorHorizontal tank volume calculator for cylindrical tanks: liquid volume from the dipstick depth, or the depth from litres, with fill level. Free.
- Density calculator: density, mass and volumeCalculate density, mass or volume with ρ = m/V – step-by-step, with unit conversion from g/cm³ to kg/m³ and lb/ft³ and densities of water, metals and plastics.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- Board foot calculatorBoard foot calculator for boards, beams and logs: volume in board feet and cubic metres, weight from density and cost. Metric and imperial, in your browser.
- Asphalt CalculatorAsphalt calculator for the tons needed from length, width, layer thickness and compacted density, with an allowance for waste; imperial and metric units.