The formulas
Long side = √(A² + B²)
Angle = arctan(A ÷ B)
A worked example
Sides of 3 and 4 give a long side of exactly 5. The angles are 36.87 and 53.13 degrees. This is the 3-4-5 triangle builders use to check a square corner.
Where this turns up on site
- A rafter is the long side of a triangle made by the rise and the run.
- A stair stringer is the long side of the total rise and total run.
- A brace across a gate or wall frame is the long side of its height and width.
- The diagonal of any rectangle is the long side of its length and width. The diagonal calculator gives that in feet and inches.
Common questions
What other whole-number triangles are there?
5-12-13 and 8-15-17 work the same way as 3-4-5, and so does any multiple of them, such as 6-8-10.
How we know this calculator is right
Before this calculator went on the site, 9 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.
See every check
| Numbers used | Result | Worked out separately | This calculator |
|---|
What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.