Volume Calculator

Choose a shape, enter its dimensions and get the volume at once in liters, cubic meters, gallons or any other unit, with the formula written out using your numbers. Surface area, slant height and other useful values appear where they apply.

For tanks, start with the cylindrical or rectangular tank at the top: enter the diameter or the sides and the height to see how many liters it holds, then add the fill level to see how much liquid is in it now. Horizontal cylinders are covered too, where the amount of liquid is not simply proportional to its depth.

Runs in your browser — nothing is uploaded

How to use it

  1. Pick a tank or a solid. For a cylinder, sphere, pipe or prism you can also choose which measurements you have, such as the diameter instead of the radius.
  2. Select the unit of your measurements (mm, cm, m, in, ft…) and type the dimensions. Decimals work with a dot or a comma.
  3. Read the volume in liters, or change “Show result in” to cubic meters, cubic feet or US or imperial gallons.
  4. For a tank, enter the fill level to see how much liquid it holds now and how full it is.

Common uses

  • Finding how many liters a water tank, barrel or aquarium holds.
  • Checking the fuel or water left in a horizontal cylindrical tank from a dipstick reading.
  • Ordering concrete, soil or gravel in cubic meters or cubic yards.
  • Calculating how much water is inside a length of pipe.
  • Checking geometry homework on cones, spheres, pyramids and prisms.

Examples

Shape and dimensionsVolume
Cylindrical tank, diameter 100 cm, height 150 cm1,178.1 liters (1.1781 m³)V = π × 100² ÷ 4 × 150 = 1,178,097 cm³; about 311.22 US gallons.
Box 2 m × 1.5 m × 0.5 m1.5 m³ = 1,500 litersV = l × w × h.
Sphere, radius 10 cm4,188.79 cm³ = 4.18879 litersV = 4⁄3 × π × 10³.
Pipe with a 10 cm bore, 100 m long785.398 liters of waterπ × 5² × 10,000 cm = 785,398 cm³.
Cube, 1 ft side28.3168 liters = 7.48052 US gallons1 ft³ = 1,728 in³; 1 US gallon = 231 in³.

Frequently asked questions

How do I calculate the volume of a cylindrical tank in liters?

Use V = π × r² × h with the radius and height in centimeters to get cubic centimeters, then divide by 1,000 to get liters. A tank 100 cm across and 150 cm tall: π × 50² × 150 = 1,178,097 cm³ = 1,178.1 L. If you measure in meters, multiply the cubic meters by 1,000 instead.

How many liters are in a cubic meter?

1 m³ = 1,000 liters. One liter is a cubic decimeter (10 cm × 10 cm × 10 cm = 1,000 cm³), and one milliliter is one cubic centimeter. In imperial units, 1 ft³ = 28.316846592 liters and 1 in³ = 16.387064 cm³ exactly.

What is the difference between a US gallon and an imperial gallon?

A US gallon is defined as 231 cubic inches = 3.785411784 liters. The imperial (UK) gallon is 4.54609 liters, about 1.2 US gallons. A US fluid ounce is 1/128 of a US gallon (29.5735 ml), and an oil barrel is 42 US gallons = 158.987 liters.

How much liquid is in a partly filled tank?

In an upright cylinder or a rectangular tank, multiply the base area by the liquid depth f: V = π × r² × f or V = l × w × f. A horizontal cylinder is different, because it is narrower near the bottom: the liquid's cross-section is the circular segment r² × arccos((r − f) ÷ r) − (r − f) × √(2rf − f²), times the length. A tank 1 m across and 2 m long holds 1,570.8 L; at 25 cm depth it holds 307.09 L, only 19.55% of the volume.

What are the volume formulas for a sphere, cone and pyramid?

Sphere: V = 4⁄3 × π × r³ (radius 10 cm gives 4,188.79 cm³). Cone: V = π × r² × h ÷ 3 (r = 3, h = 4 gives 37.6991). Pyramid with a rectangular base: V = l × w × h ÷ 3 (6 × 4 × 9 ÷ 3 = 72). Truncated cone: V = π × h × (R² + R × r + r²) ÷ 3. Ellipsoid: V = 4⁄3 × π × a × b × c.

How do I work out cubic meters of concrete for a slab?

Multiply length × width × thickness, all in meters. A 6 m × 4 m slab that is 10 cm thick needs 6 × 4 × 0.1 = 2.4 m³, which is 3.14 cubic yards (1 yd³ = 0.764554857984 m³). Use the box shape with the thickness as the height.