Volume of a rectangular prism (box): how it works
A rectangular prism, a box or cuboid, has three different edges: length, width and height. Its volume is the product of the three, and its total surface is the area of its six rectangular faces, two of each size.
V is the volume, a the length, b the width, c the height, S the total surface and D the space diagonal, all in the same unit.
This page opens the geometry calculator on this figure: type the measures and read every result at once, with the figure drawn and each formula next to its value. Everything is computed in your browser.
Formulas
- Volume:
V = a × b × c - Total surface:
S = 2(ab + bc + ac) - Diagonal:
D = √(a² + b² + c²)
Worked example
With a = 6, b = 4, c = 3:
V = a × b × c = 6 × 4 × 3 = 72
S = 2(ab + bc + ac) = 2 × (24 + 12 + 18) = 108
D = √(a² + b² + c²) = √61 = 7.8102Table of sizes
Computed with the calculator’s own formulas, in any one unit of length (the results are in that unit, squared or cubed).
| a | b | c | Volume | Total surface | Diagonal |
|---|---|---|---|---|---|
| 2 | 2 | 2 | 8 | 24 | 3.4641 |
| 4 | 3 | 2 | 24 | 52 | 5.3852 |
| 6 | 4 | 3 | 72 | 108 | 7.8102 |
| 10 | 5 | 4 | 200 | 220 | 11.8743 |
| 20 | 10 | 5 | 1,000 | 700 | 22.9129 |
| 30 | 20 | 10 | 6,000 | 2,200 | 37.4166 |
| 50 | 40 | 30 | 60,000 | 9,400 | 70.7107 |
Working backwards
A missing edge is the volume divided by the other two: c = V / (a × b). A garden bed of 2 m × 1 m filled with 0.3 m of soil takes 0.6 m³, which is 600 liters. A room 4 × 3 × 2.7 m holds 32.4 m³ of air.
Common mistakes
- Mixing units: 40 cm × 30 cm × 0.3 m is not 360. Convert everything to one unit first (0.4 × 0.3 × 0.3 = 0.036 m³ = 36 liters).
- Inside volume is smaller than outside volume: subtract the wall thickness from each edge (twice) when you want the capacity.
Where it is used
- A pool 8 m × 4 m with an average depth of 1.5 m holds 48,000 liters (48 m³).
- A storage box of 40 × 30 × 30 cm holds 36 liters, and the longest object that fits diagonally is 0.58 m long.
Units
Volumes come out in cubic units of the length you type: cm × cm × cm gives cm³. 1 cm³ = 1 ml; 1000 cm³ = 1 liter; 1 m³ = 1000 liters; 1 ft³ = 28.317 liters; 1 US gallon = 3.785 liters.
How to use the calculator
- Fill in the measures of the figure; the example values are already there.
- Choose the unit of length: the results follow it, in square or cubic units.
- Read volume and the other measures, and copy them all with one button.
Frequently asked questions
What is the volume of a box 6 × 4 × 3?
6 × 4 × 3 = 72 cubic units.
How many liters is a cubic meter?
1000 liters. And 1 liter is 1000 cm³ (a cube of 10 cm).
How is the total surface of a box computed?
S = 2(ab + bc + ac): three pairs of equal faces. For 6 × 4 × 3 it is 108; that is the cardboard (or paint) needed, before overlaps.