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- 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.
| Unit | Volume |
|---|---|
| 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 |
Volume Calculator
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.
How to calculate volume
- Pick the shape under
Shape. For a tank,Cylinder (round tank)andCapsule (tank with round ends)have anOrientation: 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. - Type the measurements the fields ask for.
Circle measured byswitches round shapes between radius and diameter; most tanks are measured across, so diameter is often easier. Lying on its side, a cylinder asks for itsLengthinstead of a height. - Set
Plain numbers are into 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 andWorkingshows how. - 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.
Example
A tank 4 ft across and 10 ft long, lying on its side, with 18 in of liquid in it.
Shape: Cylinder (round tank)
Orientation: on its side
Circle measured by: diameter
Diameter: 4
Length: 10
Liquid depth: 18 in
Plain numbers are in: feetLiquid 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³Details
- Cylinder: V = π × r² × h, the area of the round end times the height. A 3 cm radius and a 5 cm height give 141.3717 cm³; a pot 30 cm across and 50 cm deep holds 35.3429 L. The same tank holds the same amount standing up or lying down; what changes with the orientation is how a depth of liquid translates into volume.
- Horizontal tank: lying on its side, the liquid's end view is a circular segment, so the tool works the angle θ = 2 × acos((r − depth) ÷ r), the segment's area r² × (θ − sin θ) ÷ 2, and multiplies by the length. For the 4 ft by 10 ft tank above, 18 in of liquid is 321.9779 US gal (34.2519% full), and 2 ft, half the diameter, is exactly half: 470.0149 US gal. Standing upright, the same tank at 18 in holds 141.0045 US gal, because the level then rises evenly with the volume.
- Rectangular box or tank: V = length × width × height. A 4 × 3 × 2 m box is 24 m³, or 24,000 L. With a liquid depth the tool uses the depth in place of the height, which is how an aquarium, a cistern or a raised bed is worked out.
- Sphere: V = 4 ÷ 3 × π × r³, so a ball 1 m across holds 523.5988 L. Part filled it is a spherical cap, π × depth² × (3 × r − depth) ÷ 3: a quarter of the way up holds 81.8123 L, 15.625% of the whole, because the sphere is narrow at the bottom.
- Cone: V = π × r² × h ÷ 3, a third of the cylinder around it; a 3 m radius and a 4 m height give 37.6991 m³. Standing on its point as a hopper or funnel, the liquid is a smaller cone of the same shape, so it grows with the cube of the depth: at half the height it holds 12.5% of the cone.
- Capsule: a cylinder with a hemisphere on each end, V = π × r² × (4 ÷ 3 × r + L), where L is the straight part. On its side, the liquid is a segment along the straight part plus a spherical cap for the two ends: a tank 1.2 m across with a 3 m straight part holds 804.6913 L at a 0.3 m depth.
- Pipe: what a pipe holds depends only on its inside diameter and length, π × r² × L with the inside radius. Leave
Outer diameterblank and the tool gives just that; type it and you also get the volume of the wall, the material between the outside and the inside. A 2 in bore 100 ft long holds 16.32 US gal; with a 2.5 in outside the wall is 2,120.575 in³. - Liters, US gallons and imperial gallons: 1 liter is 1,000 cm³, a US gallon is 231 in³ (about 3.785 L) and an imperial gallon is 4.54609 L. A cubic meter is 1,000 L, 264.1721 US gal or 219.9692 imp gal; a cubic foot is 7.4805 US gal.
- For tanks the tool also gives the weight of that much water, at 1 kg per liter (about 8.345 lb per US gallon), which helps when you check what a floor, stand or trailer has to carry.
Limits
- Right solids only: a cone or pyramid with its tip straight above the center of the base, a cylinder or prism that stands straight. Oblique shapes and composite shapes are not built in; work them piece by piece.
- Liquid depth is only for a box or cube, a cylinder or capsule upright or on its side, a sphere, a cone standing on its point and a truncated cone standing on the end typed as its bottom. Tilted tanks, a cone standing on its base and the other shapes take no depth.
- Tank ends are taken as flat (cylinder) or as exact hemispheres (capsule). Real tanks with dished, elliptical or torispherical heads hold somewhat different amounts, so check a manufacturer's chart when the exact figure matters.
- Measurements are taken as the inside of the container. Outside sizes overstate it by the wall or glass thickness, and an aquarium holds less once gravel, rocks and the gap below the rim are taken out.
- The water weight is an approximation for fresh water (1 kg per liter); salt water, fuel, oil and grain weigh more or less, and this is not a liquid weight converter.
- Each length must be more than 0 and at most 1,000,000 km; a depth more than the tank's height is refused with the field marked and the height named.
FAQ
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.