Box Volume Calculator

Volume, surface area and space diagonal of a box or rectangular prism, in cubic feet, cubic meters, liters or gallons.

Results

Volume
24
In liters
679.6
In US gallons
179.53
Surface area
52
Space diagonal
5.3852
Longest straight item that fits inside.

How it’s calculated

A box (rectangular prism or cuboid) holds length × width × height. The surface area is the six faces added together, and the space diagonal runs corner to opposite corner.

V = L × W × H SA = 2(LW + LH + WH) d = √(L² + W² + H²) 1 ft³ ≈ 28.317 L ≈ 7.4805 US gal

Example: a 2 × 3 × 4 ft box holds 24 ft³ ≈ 679.6 L ≈ 179.5 US gal, has surface area 2(6 + 8 + 12) = 52 ft² and a space diagonal of √29 ≈ 5.39 ft.

Frequently asked questions

How do I calculate the volume of a box?

Multiply length × width × height using the same units. A 2 ft × 3 ft × 4 ft box is 24 cubic feet.

How many gallons are in a cubic foot?

About 7.48 US gallons. A US gallon is defined as 231 in³ and a cubic foot is 1,728 in³, so 1,728 ÷ 231 ≈ 7.4805.

How much cardboard do I need for a box?

The surface area output gives the area of all six faces. Add extra for flaps and overlaps.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator