Rectangular Prism
For boxes, rooms, storage bins, rectangular tanks, and packages.
Calculate the volume of common three-dimensional shapes in one place. Choose a cube, rectangular prism, sphere, hemisphere, cylinder, cone, square pyramid, triangular prism, ellipsoid, or cone frustum. Get the result in cubic units, litres, US gallons, and UK gallons, together with the formula and calculation steps.
Select a shape, enter its dimensions using one length unit, and calculate. The required fields change automatically for each solid.
The calculation steps will appear here after you calculate.
Conversions are based on the calculated volume. Displayed values are rounded for readability; calculations use unrounded values.
This calculator supports ten commonly used solids. Choose the shape that most closely matches your object and enter the dimensions requested.
For boxes, rooms, storage bins, rectangular tanks, and packages.
For a solid with six equal square faces and identical edge lengths.
For balls and other spherical objects, using the radius.
For half of a sphere, measured using its radius.
For cans, pipes with solid cross-sections, cylindrical tanks, and columns.
For a right circular cone with a circular base and a vertical height.
For a pyramid with a square base, where a is the base side length.
For a prism whose triangular cross-section has base b and perpendicular height t.
For oval-shaped solids, using the three semi-axis lengths.
For a cone with its tip cut off, leaving two parallel circular ends.
The formula depends on the geometry of the solid. Most common shapes can be understood through base area multiplied by height, a one-third relationship for tapered solids, or the specific formula for a sphere.
A prism has the same cross-sectional area throughout its length. A cylinder is the circular version of this idea, so its volume is πr²h. A rectangular prism uses a rectangular base, giving l × w × h.
A cone or pyramid has one-third the volume of a matching cylinder or prism with the same base area and perpendicular height. For a cone, the circular base area is πr². For a square pyramid, it is a².
The sphere uses one radius in all directions. An ellipsoid can have different semi-axis lengths along its three principal directions. If a = b = c = r, the ellipsoid formula becomes the sphere formula.
These examples show how the formulas produce a volume. Use the calculator above to try different dimensions or output units.
A box is 5 m long, 3 m wide, and 2 m high.
Since 1 m³ equals 1,000 litres, the volume is 30,000 litres.
A cylinder has a radius of 2 m and a vertical height of 5 m.
The result is approximately 62,831.8531 litres.
A sphere has a radius of 3 cm.
Because 1,000 cm³ equals 1 litre, this is approximately 0.1131 litres.
A cone has a radius of 3 cm and a vertical height of 4 cm.
A cone holds one-third the volume of a cylinder with the same base radius and height.
A square pyramid has a base side of 6 cm and a perpendicular height of 9 cm.
The square base area is 36 cm², multiplied by the height and divided by three.
Volume conversions use the cube of the corresponding length conversion factor. The calculator performs the conversions automatically after calculating the volume in cubic metres.
| Unit | Equivalent |
|---|---|
| 1 cubic meter (m³) | 1,000 litres |
| 1 cubic meter (m³) | 35.3146667 cubic feet |
| 1 cubic meter (m³) | 264.172052 US gallons, approximately |
| 1 cubic meter (m³) | 219.969248 UK gallons, approximately |
| 1 litre | 1,000 cubic centimeters (cm³) |
| 1 cubic foot (ft³) | 28.316846592 litres |
| 1 US gallon | 3.785411784 litres |
| 1 UK gallon | 4.54609 litres |
| 1 cubic inch (in³) | 16.387064 millilitres |
US and UK gallons are different units. Choose the appropriate gallon type when estimating tank capacity or liquid volume.
Volume is the amount of three-dimensional space occupied by a solid. It is measured in cubic units such as cm³, m³, in³, or ft³. Liquid capacity is often expressed in litres or gallons.
There is no single formula for every shape. A rectangular prism uses V = lwh, a cylinder uses V = πr²h, and a sphere uses V = ⁴⁄₃πr³. Select the correct solid to see its formula.
Volume involves three dimensions. Multiplying three lengths gives a cubic unit: cm × cm × cm = cm³.
One cubic metre equals exactly 1,000 litres. For example, a rectangular tank with an internal volume of 2 m³ has a geometric capacity of 2,000 litres before allowing for fittings, freeboard, or other obstructions.
Volume measures the space inside a solid and uses cubic units. Surface area measures the total area covering its outside and uses square units. They answer different questions and use different formulas.
Convert all dimensions to the same length unit before calculating. This calculator uses one input unit for every dimension of the selected shape and converts the resulting volume into the output unit you choose.
A cone tapers to a point. A cone frustum is the portion remaining after a cone is cut by a plane parallel to its base, leaving a smaller circular top and a larger circular bottom.
Yes. A hemisphere is half of a sphere, so its volume is V = ⅔πr³, exactly half the sphere volume for the same radius.
It calculates the volume of an ellipsoid using its three semi-axis lengths: V = ⁴⁄₃πabc. Each input is measured from the center to the surface along one of the ellipsoid's principal axes.
No. The calculator computes ideal geometric volume from the dimensions you enter. For a hollow container, use internal dimensions to estimate capacity. For material volume, account for the outer dimensions and internal empty space separately.