Skip to content
K Knidox Search…
Geometry · Geometry

Rectangular Prism Calculator

Enter length, width, and height to get a box’s volume, surface area, and space diagonal.

4 × 3 × 2

Rectangular prism diagramlhwNot to scale
Example boxes — tap to load
Volume
24units³
Surface area
52units²
Space diagonal
5.3852units
Total edge length
36units

A rectangular prism (box) with length l, width w, and height h has volume V = l × w × h, surface area SA = 2(lw + lh + wh), and space diagonal d = √(l² + w² + h²). For a 4 × 3 × 2 box, V = 24, SA = 52, and d ≈ 5.39.

What a rectangular prism is

A rectangular prism — often just called a box or cuboid — is a solid with six rectangular faces meeting at right angles. Its three dimensions are the length, width, and height. Because every face is a rectangle and every corner is square, the volume, surface area, and diagonal all follow directly from those three numbers.

V = l w h · SA = 2(lw + lh + wh) · d = √(l² + w² + h²)

volume, surface area, and space diagonal from the three side lengths

Worked example

Take a box with l = 4, w = 3, and h = 2:

  1. 1
    Multiply the three sides for volume. V = l × w × h = 4 × 3 × 2 = 24 cubic units.
  2. 2
    Add the three distinct face areas. lw + lh + wh = (4×3) + (4×2) + (3×2) = 12 + 8 + 6 = 26.
  3. 3
    Double it for the surface area. SA = 2 × 26 = 52 square units — a box has two copies of each face.
  4. 4
    Take the root of the squared sides for the diagonal. d = √(4² + 3² + 2²) = √(16 + 9 + 4) = √29 ≈ 5.39 units, the longest straight line inside the box.

Volume, surface area, and diagonal of a few boxes

A cube is the special case l = w = h, so all three sides are equal.

l × w × hVolume (lwh)Surface areaSpace diagonal
4 × 3 × 22452≈ 5.39
5 × 5 × 5 (cube)125150≈ 8.66
10 × 4 × 3120164≈ 11.18
2 × 2 × 83272≈ 8.49
1 × 1 × 1 (unit cube)16≈ 1.73

Reading the results

Watch the units. Volume is in cubic units (units³), surface area in square units (units²), and the diagonal in the same linear units as the sides. Mixing units — say centimetres for length and metres for height — is the most common mistake; convert everything first.

The space diagonal is the longest segment that fits inside the box, running corner to corner through its interior. It is a 3-D extension of the Pythagorean theorem: √(l² + w² + h²). A cube is simply the case where l = w = h, which is why its diagonal reduces to s√3.

How do I find the volume of a rectangular prism?
Multiply the three side lengths: V = length × width × height. For a 4 × 3 × 2 box that is 4 × 3 × 2 = 24 cubic units.
How do I calculate the surface area?
Add the three distinct face areas and double the total: SA = 2(lw + lh + wh). For 4 × 3 × 2 that is 2(12 + 8 + 6) = 52 square units.
What is the space diagonal of a box?
It is the longest straight line inside the prism, running corner to opposite corner through the interior. It equals √(l² + w² + h²) — for a 4 × 3 × 2 box, √29 ≈ 5.39 units.
How is this different from a cube?
A cube is the special case of a rectangular prism where all three sides are equal (l = w = h). Every cube is a rectangular prism, but a prism is only a cube when its length, width, and height match.
What units does each result use?
Volume is in cubic units (units³), surface area in square units (units²), and the space diagonal and edge length are in the same linear units as the sides. Convert all inputs to one unit first.
What is the total edge length?
A box has 12 edges — four of each side length — so the total is 4(l + w + h). For a 4 × 3 × 2 box that is 4 × 9 = 36 units, the wire needed to build its frame.