Key facts
- Pythagoras: a² + b² = c². With legs 3 and 4, the hypotenuse is 5.
- SOH CAH TOA: sin α = a ÷ c, cos α = b ÷ c, tan α = a ÷ b, where α is the angle opposite leg a.
- The two acute angles always add up to 90°: α + β = 90°.
- Area = a × b ÷ 2, and the height to the hypotenuse is a × b ÷ c.
- Special right triangles: 45-45-90 sides are in the ratio 1 : 1 : √2, and 30-60-90 sides are 1 : √3 : 2.
Naming the parts
| Part | Meaning |
|---|---|
| a, b | The legs, the two sides that meet at the right angle |
| c | The hypotenuse, the longest side, opposite the right angle |
| α (alpha) | The acute angle opposite leg a |
| β (beta) | The acute angle opposite leg b |
How to use the right triangle calculator
Enter exactly two values and leave the others blank. At least one must be a side, because two angles alone fix the shape but not the size. Valid pairs are two sides, or one side and one acute angle. The result shows the missing values and a full set of measurements.
Formulas for right triangles
a² + b² = c²sin α = a ÷ c cos α = b ÷ c tan α = a ÷ bβ = 90° − αArea = a × b ÷ 2 Perimeter = a + b + cHeight to hypotenuse h = a × b ÷ cInradius r = (a + b − c) ÷ 2 Circumradius R = c ÷ 2The circumradius is half the hypotenuse because the hypotenuse is always a diameter of the circle through all three corners (Thales’ theorem).
Step-by-step examples: right triangles
Example 1: two legs
a = 3, b = 4. c = √(9 + 16) = 5. α = arctan(3/4) = 36.87°, β = 53.13°. Area = 6, perimeter = 12, height to the hypotenuse = 2.4, inradius = 1, circumradius = 2.5.
Example 2: hypotenuse and an angle
c = 10, α = 30°. a = 10 × sin 30° = 5, b = 10 × cos 30° = 8.660. Area = 21.65.
Example 3: a ladder
A 5 m ladder stands with its foot 1.5 m from a wall. Height reached = √(5² − 1.5²) = √22.75 = 4.77 m. The angle with the ground is arccos(1.5/5) = 72.5°, a little steeper than the 75° often recommended.
Example 4: a wheelchair ramp
A rise of 1 unit for every 12 units of run gives an angle of arctan(1/12) = 4.76°, the maximum slope in the ADA standards.
Special right triangles
| Triangle | Side ratio | Example |
|---|---|---|
| 45°-45°-90° | 1 : 1 : √2 | legs 7, hypotenuse 9.899 |
| 30°-60°-90° | 1 : √3 : 2 | short leg 5, long leg 8.660, hypotenuse 10 |
| 3-4-5 | 3 : 4 : 5 | 6, 8, 10 or 9, 12, 15 |
| 5-12-13 | 5 : 12 : 13 | 10, 24, 26 |
Whole-number sets like 3-4-5 and 5-12-13 are called Pythagorean triples. Builders use the 3-4-5 rule to check that corners are square.
Pitfalls with right triangles
- Using a² + b² = c² with c as a leg; c must be the hypotenuse.
- Entering a hypotenuse shorter than a leg, which is impossible.
- Mixing degrees and radians on a calculator.
- Using SOH CAH TOA with the wrong angle; opposite and adjacent depend on which angle you start from.
Right angles in building, drafting and navigation
Construction depends on right angles, and the tools for checking them are old. Ancient Egyptian surveyors, the "rope stretchers" mentioned by Democritus, are often said to have laid out square corners with knotted ropes, although historians note the evidence is thin. Thales of Miletus is credited with proving that any triangle drawn in a semicircle, with the diameter as one side, has a right angle; this Thales’s theorem lets a carpenter find a right angle with nothing but a circle. Drafting set squares are cut in the shapes of the two special right triangles, and the steel framing square, mass-produced since the 19th century, carries tables of rise and run on its blade for laying out rafters and stair stringers.
Right triangles also run through navigation and roofing. Before satellite positioning, sailors used dead reckoning: sailing known distances east and north forms the legs of a right triangle whose hypotenuse is the distance made good. Roof pitch is quoted as rise over run, so a 6-in-12 roof is a right triangle with legs 6 and 12 and a slope angle of about 26.6°. In US schools, Common Core standard G-SRT.C.8 asks students to use trigonometric ratios and the Pythagorean theorem to solve right triangles in applied problems. For the side relationship alone, use the Pythagorean theorem calculator; for angles from ratios, the inverse trig calculator; and for any triangle, the triangle calculator.
How this calculator works
- From any two sides, or a side and an acute angle, solves the rest with a² + b² = c² and sin, cos and tan.
- Shows both acute angles, the area ½ab, the perimeter and the altitude to the hypotenuse (ab ÷ c).
- Also gives the inradius (a + b − c) ÷ 2 and the circumradius c ÷ 2.
- A leg longer than the hypotenuse is rejected.
Frequently asked questions
How do you find the missing side of a right triangle?
With two sides, use a² + b² = c². With one side and an angle, use sine, cosine or tangent: for example, a = c × sin α.
What is SOH CAH TOA?
A memory aid: Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent.
How do you find the angles of a right triangle?
Use an inverse trig function. With legs a and b, α = arctan(a ÷ b), and β = 90° − α.
How do you find the area of a right triangle?
Multiply the two legs and divide by 2. A triangle with legs 6 and 8 has area 24.
What is the hypotenuse?
The side opposite the right angle. It is always the longest side.
What are the sides of a 30-60-90 triangle?
In the ratio 1 : √3 : 2. If the side opposite 30° is 4, the side opposite 60° is 4√3 ≈ 6.93 and the hypotenuse is 8.
Can I solve a right triangle with just two angles?
No. Two angles fix the shape but not the size, so you need at least one side length.
How do I check if a triangle is a right triangle?
Square the sides. If the two smaller squares add up to the largest one, the triangle has a right angle.