How do I use this calculator?
Choose a task: scale a 3:4:5 triangle, find the diagonal for a right angle, or verify a measured corner.
Calculator Operations:
- For a scaled triangle, enter one known measurement and identify its ratio side.
- For a required diagonal, enter Run A and Run B.
- To verify a corner, enter both runs and their measured diagonal; adjust the optional diagonal-error tolerance if needed.
The verification task reports the angle from all three measured lengths using the law of cosines. Use the same measurement unit for all lengths.
Use the calculate button when all known values have been entered and use the reset button when you want to clear the values from the calculator.
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.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Scale a 3:4:5 triangle | Finds all three sides of a 3:4:5 triangle from one known measurement | Requires one known measurement and the ratio side it represents |
| Diagonal for a right angle | Finds the diagonal that puts two runs at a right angle | Requires Run A and Run B |
| Verify a measured corner | Compares a measured diagonal with the required one and reports the corner angle | Requires 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
| a, b | The two runs measured out from the corner |
| c | Diagonal 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
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 leg | Long leg | Diagonal |
|---|---|---|
| 3 | 4 | 5 |
| 6 | 8 | 10 |
| 9 | 12 | 15 |
| 12 | 16 | 20 |
| 15 | 20 | 25 |
| 30 | 40 | 50 |
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
(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
- 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
- Clark University, Euclid’s Elements, Book I, Proposition 48: a triangle whose sides satisfy that relation has a right angle
- NIST Digital Library of Mathematical Functions, Section 4.42, Solution of Triangles: the law of cosines used for the corner angle
