Volume Calculator
Calculate the volume of cubes, rectangular prisms, spheres, cylinders, cones, pyramids, and triangular prisms. Instant results in multiple units with step-by-step formulas.
Interactive Volume Calculator
Dimensions
Calculated Volume
Volume Formulas for All Shapes
Quick reference for every supported 3D shape. Use these formulas to verify calculations or compute volume manually.
| Shape | Formula | Variables |
|---|---|---|
| Cube | V = s3 | s = side length |
| Rectangular Prism | V = l × w × h | l = length, w = width, h = height |
| Sphere | V = 4/3 × π × r3 | r = radius |
| Cylinder | V = π × r2 × h | r = radius, h = height |
| Cone | V = 1/3 × π × r2 × h | r = radius, h = height |
| Square Pyramid | V = 1/3 × b2 × h | b = base side, h = height |
| Triangular Prism | V = 1/2 × bt × ht × L | bt = base of triangle, ht = height of triangle, L = length |
Frequently Asked Questions
How do I calculate the volume of a rectangular box?
Multiply length by width by height: V = l × w × h. Make sure all three measurements use the same unit. The result will be in cubic units of that measurement. For example, a box measuring 10 inches long, 8 inches wide, and 6 inches tall has a volume of 480 cubic inches.
What is the formula for the volume of a cylinder?
The volume of a cylinder is V = π × r2 × h, where r is the radius of the circular base and h is the height. Multiply the area of the base (πr2) by the height. This formula works for any right circular cylinder.
How many gallons are in a cubic foot?
One cubic foot equals approximately 7.48 US gallons. To convert cubic feet to gallons, multiply the volume in cubic feet by 7.48052. This conversion is useful for calculating tank capacities or water volumes.
Can I use this volume calculator for liquid volumes?
Yes. The calculator provides results in multiple units including US gallons, liters, and milliliters. Simply enter the container dimensions as you would for any solid shape, and the liquid-equivalent volume will be displayed in the results panel.
What units should I use for volume calculations?
Choose the unit that matches your measurements. For small objects, inches or centimeters work well. For larger spaces like rooms or tanks, feet or meters are more practical. The calculator automatically converts your result into multiple common units so you can compare easily.