Volume Calculator
Calculate the volume of a cube, rectangular box, sphere, cylinder, or cone from its dimensions, in metric or imperial units. Also shows liquid capacity in liters or gallons.
Examples
Cube with 2 m sides
Side 2 m → volume 8 m³ ≈ 8000 L of liquid capacity.
- Shape
- Cube
- Side
- 2
- Unit
- Meters (m)
Volume
8.00 m³
Liquid capacity
8000.00 L
Embed this calculator
Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.
How It Works
Formula
Variables, symbols and units
- Side length of a cube
- Length of a rectangular box
- Width of a rectangular box
- Height of a box, cylinder, or cone
- Radius of a sphere, cylinder, or cone
- Volume in cubic units (e.g. m³, in³)
- Pi — ≈ 3.14159, the ratio of a circle's circumference to its diameter
Calculation method explained
Pick a shape, enter its dimensions, and the calculator applies the matching geometric formula (e.g. πr²h for a cylinder). Liquid capacity is a unit conversion of the volume — liters in metric, US gallons in imperial.
Examples
Cube with 2 m sidesCube · 2 → 8.00 m³
Side 2 m → volume 8 m³ ≈ 8000 L of liquid capacity.
- Shape
- Cube
- Side
- 2
- Volume
- 8.00 m³
Cylinder, radius 0.5 m, height 1 mCylinder · 1 → 0.79 m³
A typical kitchen-pot scale — about 0.79 m³, roughly 785 L.
- Shape
- Cylinder
- Height
- 1
- Radius
- 0.5
- Volume
- 0.79 m³
Sphere with 6 in radiusSphere · 6 → 904.78 in³
Radius 6 in → about 904.78 in³, roughly 3.92 US gallons.
- Shape
- Sphere
- Radius
- 6
- Volume
- 904.78 in³
Frequently Asked Questions
Which shape should I pick?
Cube for objects with all sides equal. Rectangular box for boxes / rooms / fish tanks (length × width × height). Sphere for balls. Cylinder for cans, pots, pipes. Cone for funnels and ice-cream cones.
How do I convert volume to liters or gallons?
In metric, 1 cm³ equals 1 mL, so 1 m³ equals 1000 liters. In imperial (US), 1 US gallon equals 231 in³, and 1 ft³ equals about 7.48 US gallons. The calculator picks liters in metric units (m / cm) and US gallons in imperial (ft / in) automatically.
What unit are dimensions in?
Whatever you pick under "Unit" — meters, centimeters, feet, or inches. The calculator does not convert numeric inputs when you change the unit; re-enter the values if you switch.
Why doesn't this show surface area?
Surface area is a different question with its own formulas and use cases (paint coverage, wrapping, heat transfer). To keep the result panel focused on the headline answer, we left it out — open a separate calculator if that's what you need.
How do I choose the right shape?
Pick the solid that best matches the object you are estimating. A box fits rooms and cartons, a cylinder fits tanks and pipes, a cone fits funnels, and a sphere fits balls or domes. If the object is irregular, break it into simpler shapes and add the volumes.