Skip to content
DEVELOGCALC

Volume Calculator

Calculate the volume of a box, cube, cylinder, sphere, cone, or pyramid, with the result also shown in liters and US gallons.

Try:

Result

Volume: 12 ft³

Volume

In liters
339.8022 L
In US gallons
89.7662 US gal
Calculation steps
  1. 4 × 2 × 1.5 = 12 ft³

Calculations run in your browser. Your inputs are not sent to our server.

Formula

  • Box: V = l × w × h
  • Cube: V = s³
  • Cylinder: V = π r² h
  • Sphere: V = 4/3 π r³
  • Cone: V = 1/3 π r² h
  • Pyramid: V = 1/3 × l × w × h

How it works

Enter every dimension in the same unit. The volume is returned in cubic units of that unit, and converted to liters and US gallons with exact unit definitions (1 ft = 0.3048 m, 1 US gal = 231 in³).

A cone holds one third of a cylinder with the same base and height, and a pyramid one third of the matching box — which is why those formulas carry the 1/3.

Worked examples

Raised garden bed

An 8 × 4 ft bed filled 1 ft deep needs 32 cubic feet of soil (about 1.19 cubic yards).

Length
8
Width
4
Height
1
Unit
Feet (ft)
Volume
32 ft³

Water tank

A cylindrical tank 60 cm across and 120 cm tall.

Radius
30
Height
120
Unit
Centimeters (cm)
Volume
339,292.006588 cm³

Ball

A regulation basketball has a radius of about 4.7 inches.

Radius
4.7
Unit
Inches (in)
Volume
434.892765 in³

Ordering soil, mulch, or concrete

Bulk materials are sold by the cubic yard in the US. Divide cubic feet by 27 to get cubic yards, and add 5–10% for settling and waste.

Capacity vs. outer size

For containers, measure the inside dimensions. Wall thickness can reduce the usable volume of a tank or planter noticeably.

Last reviewed: