Calculates the volume of a cuboid as depth × width × height.
A cuboid is a solid with six rectangular faces, the shape of an ordinary box. Its three edge lengths determine the volume.
With the defaults, a depth of , a width of and a height of :
The volume is 120. If the edges are in centimetres, the volume is in cubic centimetres.
The base is a 4 by 5 rectangle, so its area is 20. Stacking that base up through a height of 6 gives . The same reasoning covers any prism or cylinder: volume equals base area times height, and the cuboid is simply the case where the base is a rectangle.
All three lengths must be in the same unit; mixing centimetres and metres produces a meaningless answer. Volume scales with the cube of the length, so doubling every edge makes the volume eight times larger. When all three edges are equal the cuboid is a cube, and .