How do I pick the right triangle for Pythagoras in 3D?

I’m trying to wrap my head around using Pythagoras when things pop out of the page into 3D. In 2D I’m fine: right triangle, legs, hypotenuse, done. But the second I’m in a box-shaped room or working with a point that isn’t on a single face, my brain acts like it forgot its password.

For example, say I’ve got a rectangular box with length 6, width 4, and height 3. I want the straight-line distance from the bottom-front-left corner to the top-back-right corner (like the diagonal that goes through the air, not along the edges). Do I do Pythagoras twice-first on the base to get a face diagonal and then combine that with the height-or is there a more direct, “just do this” way? Which right triangle am I even supposed to be visualizing here?

Another one: if I have two points in space, like (2, 1, 0) and (0, 5, 7), how do I set up the right triangle for the distance between them? Are the “legs” just the differences in x, y, and z, or am I supposed to flatten the situation onto a plane somehow first? I keep second-guessing whether I’m using the right pieces.

And in a more real-life picture: in a room that’s 4 m by 3 m by 2.5 m, what’s the shortest ladder that could fit from one bottom corner to the opposite top corner? That sounds like the diagonal of the whole room. But if the ladder instead goes from a point halfway along the bottom of one wall to the top edge of the opposite wall, how do I decide what the right triangle is there? It feels like the triangle is tilted in space, and I’m not sure how to “see” it.

I think my core confusion is: in 3D, I keep drawing different triangles on different faces, and depending on which order I combine things, I get different numbers. Clearly I’m mixing triangles that don’t belong together.

Could someone explain how to consistently apply Pythagoras in 3D? How do you identify the correct right triangle when the segment isn’t sitting nicely on a face? If I’ve got coordinates for two points, what’s the clean way to get the distance? And in box problems, is there a simple checklist for when to do Pythagoras once, twice, or on which faces? I’m probably overcomplicating this, but I’d love a nudge in the right direction.

3 Responses

  1. In 3D, stop hunting for a fancy tilted triangle and just use the three straight “runs” along x, y, z as your legs-Pythagoras works exactly the same with one extra squared piece. Box diagonal from one corner to the opposite? It’s the square root of length^2 + width^2 + height^2. For your 6×4×3 box, that’s √(6^2+4^2+3^2) = √(36+16+9) = √61 ≈ 7.81. Doing it in two steps (face diagonal first, then with height) gives the same number, because √((√(L^2+W^2))^2+H^2) just collapses to √(L^2+W^2+H^2). Two points (2,1,0) to (0,5,7)? Differences are (−2,4,7), so distance = √(2^2+4^2+7^2) = √69 ≈ 8.31. Room 4 by 3 by 2.5: corner-to-corner is √(4^2+3^2+2.5^2) = √31.25 ≈ 5.59 m. If the ladder goes from halfway along the bottom of one wall (say (2,0,0)) to the top edge of the opposite wall (points of the form (x,3,2.5)), you pick the closest point on that edge by matching x = 2, giving distance √(0^2+3^2+2.5^2) = √15.25 ≈ 3.91 m; if they mean a specific top-corner, just plug its coordinates. Rule of thumb: march along x, then y, then z (in any order), square each march, add, square-root. If you get different answers, you mixed in a non-perpendicular piece-undo that and stick to pure axis moves. Hope this helps!

  2. Woo! In 3D, treat the x-, y-, and z-differences as perpendicular legs-so distance is √(dx^2+dy^2+dz^2): the 6×4×3 box has diagonal √61, the points (2,1,0)→(0,5,7) give √69, and a 4×3×2.5 room’s corner-to-corner ladder is √(4^2+3^2+2.5^2)=√31.25≈5.3 (you can also think “floor diagonal, then up” as doing Pythagoras twice).
    When I first learned this I unfolded a cereal box and drew the long triangle across two faces-at first I even used the 6×4 floor diagonal as exactly 7 (oops), but that little puzzle made the 3D pattern click and I got weirdly excited about it.

  3. I’ve tripped over this too-once things float off the page, my brain starts drawing triangles on every face like it’s auditioning for modern art. The big idea that calmed me down is: in 3D, your “legs” are just the perpendicular components of the displacement. If your box is aligned with x, y, z axes, then for a segment between two points, the legs are |Δx|, |Δy|, and |Δz|, and Pythagoras simply becomes d = sqrt((Δx)^2 + (Δy)^2 + (Δz)^2). That’s exactly the “do Pythagoras twice” picture, just rolled into one line. So for your 6×4×3 box’s opposite corners, d = sqrt(6^2 + 4^2 + 3^2) = sqrt(61) ≈ 7.81. For the points (2, 1, 0) and (0, 5, 7), the differences are Δx = -2, Δy = 4, Δz = 7, so the distance is sqrt(4 + 16 + 49) = sqrt(69) ≈ 8.31. You don’t need to flatten anything first; the flattening is just a way to derive that same formula by first finding a face diagonal sqrt(Δx^2 + Δy^2) and then combining with Δz.

    Which triangle are you visualizing? The right one is the one whose perpendicular legs are exactly those components-so either think of an L-shaped walk along three edges (Δx, then Δy, then Δz), or think of a two-step: face diagonal on, say, the floor, then up the height. The order never matters because you’re adding squares of perpendicular pieces. For your room 4 m by 3 m by 2.5 m, opposite corners give a ladder length sqrt(4^2 + 3^2 + 2.5^2) = sqrt(31.25) ≈ 5.59 m. If the ladder goes from the point halfway along the bottom of one wall to the top edge of the opposite wall, set coordinates: put the first wall at x = 0, so the halfway-bottom point is P = (0, 1.5, 0). The opposite top edge is the line x = 4, z = 2.5, y ∈ [0, 3]. The closest point on that edge to P has the same y, so Q = (4, 1.5, 2.5). Then the minimum ladder length is sqrt(4^2 + 0^2 + 2.5^2) = sqrt(22.25) ≈ 4.72 m. Same rule: use the perpendicular components between the endpoints you care about. A nice walkthrough of the 3D distance formula lives here: https://www.mathsisfun.com/geometry/distance-3d-points.html

    Does it help to picture that L-shaped path along three perpendicular directions first, and only then “snap the string tight” to get the straight-line distance? If you’ve got another oddly placed endpoint (like from a floor point to a window frame), want to throw the coordinates at it together and see what pops out?

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Our Community

Ready to make maths more enjoyable, accessible, and fun? Join a friendly community where you can explore puzzles, ask questions, track your progress, and learn at your own pace.

By becoming a member, you unlock:

  • Access to all community puzzles
  • The Forum for asking and answering questions
  • Your personal dashboard with points & achievements
  • A supportive space built for every level of learner
  • New features and updates as the Hub grows