math5 min read•Updated 2026-10-09•By celculator Team

Pythagorean Theorem in Construction: 3-4-5 Rule

Use the Pythagorean theorem for perfect square corners. The 3-4-5 rule squares any layout without a calculator. Full construction applications guide.

Pythagorean theorem 3-4-5 rule diagram for squaring building layouts

Pythagorean Theorem — Direct Answer

The Pythagorean theorem states a² + b² = c², where c is the longest side (hypotenuse) of a right triangle. In construction, use the 3-4-5 rule: measure 3 units on one side, 4 on the other, and the diagonal must be 5 units to guarantee a perfect 90° corner. Any multiple works — 6-8-10, 9-12-15, 30-40-50.

→ Calculate triangle sides with our free triangle calculator

How to Use the 3-4-5 Rule for Squaring Corners

The 3-4-5 rule is the fastest way to check a corner without expensive tools.

3-4-5 triangle: a=3, b=4, c=5
a² + b² = c²
9 + 16 = 25 ✓

Where:

  • 3 = short side
  • 4 = long side
  • 5 = diagonal (hypotenuse)

Step-by-step: squaring a deck corner

Step 1: Establish two reference lines from the corner at approximate 90°.

Step 2: Mark 3 ft along one line and 4 ft along the other.

Step 3: Measure the distance between the two marks.

Step 4: If it's exactly 5 ft, the corner is square (90°).

Step 5: Adjust the reference line until the diagonal reads 5 ft.

How to scale the 3-4-5 rule

For larger projects, multiply the ratio:

Multiplier a b c
1× 3 4 5
2× 6 8 10
3× 9 12 15
5× 15 20 25
10× 30 40 50
20× 60 80 100

Best practice: Use 6-8-10 for decks, 9-12-15 for foundations, 30-40-50 for large buildings.

How to apply the full Pythagorean theorem

When you know two sides but need the third:

c = √(a² + b²)
a = √(c² - b²)
b = √(c² - a²)

Example: Deck 16 ft × 20 ft, find diagonal:

  • Diagonal = √(16² + 20²) = √(256 + 400) = √656 = 25.6 ft

Construction Applications

Foundation layout

For a 30 × 40 ft foundation:

  • Check corner: 30-40-50 triangle
  • Measure 30 ft on one side, 40 ft on adjacent side
  • Diagonal must be 50 ft

Deck framing

For a 12 × 16 ft deck:

  • Corner check: 6-8-10 rule
  • 12 ft side + 16 ft side → diagonal = 20 ft

Wall framing

Verify wall square before sheathing:

  • Check 3-4-5 at each corner
  • Diagonal across opening = √(width² + height²)

Stair stringer layout

Calculate stringer length:

  • Total rise (a) = 108"
  • Total run (b) = 140"
  • Stringer (c) = √(108² + 140²) = 176.8"

3-4-5 Rule vs Full Pythagorean Theorem

3-4-5 rule

  • Use: Quick corner squaring
  • Speed: Fast (no calculator)
  • Precision: ±1/8" on 10 ft
  • Best for: Decks, fences, small foundations

Full Pythagorean theorem

  • Use: Precise diagonal calculation
  • Speed: Requires calculator
  • Precision: Exact
  • Best for: Complex layouts, roofs, stringers

Which Should You Use?

3-4-5 rule for fast field checks. Full formula for design and layout drawings.

Common Pythagorean Theorem Mistakes

Mistake 1: Forgetting to square before adding

Students often calculate 3 + 4 = 7 for the hypotenuse. It's √(9+16) = 5.

Fix: Always square each side first, then add, then take the square root.

Mistake 2: Using inches and feet together

The formula requires consistent units. 3 ft and 48 inches won't work.

Fix: Convert everything to the same unit. 3 ft = 36 inches.

Mistake 3: Assuming 3-4-5 works for all triangles

3-4-5 only works for right triangles. For non-right triangles, use the law of cosines.

Fix: Verify the corner is approximately 90° before applying 3-4-5.

Pythagorean Theorem in Different Trades

Concrete flatwork

Check slab square before pouring:

  • 20 × 30 ft slab
  • Diagonal = √(400 + 900) = 36.06 ft

Roofing

Calculate rafter length:

  • Run 12 ft, Rise 6 ft
  • Rafter = √(144 + 36) = 13.42 ft

Landscaping

Square a garden bed or patio:

  • 10 × 10 bed
  • Diagonal = √(100 + 100) = 14.14 ft

Electrical

Wire routing lengths:

  • Horizontal 15 ft + vertical 20 ft
  • Wire length = √(225 + 400) = 25 ft

Pythagorean Theorem FAQ

What is the 3-4-5 rule?

The 3-4-5 rule is a right triangle where sides of 3 and 4 produce a hypotenuse of 5. It's used to verify 90° corners in construction.

How do you calculate the diagonal of a square corner?

Use √(a² + b²). For a 20 × 30 ft layout, diagonal = √(400 + 900) = 36.06 ft.

What is the formula for the Pythagorean theorem?

a² + b² = c² where c is the hypotenuse. Rearranged: c = √(a² + b²).

Does the 3-4-5 rule work for any size?

Yes. Scale it: 6-8-10, 9-12-15, 12-16-20, 30-40-50. The ratio is what matters.

How accurate is the 3-4-5 rule?

With a good tape measure, accurate to ±1/8" over 10 ft. For greater precision, use a laser level or total station.

Next Steps for Your Pythagorean Project


Last updated October 2026. Always verify layouts with two measurements before building.

Recommended Calculators for this Guide

→ triangle calculator Calculator→ Square Footage Calculator→ Footings Calculator→ Decking Calculator

Related Engineering Field Manuals

View all 60 guides →
5 min read

How to Calculate Square Footage: Every Room Shape

Calculate square footage for rectangles, triangles, circles, and irregular rooms. Step-by-step formulas with examples, plus a free square footage calculator.

Read Manual
6 min read

Area of a Circle Formula: Radius, Diameter & Steps

Area of a circle = π × r². Full guide with radius, diameter, circumference conversions, sector formulas, and 5 worked examples for real construction.

Read Manual
4 min read

Conversion Calculator: Units & Measurements Guide

Convert between any units: length, weight, volume, temperature, and more. Full guide with metric vs imperial tables and conversion formulas.

Read Manual
Back to All 60 Field Manuals