The core right triangle formulas are a² + b² = c² for the sides, A + B = 90° for the acute angles, Area = ½ab, Perimeter = a + b + c, and sin A = a/c, cos A = b/c, tan A = a/b for the trigonometric ratios. Every other formula on this sheet follows from those five. The tables below are grouped by what you already know, so you can find the right formula in one look and check it against the worked number beside it. To skip the arithmetic, the right triangle solver on the homepage returns every value from any two measurements.
Notation used on this sheet
Every formula uses the same letters. The legs are a and b, the hypotenuse is c, angle A sits opposite leg a, angle B sits opposite leg b, and the right angle is C. The altitude from the right angle to the hypotenuse is h, and it splits the hypotenuse into p (next to leg a) and q (next to leg b).
Figure 1
Unless a row says otherwise, the worked numbers use this 6-8-10 triangle. Its values are A ≈ 36.87°, B ≈ 53.13°, area 24, perimeter 24, h = 4.8, p = 3.6 and q = 6.4.
Quick formula sheet
| Quantity | Formula | Example (a = 6, b = 8) |
|---|---|---|
| Hypotenuse | c = √(a² + b²) | √(36 + 64) = 10 |
| Leg | a = √(c² − b²) | √(100 − 64) = 6 |
| Angle sum | A + B = 90° | 36.87° + 53.13° = 90° |
| Area | S = ½ab | ½ × 6 × 8 = 24 |
| Perimeter | P = a + b + c | 6 + 8 + 10 = 24 |
| Altitude to the hypotenuse | h = ab ÷ c | 48 ÷ 10 = 4.8 |
| Hypotenuse segments | p = a² ÷ c, q = b² ÷ c | 3.6 and 6.4 |
| Inradius | r = (a + b − c) ÷ 2 | (6 + 8 − 10) ÷ 2 = 2 |
| Circumradius | R = c ÷ 2 | 10 ÷ 2 = 5 |
| Sine, cosine, tangent of A | a/c, b/c, a/b | 0.6, 0.8, 0.75 |
The sections below expand each line, add the variations you need when different values are known, and explain where each formula comes from.
Formulas when you know two sides
Two sides fix a right triangle completely. The Pythagorean theorem gives the third side, and an inverse trig function gives the angles.
| You know | Find | Formula | Example |
|---|---|---|---|
| Legs a and b | Hypotenuse c | c = √(a² + b²) | a = 6, b = 8 → c = 10 |
| Hypotenuse c, leg b | Leg a | a = √(c² − b²) | c = 10, b = 8 → a = 6 |
| Hypotenuse c, leg a | Leg b | b = √(c² − a²) | c = 10, a = 6 → b = 8 |
| Legs a and b | Angle A | A = tan⁻¹(a ÷ b) | tan⁻¹(0.75) ≈ 36.87° |
| Leg a and hypotenuse c | Angle A | A = sin⁻¹(a ÷ c) | sin⁻¹(0.6) ≈ 36.87° |
| Leg b and hypotenuse c | Angle A | A = cos⁻¹(b ÷ c) | cos⁻¹(0.8) ≈ 36.87° |
Figure 2
A leg formula only works when c is longer than the known leg. If c² − b² comes out negative or zero, the hypotenuse was placed in the wrong box. Triples such as 3-4-5 and 5-12-13 give whole-number answers; the Pythagorean triples guide lists them, and the Pythagorean theorem calculator shows the working for any pair of sides.
Formulas when you know one side and one angle
One side and one acute angle also fix the triangle. The trigonometric ratios link the side you have to the side you want.
| You know | Find | Formula | Example |
|---|---|---|---|
| Hypotenuse c, angle A | Leg a | a = c × sin A | c = 10, A = 30° → a = 5 |
| Hypotenuse c, angle A | Leg b | b = c × cos A | c = 10, A = 30° → b ≈ 8.6603 |
| Leg a, angle A | Hypotenuse c | c = a ÷ sin A | a = 5, A = 30° → c = 10 |
| Leg a, angle A | Leg b | b = a ÷ tan A | a = 5, A = 30° → b ≈ 8.6603 |
| Leg b, angle A | Leg a | a = b × tan A | b = 8, A ≈ 36.87° → a = 6 |
| Leg b, angle A | Hypotenuse c | c = b ÷ cos A | b = 8, A ≈ 36.87° → c = 10 |
| One acute angle | The other angle | B = 90° − A | A = 30° → B = 60° |
The pattern to remember: multiply the hypotenuse by sine or cosine to get a leg, and divide a leg by sine or cosine to get the hypotenuse. Which ratio to use depends on whether the side touches the angle or faces it, a choice set out step by step in SOHCAHTOA explained. The hypotenuse calculator applies the leg-and-angle formulas with exact answers for 30°, 45° and 60°.
Area and perimeter formulas
The legs are perpendicular, so either leg is the height when the other is the base. That makes the area formula the simplest of any triangle.
| Formula | When to use it | Example |
|---|---|---|
| S = ½ab | Both legs known | ½ × 6 × 8 = 24 |
| S = ½ch | Hypotenuse and its altitude known | ½ × 10 × 4.8 = 24 |
| S = ¼c² × sin 2A | Hypotenuse and one angle known | ¼ × 100 × sin 73.74° = 24 |
| S = r × (P ÷ 2) | Inradius and perimeter known | 2 × 12 = 24 |
| P = a + b + c | All three sides known | 6 + 8 + 10 = 24 |
| P = a + b + √(a² + b²) | Only the legs known | 6 + 8 + 10 = 24 |
Finding the legs from the area or the perimeter
Two less common problems give the hypotenuse plus the area or the perimeter. Both reduce to the sum and difference of the legs.
c = 10, S = 24: a + b = √196 = 14 and a − b = √4 = 2, so the legs are 8 and 6. c = 10, P = 24: a + b = 14 and ab = (196 − 100) ÷ 2 = 48, which again gives 6 and 8.
The area version needs c² ≥ 4S. When c² is smaller than 4S, no right triangle has that hypotenuse and that area: the largest area a hypotenuse of c can hold is c² ÷ 4, reached by the isosceles right triangle.
Altitude, segments, inradius, circumradius and medians
These lengths appear in proofs and in harder exam questions. The altitude formulas come from the three similar triangles that the altitude creates, explained in the right triangle altitude theorem guide.
| Length | Formula | Example |
|---|---|---|
| Altitude to the hypotenuse | h = ab ÷ c | 48 ÷ 10 = 4.8 |
| Altitude from the segments | h = √(pq) | √(3.6 × 6.4) = √23.04 = 4.8 |
| Segment next to leg a | p = a² ÷ c | 36 ÷ 10 = 3.6 |
| Segment next to leg b | q = b² ÷ c | 64 ÷ 10 = 6.4 |
| Leg from its segment | a² = c × p | 10 × 3.6 = 36, so a = 6 |
| Segments add up | p + q = c | 3.6 + 6.4 = 10 |
| Inradius | r = (a + b − c) ÷ 2 = ab ÷ (a + b + c) | 2 |
| Circumradius | R = c ÷ 2 | 5 |
| Median to the hypotenuse | m_c = c ÷ 2 | 5 |
| Median to leg a | m_a = √(b² + (a ÷ 2)²) | √(64 + 9) = √73 ≈ 8.5440 |
| Median to leg b | m_b = √(a² + (b ÷ 2)²) | √(36 + 16) = √52 ≈ 7.2111 |
Two of these are worth memorising on their own. The circumradius is half the hypotenuse, since the hypotenuse is a diameter of the circle through all three corners. For the same reason the median to the hypotenuse is also half the hypotenuse: the midpoint of c is the centre of that circle.
Special right triangle formulas
Two right triangles have angles that make every side a simple multiple of one length x. With these ratios, one side is enough.
| Triangle | Side ratio | From the short side x | Area | Example |
|---|---|---|---|---|
| 45-45-90 | 1 : 1 : √2 | legs x, hypotenuse x√2 | x² ÷ 2 | x = 5 → c = 5√2 ≈ 7.0711, area 12.5 |
| 30-60-90 | 1 : √3 : 2 | short leg x, long leg x√3, hypotenuse 2x | x²√3 ÷ 2 | x = 4 → 4√3 ≈ 6.9282 and 8, area 8√3 ≈ 13.8564 |
Figure 3
Going backwards is a division: a 45-45-90 leg is c ÷ √2 = c√2 ÷ 2, and a 30-60-90 short leg is half the hypotenuse. The special right triangles guide derives both ratios, and the dedicated 30-60-90 triangle calculator and 45-45-90 triangle calculator solve them from any one value.
Trigonometric ratio and inverse formulas
Each acute angle has six ratios. For a right triangle, the three basic ones are enough for every calculation, and the other three are their reciprocals.
| Ratio | For angle A | For angle B | Example (A in 6-8-10) |
|---|---|---|---|
| sine | sin A = a ÷ c | sin B = b ÷ c | 6 ÷ 10 = 0.6 |
| cosine | cos A = b ÷ c | cos B = a ÷ c | 8 ÷ 10 = 0.8 |
| tangent | tan A = a ÷ b | tan B = b ÷ a | 6 ÷ 8 = 0.75 |
| cosecant | csc A = c ÷ a | csc B = c ÷ b | 10 ÷ 6 ≈ 1.6667 |
| secant | sec A = c ÷ b | sec B = c ÷ a | 10 ÷ 8 = 1.25 |
| cotangent | cot A = b ÷ a | cot B = a ÷ b | 8 ÷ 6 ≈ 1.3333 |
Three identities tie the ratios together: sin A = cos B, since A and B add to 90°; sin² A + cos² A = 1 (0.36 + 0.64 = 1); and tan A = sin A ÷ cos A (0.6 ÷ 0.8 = 0.75).
To turn a ratio back into an angle, use the inverse function, written sin⁻¹, cos⁻¹ and tan⁻¹ (also arcsin, arccos and arctan). These are inverses, not reciprocals: sin⁻¹(0.6) is an angle, about 36.87°, while 1 ÷ sin A is the cosecant. The inverse trig guide covers which one to choose and the degree-mode check.
How the formulas connect to every triangle
The Pythagorean theorem is the right-angle case of the law of cosines, which holds in any triangle with sides a, b, c and angle C between a and b:
With a = 6, b = 8 and C = 90°, the law of cosines gives c² = 100 and c = 10. With C = 60°, it gives c² = 100 − 48 = 52 and c ≈ 7.2111.
Read in reverse, the right-angle case becomes the converse of the Pythagorean theorem: if a² + b² = c² exactly, angle C is 90°.
The angle sum works the same way. Every triangle’s angles add to 180°, and with one angle fixed at 90° the other two must share the remaining 90°. A fuller list of identities for general triangles is kept by Clark University’s summary of trigonometric formulas .
Which formula to use: a decision table
| Given | First step | Then |
|---|---|---|
| Two legs | c = √(a² + b²) | Angles with tan⁻¹ |
| A leg and the hypotenuse | Missing leg = √(c² − leg²) | Angles with sin⁻¹ or cos⁻¹ |
| A side and an acute angle | Other angle = 90° − given | Sides with sin, cos or tan |
| Hypotenuse and area | a + b and a − b from the area formulas | Angles with tan⁻¹ |
| Hypotenuse and perimeter | a + b = P − c, ab from the identity | Solve the pair, then angles |
| One side of a 45-45-90 or 30-60-90 | Apply the side ratio | Area from the short side |
| Altitude and one segment | Other segment = h² ÷ segment | Legs from a² = cp, b² = cq |
| Two angles only | No unique answer | A side is required to fix the size |
The last row matters: two angles give a shape but no size, so a right triangle always needs at least one side.
Worked examples
Example 1 A missing leg
- Given
- Hypotenuse 26 cm, one leg 10 cm
- Find
- The other leg b
- Formula
- b = √(c² − a²)
- Substitution
- b = √(26² − 10²)
- Calculation
- b = √(676 − 100) = √576
Answer b = 24 cm
Example 2 Two legs from the hypotenuse and an angle
- Given
- Hypotenuse 12 m, angle A = 35°
- Find
- Legs a and b, and angle B
- Formula
- a = c × sin A, b = c × cos A, B = 90° − A
- Substitution
- a = 12 × sin 35°, b = 12 × cos 35°
- Calculation
- a = 12 × 0.573576, b = 12 × 0.819152
Answer a ≈ 6.8829 m, b ≈ 9.8298 m, B = 55°
Check: 6.8829² + 9.8298² ≈ 47.374 + 96.625 = 143.999, which matches 12² = 144 to rounding.
Example 3 Legs from the hypotenuse and the area
- Given
- Hypotenuse 13 in, area 30 in²
- Find
- The two legs
- Formula
- a + b = √(c² + 4S), a − b = √(c² − 4S)
- Substitution
- a + b = √(169 + 120), a − b = √(169 − 120)
- Calculation
- a + b = √289 = 17, a − b = √49 = 7
Answer a = 12 in, b = 5 in
A 5-12-13 triangle: ½ × 5 × 12 = 30 and 5² + 12² = 169 = 13².
Example 4 Altitude and inradius
- Given
- Legs 6 and 8, hypotenuse 10
- Find
- The altitude to the hypotenuse and the inradius
- Formula
- h = ab ÷ c, r = (a + b − c) ÷ 2
- Substitution
- h = 48 ÷ 10, r = (6 + 8 − 10) ÷ 2
- Calculation
- h = 4.8, r = 4 ÷ 2
Answer h = 4.8, r = 2
Try It Yourself
A right triangle has legs of 9 cm and 40 cm. Use the formula sheet to find the hypotenuse, the area, the perimeter, the altitude to the hypotenuse, the inradius and the smaller acute angle.
Show the answer
- Hypotenuse: c = √(81 + 1600) = √1681 = 41 cm.
- Area: ½ × 9 × 40 = 180 cm².
- Perimeter: 9 + 40 + 41 = 90 cm.
- Altitude: h = 360 ÷ 41 ≈ 8.7805 cm.
- Inradius: r = (9 + 40 − 41) ÷ 2 = 4 cm. Check: r × (P ÷ 2) = 4 × 45 = 180, the area.
- Smaller angle: A = tan⁻¹(9 ÷ 40) ≈ 12.68°, so B ≈ 77.32°.
Enter the two legs in the right triangle solver to check every value at once.
Common formula mistakes
- Adding the legs before squaring. (a + b)² is not a² + b²; with 6 and 8 the first gives 196, the second 100.
- Using the hypotenuse as a leg. In a² + b² = c², c must be the longest side, opposite the right angle.
- Mixing up sine and cosine. Sine uses the side opposite the angle, cosine the side next to it; both divide by the hypotenuse.
- Confusing sin⁻¹ with 1 ÷ sin. The inverse returns an angle; the reciprocal is the cosecant.
- Taking the altitude as half the hypotenuse. h = ab ÷ c; only the median to the hypotenuse equals c ÷ 2.
- Calculating in radian mode. sin 30 in radians is about −0.988, not 0.5. Check the angle mode before using any trig formula.
- Reading the 30-60-90 ratio as 1 : 2 : 3. The angles are in that ratio; the sides are 1 : √3 : 2.
Frequently Asked Questions
What is the formula for a right triangle?
The main formula for a right triangle is the Pythagorean theorem, a² + b² = c², where a and b are the legs and c is the hypotenuse. The area formula is ½ab, the perimeter is a + b + c, and the acute angles add to 90°.
How do you find the area of a right triangle?
Multiply the two legs and divide by 2: Area = ½ab. Legs of 6 and 8 give an area of 24. When only the hypotenuse and its altitude are known, use ½ × c × h instead.
How do you find the hypotenuse with an angle?
Divide the leg opposite the angle by its sine, or the leg next to the angle by its cosine: c = a ÷ sin A or c = b ÷ cos A. A leg of 5 opposite a 30° angle gives c = 5 ÷ 0.5 = 10.
What is the formula for the height of a right triangle?
Either leg is the height when the other leg is the base. The height drawn to the hypotenuse is h = ab ÷ c, which is 4.8 for a 6-8-10 triangle.
Do right triangle formulas work for other triangles?
No, most of them only hold when one angle is exactly 90°. For other triangles, the law of cosines, c² = a² + b² − 2ab × cos C, and the law of sines replace the Pythagorean theorem and the basic trig ratios.