Right Triangle Solver logo
Right Triangle Solver

How to Find the Height of a Right Triangle: Complete Guide

person

Math Expert

Geometry

How to Find the Height of a Right Triangle: Complete Guide

The height of a right triangle usually means the altitude drawn from the right-angle corner straight down to the hypotenuse, the longest side. It is the perpendicular distance from that corner to the opposite side, and the main formula for how to find the height of a right triangle is h = ab/c, where a and b are the two legs, c is the hypotenuse, and h is the altitude. In a 3-4-5 triangle, h = (3 × 4) / 5 = 2.4 units. The sections below also cover the projection, area, and trigonometry methods for cases where the legs are not both known.

How Do You Find the Height of a Right Triangle?

Multiply the two legs and divide by the hypotenuse:

h = ab/c

This formula applies to the altitude drawn to the hypotenuse, and it works for every right triangle. If you know the legs, you can always find c first with the Pythagorean theorem, so this one formula handles the most common case.

One distinction matters throughout this article. If you take one leg as the base of the triangle, the other leg is automatically the height for that base, because the legs meet at 90 degrees. That height is just a side you already have. The altitude to the hypotenuse is a different segment: it sits inside the triangle and has to be calculated. When you want the arithmetic done for you, the Right Triangle Altitude Calculator applies the same formulas used below.

The Three Altitudes of a Right Triangle

Every triangle has three altitudes, one for each side chosen as the base. In a right triangle, two of them are easy: the altitude to leg a is leg b, and the altitude to leg b is leg a. The third one, from the right-angle vertex to the hypotenuse, is the interesting case, and it is the one this article calls h.

That altitude meets the hypotenuse at a right angle and splits it into two segments called projections. This article uses one fixed convention: p is the projection next to leg b, and q is the projection next to leg a. The two projections always add up to the hypotenuse:

p + q = c

The altitude also splits the original triangle into two smaller right triangles, and all three triangles are similar. That similarity produces the altitude theorem, h² = pq, and the leg relationships a² = cq and b² = cp. Two useful facts follow. First, h is always shorter than either leg, which gives you an instant check on any answer. Second, the altitude and hypotenuse alone do not pin down one triangle: many right triangles share the same h and c. You need one more measurement, a projection, a leg, or an angle, before the rest of the triangle is fixed.

Height Formulas at a Glance

Known MeasurementsFormulaWhen to Use
Two legsh = ab/√(a²+b²)When a and b are known
Both legs and hypotenuseh = ab/cWhen all three sides are known
Hypotenuse projectionsh = √(pq)When p and q are known
Area and hypotenuseh = 2Area/cWhen area and c are known
Leg b and angle Ah = b sin(A)When A is opposite leg a
Hypotenuse and angle Ah = c sin(A) cos(A)When c and an acute angle are known

Here a and b are the legs, c is the hypotenuse, h is the altitude to the hypotenuse, p and q are the projections of the legs on the hypotenuse, and A is the acute angle opposite leg a.

Method 1: Find Height Using Two Legs

When to use it: you know both legs but not the hypotenuse.

Formula: h = ab/√(a²+b²). The denominator is the hypotenuse written out in full, so this method is really two steps: find c with the Pythagorean theorem, then divide. If the hypotenuse step itself is new to you, work through how to find a missing side of a right triangle first.

Worked example. Given: legs a = 6 and b = 8. Find: the altitude h. Step 1: c = √(6² + 8²) = √(36 + 64) = √100 = 10. Step 2: h = (6 × 8) / 10 = 48 / 10. Answer: h = 4.8 units.

Tip: a scaled 3-4-5 triangle like this one always has h equal to 0.48 times the hypotenuse. Recognizing the triple saves the square root work.

Method 2: Find Height Using the Hypotenuse

When to use it: you know all three sides, so the hypotenuse is already given.

Formula: h = ab/c. This is the quickest method of all, one multiplication and one division.

Worked example. Given: a = 9, b = 12, c = 15. Find: h. Step 1: multiply the legs, 9 × 12 = 108. Step 2: divide by the hypotenuse, 108 / 15. Answer: h = 7.2 units.

Common mistake: dividing by a leg instead of the hypotenuse. The divisor is always c. Our hypotenuse formula guide shows how c is identified and calculated when it is not given.

Right triangle with the altitude drawn from the corner to the hypotenuse, labelled h = (a x b) / c

Method 3: Find Height Using Projections

When to use it: you know the two segments p and q that the altitude cuts on the hypotenuse, a common situation in geometry proofs and in problems about similar triangles.

Formula: h = √(pq). By the altitude theorem, the altitude is the geometric mean of the two projections, a direct result of the similarity described earlier.

Worked example. Given: p = 4 and q = 9. Find: h. Step 1: check consistency, p + q = 13, so the hypotenuse is 13. Step 2: h = √(4 × 9) = √36. Answer: h = 6 units.

