QuickCalci Formulas
math
intermediate

3D Pythagorean Theorem

The 2D triangle rule upgraded for 3D space

Open live visualizer

Beginner explanation

The 2D triangle rule upgraded for 3D boxes — finds the diagonal across a room from one corner to the opposite corner! Measure the width, depth, and height of your room, and this tells you the longest possible straight line inside it.

Real-world analogy

Imagine a room in your house. You can walk diagonally across the floor — that is 2D Pythagoras. But what is the longest thing you could fit diagonally from the floor-front-left corner to the ceiling-back-right corner? That is the 3D version!

Where it appears in the real world

  • 1Removal companies calculate the longest item that can fit diagonally in a truck using 3D Pythagoras.
  • 23D game engines use a³+b²+c²=d² to compute distances between objects for collision detection.
  • 3Architects calculate cable lengths in 3D roof structures spanning different elevations.

How to use the visualizer

  1. 1

    Set dimension a (width) of the 3D box using the slider.

  2. 2

    Set dimension b (depth) of the box.

  3. 3

    Set dimension c (height) of the box.

  4. 4

    The glowing diagonal d is computed as √(a²+b²+c²) — the longest straight line through the box.

  5. 5

    Orbit the 3D cube with your mouse to view the diagonal from any angle.

Common questions

Why is this useful if we already have 2D Pythagoras?

Many real problems are 3D — fitting furniture diagonally through a door, calculating cable lengths in 3D rooms, or determining shortest distances in 3D space all need the 3D extension.

Does this work for any rectangular box?

Yes — any rectangular cuboid (box with all right angles). The formula √(a²+b²+c²) gives the space diagonal from any corner to the opposite corner.

What is the relationship to 2D Pythagoras?

The 3D version applies Pythagoras twice: first the floor diagonal = √(a²+b²), then the space diagonal = √(floor_diagonal² + c²) = √(a²+b²+c²).

Related formulas