Volume Calculator

: Find the volume of a cylinder, box, sphere, cone, pipe or tank in any unit, with its capacity in liters and gallons and how much a part-filled tank holds
Shape and measurements
Optional, for how full it is: from the bottom up to the surface of the liquid.
Or type the unit with each length: 5 cm, 12' 6", 3 ft 4 in. The volume is in this unit's cube, with liters and gallons beside it.
π, square roots and the segment angle are kept in full while calculating; figures are rounded to 4 decimals (6 significant digits below 1). 1 in = 2.54 cm and 1 ft = 0.3048 m exactly; 1 L = 1,000 cm³, 1 US gallon = 231 in³ and 1 imperial gallon = 4.54609 L. Water weight takes 1 kg per liter.
Result
Volume
141.3717 cm³
Liters
0.141372 L
US gallons
0.0373464 US gal
Imperial gallons
0.0310974 imp gal
Weight if full of water
≈ 0.141372 kg (0.311671 lb)
Working
V = π × r² × h = π × 3² × 5 = 141.3717 cm³
  • Water weight is for fresh water, about 1 kg per liter (8.345 lb per US gallon); salt water, oil or fuel weigh more or less.
Volume in other units
UnitVolume
Cubic millimeters (mm³)141,371.6694
Cubic meters (m³)0.000141372
Cubic kilometers (km³)1.41372 × 10⁻¹³
Cubic inches (in³)8.627
Cubic feet (ft³)0.00499249
Cubic yards (yd³)0.000184907
Milliliters (mL)141.3717

A volume calculator for tanks, containers and solid shapes: pick one of 20 shapes, type its measurements, and read the volume in the cube of your unit with its capacity in liters, US gallons and imperial gallons. For a box, cylinder, capsule, sphere or cone it also takes a liquid depth and tells you how much is in a part-filled tank, how full it is and how much more it takes. Everything is calculated in your browser.

  1. Pick the shape under Shape. For a tank, Cylinder (round tank) and Capsule (tank with round ends) have an Orientation: upright, or on its side like a fuel or water tank lying flat. Pipe or tube (hollow cylinder) gives what a pipe or hose holds.
  2. Type the measurements the fields ask for. Circle measured by switches round shapes between radius and diameter; most tanks are measured across, so diameter is often easier. Lying on its side, a cylinder asks for its Length instead of a height.
  3. Set Plain numbers are in to the unit you measured in, or type the unit with each length (18 in, 4 ft 6 in, 120 cm); mixed units are converted first and Working shows how.
  4. To see how full a tank is, type Liquid depth, measured from the bottom up to the surface, as a dipstick or a sight glass reads it. The result switches to the liquid volume, the percent full and what is left to fill.

A tank 4 ft across and 10 ft long, lying on its side, with 18 in of liquid in it.

Input
Shape: Cylinder (round tank)
Orientation: on its side
Circle measured by: diameter
Diameter: 4
Length: 10
Liquid depth: 18 in
Plain numbers are in: feet
Output
Liquid volume: 43.0422 ft³ (At a depth of 1.5 ft of 4 ft.)
Liquid in liters: 1,218.8189 L
Liquid in US gallons: 321.9779 US gal
Liquid in imperial gallons: 268.1027 imp gal
Percent full: 34.2519%
Left to fill: 82.6215 ft³ (2,339.581 L = 618.0519 US gal = 514.6359 imp gal)
Full volume: 125.6637 ft³ (3,558.3999 L = 940.0298 US gal = 782.7385 imp gal)
Weight of the liquid if water: ≈ 1,218.8189 kg (2,687.0358 lb)

Working:
r = d ÷ 2 = 4 ÷ 2 = 2 ft
V = π × r² × h = π × 2² × 10 = 125.6637 ft³
Liquid depth: 18 in = 1.5 ft
θ = 2 × acos((r − depth) ÷ r) = 2 × acos((2 − 1.5) ÷ 2) = 2.6362 rad
segment = r² × (θ − sin θ) ÷ 2 = 2² × (2.6362 − sin 2.6362) ÷ 2 = 4.3042 ft²
liquid = segment × length = 4.3042 × 10 = 43.0422 ft³
full = liquid ÷ V × 100 = 43.0422 ÷ 125.6637 × 100 = 34.2519%
left to fill = V − liquid = 125.6637 − 43.0422 = 82.6215 ft³

How do you find the volume of a cylinder?

Multiply the area of the circle by the height: V = π × r² × h. With a 3 cm radius and a 5 cm height, V = π × r² × h = π × 3² × 5 = 141.3717 cm³. If you measured the diameter, halve it first, or set Circle measured by to diameter.

How many gallons does my tank hold?

Work out its volume, then convert: 1 ft³ is 7.4805 US gal, and 1 m³ is 1,000 L or 264.1721 US gal. The tool does both at once, so a 4 ft by 10 ft cylinder tank shows 125.6637 ft³ and 940.0298 US gal. US and imperial gallons differ by about 20%: the same tank is 782.7385 imp gal.

How do I work out how full a horizontal tank is from a dipstick reading?

Pick Cylinder (round tank), set Orientation to on its side, enter the diameter and length, and type the dipstick depth into Liquid depth. The level does not rise evenly in a lying tank, so 18 in in a 4 ft tank is 34.2519% full, not 37.5%; the tool uses the circular segment formula to get 321.9779 US gal.

How many gallons is my fish tank?

Measure the inside length, width and height in inches and pick Rectangular box or tank (prism): 48 × 13 × 21 in is 56.7273 US gal (214.7361 L). Filled to 19 in, 2 in below the rim, it holds 51.3247 US gal, before gravel and decorations.

How do you calculate the volume of a pipe?

Use the inside diameter: V = π × r² × L. A 2 in inside diameter 100 ft long gives inside = π × r² × L = π × 1² × 1,200 = 3,769.9112 in³, which is 16.32 US gal or 61.7778 L. The outside diameter only matters for the volume of the pipe material itself.

Runs entirely in your browser. Nothing is uploaded.