Choose a solid, enter its dimensions in any unit and this volume calculator returns the volume in that unit cubed, plus cubic meters, liters, US gallons and cubic feet. It handles cubes, boxes, cylinders, spheres, cones and pyramids.
Formula
Cube: A³. Box: A × B × H. Cylinder: π × A² × H. Sphere: 4/3 × π × A³. Cone: π × A² × H ÷ 3. Pyramid: A × B × H ÷ 3. 1 m³ = 1,000 L; 1 US gal = 3.785411784 L.
How it works
Choose the solid and the unit of your measurements, then fill only the dimensions it uses (the option list shows what A, B and H mean). The volume is shown in that unit cubed and converted to cubic meters, liters, US gallons and cubic feet. Use inside dimensions for tanks, pools and boxes when you want capacity. For cylinders, cones and spheres enter the radius, which is half the diameter.
Volume formulas for each solid
Cube: edge³. Box (rectangular prism): length × width × height. Cylinder: π × radius² × height. Sphere: 4/3 × π × radius³. Cone: π × radius² × height ÷ 3. Pyramid: base length × base width × height ÷ 3.
Notice the pattern: prisms and cylinders are base area × height, while cones and pyramids are exactly one third of that. The calculator uses the generic fields A, B and H, and the shape list explains what each means; unused fields are ignored, and a pyramid with B left empty is treated as having a square base.
Worked examples
Box: a planter 2 m long, 1.5 m wide and 1 m deep holds 2 × 1.5 × 1 = 3 m³, which is 3,000 liters, about 792.5 US gallons or 105.9 cubic feet. That is the default example.
Cylinder: a tank with a 0.5 m radius (1 m diameter) and 1 m height holds π × 0.5² × 1 ≈ 0.7854 m³, or about 785.4 liters. Sphere: a ball with a 10 cm radius has 4/3 × π × 10³ ≈ 4,188.8 cm³, about 4.19 liters. Pyramid: a 3 m square base and 4 m height give 3 × 3 × 4 ÷ 3 = 12 m³.
Units: cubic feet, gallons and liters
Volumes scale with the cube of the unit: 1 ft = 12 in, but 1 cu ft = 1,728 cu in, and 1 m³ = 1,000,000 cm³. Useful equivalences: 1 m³ = 1,000 L = 35.315 cu ft; 1 US gallon = 3.785 L = 231 cu in; 1 cu ft ≈ 7.48 US gallons.
For capacity, use inside dimensions. For materials such as concrete, gravel or soil, contractors in the US order by the cubic yard (27 cu ft); the concrete calculator adds slab and footing presets. Converting other units is easy with the unit converter.
Common mistakes
Using the diameter instead of the radius is the biggest one: for a cylinder it makes the volume four times too large, and for a sphere eight times. Measure across the circle and divide by two.
Other slips: mixing feet and inches in the same calculation, forgetting the 1/3 for cones and pyramids, and using outside dimensions for a container with thick walls. For a pool or a tank that is not filled to the top, use the water depth as H, not the wall height.
Frequently Asked Questions
- How many liters are in a cubic meter?
- Exactly 1,000 liters. One liter is the volume of a 10 cm cube, and a 1 m cube holds 10 × 10 × 10 of them.
- How do I calculate cubic feet?
- Measure length, width and height in feet and multiply. A 10 ft × 8 ft × 2 ft space is 160 cu ft. If you measure in inches, divide the result by 1,728.
- How many gallons are in a cubic foot?
- About 7.48 US gallons. One gallon is 231 cubic inches and one cubic foot is 1,728 cubic inches.
- How do I find the volume of a cylinder in gallons?
- Compute π × r² × h, convert to cubic feet and multiply by 7.48, or let the calculator do it: choose Cylinder, enter radius and height, and read the US gallons line.
- How many liters are in a cubic meter?
- Exactly 1,000 liters. One liter is the volume of a cube 10 cm on each side.