8 Shapes · Metric & Imperial · Formula Shown · Updated 2026

Volume Calculator

Calculate the volume of any 3D shape: box, sphere, cylinder, cone, pyramid, cube, ellipsoid, and torus. Metric and imperial units with full unit conversion included.

Last updated

8 Shapes
Metric & Imperial
Formula Shown
Unit Conversion
Our networkdiscount5Fresh deals. Five at a time.Price drops and coupon codes, ending soonest first.See today’s deals
Volume Calculator
Select shape & enter dimensions
Select Shape
Box
Sphere
Cylinder
Cone
Pyramid
Cube
Ellipsoid
Torus

Select a 3D shape and enter its dimensions to calculate volume.

Volume Formulas for Every 3D Shape

Volume is the space inside a 3D shape, measured in cubic units. For a box it is length × width × height, so a 60 × 30 × 36 cm aquarium holds 64,800 cm³, or 64.8 liters. A cone or pyramid holds one third of the matching cylinder or box. Pick a shape above to get the volume, surface area and the result in liters, gallons or cubic feet.

Volume measures the three-dimensional space an object occupies, expressed in cubic units (cm³, m³, ft³, in³, liters, gallons). Every shape has its own formula derived from geometric principles, many going back to Archimedes.

Box (Cuboid): V = l × w × h
Sphere: V = (4/3) × π × r³
Cylinder: V = π × r² × h
Cone: V = (1/3) × π × r² × h
Rectangular Pyramid: V = (1/3) × l × w × h
Cube: V = s³
Ellipsoid: V = (4/3) × π × a × b × c
Torus: V = 2 × π² × R × r²

Volume vs Area

Area measures 2D space (square units). Volume measures 3D space (cubic units). A cone is 1/3 the volume of a cylinder with the same base and height: Archimedes proved this by showing 3 conefuls fill the cylinder exactly.

Unit Conversions

1 m³ = 1,000 liters = 1,000,000 cm³. 1 ft³ = 1,728 in³ = 7.481 gallons = 28.317 liters. 1 US gallon = 231 in³ = 3.785 liters. Always cube the linear factor when converting volume units.

Real-World Uses

Aquarium capacity, concrete for foundations, paint and fuel tank volumes, shipping container sizes, medical IV bag volumes, and cooking conversions all require volume calculations.

Cone = 1/3 Cylinder

A cone with the same base radius and height as a cylinder has exactly 1/3 its volume. Similarly, a pyramid has 1/3 the volume of a rectangular prism with the same base and height.

Volume and Surface Area: Worked Examples

All examples in centimeters, computed with the same formulas the calculator uses. Surface area is in square units, volume in cubic units.

ShapeExampleVolumeSurface area
Box10 × 8 × 6480 cm³376 cm²
Cubeside 327 cm³54 cm²
Sphereradius 5523.60 cm³314.16 cm²
Hemisphereradius 5261.80 cm³235.62 cm² (with flat base)
Cylinderradius 3, height 10282.74 cm³245.04 cm²
Coneradius 3, height 1094.25 cm³126.67 cm²
Rectangular pyramidbase 6 × 6, height 9108 cm³149.84 cm²
Ellipsoidsemi-axes 5, 4, 3251.33 cm³no simple formula
TorusR = 5, r = 2394.78 cm³394.78 cm²

The torus matching in both columns is a coincidence of these inputs: 2π² × 5 × 4 and 4π² × 5 × 2 are both 40π². The torus formula only holds when the tube radius r is no larger than R.

Cubic Units, Liters and Gallons

A volume factor is the length factor cubed. One foot is 12 inches, so one cubic foot is 12 × 12 × 12 = 1,728 cubic inches.

UnitEqualsLiquid equivalent
1 cubic inch16.387 cm³0.0043 US gal
1 cubic foot1,728 in³7.4805 US gal or 28.317 L
1 cubic yard27 ft³ or 0.7646 m³201.97 US gal
1 US gallon231 in³3.7854 L or 128 fl oz
1 liter1,000 cm³33.814 US fl oz
1 cubic meter35.3147 ft³ or 1.3080 yd³1,000 L or 264.17 US gal

The UK imperial gallon is larger, 4.546 liters, so check which gallon a recipe or spec sheet means. The volume converter covers other units.

Worked Examples

Concrete for a patio slab

A slab 12 ft by 20 ft, 4 inches thick. Convert the thickness first: 4 in = 1/3 ft. Volume = 12 × 20 × 1/3 = 80 ft³. Divide by 27 to get 2.96 cubic yards. Adding 10% for spillage and uneven ground gives 3.26 yd³, so order 3.5 yd³ if your supplier sells in half yards.

Water in a round pool

A pool 24 ft across filled to 4 ft deep is a cylinder with radius 12 ft: π × 12² × 4 = 1,809.56 ft³. Multiply by 7.4805 to get about 13,536 gallons. A rectangular pool 16 by 32 ft with an average depth of 5 ft holds 2,560 ft³, or about 19,150 gallons.

A cylindrical tank

A tank 2 ft in diameter and 4 ft tall: radius 1 ft, so π × 1² × 4 = 12.57 ft³, which is 94.0 gallons.