Tip: if p and q do not add up to the stated hypotenuse, the problem data is inconsistent and no such triangle exists. The Right Triangle Projection Calculator works with these segments directly.

Method 4: Find Height Using Area

When to use it: you know the area of the triangle and the hypotenuse.

Formula: h = 2Area/c. The derivation is one line: with the hypotenuse as the base, Area = (c × h)/2, and rearranging for h gives the formula. Notice this is the same relationship as h = ab/c in disguise, because the area computed from the legs is ab/2.

Worked example. Given: Area = 24 square units and c = 10. Find: h. Step 1: double the area, 2 × 24 = 48. Step 2: divide by the hypotenuse, 48 / 10. Answer: h = 4.8 units.

Tip: this method is a good cross-check. Compute h from the legs, then confirm that (c × h)/2 returns the stated area. The Right Triangle Area Calculator handles the area side of the check.

Method 5: Find Height Using Trigonometry

When to use it: you know one acute angle and one side.

Formulas: with angle A (the angle opposite leg a), h = b sin(A) when leg b is known, and h = c sin(A) cos(A) when the hypotenuse is known. Both are just h = ab/c with a and b replaced by their trig expressions, a = c sin(A) and b = c cos(A). If the ratio definitions are rusty, the sine, cosine, and tangent guide rebuilds them from scratch.

Worked example. Given: c = 20 and A = 35°. Find: h. Step 1: sin(35°) ≈ 0.5736 and cos(35°) ≈ 0.8192. Step 2: h = 20 × 0.5736 × 0.8192 ≈ 9.397. Answer: h ≈ 9.40 units.

Common mistake: a calculator left in radian mode. Angles in these problems are in degrees, so check the mode before you start.

Right triangle with adjacent side 10 and a 40 degree angle, the height found with tangent as about 8.39

Height of Special Right Triangles

Special triangles have fixed side ratios, so their altitudes have shortcuts.

In a 30-60-90 triangle with short leg s, the legs are s and s√3 and the hypotenuse is 2s, which gives h = s√3/2. With s = 5: h = 5√3/2 ≈ 4.33 units.

In a 45-45-90 triangle with leg s, the hypotenuse is s√2 and the altitude lands exactly at its midpoint, giving h = s/√2 = s√2/2. With s = 7: h = 7/√2 ≈ 4.95 units. In this one case the two projections are equal, p = q = c/2.

More Worked Examples

The table below collects further solved cases. Each row uses the method that matches its given values.

GivenMethodAltitude h
Legs 3 and 4, c = 5h = ab/c2.40
Legs 5 and 12, c = 13h = ab/c4.62
Legs 8 and 15, c = 17h = ab/c7.06
Legs 7 and 24, c = 25h = ab/c6.72
Legs 20 and 21, c = 29h = ab/c14.48
Projections 2 and 8h = √(pq)4.00
Projections 5 and 20h = √(pq)10.00
Area 6, c = 5h = 2Area/c2.40
Area 54, c = 15h = 2Area/c7.20
c = 10, A = 30°h = c sin(A) cos(A)4.33

Practice, with answers. Legs 9 and 12 with c = 15: h = 7.2. Projections 2 and 18: h = 6. Area 40 with c = 16: h = 5. Leg b = 12 with A = 30°: h = 6. A 30-60-90 triangle with short leg 6: h = 3√3 ≈ 5.20.

Real-World Uses, With the Geometry Stated Plainly

The altitude to the hypotenuse measures the shortest distance from a corner point to a sloped line, and it earns its keep in exactly those situations.

Sloped beams and struts. A ramp, a rafter, or a sloped handrail is the hypotenuse of a right triangle whose other sides are a horizontal run and a vertical rise. The shortest distance from the inner corner of that triangle to the sloped board is the altitude. Builders use that perpendicular distance for clearances under a slope, for example where a duct or a person’s head passes beneath a stair stringer. Note what it is: a distance measured perpendicular to the slope. It is not a vertical height, and quoting it as one misstates the space.

Surveying on a hillside. When a surveyor measures segments along a slope (the projections) and needs the perpendicular offset from a marker point down to the slope line, the geometric mean relation h = √(pq) gives that offset from slope measurements alone, with no need to reach the point directly.

A case where the altitude is the wrong tool. The vertical rise of a roof gable, the measurement that decides attic headroom, is a leg of the framing triangle, not the altitude to the hypotenuse. Reaching for h = ab/c there answers a question nobody asked. Naming which segment you actually need, leg or altitude, is most of the job.

