How to use the volume calculator
- Select a shape from the dropdown menu: cube, box, sphere, cylinder, cone or triangular prism.
- Enter the required dimensions in the fields provided. The hint text below each field explains which measurement it expects for your chosen shape.
- Read the calculated volume instantly in the result area. Change any value to recalculate automatically.
Formulas used by this volume calculator
Each shape uses a standard geometric formula. Here is how they work:
- Cube: V = s³, where s is the side length.
- Rectangular box: V = l × w × h.
- Sphere: V = (4/3) × π × r³. For a sphere with radius 3, the calculation is (4/3) × 3.14159 × 27 = 113.097.
- Cylinder: V = π × r² × h. If you need a dedicated volume of a cylinder calculator with unit conversions, use the sibling tool.
- Cone: V = (1/3) × π × r² × h. See also the cone volume calculator.
- Triangular prism: V = (1/2) × b × ht × l, where b is the triangle base, ht is the triangle height and l is the prism length.
Quick reference table
The table below shows sample volumes for each shape using simple dimensions. Use it to verify your own calculations or as a quick lookup.
| Shape | Dimensions | Volume |
|---|---|---|
| Cube | s = 2 | 8 |
| Box | 2 × 3 × 4 | 24 |
| Sphere | r = 1 | 4.1888 |
| Cylinder | r = 1, h = 5 | 15.708 |
| Cone | r = 3, h = 4 | 37.699 |
| Triangular prism | b = 4, h = 3, l = 10 | 60 |
Practical applications
Knowing how to calculate volume is essential across many fields. In shipping and logistics, finding the volume of a rectangular box determines freight costs and container loading plans. In construction, concrete orders are placed by cubic volume, so computing the space inside a form accurately prevents waste.
For everyday tasks, this volume calculator helps when filling containers, estimating soil for garden beds or comparing product sizes at the store. If you are working with specific objects like water tanks or pipes, the dedicated volume calculator for tank or volume of a pipe calculator may be more appropriate since they handle partial fills and wall thickness.
Common mistakes to avoid
The most frequent error when using a volume calculator is mixing units. If your length is in meters and your width is in centimeters, the result will be meaningless. Convert all measurements to the same unit before entering them. You can use tools like cm to meters or inches to meters first.
Another mistake is confusing diameter with radius. The formulas for spheres, cylinders and cones all require the radius, which is exactly half the diameter. Entering a diameter directly into the radius field will produce a volume eight times too large for a sphere and four times too large for a cylinder or cone.
Finally, remember that these formulas assume perfect geometric shapes. Real-world objects like crushed boxes or deformed containers will have slightly less usable volume than the mathematical ideal.
Understanding cubic units
Volume is always expressed in cubic units. If you measure sides in inches, the result is in cubic inches. If you measure in meters, the result is in cubic meters. There is no separate "volume unit" beyond cubing whatever linear unit you started with.
To convert between cubic units, cube the linear conversion factor. Since 1 foot equals 12 inches, 1 cubic foot equals 12³ = 1,728 cubic inches. Similarly, 1 meter equals 100 centimeters, so 1 cubic meter equals 1,000,000 cubic centimeters. This principle applies universally regardless of the shape you are measuring.
Worked examples
| Example | Input | Result |
|---|---|---|
| Shipping box | Shape: box; Side / Length / Radius: 60; Width / Height: 40; Height / Depth: 30 | Volume: 72,000; Formula: l × w × h; Length: 60; Width: 40; Height: 30 |
| Dice (cube) | Shape: cube; Side / Length / Radius: 1.6 | Volume: 4.096; Formula: s³; Side: 1.6 |
| Basketball (sphere) | Shape: sphere; Side / Length / Radius: 12.13 | Volume: 7,476.0295945; Formula: (4/3)πr³; Radius: 12.13 |
| Soda can (cylinder) | Shape: cylinder; Side / Length / Radius: 3.3; Width / Height: 12.2 | Volume: 417.385716771; Formula: πr²h; Radius: 3.3; Height: 12.2 |
FAQ
How do I calculate the volume of a box?
Multiply the length by the width by the height. Make sure all three measurements use the same unit before multiplying.
What is the difference between radius and diameter in volume formulas?
The radius is half the diameter. Formulas for spheres, cylinders and cones use the radius. If you only know the diameter, divide it by two first.
Can I use this volume calculator for irregular shapes?
No. This tool handles six standard geometric shapes. For irregular objects, you typically measure water displacement or break the object into smaller regular shapes and sum their volumes.
Why does my answer seem too large or too small?
Check that all dimensions are in the same unit. Mixing centimeters and meters is the most common cause of incorrect results.
Is the result in liters or gallons?
The result is in whatever cubic unit matches your input. If you entered centimeters, the output is cubic centimeters. You can then convert using a tool like liters to ml or cups to gallons.
Does this tool upload my measurements anywhere?
No. All calculations happen locally in your browser. Nothing is sent to any server.