Common Mistakes

  • Diameter used as radius. Volume grows with the cube of the radius, so using the diameter makes a sphere 8 times too big.
  • Inches mixed with feet. Entering a 4 inch slab as 4 ft makes the concrete order 12 times too large. Convert every dimension to one unit.
  • Slant height instead of vertical height. Cones and pyramids need the perpendicular height from base to tip.
  • Squaring instead of cubing. 1 m³ is 1,000,000 cm³, not 10,000.
  • Wrong gallon. A US gallon is 3.785 L, an imperial gallon 4.546 L.
Method and sources. Formulas: V = lwh, s³, (4/3)πr³, πr²h, (1/3)πr²h, (1/3)lwh, (4/3)πabc and 2π²Rr². Pyramid surface area adds the base to four triangles built on the slant heights. Unit factors are the exact definitions in NIST Special Publication 811 and NIST Handbook 44 (1 in = 2.54 cm, 1 US gallon = 231 in³). Every figure on this page was computed with the same formulas as the calculator.

Volume Questions

Volume is the amount of 3D space a shape occupies. It is measured in cubic units: cubic centimeters (cm³), cubic meters (m³), cubic inches (in³), cubic feet (ft³). For liquids, volume is measured in liters (1 L = 1,000 cm³) or gallons (1 US gallon = 231 in³ = 3.785 L). Volume is a scalar quantity: it has magnitude but no direction.

V = (4/3) × π × r³, where r is the radius. Example: sphere with radius 5 cm. V = (4/3) × 3.14159 × 125 ≈ 523.6 cm³ (about 0.52 liters). The formula was discovered by Archimedes, who proved a sphere fits inside a cylinder (same diameter and height) at exactly 2/3 of the cylinder's volume. For diameter d: r = d/2, so V = πd³/6.

A cone and cylinder with the same base and height satisfy V_cone = (1/3) × V_cylinder. This was proved by Archimedes and can be demonstrated physically: filling a cone-shaped cup exactly 3 times fills a cylinder of the same base and height. The same 1/3 relationship applies to a pyramid vs a rectangular prism. Both proofs use the method of exhaustion (calculus before calculus).

Volume conversions cube the linear factor. Since 1 m = 100 cm, then 1 m³ = 100³ = 1,000,000 cm³. Key conversions: 1 m³ = 1,000 liters. 1 ft³ = 1,728 in³. 1 ft³ = 28.317 liters. 1 US gallon = 3.785 liters. 1 imperial gallon = 4.546 liters. 1 barrel (oil) = 42 US gallons = 158.99 liters.

V = π × r² × h, where r is the radius of the circular base and h is the height. Example: cylinder with radius 3 cm and height 10 cm. V = π × 9 × 10 ≈ 282.7 cm³. This formula comes from multiplying the base area (πr²) by the height, because a cylinder is a stack of identical circular cross-sections. For a pipe, calculate the volume of the outer cylinder minus the inner cylinder.

Use the rectangular box formula: V = length × width × height. Measure all three interior dimensions in the same unit. Example: 60 cm × 30 cm × 36 cm = 64,800 cm³ = 64.8 liters (since 1 L = 1,000 cm³). For a round aquarium, use the cylinder formula with the inner radius and water depth as height. In practice, subtract 10 to 20% for gravel, decorations, and the gap at the top.

A torus is a donut-shaped 3D solid. It has two radii: R (the major radius, from the center of the torus to the center of the tube) and r (the minor radius, the radius of the tube itself). Volume = 2π² × R × r². Example: R = 5 cm, r = 2 cm. V = 2π² × 5 × 4 ≈ 394.8 cm³. The formula derives from Pappus's centroid theorem.

Volume is the 3D space inside a shape (cubic units). Surface area is the total area of all outer surfaces (square units). A cube with side 2 m: volume = 8 m³, surface area = 24 m². Volume tells you how much it holds. Surface area tells you how much material wraps the outside. They scale differently: doubling linear dimensions quadruples surface area and octuples volume.

For a square pyramid: V = (1/3) × base length × base width × height. Example: base 6 cm × 6 cm, height 9 cm. V = (1/3) × 36 × 9 = 108 cm³. The Great Pyramid of Giza (base ≈ 230 m × 230 m, height originally 146.5 m) has volume = (1/3) × 230 × 230 × 146.5 ≈ 2,583,283 m³, roughly 2.6 billion liters of stone.

Use the box formula: V = length × width × thickness. Example: slab 4 m × 6 m × 0.15 m = 3.6 m³. Add 5 to 10% for waste. Concrete is ordered in m³ or yd³. One cubic yard = 27 ft³ = 0.7646 m³. Standard mix density is about 2,300 kg/m³, so 3.6 m³ ≈ 8,280 kg.

One cubic foot holds 7.48 US gallons (1,728 in³ divided by 231 in³ per gallon), or 28.32 liters. To turn a tank or pool volume in cubic feet into gallons, multiply by 7.48. A 10 ft³ tank holds about 74.8 gallons.

Multiply length, width and depth in feet, then divide by 27, because a cubic yard is 3 × 3 × 3 feet. Mulch spread 3 inches deep over a 10 by 12 ft bed is 10 × 12 × 0.25 = 30 ft³, or 1.11 cubic yards. Always convert inches of depth to feet first by dividing by 12.

A hemisphere is half a sphere, so V = (2/3) × π × r³. With a radius of 5 cm the volume is 261.80 cm³. Use the sphere option above and halve the result.