The 3-4-5 Rule: How to Square a Deck Frame
The 3-4-5 rule is the fastest way to make a deck corner exactly 90°. It comes from the Pythagorean theorem: a triangle with sides of 3, 4 and 5 units always has a right angle between the 3 and 4 sides.
How to use it
- From the corner, measure 3 ft along the ledger (or the first rim board) and mark it.
- From the same corner, measure 4 ft along the joist or string line running out from the house and mark it.
- Measure the diagonal between the two marks.
- If the diagonal is exactly 5 ft, the corner is square. If it’s longer, the angle is more than 90°: swing the joist or string inward. If it’s shorter, swing it outward. Adjust until it reads 5 ft.
Use bigger multiples for bigger decks
Any multiple of 3-4-5 works, and longer measurements are more accurate:
| Multiple | Side A | Side B | Diagonal |
|---|---|---|---|
| ×1 | 3 ft | 4 ft | 5 ft |
| ×2 | 6 ft | 8 ft | 10 ft |
| ×3 | 9 ft | 12 ft | 15 ft |
| ×4 | 12 ft | 16 ft | 20 ft |
On most decks, use 6-8-10 or 9-12-15. An error of ¼” over 5 ft is much bigger, in angle, than ¼” over 15 ft.
Double-check with diagonals
Once the outer frame is built (or the string lines are set for the footings), measure both corner-to-corner diagonals. In a true rectangle they’re equal. If one is longer, push the frame along that diagonal until they match.
For any rectangle you can check the target diagonal: diagonal = √(width² + depth²). A 12x16 deck should measure exactly 20 ft corner to corner.
When to square
- Laying out footings: set string lines from the ledger with batter boards, square them with 3-4-5, then mark footing centers.
- Setting the beam: check the beam is parallel to the ledger by measuring at both ends.
- Before decking: confirm the frame diagonals one more time, because racking is easy to fix before the boards go down.
Next step
With the frame square, use the deck calculator to get your footing count, joist and beam sizes, and a full materials list.