Volume Calculator
Find the volume of common 3D shapes and see conversions to cubic yards and gallons when working in feet.
Updated November 2026 · How we build calculators
Result
Your result will appear here
Enter your numbers, then press Calculate.
How the Volume Calculator works
Each shape has a standard formula, multiplying a base area by height where applicable. When your unit is feet, the result is also shown in cubic yards (÷ 27) and gallons (× 7.48).
Formula used
Box = l × w × h
Cylinder = πr²h
Sphere = 4/3 × πr³
Cone = ⅓πr²h
Pyramid = ⅓ × l × w × h
Step-by-step example
Using the default values in the calculator above:
- Shape: Rectangular box
- Length / radius / side: 10
- Width: 6
- Height: 4
- Unit: feet
- Number of identical shapes: 1
- Fill level (for tanks and containers): 100 %
The calculator then applies the formula above and returns:
- Volume: 240 ft³
- Cubic yards: 8.8888889
- US gallons: 1,795.3248
Notes on the inputs
- Fill level (for tanks and containers)
- Optional. Use 50 for a half-full tank.
What-if scenarios
Each table changes one input and keeps everything else at the calculator's default values.
| Length / radius / side | Volume |
|---|---|
| 5 | 120 ft³ |
| 7.5 | 180 ft³ |
| 10 (default) | 240 ft³ |
| 15 | 360 ft³ |
| 20 | 480 ft³ |
| Width | Volume |
|---|---|
| 3 | 120 ft³ |
| 4.5 | 180 ft³ |
| 6 (default) | 240 ft³ |
| 9 | 360 ft³ |
| 12 | 480 ft³ |
Tips and background
Use this for tanks, pools, planters and shipping boxes. For concrete or soil, see the cubic yard calculator.
Common volume formulas
Box: length × width × height. Cylinder: π × r² × h. Sphere: 4/3 × π × r³. Cone and pyramid: one third of the base area times height. A tank 4 ft across and 3 ft tall holds about 37.7 cubic feet, roughly 282 gallons.
Partially filled tanks and conversions
Use the fill-level field for a half-full tank or container, and the calculator converts to cubic feet, cubic yards, liters and US gallons (7.48 gallons per cubic foot). For landscaping and concrete see the cubic yard calculator, and for 2D basics the area calculator.
What do typical containers hold?
| Shape in feet | Volume | US gallons |
|---|---|---|
| Box 4 × 2 × 2 | 16 cu ft | about 120 |
| Cylinder, radius 2, height 3 | about 37.7 cu ft | about 282 |
| Cone, radius 2, height 3 | about 12.57 cu ft | about 94 |
| Sphere, radius 3 | about 113.1 cu ft | about 846 |
The cone holds one third as much as the cylinder with the same radius and height.
How do inside size and fill level affect the answer?
Use inside measurements for what a container holds, because walls take up space. Enter the radius for round shapes, not the diameter. The fill level applies a straight percentage to the full volume. That is right for upright containers with the same cross-section all the way up, but the depth of liquid in a sphere, cone or sideways cylinder does not match the same percentage of its volume. Water is heavy, so check that a floor or stand can support a filled tank.
Common mistakes to avoid with the Volume Calculator
- Using diameter instead of radius for circles and cylinders.
- Mixing units like inches and feet.
- Forgetting that cones and pyramids are only one third of the matching box or cylinder.
Frequently asked questions
How do I convert cubic feet to gallons?
Multiply by 7.48.
What is the volume of a cone relative to a cylinder?
One third, if base and height are equal.
What units does volume use?
Cubic units such as ft³, in³ or m³.
How many gallons are in a cubic foot?
About 7.48 US gallons.
How do I find the volume of a cylinder?
π × radius squared × height.
What is the volume of a sphere with radius 3?
About 113.1 cubic units.