No ads, no sign-upChecked 2026-08-23

Box Diagonal Calculator

Result

13.000000units

Result: 13.000000 units

The longest straight line that fits inside a box runs corner to opposite corner: √(l² + w² + h²). It is Pythagoras used twice, once across the floor and once up the side. All three edges go in with the same length unit, and the diagonal comes back in it.

The numbers at a glance

Held fixed: Length 3.000, Width 4.000.

HeightResult
5.0007.071068
10.00011.180340
12.000Your value13.000000
15.00015.811388
20.00020.615528

Worked examples

How it's calculated

d = √(l² + w² + h²)

  1. StepMeasure the three edges that meet at one corner.
  2. StepEnter all three in the same length unit.
  3. ResultRead the space diagonal in that same unit.

Reference table

Length, width, heightExactDiagonal
1, 1, 1√31.732051
0.5, 2, 3√13.253.640055
2, 3, 4√295.385165
5, 5, 55√38.660254
3, 4, 121313.000000

Questions

How do you find the diagonal of a box?

Square the three edge lengths, add them up and take the square root. A 3 by 4 by 12 box has a diagonal of exactly 13.

Why is it Pythagoras twice?

The floor diagonal is √(l² + w²). That diagonal and the height form a right triangle, and its hypotenuse is the space diagonal.

Will a rod of that length fit in the box?

Only if the rod is thin. The space diagonal is the longest line that fits, so anything longer cannot go in at any angle.

Does the order of the three edges matter?

No. All three are squared and added, so length, width and height are interchangeable.

Sources and last check

  1. mathworld.wolfram.com

Information, not professional advice.