Altitude Calculator
Right Triangle Altitude From Sides Calculator
If you already know all three sides of a right triangle, finding the altitude to the hypotenuse takes one quick calculation. This page handles that exact scenario: type in the two legs and the hypotenuse, and the altitude appears instantly.
Calculate Altitude h From Sides
This calculator finds Altitude h using .
Enter inputs to calculate Altitude h.
Altitude h
Result-
Solution Steps
Formula:
Right Triangle Altitude From Sides Calculator
Enter the two legs and the hypotenuse to find the altitude in seconds.
This calculator finds the altitude of a right triangle: the perpendicular distance from the right-angle vertex to the hypotenuse. Enter the two legs, and , and the hypotenuse , and it returns using . The answer comes out in the same unit as your inputs.
For example, a triangle with legs of 3 cm and 4 cm and a hypotenuse of 5 cm gives . Note that 2.4 cm is shorter than either leg, which is always true for the altitude to the hypotenuse.
Calculate Right Triangle Altitude From Side Lengths
The calculator takes three measurements. Leg a is the first perpendicular side, Leg b is the second perpendicular side, and Hypotenuse c is the longest side, opposite the right angle. All three must use the same unit, so convert meters to centimeters or feet to inches before typing.
Click Calculate Altitude h to see the result with its substitution, and use Reset to clear the fields for the next problem. The calculator answers with the compact formula:
If you know only two sides, recover the third with the Pythagorean theorem first, or try the general altitude calculator for a different starting point.
What Is the Altitude of a Right Triangle?
An altitude is the perpendicular distance from a vertex to the opposite side. On this page it always drops from the right-angle vertex straight to the hypotenuse, meeting it at a right angle. The hypotenuse is the base because it is the only side opposite the right angle, and the segment lands inside the triangle.
A right triangle has three altitudes, but two of them are trivial: leg is the altitude to base , and leg is the altitude to base , since the legs are already perpendicular. The interesting one is the third altitude, to the hypotenuse, because it is a genuinely new interior segment and it is shorter than either leg.
That third altitude is what this calculator finds, and it is what textbooks usually mean when they ask for the altitude of a right triangle.
Understanding the Sides of a Right Triangle
Correct labels make the formula work. The legs and are the two perpendicular sides meeting at the right angle. The hypotenuse is the longest side, opposite the right angle. The altitude is not a side at all but the perpendicular drop from the right-angle vertex to the hypotenuse.
Always identify the hypotenuse first: it is the longest of your three lengths. In a 3-4-5 triangle, 5 must be , and a quick check confirms the labeling. Labeling 5 as a leg would divide by the wrong side and corrupt the answer.
| Variable | Definition | Role in the calculation |
|---|---|---|
| a | First perpendicular leg | Multiplied by b in the numerator |
| b | Second perpendicular leg | Multiplied by a in the numerator |
| c | Hypotenuse, longest side | Divides ab in the denominator |
| h | Altitude to the hypotenuse | The result of the formula |
Right Triangle Altitude From Sides Formula
The formula is short and easy to memorize:
The legs are multiplied because their product is tied to the area: area equals half of , so is twice the area. Dividing by the hypotenuse then isolates , since the same area also equals half of . The result is an ordinary length, which is why all three inputs must share one unit.
Try a 6-8-10 triangle: . Geometrically, 4.8 cm is the shortest path from the right-angle vertex to the hypotenuse. (The full proof appears in the proof section below.)
A useful habit is checking the units before substituting. If is 60 mm, is 8 cm, and is 100 mm, convert to one unit first: , , , which is the same 6-8-10 triangle and gives the same . The formula never repairs mixed units for you, so this one check prevents the most embarrassing errors.
How to Use the Right Triangle Altitude From Sides Calculator
Follow these eight steps for a clean result every time.
- Find the right angle, the corner where two sides meet squarely, often marked with a small square. Without a confirmed right angle, this formula does not apply.
- Locate the two perpendicular legs forming that corner; call them a and b in either order, since the formula treats them symmetrically.
- Identify the hypotenuse: the side opposite the right angle and the longest of the three. Confirm it is longer than both legs.
- Convert all three measurements to the same unit before typing anything. Mixed units are the most common input error.
- Enter a, b, and c into their matching fields.
- Click the Calculate Altitude h button to multiply the legs, divide by the hypotenuse, and display the altitude.
- Read the result and check that the substituted numbers match what you intended to enter.
- Use Reset to clear the inputs before the next problem, so old values cannot corrupt the new answer.
Before trusting an answer, run a Pythagorean check: should equal . Small measurement rounding is fine, but a large mismatch means the sides do not form a right triangle.
Step-by-Step Altitude Calculation Without a Calculator
You can find the altitude by hand in five short steps. Take , , , and first confirm the triangle is valid: .
Step 1, write the formula:
Step 2, substitute:
Step 3, multiply the legs: , so
Step 4, divide: , so . Step 5, verify with the area. From the legs, ; from the hypotenuse and altitude, .
Both areas agree because they describe the same triangle. The legs give one base-height pair and the hypotenuse gives another, but the enclosed region is identical. Matching areas confirm the altitude.
Why does the area check work so well? Because the altitude formula itself comes from equating the two area expressions, verifying through area closes the loop: any arithmetic slip in the multiplication or division would make the two areas disagree. When they match, both the formula use and the arithmetic are confirmed in one stroke.
Right Triangle Altitude Diagram Explained
Label the triangle ABC with the right angle at C. Then AC is leg , BC is leg , and AB is the hypotenuse . Point D sits on AB, and segment CD meets AB at a right angle; CD is the altitude . Small square markers at C and D show both right angles.
The altitude CD splits the big triangle into two smaller right triangles, ACD and BCD, each with its right angle at D. Both are similar to the original triangle ABC and to each other, a fact the proof and projection sections rely on.
When you sketch your own version, start with the right angle at C, draw the legs, then connect their free ends for the hypotenuse. Drop the altitude last, checking that it meets the hypotenuse squarely. Labeling in the order a, b, c, h keeps every later calculation organized.
Why Does the Altitude Formula Work?
The formula follows from the area of a triangle. Area equals half the base times the height, and a right triangle offers two convenient base-height pairs. With the legs as base and height:
With the hypotenuse as base and the altitude as height:
Both expressions describe the same triangle, so set them equal:
Multiply by 2, then divide by :
One triangle can be measured with different base-height pairs while its area stays fixed, so equating the two expressions is legitimate and the algebra isolates . The diagram shows the same triangle twice, once with base and height , once with base and height .
The proof also explains why the altitude is always shorter than the legs. Since is the longest side, dividing by the largest of the three lengths must produce a value smaller than either leg alone. Every later formula on this page, from projections to similar triangles, is a variation on this one area idea.
Worked Examples of Right Triangle Altitude From Sides
The seven examples below move from the classic whole-number triples to decimals, equal legs, and mixed units. Each one follows the same rhythm: state what is given, substitute into the formula, simplify, and finish with the unit. Reading them in order builds the habit of checking units and reasonableness before trusting any answer.
Example 1: Classic 3-4-5 Triangle
Given , , :
The altitude is . This benchmark example is worth memorizing, since 3-4-5 is the most common Pythagorean triple and 2.4 is a tidy decimal.
Example 2: 5-12-13 Triangle
Given , , :
The exact altitude is meters, about 4.615 m. Keep the fraction when precision matters, since rounding early carries error into follow-up work.
Example 3: 8-15-17 Triangle
Given , , :
The altitude is about . Swapping the legs to 15 and 8 gives the identical product, confirming the formula treats the legs symmetrically.
Example 4: Equal Legs and the 45-45-90 Triangle
Given , , :
Equal legs make a 45-45-90 triangle, and the altitude splits it into two congruent halves. The exact form cm beats the decimal in theoretical work.
Example 5: Decimal Measurements
Given , , :
The altitude is . Decimals need no special treatment: multiply and divide as usual, keeping the same unit on the answer.
Example 6: Mixed Units That Must Match First
Given , , , convert to centimeters first: , , .
Converting first gives a clean . Unconverted meters would have inflated the answer by a factor of 100.
Example 7: Larger 20-21-29 Triangle
Given , , :
The altitude is about , comfortably below the shorter leg of 20 ft, as the altitude to the hypotenuse always is.
How to Find the Altitude When Only Two Sides Are Known
The live calculator asks for all three sides, but two sides are enough to recover the third with the Pythagorean theorem. There are two cases, depending on which sides you know, and both end with the familiar altitude formula.
The logic is the same in both cases: the Pythagorean theorem restores the missing side, and the altitude formula does the rest. Case 1 adds the legs under a square root to find the hypotenuse, while Case 2 subtracts to recover a leg. Note that Case 2 only works when the known side is truly the hypotenuse; if , the square root goes negative and no such triangle exists.
Case 1: Both Legs Known
Take and . Find the hypotenuse first:
Case 2: One Leg and the Hypotenuse Known
Take and . Recover the missing leg with the rearranged Pythagorean theorem:
Treat these as educational alternatives, since the calculator expects three measurements. A dedicated side calculator can recover the missing length before you continue here.
How to Verify Your Altitude Calculation
Three independent checks confirm an altitude answer. All three below use the 3-4-5 triangle, where the altitude is 2.4. Use at least one of them whenever an answer will feed into further work, since a wrong altitude quietly corrupts everything built on it.
Method 1: Area Comparison
Compute the area both ways and require agreement. From the legs:
Method 2: Hypotenuse Projections
Split the hypotenuse into the leg projections and . The altitude is their geometric mean:
Method 3: Pythagorean Check
Confirm the sides form a right triangle:
Altitude From Sides vs. Altitude From Projections
The altitude can be found two ways. The side method on this page is , starting from the three side lengths. The projection method is , starting from the two segments into which the altitude divides the hypotenuse. Both describe the same segment and always agree for the same triangle; the choice depends on which measurements you have. For the second route, see the altitude-from-projections calculator page.
| Method | Required inputs | Formula | Best use case |
|---|---|---|---|
| Altitude from sides | Legs a and b, hypotenuse c | h = ab / c | Side lengths are known; no square roots needed |
| Altitude from projections | Hypotenuse segments p and q | h = square root of (p times q) | The altitude foot divides the hypotenuse into known parts |
Relationship Between Altitude, Area, and Hypotenuse
Altitude, area, and hypotenuse link through two expressions for one area. From the legs:
Solving the second expression for gives a handy rearrangement:
This offers a second route when the area is known directly. For a triangle with area and hypotenuse ,
This route shines when a problem states the area directly, as many textbook questions do, or when the area was computed in a previous part. Instead of hunting for the individual legs, you divide twice the area by the hypotenuse and finish in one line. It is the same altitude the side formula gives, reached from a different starting point.
Special Properties of the Altitude to the Hypotenuse
The altitude to the hypotenuse is always shorter than either leg and shorter than the hypotenuse itself, since falls below whenever . Equal legs give a symmetric 45-45-90 triangle in which the altitude bisects the hypotenuse. For a fixed hypotenuse, the altitude is greatest when the legs are equal: with hypotenuse 10, the 45-45-90 triangle gives while the 6-8-10 triangle gives only 4.8.
No split of the same hypotenuse beats that maximum, which is the inequality , with equality only in the 45-45-90 case. Scaling also behaves simply: doubling every side doubles the altitude, so 3-4-5 at 2.4 becomes 6-8-10 at 4.8. Finally, the altitude divides the triangle into two smaller triangles similar to the original, which is why the projection and area relationships all agree.
Common Mistakes When Calculating Right Triangle Altitude
Avoid these nine errors and nearly every altitude calculation goes smoothly.
- Confusing the hypotenuse with a leg. Fix: pick the longest side as c first; in a 3-4-5 triangle, 5 must be c.
- Multiplying all three sides. Computing abc has no geometric meaning here. Fix: multiply only the legs, then divide by the hypotenuse.
- Forgetting to divide by c. Stopping at ab leaves twice the area, not a length. Fix: always finish with the division.
- Mixing units. Entering a in centimeters and c in meters corrupts the division silently. Fix: convert everything to one unit first.
- Using sides that do not form a right triangle. The formula assumes a right angle, so 2, 3, 4 gives nonsense. Fix: check a^2 + b^2 = c^2 first.
- Confusing the altitude with one of the legs. Textbooks asking for the altitude usually mean the one to the hypotenuse. Fix: confirm which altitude the question wants.
- Rounding intermediate values too early. Rounding 60/13 to 4.6 mid-calculation injects error. Fix: round only the final answer.
- Using an area formula incorrectly. Writing Area = c times h without the half doubles the answer. Fix: use Area = ch/2 when solving for h.
- Confusing altitude to the hypotenuse with height relative to a leg. These are different segments. Fix: the altitude to the hypotenuse is the shorter interior segment h = ab/c.
Practical Uses of Right Triangle Altitude Calculations
Students meet this altitude in geometry homework on area, similarity, and the geometric mean, while teachers use it to connect the Pythagorean theorem with area formulas in one picture, since a single diagram carries both and . Drafters and designers use it when a triangular panel or bracket must be dimensioned from its altitude, and triangular bracing layouts sometimes need the shortest cross distance between a joint and a member.
Surveyors working with right-triangle sight lines use the same relationship to check computed distances against measured ones. Treat these as mathematical models with idealized measurements: real engineering or construction work needs suitable measurement methods, stated design assumptions, and professional standards before any formula result is trusted on site.
In the classroom the altitude also serves as a bridge topic: it ties the Pythagorean theorem, area formulas, and similar triangles together in one figure. A single well-drawn diagram can carry a whole lesson, which is why this construction appears so often in textbooks.
Practice Problems With Solutions
Try each problem on your own, then check the worked answers below.
Problem 1: Basic Whole Numbers
A right triangle has legs of 6 cm and 8 cm and a hypotenuse of 10 cm. Find the altitude to the hypotenuse.
Problem 2: Pythagorean Triple
A right triangle has legs of 12 m and 16 m and a hypotenuse of 20 m. Find the altitude to the hypotenuse.
Problem 3: Decimal Measurements
A right triangle has legs of 4.5 in and 6 in and a hypotenuse of 7.5 in. Find the altitude to the hypotenuse.
Problem 4: Equal Legs
A right triangle has two equal legs of 14 ft each. Find the hypotenuse and then the altitude to the hypotenuse.
Problem 5: Unit Conversion
A right triangle has sides of 2.4 m, 70 cm, and 2.5 m. Convert units first, then find the altitude to the hypotenuse.
Practice Problem Answers
1. . The scaled 3-4-5 pattern gives a clean decimal.
2. confirms the triple, then .
3. . Decimals divide neatly when the triple is consistent.
4. , then , exactly half the hypotenuse as expected for 45-45-90.
5. In centimeters: , , , and checks out. Then .
Frequently Asked Questions
Answers to the most common right-triangle solving questions.
01 What is the formula for altitude from three sides?
The formula is , where and are the two perpendicular legs and is the hypotenuse. Multiply the legs, then divide by the hypotenuse. The result is a length in the same unit as the sides you entered.
02 How do you find the altitude of a right triangle?
Identify the right angle, label the two legs and and the hypotenuse , making sure all units match. Then compute . For a 3-4-5 triangle this gives , a segment shorter than either leg.
03 Why is the hypotenuse in the denominator?
It comes from the area proof. The area equals using the legs and using the hypotenuse as base. Equating the two gives , and solving for puts in the denominator. The longer the hypotenuse, the shorter the altitude for a given area.
04 Can I calculate altitude using only two sides?
Yes, with one extra step. If you know both legs, find the hypotenuse with first. If you know one leg and the hypotenuse, find the other leg with . Then use as usual.
05 Is the altitude the same as the height?
It depends on which height is meant. Height usually means the perpendicular distance to a chosen base, so the altitude to the hypotenuse is the height when the hypotenuse is the base. If a leg is chosen as the base, the height is the other leg, a different segment entirely.
06 Is the altitude always shorter than the legs?
Yes, the altitude to the hypotenuse is always shorter than either leg of the same triangle. It is the shortest segment from the right-angle vertex to the hypotenuse, while each leg is a longer path to the same side. It is also shorter than the hypotenuse itself.
07 Can I use this formula for any triangle?
No, only for right triangles. The derivation depends on the legs being perpendicular, which gives the area as . For an acute or obtuse triangle, find the altitude with the general area formula or trigonometry instead. Always confirm the right angle first.
08 What if my side lengths do not satisfy the Pythagorean theorem?
Then they do not form a right triangle and the formula does not apply. Re-measure the sides or recheck the labeling, since the longest side must be the hypotenuse. Small rounding differences are fine, but a large mismatch means the triangle is not right-angled.
09 How do I find the altitude of a 3-4-5 triangle?
Multiply the legs and divide by the hypotenuse: (or whatever unit your sides use). The 3-4-5 triangle is the classic worked example because all three sides are whole numbers.
10 What is the altitude of a 5-12-13 triangle?
It is , in the unit of the sides. Keep the exact fraction when you need full precision, and round to 4.615 only for the final reported answer.
11 How is the altitude related to the area?
The area can be written two ways: and . Rearranging the second gives , so knowing the area and the hypotenuse is another route to the same altitude. Both forms describe the identical triangle.
12 What is the difference between altitude from sides and altitude from projections?
Altitude from sides uses with the three side lengths. Altitude from projections uses with the two hypotenuse segments. Both find the same segment; the choice depends on which measurements you have.
Related Right Triangle Calculators
With the altitude formula in hand, pick the next tool by what you know. If you know the hypotenuse segments instead of the sides, head to the projections calculator. If you know the altitude and want the area, the area from hypotenuse and altitude tool reverses the computation from the area section. The five related calculators below cover every neighboring calculation. Start with the tool that matches the measurements you already have, and let each result check the next.