Volume Calculator: Box, Cylinder, Sphere, Cone & More

Pick a shape, enter its measurements, and get the volume in cubic feet, cubic yards, gallons, liters and more. A 10 × 10 × 10 ft box holds 1,000 cubic feet.

  • 9 shapes
  • Imperial & metric
  • Formula shown
Find the volume
Example · 10 × 10 × 10 ft box
  • Cubic feet1,000
  • Cubic yards37.037
  • US gallons7,480.52
  • Liters28,316.85
VL × W × H1,000 ft³

Volume is the space inside a three-dimensional shape, measured in cubic units. For a box, multiply length × width × height (OpenStax Prealgebra 2e, 9.6): a box 10 feet on each side holds 1,000 cubic feet, which is 37.037 cubic yards or 7,480.52 US gallons. This volume calculator handles nine shapes, takes measurements in inches, feet, yards or metric units, and shows the answer in every common unit with the formula worked out.

Last updated November 11, 2026  How we calculate

Volume

Rectangular box

1,000 ft³

V = L × W × H = 10 × 10 × 10 = 1,000 ft³

Cubic inches1,728,000 in³
Cubic feet1,000 ft³
Cubic yards37.037 yd³
Cubic centimeters28,316,846.59 cm³
Cubic meters28.317 m³
Liters28,316.85 L
US gallons7,480.52 gal

Volume Formulas

Every formula below uses the same unit for all measurements, and the result is in that unit cubed. Diameter is the width across a circle; the radius is half of it.

Volume formulas, with an example for each shape
ShapeFormulaExample
Rectangular boxV = L × W × H10 × 8 × 6 = 480 ft³
CubeV = s³12³ = 1,728 in³
CylinderV = π × r² × hπ × 1² × 3 = 9.425 ft³
SphereV = 4/3 × π × r³4/3 × π × 3³ = 113.097 in³
HemisphereV = 2/3 × π × r³2/3 × π × 3³ = 56.549 in³
ConeV = 1/3 × π × r² × h1/3 × π × 3² × 10 = 94.248 in³
Pyramid (rectangular base)V = 1/3 × L × W × H1/3 × 6 × 6 × 9 = 108 m³
Triangular prismV = ½ × b × h × L½ × 4 × 3 × 10 = 60 ft³
Tube or pipeV = π × (R² − r²) × Lπ × (2² − 1²) × 10 = 94.248 in³

The box, cube, cylinder, sphere and cone formulas are from OpenStax Prealgebra 2e, 9.6, and the pyramid formula, one third of the base area times the height, from OpenStax Calculus Volume 1, 6.2. A triangular prism is a triangle's area (½ × base × height) times its length, a hemisphere is half a sphere, and a tube is the outer cylinder minus the hollow inside.

Converting Volume Units

Because 1 foot = 12 inches and 1 yard = 3 feet, cubic units grow by the cube: 1 cubic foot = 12 × 12 × 12 = 1,728 cubic inches, and 1 cubic yard = 3 × 3 × 3 = 27 cubic feet. A US gallon is defined as exactly 231 cubic inches (NIST Handbook 44, Appendix C), and a liter is one cubic decimeter, 1,000 cm³ (NIST). With the foot defined as exactly 0.3048 m (NIST), every conversion below follows from these exact definitions (rounded here).

Volume unit conversions
1 of thisEquals
Cubic foot1,728 in³ · 7.481 US gallons · 28.317 liters
Cubic yard27 ft³ · 201.974 US gallons · 0.7646 m³
US gallon231 in³ · 3.785 liters
Cubic meter1,000 liters · 35.315 ft³ · 1.308 yd³
Liter1,000 cm³ · 61.024 in³ · 0.2642 US gallons

Cubic Feet Calculator: How to Find Cubic Feet

Measure the length, width and height in feet and multiply. If you measured in inches, multiply the three numbers and divide by 1,728, or convert each to feet first. A moving box 18 × 18 × 16 inches holds 18 × 18 × 16 ÷ 1,728 = 3 cubic feet. For a room 12 × 10 feet with an 8-foot ceiling, the volume is 960 cubic feet.

For the area of a floor or wall rather than a volume, use the square footage calculator. Ordering mulch, soil, gravel or concrete by the cubic yard? Use the cubic yard calculator, which takes depth in inches and adds bags, extra for waste and cost.

Volume in Gallons and Liters

To find how much liquid a container holds, find its volume and convert. A cylindrical tank 2 feet across and 3 feet tall holds π × 1² × 3 = 9.425 cubic feet, or 70.502 US gallons. A fish tank 24 × 12 × 16 inches holds 4,608 in³ ÷ 231 = 19.948 gallons when filled to the top. See all math calculators.

Frequently Asked Questions

How do you calculate volume?

Multiply the area of the base by the height for boxes, cylinders and prisms; take one third of that for cones and pyramids; and use 4/3 × π × radius³ for a sphere. All measurements need the same unit.

How many cubic feet are in a cubic yard?

27, because a cubic yard is 3 feet × 3 feet × 3 feet.

How many gallons are in a cubic foot?

About 7.481: 1,728 cubic inches divided by the 231 cubic inches in a US gallon.

What's the difference between volume and capacity?

Volume is the space a shape takes up; capacity is how much a container can hold. For a thin-walled container they're about the same, so measure the inside dimensions when you want the capacity.

Why do my measurements need the same unit?

Multiplying feet by inches gives a meaningless mixed unit. Convert first, or choose one unit in the calculator and enter every measurement in it. The cubic yard calculator lets you enter depth in inches separately.

Sources