Volume Calculator

hr
in
in

Your Results

A cylinder with r = 3 in and h = 8 in has a volume of 226.19 in³, which is 3.71 liters or 0.979 US gallons. Filled with water, it would weigh about 3.71 kg (8.17 lb). Its surface area is 207.35 in².

226.19 in³
Volume of the cylinder
3.71
Liters
0.979
US Gallons
207.35 in²
Surface Area
3.71 kg
Weight of Water
Volume in Other Units
UnitVolume
Cubic millimeters3,706,667 mm³
Cubic centimeters3,706.67 cm³
Cubic meters0.003707 m³
Cubic inches226.195 in³
Cubic feet0.1309 ft³
Cubic yards0.004848 yd³
Milliliters3,706.67 mL
Liters3.70667 L
US fluid ounces125.337 US fl oz
US cups15.6672 US cups
US gallons0.979198 US gal
Imperial gallons0.815353 imp gal
Oil barrels0.023314 bbl

1 US gallon is 231 cubic inches, or about 3.785 liters. An imperial gallon is about 4.546 liters. Water weighs 1 kg per liter, about 8.34 lb per US gallon.

What Is Volume?

Volume is how much space a solid takes up, or how much a container holds. It's measured in cubic units: a box 1 foot long, wide and tall holds 1 cubic foot. Liquids are often measured in liters or gallons instead, and the calculator gives both.

  • Volume: the space inside, in cubic units such as in³, ft³ or cm³.
  • Capacity: the volume a container can hold, often in liters, gallons or cups.
  • Surface area: the total area of the outside, in square units. It tells you how much paint, wrapping or material covers the shape.

Which calculator should I use?

  • Volume Calculator: for the space inside a 3D shape, such as a tank, a box or a planter.
  • Square Footage Calculator: for a flat area, such as a floor or a yard, and the material and cost to cover it.

How to Calculate Volume

For any shape with the same cross-section all the way through, such as a box, a cylinder or a prism, multiply the area of the end by the length:

V=base area×h

A shape that narrows to a point, such as a cone or a pyramid, holds exactly a third of that:

V=13×base area×h
  • V: the volume, in the cube of the unit you measured in.
  • Base area: the area of the flat end: π × r² for a circle, length × width for a rectangle.
  • h: the height or length, measured straight across, not along a slope.

Here is the formula for every shape in the calculator. The letters match the drawing and the box labels:

ShapeVolumeSurface Area
Cubea³6a²
Rectangular boxl × w × h2(lw + lh + wh)
Sphere4/3 × π × r³4 × π × r²
Hemisphere2/3 × π × r³3 × π × r²
Spherical capπ × h² × (3R − h) ÷ 32πRh + πh(2R − h)
Ellipsoid4/3 × π × a × b × cabout 4π((aᵖbᵖ + aᵖcᵖ + bᵖcᵖ) ÷ 3)^(1/p), p = 1.6075
Cylinderπ × r² × h2πr(r + h)
Tubeπ × (R² − r²) × h2πh(R + r) + 2π(R² − r²)
Capsuleπ × r² × h + 4/3 × π × r³2πrh + 4πr²
Coneπ × r² × h ÷ 3πr(r + s), s = √(r² + h²)
Cone frustumπ × h × (R² + Rr + r²) ÷ 3π(R + r)s + πR² + πr²
Triangular prismtriangle area × L2 × triangle area + (a + b + c) × L
Pyramidl × w × h ÷ 3base + the four sloping triangles
Truncated pyramidh × (a² + ab + b²) ÷ 3a² + b² + four sloping sides

Example

A cylinder with a radius of 3 inches and a height of 8 inches, about the size of a large can:

  • Base area: π × 3² = 28.27 in²
  • Volume: 28.27 × 8 = 226.19 in³
  • In liters: 226.19 × 0.016387 = 3.71 L, or 0.98 US gallons

How to Use the Volume Calculator

"How much does a cylinder 3 inches across the middle and 8 inches tall hold, in liters and gallons?" This calculator answers that.

Let's enter the numbers for this example in each box. They are already filled in when the calculator opens, so you can follow along and then change any box to match your own shape.

  • Shape: Choose Cylinder. There are 14 shapes, and the drawing changes to show what each size means. Each shape remembers the sizes you typed, so you can switch and come back.
  • Length Unit: Choose Inches, the unit of every size you enter. Millimeters, centimeters, meters, feet and yards work too.
  • Radius (r): Enter 3, which is half the width of the round end. Sizes must be more than 0 and less than 1 million.
  • Height (h): Enter 8, which is the distance between the two round ends.

Some sizes can be 0, turning the shape into a simpler one: a tube with no hole, a frustum or truncated pyramid with a pointed top, or a capsule with no middle. A few sizes have to fit together: a tube's inner radius must be smaller than the outer one, a cap can't be taller than its ball, and each side of a triangle must be shorter than the other two together.

Calculate and Reset

Click Calculate to see your results. If a box has a problem, such as a size of 0 or an inner radius bigger than the outer one, a message pops up under that box instead. Changing the shape or the unit shows the new results at once. With the default numbers you get:

  • Your Results: a short summary in words: 226.19 in³, which is 3.71 liters or 0.98 US gallons, the weight of that much water, and the surface area.
  • Volume: the headline, 226.19 in³, in the cube of your length unit.
  • Liters and US Gallons: 3.71 and 0.98, how much liquid the shape holds.
  • Surface Area: 207.35 in², the area of the whole outside including both ends.
  • Weight of Water: 3.71 kg (8.17 lb), what the shape would weigh filled with fresh water, not counting the container.
  • Volume in Other Units: the same volume in 13 units, from cubic millimeters to oil barrels, including cups, fluid ounces and imperial gallons.
  • Share Results: a link that opens this calculator with your shape and sizes filled in. Copy it, or share it on Facebook or X.

Click Reset to go back to the default cylinder in inches and put every shape's sizes back to their defaults. The formulas are for perfect shapes; a real container's walls take up some of the space, so measure the inside for capacity.