Geometry

Right Triangle Trigonometry: Formulas and Examples

Updated 2026-07-04 5 min read vi

Right triangle relationships are a cornerstone of geometry and trigonometry, and they show up constantly in coordinate geometry, physics, and standardized tests. This guide brings together the Pythagorean theorem, the geometric-mean (altitude) relations, and the SOH-CAH-TOA trig ratios, with a fully worked example that finds every side and the altitude of a right triangle.

Notation and setup

Consider triangle with the right angle at , and let be the altitude drawn from down to the hypotenuse . We name the segments as follows:

  • is the hypotenuse;
  • and are the two legs;
  • is the altitude to the hypotenuse;
  • is the projection of leg onto the hypotenuse, and is the projection of leg onto the hypotenuse.

Because lies between and , the two projections always add up to the hypotenuse: .

The Pythagorean theorem

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs:

This is the most important relationship, and it lets you find any side once you know the other two. For example, a right triangle with legs and has hypotenuse .

Leg and projection relations

Each leg is the geometric mean of the hypotenuse and its own projection onto the hypotenuse:

Adding these two relations recovers the Pythagorean theorem exactly:

Altitude relations

The altitude is tied to the remaining segments through three commonly used relations:

Relation Meaning
The altitude is the geometric mean of the two projections
Two equal ways of writing twice the area
Links the altitude to the two legs

From you immediately get the formula for the altitude when all three sides are known:

Trig ratios of an acute angle

For an acute angle in a right triangle, the four trig ratios are defined using the side opposite the angle, the side adjacent to it, and the hypotenuse:

The first three are captured by the mnemonic SOH-CAH-TOA. A few properties and special values worth memorizing:

  • and , so .
  • (the Pythagorean identity, true for every angle ).
  • If two acute angles are complementary (), then and .
Angle

Worked example

Problem. In triangle with the right angle at , the legs are cm and cm. Find the hypotenuse , the altitude , and the projections and .

Step 1 — Find the hypotenuse with the Pythagorean theorem.

Step 2 — Find the altitude. Use the relation :

Step 3 — Find the projections. For leg , its projection is , so use :

Check with the altitude relation :

The numbers match, which confirms the solution is correct.

Common mistakes

  • Confusing the hypotenuse with a leg. The hypotenuse is always the side opposite the right angle and the longest side — don't swap it in when applying the Pythagorean theorem.
  • Using the Pythagorean theorem on a non-right triangle. It holds only for right triangles; for a general triangle you must use the law of cosines.
  • Mixing up "opposite" and "adjacent." These are defined relative to a specific angle — change the reference angle and the opposite and adjacent sides switch.
  • Forgetting that . Many students compute each projection separately and forget that they must sum to the hypotenuse, skipping an easy way to check their work.

Wrap up

Master the Pythagorean theorem together with the four groups of side-and-altitude relations, and you can recover every remaining part of a right triangle from just a few starting values. Enter the numbers from the example into the calculator to check each step of the solution for yourself.

Solve this in the calculator Open CalcES and check your work step by step.

Frequently asked questions

What are the main right triangle relationships?

They include the Pythagorean theorem (), the geometric-mean (leg-projection) relations (), the altitude relations ( and ), the reciprocal relation , and the four trig ratios sine, cosine, tangent, and cotangent of an acute angle.

How do you find the altitude to the hypotenuse of a right triangle?

There are several ways: use (the product of the two projections), use to get , or use . Pick whichever formula matches the values you are given.

What is SOH-CAH-TOA?

It is a mnemonic for the three basic trig ratios: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent. It helps you set up ratios quickly for an acute angle in a right triangle.

When can you use the Pythagorean theorem?

Only for right triangles: the square of the hypotenuse equals the sum of the squares of the two legs (). For a general (non-right) triangle, use the law of cosines instead.

Related articles