Volume Calculator: Box Volume by Length, Width, Height
Calculate the volume of a rectangular box or container from its length, width, and height. Includes the formula, a worked example, and a 3D visualization.
Volume Estimation Tool
Enter the dimensions of your box or container to calculate its volume. All dimensions should be positive numbers.
Box Visualization
Documentation
Volume Calculator: Find the Volume of a Box
A volume calculator finds the amount of three-dimensional space inside a rectangular box or container. It works by multiplying length, width, and height. This tool takes those three measurements and returns the volume instantly, along with a 3D preview of the shape.
Volume Formula for a Box
The volume of a rectangular box is:
Where:
- = volume, in cubic units
- = length
- = width
- = height
All three measurements must use the same unit. Mixing inches and feet, or centimeters and meters, produces a wrong answer.
The formula works because volume counts how many unit cubes fit inside the box. A box that is 3 units long, 2 units wide, and 2 units tall holds 3 × 2 × 2 = 12 unit cubes, so its volume is 12 cubic units.
How to Calculate Volume Step by Step
- Measure the length of the box.
- Measure the width, using the same unit as the length.
- Measure the height, using the same unit as the other two.
- Multiply the three numbers together.
- Label the answer with the matching cubic unit, such as cubic inches or cubic feet.
The calculator on this page performs these steps automatically. Enter length, width, and height, and it displays the volume and a scaled 3D box.
Worked Examples
Small package box. Length 12 inches, width 9 inches, height 6 inches. 12 × 9 × 6 = 648 cubic inches.
Moving box. Length, width, and height all 1.5 feet. 1.5 × 1.5 × 1.5 = 3.375 cubic feet.
Both examples use one consistent unit throughout, which is why the results are correct.
Converting Between Volume Units
Converting a volume from one unit to another means cubing the linear conversion factor, not just multiplying by it.
- 1 cubic foot = 1,728 cubic inches (since 12³ = 1,728)
- 1 cubic yard = 27 cubic feet (since 3³ = 27)
- 1 cubic meter ≈ 35.31 cubic feet
- 1 cubic meter = 1,000,000 cubic centimeters (since 100³ = 1,000,000)
- 1 liter = 1,000 cubic centimeters
A common error is forgetting to cube the factor. Since 1 foot equals 12 inches, 1 cubic foot equals 12³ = 1,728 cubic inches, not 12.
Volume and Shipping: Dimensional Weight
Shipping carriers often charge by dimensional weight rather than actual weight for large, light packages. Dimensional weight is calculated by dividing the box's volume in cubic inches by a fixed number called a DIM divisor. In the United States, domestic carriers commonly use 166; some international services use 139.
For example, a box measuring 20 × 20 × 20 inches has a volume of 8,000 cubic inches. Divided by 166, that gives a dimensional weight of about 48 pounds. A carrier bills the package at this weight even if the actual contents, such as pillows, weigh only 3 pounds, because carriers charge whichever figure is higher: actual weight or dimensional weight. This is why bulky but light items often cost more to ship than their scale weight would suggest.
Volume Formulas for Other Shapes
This calculator handles rectangular boxes only. Other common shapes use different formulas:
- Cylinder: , where is the radius and is the height.
- Sphere: , where is the radius.
- Cone: , where is the radius and is the height.
For an irregular shape, one option is to submerge it in water and measure how much water it displaces. This method is credited to the ancient Greek mathematician Archimedes. Another option is to measure the smallest rectangular box that would contain the object, since packaging and shipping costs are usually based on that box, not the object itself.
Frequently Asked Questions
What is volume?
Volume is the amount of three-dimensional space inside an object or container. It is measured in cubic units, such as cubic inches, cubic feet, or cubic meters.
How do you calculate the volume of a box?
Multiply length by width by height: V = L × W × H. For example, a box 2 meters long, 3 meters wide, and 4 meters tall has a volume of 2 × 3 × 4 = 24 cubic meters.
How do I calculate cubic feet?
Measure all three dimensions in feet, then multiply them. For dimensions given in inches, divide each one by 12 first. A box measuring 36 × 24 × 24 inches equals 3 × 2 × 2 feet, which is 12 cubic feet.
How accurate is this volume calculator?
The calculator's arithmetic is exact; any error comes from the input measurements. A small measuring mistake has a large effect because it applies to all three dimensions at once. For a box meant to measure 10.5 × 10.5 × 10.5 inches, if the actual side length is 10.75 inches, the true volume is about 1,242 cubic inches instead of the assumed 1,158 cubic inches, a difference of about 7%. Measuring to the nearest quarter-inch or half-centimeter is accurate enough for most shipping, storage, and construction uses.
Can this calculator handle irregular or non-rectangular shapes?
No. It is built for rectangular boxes and containers only. Cylinders, spheres, and cones need their own formulas, listed above. For an irregular object that will ship in a box, measure the smallest rectangular box that contains it.
How does box volume affect shipping cost?
Carriers convert a package's volume into a dimensional weight and charge for whichever is greater, actual weight or dimensional weight. A 20 × 16 × 12 inch box has a volume of 3,840 cubic inches. Divided by a 166 divisor, that is about 23 pounds of dimensional weight, regardless of how light the actual contents are.
References
- Weisstein, Eric W. "Box." MathWorld — A Wolfram Web Resource. mathworld.wolfram.com/Box.html
- National Institute of Standards and Technology. "Guide for the Use of the International System of Units (SI)." nist.gov/pml/special-publication-811
- UPS. "How to Calculate Dimensional Weight." ups.com
- International Organization for Standardization. "ISO 80000-3:2019 — Quantities and units, Part 3: Space and time." iso.org/standard/64974.html