Use the 3-4-5 rule to square a corner: scale a 3-4-5 triangle to any size, see its angles, find the diagonal for two runs, or check a measured corner.

Physical units convert entered lengths. Generic units relabel them without conversion.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Scale a 3:4:5 triangleFinds all three sides of a 3:4:5 triangle from one known measurementRequires one known measurement and the ratio side it represents
Diagonal for a right angleFinds the diagonal that puts two runs at a right angleRequires Run A and Run B
Verify a measured cornerCompares a measured diagonal with the required one and reports the corner angleRequires Run A, Run B and the measured diagonal

Every function has a measurement unit: feet, inches, meters, centimeters, millimeters or generic units. Verify a measured corner also has an allowed diagonal error, which is 0.5% unless another value is entered.

3-4-5 Rule Formulas

c = √(a² + b²) [1]
a, bThe two runs measured out from the corner
cDiagonal between the ends of the two runs

In a right triangle, the square on the diagonal equals the sum of the squares on the two legs [1]. The reverse also holds: when three sides satisfy that relation, the angle between the two shorter sides is a right angle [2]. Since 3² + 4² = 9 + 16 = 25 = 5², a triangle with sides in the ratio 3:4:5 has a square corner between its 3 and 4 sides.

Scale a 3:4:5 triangle

sides = 3k, 4k, 5k

k is the known measurement divided by its ratio number: 3 for the short leg, 4 for the long leg, 5 for the diagonal, or 1 when the measurement is the scale multiplier itself. A 12 ft short leg gives k = 4 ft and a 12 × 16 × 20 ft triangle. A 10 ft diagonal gives k = 2 ft and a 6 × 8 × 10 ft triangle. The two other angles are 36.87° and 53.13° at every scale.

3-4-5 Method at Large Scale

Any whole multiple of 3-4-5 squares a corner the same way, in any one unit.

Short legLong legDiagonal
345
6810
91215
121620
152025
304050

Diagonal for a right angle

The main formula applies to any two runs, not only those in a 3:4 ratio. Runs of 6 ft and 8 ft need a 10 ft diagonal, and runs of 8 ft and 12 ft need 14.4222 ft. The corner is square only when the measured diagonal matches, because the runs alone do not fix the angle.

Verify a measured corner

error = |m − c| ÷ c × 100
C = arccos((a² + b² − m²) ÷
(2 × a × b)) [3]

m is the measured diagonal and C is the corner angle, from the law of cosines [3]. With runs of 6 ft and 8 ft, a measured diagonal of 10.04 ft is 0.4% long, the angle is 90.48° and the result is within the 0.5% tolerance. A diagonal of 10.1 ft is 1% long, the angle is 91.2° and the result is outside tolerance.

Limits of This Estimate

  • The check is flat geometry only. It does not cover elevation, the overall layout or whether a structure is suitable.
  • The tolerance compares diagonal lengths, not degrees, and 0.5% is a starting value, not a building standard.
  • All three measurements must use the same unit and be taken between the same three points.

Sources

  1. Clark University, Euclid’s Elements, Book I, Proposition 47: the square on the diagonal of a right triangle equals the sum of the squares on the two legs
  2. Clark University, Euclid’s Elements, Book I, Proposition 48: a triangle whose sides satisfy that relation has a right angle
  3. NIST Digital Library of Mathematical Functions, Section 4.42, Solution of Triangles: the law of cosines used for the corner angle