How to use it
- Pick the pair of values you know.
- Enter the two values (any length unit works, and the result uses the same unit).
- You get the other side, both angles, the area and the perimeter.
What this calculates
A right triangle can be fully solved from just two values using the Pythagorean theorem a² + b² = c² and the trig ratios (sin, cos, tan). It is often used for roof pitch, stairs, ladder length and diagonal distance, in daily life and on site.
The formulas
- Hypotenuse c = √(a² + b²)
- Angle A = atan(a ÷ b), angle B = 90° − A
- Area = a × b ÷ 2
Reference table
| Legs a, b | Hypotenuse c | Angle A (°) | Angle B (°) | Area | Perimeter |
|---|---|---|---|---|---|
| 3, 4 | 5 | 36.87 | 53.13 | 6 | 12 |
| 5, 12 | 13 | 22.62 | 67.38 | 30 | 30 |
| 8, 15 | 17 | 28.072 | 61.928 | 60 | 40 |
| 7, 24 | 25 | 16.26 | 73.74 | 84 | 56 |
Worked examples
- 3, 4 → hypotenuse 5, angles 36.87° and 53.13°
- Height 2 m, ladder 5 m → distance along the floor about 4.58 m
- Height 1 m, angle 30° → hypotenuse 2 m, base about 1.73 m
Frequently asked questions
What units do I enter?
Use any unit, such as cm or m, as long as it is the same for all. The result is in that unit (area in square units).
How do I enter an angle in radians?
This calculator uses degrees (°). 1 radian is about 57.3°.
What if the hypotenuse is shorter than another side?
The hypotenuse is always the longest side, so you get an error.
Does it work for any triangle?
This calculator solves right triangles only.
What ladder angle is best?
About 75° to the floor is commonly said to be safe. Follow your site safety rules.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Good to know
- To see a slope in percent or 1:n, use the Slope Calculator.
- To calculate by expression directly, use the Scientific Calculator.
Sources
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.