When you know some sides and want the angles (the pitch of a roof, the slope of a ramp, the angle of a ladder) or know an angle and want the sides, these relations between sides and angles of a right triangle do the job.
How to use the Right Triangle Side and Angle Calculator
- What do you know?
- Leg a (opposite α)
- Leg b (adjacent to α)
- Hypotenuse c
- Angle α
- Area
Results update as you type, and everything is calculated in your browser.
How it works
Pick the pair of values you know. The calculator returns the three sides and both acute angles.
Inputs explained
| Field | What to enter |
|---|---|
| What do you know? | Choose one: Legs a and b, Leg a and hypotenuse c, Leg b and hypotenuse c, Angle α and leg a … |
| Leg a (opposite α) | Units: cm, m, mm, in, ft, yd … |
| Leg b (adjacent to α) | Units: cm, m, mm, in, ft, yd … |
| Hypotenuse c | Units: cm, m, mm, in, ft, yd … |
| Angle α | Units: °, rad, π rad, grad, turn |
| Area | Units: cm², m², mm², in², ft², yd² … |
What each result means
- Hypotenuse c = sqrt([Leg a]^2 + [Leg b]^2)
- Angle α = deg(atan([Leg a]÷[Leg b]))
- Angle β = 90 – [Angle α]
Example values
How the main result changes when Leg a changes and everything else stays at the example values above:
| Leg a (opposite α) (cm) | Angle α (°) |
|---|---|
| 1.5 | 20.556 |
| 2.25 | 29.3578 |
| 3 | 36.8699 |
| 3.75 | 43.1524 |
| 4.5 | 48.3665 |
| 6 | 56.3099 |
Formula
α = arctan(a/b), β = 90° − α
a = c·sin α, b = c·cos α, c = √(a² + b²)
Worked example
Inputs: What do you know?: Legs a and b; Leg a (opposite α): 3 cm; Leg b (adjacent to α): 4 cm.
Results: Leg a = 3 cm; Leg b = 4 cm; Hypotenuse c = 5 cm; Angle α = 36.869898 °; Angle β = 53.130102 °.
Key terms
- Acute angle
- An angle smaller than 90°.
Frequently asked questions
How do I find an angle from two sides?
Use arctan(opposite/adjacent), arcsin(opposite/hypotenuse) or arccos(adjacent/hypotenuse).
How do I find a side from an angle?
Multiply the hypotenuse by sin or cos, or a leg by tan.
Do the angles always add to 90°?
The two acute angles do; with the right angle the total is 180°.
What is the steepest a ladder should be?
About 75°, a 4 : 1 ratio of height to base.