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
- Cubic feet1,000
- Cubic yards37.037
- US gallons7,480.52
- Liters28,316.85
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.
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.
| Shape | Formula | Example |
|---|---|---|
| Rectangular box | V = L × W × H | 10 × 8 × 6 = 480 ft³ |
| Cube | V = s³ | 12³ = 1,728 in³ |
| Cylinder | V = π × r² × h | π × 1² × 3 = 9.425 ft³ |
| Sphere | V = 4/3 × π × r³ | 4/3 × π × 3³ = 113.097 in³ |
| Hemisphere | V = 2/3 × π × r³ | 2/3 × π × 3³ = 56.549 in³ |
| Cone | V = 1/3 × π × r² × h | 1/3 × π × 3² × 10 = 94.248 in³ |
| Pyramid (rectangular base) | V = 1/3 × L × W × H | 1/3 × 6 × 6 × 9 = 108 m³ |
| Triangular prism | V = ½ × b × h × L | ½ × 4 × 3 × 10 = 60 ft³ |
| Tube or pipe | V = π × (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).
| 1 of this | Equals |
|---|---|
| Cubic foot | 1,728 in³ · 7.481 US gallons · 28.317 liters |
| Cubic yard | 27 ft³ · 201.974 US gallons · 0.7646 m³ |
| US gallon | 231 in³ · 3.785 liters |
| Cubic meter | 1,000 liters · 35.315 ft³ · 1.308 yd³ |
| Liter | 1,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
- OpenStax, Prealgebra 2e, 9.6 Solve Geometry Applications: Volume and Surface Area
- OpenStax, Calculus Volume 1, 6.2 Determining Volumes by Slicing
- NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement
- NIST: Revised unit conversion factors (international foot = 0.3048 m)
- NIST: SI units, volume
- Formulas and test cases: math calculator methodology