Volume Calculator
Choose a solid, type its sizes, and get the volume with the formula worked out. The result also comes in liters and US gallons.
https://flxcode.com/volume-calculator/
Example Box
cubic feet
The formula with your numbers
V = l × w × h
V = 4 × 3 × 2 = 24 ft³
The same volume in other units
| Cubic inches | 41,472 |
|---|---|
| Cubic yards | 0.888889 |
| Cubic centimeters | 679,604 |
| Cubic meters | 0.679604 |
| Liters | 679.604 |
| US gallons | 179.532 |
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Choose the solid. The drawing marks each size with a letter that matches the field.
- Type the sizes in one unit and pick that unit. Switch between radius and diameter for round solids.
- Read the volume, the formula with your numbers, and the other units below it.
Volume formulas for each solid
The sample sizes are run through the same engine as the tool.
| Solid | Formula | Sample | Volume |
|---|---|---|---|
| Cube | s³ | side 3 ft | 27 ft³ |
| Box | l x w x h | 4 x 3 x 2 ft | 24 ft³ |
| Cylinder | π x r² x h | r 3 in, h 10 in | 282.74 in³ |
| Cone | 1/3 x π x r² x h | r 3, h 8 ft | 75.4 ft³ |
| Sphere | 4/3 x π x r³ | radius 1 m | 4.19 m³ |
| Hemisphere | 2/3 x π x r³ | radius 5 ft | 261.8 ft³ |
| Pyramid | 1/3 x l x w x h | 6 x 6 base, 9 ft high | 108 ft³ |
| Capsule | π x r² x h + 4/3 x π x r³ | r 2, straight part 8 ft | 134.04 ft³ |
| Tube | π/4 x (D² − d²) x L | D 4, d 3.5, L 20 ft | 58.9 ft³ |
How it works
Each solid is a flat shape stretched through a height, or a stack of slices. A prism, a box or a cylinder is the base area times the height. A cone or a pyramid is a third of that, because the slices shrink toward the tip. A sphere is a different case, four thirds of pi times the radius cubed.
The sizes stay in the unit you chose while the formula runs, then the volume is converted. Cubic meters become liters by multiplying by 1,000, because a liter is a cubic decimeter. US gallons come from the exact liter value.
A capsule, which is a cylinder with a half sphere on each end, is just the cylinder formula plus the full sphere formula, because the two caps make one sphere. The tool adds the two parts and shows each one on the formula line.
Numbers this uses
Every constant the tool uses is listed here with its source. Where a number varies, you can edit it in the tool.
- Pi is 3.14159265.... The circumference of a circle divided by its diameter. The tool uses the full double-precision value.
- One cubic foot is 1,728 cubic inches. 12 in x 12 in x 12 in.
- One cubic yard is 27 cu ft. 3 ft x 3 ft x 3 ft.
- One US gallon is 231 cubic inches, or 3.785411784 liters. The definition of the US liquid gallon (NIST Handbook 44).
- One liter is 1,000 cubic centimeters. The SI definition of the liter, one cubic decimeter.
Common mistakes
- Mixing units. A volume in cubic feet from sizes in inches is off by a factor of 1,728.
- Entering the diameter as the radius. Volume grows with the cube of the radius, so the error is large.
- Using the slanted height of a cone or pyramid. The formula needs the straight height from the base to the tip.
- Forgetting wall thickness. A tank's capacity is set by its inside sizes, not its outside sizes.
Your sizes stay in this page and are not uploaded. We count events without cookies (details).
FAQ
How do I calculate the volume of a box?
Multiply length, width and height in the same unit. A box 4 x 3 x 2 ft holds 24 cu ft. The tool gives the same space in cubic inches, yards, centimeters and meters, and in liters and US gallons.
What is the volume of a sphere?
It is 4/3 x pi x r³. With a radius of 1 meter that is 4.18879 m³, or 4,189 liters. Doubling the radius makes the volume eight times larger.
Why is a cone one third of a cylinder?
A cone and a cylinder with the same base and height are linked: the cone holds exactly one third. A cone with r = 3 ft and h = 8 ft holds 75.4 cu ft, and the cylinder around it would hold 226.19. The same one third applies to a pyramid and the prism around it.
How do I find the volume of a pyramid?
Multiply the base length by the base width, then by the height, and divide by 3. A base of 6 x 6 ft with a height of 9 ft is 108 cu ft. The tool uses a rectangular base. Use the height straight up from the base, not along a sloped face.
How do I find the volume of a hollow tube or pipe?
Take the volume of the outer cylinder and subtract the empty inner one. With an outer diameter of 4 ft, an inner diameter of 3.5 ft and a length of 20 ft, the walls hold 58.9 cu ft of material. For the space inside, use a plain cylinder with the inner diameter.
What is the volume of a bowl or a half sphere?
A bowl is close to a hemisphere, which is 2/3 x pi x r³. A bowl with a 6 in radius holds 452.4 cu in, about 1.96 US gallons when filled to the brim.
How do I turn volume into liters or gallons?
The tool does it for every result. One cubic foot is 28.317 liters or 7.481 US gallons. A funnel cone of 4 in radius and 5 in height holds 83.8 cu in, which is 1.373 liters. A capsule with r = 2 ft and a straight part of 8 ft is 134 cu ft.
Is anything I type uploaded or saved?
No. The sums run in your browser. Your sizes are not put in the address bar, not stored in this browser and not counted. We only count which solid or unit you used.
More from FLXCode
Cylinder Volume CalculatorNew
Volume of a cylinder or pipe in cubic units, liters and US gallons. Radius or diameter, formula shown.
Cubic Feet CalculatorNew
Cubic feet of a box or a cylinder from inches, feet, yards, cm or meters. Also cubic yards, gallons and liters.
Area CalculatorNew
Area of a rectangle, triangle, circle, trapezoid, parallelogram, ellipse, sector or polygon, with the formula.
Circumference CalculatorNew
Circumference of a circle from the radius, diameter or area, plus arc length, with the formula shown.