Skip to main content

Geometry

Right Triangle Formulas: Complete Formula Sheet with Examples

Every right triangle formula on one sheet: sides, angles, area, perimeter, altitude, inradius, special triangles and trig ratios, each with a worked number.

Formula sheet for a right triangle with legs a and b, hypotenuse c, the altitude h and the hypotenuse segments p and q labelled

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

a = 6 b = 8 c = 10 h p q A B
The reference triangle for every example on this sheet: legs a = 6 and b = 8, hypotenuse c = 10. The altitude h meets the hypotenuse and splits it into p and q.

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

QuantityFormulaExample (a = 6, b = 8)
Hypotenusec = √(a² + b²)√(36 + 64) = 10
Lega = √(c² − b²)√(100 − 64) = 6
Angle sumA + B = 90°36.87° + 53.13° = 90°
AreaS = ½ab½ × 6 × 8 = 24
PerimeterP = a + b + c6 + 8 + 10 = 24
Altitude to the hypotenuseh = ab ÷ c48 ÷ 10 = 4.8
Hypotenuse segmentsp = a² ÷ c, q = b² ÷ c3.6 and 6.4
Inradiusr = (a + b − c) ÷ 2(6 + 8 − 10) ÷ 2 = 2
CircumradiusR = c ÷ 210 ÷ 2 = 5
Sine, cosine, tangent of Aa/c, b/c, a/b0.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 knowFindFormulaExample
Legs a and bHypotenuse cc = √(a² + b²)a = 6, b = 8 → c = 10
Hypotenuse c, leg bLeg aa = √(c² − b²)c = 10, b = 8 → a = 6
Hypotenuse c, leg aLeg bb = √(c² − a²)c = 10, a = 6 → b = 8
Legs a and bAngle AA = tan⁻¹(a ÷ b)tan⁻¹(0.75) ≈ 36.87°
Leg a and hypotenuse cAngle AA = sin⁻¹(a ÷ c)sin⁻¹(0.6) ≈ 36.87°
Leg b and hypotenuse cAngle AA = cos⁻¹(b ÷ c)cos⁻¹(0.8) ≈ 36.87°

Figure 2

a² = 36 b² = 64 c² = 100
The Pythagorean theorem as areas: the squares on legs of 6 and 8 hold 36 and 64 unit squares, and together they fill the 100 unit squares on the hypotenuse of 10.

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 knowFindFormulaExample
Hypotenuse c, angle ALeg aa = c × sin Ac = 10, A = 30° → a = 5
Hypotenuse c, angle ALeg bb = c × cos Ac = 10, A = 30° → b ≈ 8.6603
Leg a, angle AHypotenuse cc = a ÷ sin Aa = 5, A = 30° → c = 10
Leg a, angle ALeg bb = a ÷ tan Aa = 5, A = 30° → b ≈ 8.6603
Leg b, angle ALeg aa = b × tan Ab = 8, A ≈ 36.87° → a = 6
Leg b, angle AHypotenuse cc = b ÷ cos Ab = 8, A ≈ 36.87° → c = 10
One acute angleThe other angleB = 90° − AA = 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.

FormulaWhen to use itExample
S = ½abBoth legs known½ × 6 × 8 = 24
S = ½chHypotenuse and its altitude known½ × 10 × 4.8 = 24
S = ¼c² × sin 2AHypotenuse and one angle known¼ × 100 × sin 73.74° = 24
S = r × (P ÷ 2)Inradius and perimeter known2 × 12 = 24
P = a + b + cAll three sides known6 + 8 + 10 = 24
P = a + b + √(a² + b²)Only the legs known6 + 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.

From area S and hypotenuse c: a + b = √(c² + 4S), a − b = √(c² − 4S)From perimeter P and hypotenuse c: a + b = P − c, ab = ((a + b)² − c²) ÷ 2

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.

LengthFormulaExample
Altitude to the hypotenuseh = ab ÷ c48 ÷ 10 = 4.8
Altitude from the segmentsh = √(pq)√(3.6 × 6.4) = √23.04 = 4.8
Segment next to leg ap = a² ÷ c36 ÷ 10 = 3.6
Segment next to leg bq = b² ÷ c64 ÷ 10 = 6.4
Leg from its segmenta² = c × p10 × 3.6 = 36, so a = 6
Segments add upp + q = c3.6 + 6.4 = 10
Inradiusr = (a + b − c) ÷ 2 = ab ÷ (a + b + c)2
CircumradiusR = c ÷ 25
Median to the hypotenusem_c = c ÷ 25
Median to leg am_a = √(b² + (a ÷ 2)²)√(64 + 9) = √73 ≈ 8.5440
Median to leg bm_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.

TriangleSide ratioFrom the short side xAreaExample
45-45-901 : 1 : √2legs x, hypotenuse x√2x² ÷ 2x = 5 → c = 5√2 ≈ 7.0711, area 12.5
30-60-901 : √3 : 2short leg x, long leg x√3, hypotenuse 2xx²√3 ÷ 2x = 4 → 4√3 ≈ 6.9282 and 8, area 8√3 ≈ 13.8564

Figure 3

1 √3 2 30° 60° 30-60-90 √2 √2 2 45° 45° 45-45-90
The two special right triangles with the same hypotenuse of 2. The 45-45-90 legs are both √2; the 30-60-90 legs are 1 and √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.

RatioFor angle AFor angle BExample (A in 6-8-10)
sinesin A = a ÷ csin B = b ÷ c6 ÷ 10 = 0.6
cosinecos A = b ÷ ccos B = a ÷ c8 ÷ 10 = 0.8
tangenttan A = a ÷ btan B = b ÷ a6 ÷ 8 = 0.75
cosecantcsc A = c ÷ acsc B = c ÷ b10 ÷ 6 ≈ 1.6667
secantsec A = c ÷ bsec B = c ÷ a10 ÷ 8 = 1.25
cotangentcot A = b ÷ acot B = a ÷ b8 ÷ 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:

c² = a² + b² − 2ab × cos CC = 90° → cos C = 0 → c² = a² + 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

GivenFirst stepThen
Two legsc = √(a² + b²)Angles with tan⁻¹
A leg and the hypotenuseMissing leg = √(c² − leg²)Angles with sin⁻¹ or cos⁻¹
A side and an acute angleOther angle = 90° − givenSides with sin, cos or tan
Hypotenuse and areaa + b and a − b from the area formulasAngles with tan⁻¹
Hypotenuse and perimetera + b = P − c, ab from the identitySolve the pair, then angles
One side of a 45-45-90 or 30-60-90Apply the side ratioArea from the short side
Altitude and one segmentOther segment = h² ÷ segmentLegs from a² = cp, b² = cq
Two angles onlyNo unique answerA 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

  1. Adding the legs before squaring. (a + b)² is not a² + b²; with 6 and 8 the first gives 196, the second 100.
  2. Using the hypotenuse as a leg. In a² + b² = c², c must be the longest side, opposite the right angle.
  3. Mixing up sine and cosine. Sine uses the side opposite the angle, cosine the side next to it; both divide by the hypotenuse.
  4. Confusing sin⁻¹ with 1 ÷ sin. The inverse returns an angle; the reciprocal is the cosecant.
  5. Taking the altitude as half the hypotenuse. h = ab ÷ c; only the median to the hypotenuse equals c ÷ 2.
  6. Calculating in radian mode. sin 30 in radians is about −0.988, not 0.5. Check the angle mode before using any trig formula.
  7. 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.