Yes—volume is length × width × height for a rectangular box, provided all three measurements use the same unit. This calculator works out that volume from three side lengths and reports it in cubic units; the formula applies to rectangular prisms, not every shape.
Formula
For a rectangular prism, volume equals length multiplied by width multiplied by height:
V = l × w × h
- V is volume, in cubic centimeters (cm³) in this calculator.
- l is length, in centimeters (cm).
- w is width, in centimeters (cm).
- h is height, in centimeters (cm).
Multiplying three lengths gives cubic units: cm × cm × cm = cm³. Since 1 cm³ equals 1 mL, the numerical value in cm³ is also the volume in milliliters. To convert milliliters to liters, divide by 1,000: 1,000 mL = 1 L.
Worked Example
Using the calculator’s default measurements, length is 10 cm, width is 5 cm, and height is 4 cm.
- Multiply length by width: 10 cm × 5 cm = 50 cm².
- Multiply that area by height: 50 cm² × 4 cm = 200 cm³.
- Convert to milliliters: 200 cm³ = 200 mL.
- Convert to liters: 200 mL ÷ 1,000 = 0.200 L.
The volume is 200 cm³, equivalent to 200 mL or 0.200 L.
Assumptions
- The object or space is a rectangular prism with straight sides and right-angle corners.
- Each entered measurement describes an internal dimension if you want capacity, or an external dimension if you want the object’s outside volume.
- All three dimensions are measured in centimeters; the calculator does not convert mixed input units.
- The result is a geometric volume, not a measurement of mass or weight.
When Length × Width × Height Applies
The formula works for a rectangular prism: a three-dimensional shape with six rectangular faces, such as a box, brick, aquarium, or storage container with vertical walls. The sides do not have to be different lengths; a cube is a special case where length, width, and height are equal. For a cube with side length s, the same rule becomes V = s³.
It can also describe the capacity of a rectangular space when its inside dimensions are known. For instance, a container measuring 30 cm by 20 cm by 15 cm has a geometric interior volume of 9,000 cm³, or 9 L, if those numbers are its usable internal dimensions. In practice, rounded corners, thick walls, fittings, or a fill line can make the usable capacity smaller than this idealized calculation.
Keep units consistent before multiplying. If a box is 2 m long, 40 cm wide, and 300 mm high, first convert the dimensions to one unit. In centimeters, they are 200 cm, 40 cm, and 30 cm, giving 240,000 cm³. Mixing the raw numbers as 2 × 40 × 300 would produce a meaningless result because the factors represent different units.
Other Shapes Need Different Formulas
Length × width × height is not a universal volume formula. It treats the entire shape as a box; for a curved or tapered object, that can give a result that is much too large or otherwise incorrect. Common alternatives include:
- Cube: V = s³, where s is the side length.
- Cylinder: V = πr²h, where r is the circular base’s radius and h is the cylinder’s perpendicular height.
- Sphere: V = (4/3)πr³, where r is the radius.
- Triangular prism: V = (1/2)bhL, where b and h describe the triangular cross-section and L is the prism’s length.
- Irregular object: its volume may be estimated by dividing it into simpler shapes or measured by displacement when the object and liquid make that method suitable.
For a shape with a constant but nonrectangular cross-section, a useful general relationship is volume = cross-sectional area × perpendicular length. The rectangle formula is one instance of that principle, with cross-sectional area equal to length × width.
Measurement, Units, and Capacity
Measure the three dimensions perpendicular to one another. For an ordinary box, these are its length, width, and height; which horizontal side is called length versus width does not affect the product. Use the relevant inside dimensions to estimate how much a container can hold. Use outside dimensions when calculating the space an object occupies, such as whether it will fit on a shelf.
Volume units are cubed, unlike area units, which are squared. A result of 200 cm³ is not 200 cm or 200 cm². Useful relationships include 1 m³ = 1,000,000 cm³, 1 dm³ = 1 L, and 1 cm³ = 1 mL. For US customary measurements, a cubic foot is a volume unit, while a foot is a length unit; conversions must account for the fact that all three dimensions are involved.
Geometric volume and practical capacity are related but not always identical. A container may not be filled to its rim, and a solid object placed inside a container occupies space. If the goal is to know the amount of liquid that fits, use interior measurements and account for the intended fill level and any features that reduce the usable space.
Common Mistakes and Limits
- Using the formula on a non-box shape: identify the shape first and choose its matching formula.
- Mixing units: convert all dimensions to the same unit before multiplying.
- Confusing area with volume: three dimensions produce cubic units, not square units.
- Using outside dimensions for capacity: wall thickness reduces interior space, so use inside measurements for a container’s capacity.
- Reporting false precision: a calculator may show many digits, but the answer cannot be more reliable than the measurements. Round to a sensible precision based on the least precise input.
The formula assumes the measured dimensions are accurate and the faces form a true rectangular prism. It does not account for deformation, sloping walls, rounded edges, gaps, or objects inside the space. When measurements are uncertain, treat the calculated result as an estimate rather than an exact capacity.
Frequently Asked Questions
Is volume always length × width × height?
No. That product gives the volume of a rectangular prism. Cylinders, spheres, cones, and irregular shapes need their own formulas or a suitable measurement method.
What units do I get when I multiply length, width, and height?
You get cubic units. For example, measurements in centimeters produce cubic centimeters (cm³); measurements in meters produce cubic meters (m³).
Is 1 cm³ the same as 1 mL?
Yes. One cubic centimeter is exactly equivalent in volume to one milliliter. One liter equals 1,000 mL, or 1,000 cm³.
Should I use inside or outside dimensions?
Use inside dimensions to estimate a container’s capacity, and outside dimensions to estimate the space the container itself occupies. The two results differ when the walls have thickness.
How do I calculate volume if the dimensions use different units?
Convert all three measurements to the same unit first, then multiply. Do not multiply the numerical values alone while leaving the units mixed.
Related
Formula used
in l | Length | cm | 10 | 0 in w | Width | cm | 5 | 0 in h | Height | cm | 4 | 0 out v | Volume | cm³ | l * w * h | 0 out ml | Equivalent volume | mL | l * w * h | 0 out li | Equivalent volume | L | l * w * h / 1000 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Liters to Cubic Meters: Conversion and Examples0.001000 m³
- Normal Cubic Meter to Liters Calculator1,000.00 L
- Qt to Liters Conversion: US and Imperial Quarts0.946353 L
- Meters to Liters Formula: Convert Length to Volume?1,000.000 L
- Meters to Litres: Why Length Alone Is Not Enough1,000.00 L
- Cubic Meters per Hour to Liters per Second0.2778 L/s