Common Mistakes

  • Confusing a leg with the altitude. The legs are sides of the triangle; the altitude to the hypotenuse is a separate, shorter segment inside it. Decide which one the problem wants before calculating.
  • Choosing the wrong base. Area formulas pair each base with its own height. The hypotenuse pairs with h; a leg pairs with the other leg. Mixing pairs breaks the calculation.
  • Mixing angle positions. In h = b sin(A), the angle A must be opposite leg a. Using the other acute angle silently changes the answer; label the angles on a sketch first.
  • Using incorrect projection labels. This article sets p next to leg b and q next to leg a, giving b² = cp and a² = cq. Other books swap the labels, so check the convention before borrowing a formula.
  • Forgetting to calculate the hypotenuse. h = ab/c needs c. When only the legs are known, find c with the Pythagorean theorem first, or use the combined form h = ab/√(a²+b²).
  • Mixing measurement units. Convert everything to one unit before substituting. An answer in mixed units is wrong even when the arithmetic is right.
  • Rounding too early. Keep full precision through the intermediate steps and round only the final altitude.
  • Applying the formulas to non-right triangles. The relations h = ab/c and h² = pq come from right-triangle similarity. They do not hold for acute or obtuse triangles in general.

Frequently Asked Questions

Short answers to the questions students ask most about right triangle height.

01 What is the altitude of a right triangle?

It is the perpendicular segment drawn from the right-angle vertex to the hypotenuse, usually labeled h. A right triangle has three altitudes in total, but the two legs serve as the altitudes to each other, so the segment to the hypotenuse is the one that has to be calculated. It lands inside the triangle and is shorter than either leg.

02 How do you find the height if you know the two legs?

First find the hypotenuse with c = √a² + b², then apply h = ab/c. Equivalently, use the single formula h = ab/√a²+b². For legs 6 and 8, the hypotenuse is 10 and the altitude is (6 × 8)/10 = 4.8. This is the most common case in homework and exams, and it needs nothing beyond the Pythagorean theorem.

03 Can you find the altitude without knowing the hypotenuse?

Yes, in two situations. If you know the two projections p and q, the altitude is h = √pq, and the hypotenuse is simply p + q. If you know one leg and an acute angle, trigonometry gives h directly, for example h = b sin(A). In every other case, find the hypotenuse first with the Pythagorean theorem.

04 Is the altitude always shorter than the legs?

Yes, the altitude to the hypotenuse is always strictly shorter than either leg in a genuine right triangle. The reason is h = ab/c, and since the hypotenuse c is longer than b, the quotient ab/c is smaller than a; the same argument works for b. If a calculation returns an altitude longer than a leg, the inputs or the arithmetic are wrong.

05 What is the relationship between altitude and projections?

The altitude is the geometric mean of the two projections: h² = pq, so h = √pq. The projections also recover the legs through a² = cq and b² = cp, where q sits next to leg a and p sits next to leg b. All three relations come from the similarity of the two smaller triangles the altitude creates, and they hold only in right triangles.

06 How do you find height using an angle?

Use h = b sin(A) when you know leg b and the angle A opposite leg a, or h = c sin(A) cos(A) when you know the hypotenuse and one acute angle. For example, with c = 20 and A = 35°, h = 20 × sin(35°) × cos(35°) ≈ 9.40. Keep your calculator in degree mode, since these angles are stated in degrees.

07 What is the difference between a leg and the altitude?

The legs are the two sides that form the right angle; they belong to the triangle's outline. The altitude is an interior segment drawn from the right-angle corner perpendicular to the hypotenuse. A leg can serve as a height when the other leg is the base, but it is never the altitude to the hypotenuse, which is a distinct and shorter segment.

08 Can you find height using area and hypotenuse?

Yes. Taking the hypotenuse as the base, the area is (c × h)/2, so rearranging gives h = 2Area/c. With an area of 24 and a hypotenuse of 10, h = 48/10 = 4.8. This method agrees with h = ab/c whenever both are available, because the area from the legs is ab/2, which makes it a reliable way to check your work.

09 Do projection formulas work for non-right triangles?

No. The relations h² = pq, a² = cq, and b² = cp depend on the altitude to the hypotenuse creating two triangles similar to the original, which happens only when the original angle at that vertex is exactly 90 degrees. In an acute or obtuse triangle the altitude still exists, but it follows different relationships and these formulas give wrong values.

10 Which altitude calculator should you use?

Use the Right Triangle Altitude Calculator on this site and choose the input mode that matches your known values: the two legs, the projections, the area with the hypotenuse, or a side with an angle. It applies the same formulas shown in this article, so you can compare its result against a hand calculation line by line.

Conclusion

The altitude to the hypotenuse is governed by one central formula, h = ab/c, and every other method in this article is that formula viewed from different data: projections give h = √(pq), area gives h = 2Area/c, and trigonometry rewrites the legs with sine and cosine. Choose the version that matches what you know, keep the angle and projection conventions straight, and sanity-check the result against the legs, since h must be shorter than both. When the numbers get long, run them through the Right Triangle Altitude Calculator and compare each step.