Right Triangle Solver logo
Right Triangle Solver

Altitude Calculator

Right Triangle Altitude From Projections Calculator

When the altitude drops from the right-angle vertex to the hypotenuse, it splits the hypotenuse into two segments called projections. If you know those two projections, the altitude is just one square root away. This calculator does that math for you.

Calculate Altitude h From Projections

This calculator finds Altitude h using h=p×q(h2=p×q)h = \sqrt{p \times q}\quad\left(h^2 = p \times q\right).

Enter inputs to calculate Altitude h.

Calculate the Altitude of a Right Triangle From Projections

Multiply the two hypotenuse projections, then take the square root.

The Right Triangle Altitude From Projections Calculator finds the altitude of a right triangle from the two projections, pp and qq, that the altitude cuts on the hypotenuse. No legs or angles are needed. Enter projection pp and projection qq in the same unit, and the calculator returns the altitude hh with the altitude theorem:

h=p×qh=\sqrt{p \times q}

The formula works because dropping the altitude from the right-angle vertex creates two smaller triangles that are similar to each other. Similarity forces the altitude to be the geometric mean of the two projections. As a quick illustration, if p=9 cmp=9\text{ cm} and q=16 cmq=16\text{ cm}, multiply 99 by 1616 to get 144144, then take the square root to get an altitude of 12 cm12\text{ cm}.

Type the first hypotenuse segment into the Projection pp field and the second into the Projection qq field, keeping both in the same unit. Press Calculate to see the altitude, and Reset clears the fields for a new problem. The result carries the same unit as the inputs. If you know the triangle's legs instead, try the altitude calculator built for that case.

What Is the Altitude of a Right Triangle?

The altitude of a right triangle is the perpendicular segment drawn from the right-angle vertex to the hypotenuse. Its length measures the shortest distance from that vertex to the hypotenuse, because a perpendicular is always the shortest path from a point to a line.

Draw the altitude and it lands on the hypotenuse at a point called the altitude foot, usually labeled D. From D, the altitude rises at exactly 90 degrees to meet the right-angle vertex C. This right-angle meeting is what makes CD the altitude rather than just another segment.

Beginners sometimes confuse the altitude with one of the legs. The legs, AC and BC, meet at the right angle and form the outer sides of the triangle. The altitude CD runs inside the triangle from vertex C to side AB. It is a third, distinct segment with its own length hh, and it exists only once the altitude is actually drawn.

The hypotenuse can serve as the base because any side can be a base once the matching altitude is drawn, letting the area be written as one half times the hypotenuse times this altitude. Drawing the altitude also splits the triangle into two smaller right triangles, ACD and CBD, which carry the similar-triangle relationships behind every formula on this page.

What Are Projections in a Right Triangle?

When the altitude CD meets the hypotenuse AB, the foot D divides AB into two smaller segments: AD, called pp, and DB, called qq. These two segments are the projections of the legs onto the hypotenuse. Each one is the shadow a leg casts onto the hypotenuse when light shines straight down along the altitude.

Projection pp sits next to leg AC, and projection qq sits next to leg BC. Because they are the two pieces of the hypotenuse, they add up exactly:

p+q=cp+q=c

Here cc is the full hypotenuse. This addition relationship helps check answers and recover a missing projection when the hypotenuse and one projection are known. If you need the reverse calculation, finding projections from side lengths, the projection calculator handles that direction.

Both projections must be positive lengths. A zero or negative value describes no real triangle, only a degenerate shape. And projections are not the legs themselves: the legs AC and BC lean off to the sides, while pp and qq lie flat along the hypotenuse. Mixing them up is one of the most common errors students make.

MeasurementMeaning
ppFirst hypotenuse segment
qqSecond hypotenuse segment
hhPerpendicular altitude
ccComplete hypotenuse
aaFirst triangle leg
bbSecond triangle leg

Right Triangle Altitude From Projections Formula

The altitude theorem states:

h2=p×qh^2=p \times q

Taking the positive square root of both sides gives the working formula:

h=p×qh=\sqrt{p \times q}

Each symbol has a fixed meaning. The letter hh stands for the altitude to the hypotenuse, the quantity you want. The letters pp and qq stand for the two hypotenuse projections, the quantities you enter. The multiplication joins the projections, and the square root undoes that product to return a length.

Multiplication appears because similarity between the two small triangles produces the proportion hp=qh\frac{h}{p}=\frac{q}{h}. Cross-multiplying that proportion gives h2=p×qh^2=p\times q. The square root appears because hh is a length, and only the positive root of h2h^2 names a real distance.

Units deserve attention. If pp and qq are both measured in centimeters, their product lives in square centimeters, which is correct for an area-like intermediate step. Taking the square root converts square centimeters back to plain centimeters for the final altitude. This is why the two inputs must share the same unit: mixing units would corrupt the product and the answer. A compact way to remember the formula is that the altitude is the geometric mean of the two projections, since the geometric mean of two numbers is the square root of their product.

How to Calculate Altitude From Projections Step by Step

  1. Identify the two hypotenuse projections. Look for the segments into which the altitude foot divides the hypotenuse, and label the one next to leg AC as pp and the one next to leg BC as qq.
  2. Confirm both measurements use the same unit. If one is in millimeters and the other in centimeters, convert one of them before touching the formula.
  3. Multiply pp and qq. The product h2h^2 is an area-like intermediate value, so its unit is the square of the input unit.
  4. Take the positive square root of the product. The negative root is discarded because a length cannot be negative.
  5. Write the final answer with its unit. A bare number invites mistakes later, especially when it feeds into a longer calculation.
  6. Check that the answer is reasonable. The altitude always lies between the two projections, and it can never exceed half the hypotenuse.

Here is the method applied to a full example. Suppose p=4 cmp=4\text{ cm} and q=9 cmq=9\text{ cm}. First multiply: 4×9=364\times 9=36, so h2=36 cm2h^2=36\text{ cm}^2. Then take the positive square root:

h=36=6 cmh=\sqrt{36}=6\text{ cm}

The altitude is 6 cm6\text{ cm}. As a sanity check, 66 lies between the projections 44 and 99, matching the geometric-mean behavior described later in this guide.

Right Triangle Altitude Diagram Explained

Triangle ABC has its right angle at C. From C, the altitude CD drops perpendicular to the hypotenuse AB, meeting it at the foot D. The segment AD is labeled pp, DB is labeled qq, and CD is labeled hh, while the hypotenuse AB is cc and the legs AC and BC are aa and bb.

Two small squares mark the two right angles: one at C inside the original triangle, and one at D where the altitude meets the hypotenuse. The altitude CD appears as a clean interior segment, visually distinct from the two legs that form the triangle's outer frame.

The altitude divides ABC into two smaller right triangles, ACD and CBD, which are similar to each other and to the original triangle. In textbook questions, projections are often described as the two segments of the hypotenuse, or simply as the numbers sitting on either side of the altitude foot. Label them pp and qq before computing anything.

Right triangle ABC with right angle at C, altitude CD to hypotenuse AB, projections AD = p and DB = q, altitude CD = h
Altitude CD splits hypotenuse AB into projections pp and qq; hh is the geometric mean of pp and qq.

Why Does the Altitude Formula Work? Proof Using Similar Triangles

The altitude theorem is not a rule to memorize blindly. It follows from the similarity of the two triangles the altitude creates.

In triangle ACD, the acute angles at A and C add to 90 degrees, and in the large triangle ABC, angles A and B also add to 90 degrees. So the angle at C inside ACD equals angle B, and the angle at A equals the angle at C inside CBD. The two small triangles share all three angles, which makes them similar.

Similarity means matching sides stay in the same ratio. In triangle ACD, the side opposite angle A is the altitude hh. In triangle CBD, the side opposite the equal angle at C is projection qq. The other matching pair is projection pp (opposite the second acute angle in ACD) over altitude hh (opposite the matching angle in CBD). Setting these equal gives the proportion:

hp=qh\frac{h}{p}=\frac{q}{h}

Cross-multiplying turns the proportion into:

h2=p×qh^2=p \times q

Taking the square root of both sides gives h=p×qh=\sqrt{p\times q}. The equation h2=p×qh^2=p\times q has two algebraic roots, positive and negative, but a length is a positive quantity, so only the positive root describes the altitude.

The two smaller right triangles ACD and CBD with corresponding sides labeled to show h/p=q/h
Triangles ACD and CBD are similar, so hp=qh\frac{h}{p}=\frac{q}{h} and hh squared equals pp times qq.

Worked Examples of Altitude From Projections

Example 1: Simple Whole Numbers

Given p=4 cmp=4\text{ cm} and q=9 cmq=9\text{ cm}, substitute into the formula:

h=4×9=36=6 cmh=\sqrt{4 \times 9}=\sqrt{36}=6\text{ cm}

The altitude is 6 cm6\text{ cm}, a whole number because 3636 is a perfect square.

Example 2: Equal Projections

Given p=5 cmp=5\text{ cm} and q=5 cmq=5\text{ cm}:

h=5×5=25=5 cmh=\sqrt{5 \times 5}=\sqrt{25}=5\text{ cm}

When the projections are equal, the altitude equals each projection: the isosceles right triangle case, where the altitude is exactly half the hypotenuse.

Example 3: Decimal Projections

Given p=3.6 mp=3.6\text{ m} and q=6.4 mq=6.4\text{ m}:

h=3.6×6.4=23.04=4.8 mh=\sqrt{3.6 \times 6.4}=\sqrt{23.04}=4.8\text{ m}

Decimals change nothing: 23.0423.04 is a perfect square, so the altitude is an exact 4.8 m4.8\text{ m}.

Example 4: Unequal Projections

Given p=2 cmp=2\text{ cm} and q=18 cmq=18\text{ cm}:

h=2×18=36=6 cmh=\sqrt{2 \times 18}=\sqrt{36}=6\text{ cm}

The altitude is 6 cm6\text{ cm}, not 10 cm10\text{ cm}. Averaging gives the arithmetic mean, 1010, but the altitude is the geometric mean, which runs lower for unequal inputs.

Example 5: Non-Perfect Square

Given p=5 cmp=5\text{ cm} and q=7 cmq=7\text{ cm}:

h=5×7=35 cm≈5.916 cmh=\sqrt{5 \times 7}=\sqrt{35}\text{ cm}\approx 5.916\text{ cm}

Here 3535 is not a perfect square, so the exact answer is 35 cm\sqrt{35}\text{ cm}. Use the 5.916 cm5.916\text{ cm} approximation for practical work, but keep the exact form when the answer feeds further calculations.

Example 6: Different Input Units

Given p=40 mmp=40\text{ mm} and q=9 cmq=9\text{ cm}. The units differ, so convert first: 40 mm=4 cm40\text{ mm}=4\text{ cm}. Then:

h=4×9=36=6 cmh=\sqrt{4 \times 9}=\sqrt{36}=6\text{ cm}

Converting first is the only safe move: feeding 4040 and 99 in directly gives 40×9=360\sqrt{40\times 9}=\sqrt{360}, a wrong and unitless number.

How to Check Your Altitude Calculation

Method 1: Geometric Mean Check

Square your altitude and compare it with the product of the projections. The two values must match. For p=4p=4 and q=9q=9 with h=6h=6: 62=366^2=36 and 4×9=364\times 9=36. Agreement confirms the arithmetic.

Method 2: Hypotenuse and Leg Relationships

Rebuild the whole triangle and cross-check with a second formula. First add the projections: c=4+9=13c=4+9=13. Then recover the legs with the projection-leg relations: a=p×c=52≈7.211a=\sqrt{p\times c}=\sqrt{52}\approx 7.211 and b=q×c=117≈10.817b=\sqrt{q\times c}=\sqrt{117}\approx 10.817. Now verify with h=ab/ch=ab/c: (7.211×10.817)/13≈78/13=6(7.211\times 10.817)/13\approx 78/13=6, which matches. A side calculator keeps the leg arithmetic tidy while you check.

Method 3: Triangle Area Relationship

The same triangle has two expressions for its area. Using the legs: Area = (a×b)/2=(7.211×10.817)/2≈39(a\times b)/2=(7.211\times 10.817)/2\approx 39. Using the hypotenuse and altitude: Area = (c×h)/2=(13×6)/2=39(c\times h)/2=(13\times 6)/2=39. Both expressions agree, which independently confirms h=6h=6. The area from altitude tool is built on this same relationship.

Relationship Between Altitude, Hypotenuse, and Triangle Legs

Five formulas tie the six labeled parts together. The table below summarizes what each one finds and what it needs.

The first four formulas need at least one projection. They come from the similar triangles the altitude creates, so they apply only when the altitude is drawn from the right-angle vertex. The fifth formula, h=ab/ch=ab/c, needs no projections at all: it comes from equating the two area expressions, and it works whenever the legs and hypotenuse are known.

This is the practical difference between the two altitude calculators on this site. When you know the projections, the altitude theorem gives hh directly in one step. When you know the sides instead, finding altitude from the sides uses the area route. Pick whichever tool matches your given data.

One more useful reading of a2=p×ca^2=p\times c: each leg is the geometric mean of the hypotenuse and its adjacent projection, mirroring how the altitude is the geometric mean of the two projections.

FormulaFindsNeeds
c=p+qc=p+qThe hypotenuseBoth projections
h2=p×qh^2=p\times qThe altitudeBoth projections
a2=p×ca^2=p\times cThe leg next to projection ppProjection pp and the hypotenuse
b2=q×cb^2=q\times cThe leg next to projection qqProjection qq and the hypotenuse
h=ab/ch=ab/cThe altitudeBoth legs and the hypotenuse

Geometric Mean Theorem and Right Triangle Altitude

The geometric mean of two positive numbers is the square root of their product. For pp and qq it is p×q\sqrt{p\times q}, which is exactly the altitude formula. So saying the altitude is the geometric mean of the projections is just restating the theorem in different words.

The arithmetic mean is the familiar average: (p+q)/2(p+q)/2. For p=4p=4 and q=9q=9, the geometric mean is 36=6\sqrt{36}=6 while the arithmetic mean is 13/2=6.513/2=6.5. The altitude equals 66, not 6.56.5, because the similar-triangle proportion forces a multiplicative relationship, not an additive one.

The geometric mean never exceeds the arithmetic mean for positive inputs, with equality only when p=qp=q. That is why the altitude is largest, relative to the hypotenuse, when the projections are equal. A rectangle 44 by 99 and a square 66 by 66 have the same area, 3636, which is the same idea drawn as shapes: the altitude is the side of the square whose area equals the rectangle's.

Rectangle 4 by 9 and square 6 by 6 with equal area, plus a number line comparing geometric mean 6 and arithmetic mean 6.5
For p=4p=4 and q=9q=9, the geometric mean 66 (the altitude) sits below the arithmetic mean 6.56.5.

Special Cases and Important Properties

Equal Projections

When p=qp=q, the altitude equals that common value: h=p×p=ph=\sqrt{p\times p}=p. The altitude foot lands at the hypotenuse midpoint, the legs are equal, and the triangle is an isosceles right triangle with 45-degree acute angles, giving the maximum altitude for a fixed hypotenuse.

Very Unequal Projections

When pp is tiny and qq is huge, the altitude stays modest: p=1p=1 and q=100q=100 give h=10h=10, far below the projections' midpoint. The geometric mean weighs the small input more heavily than an average would.

Fixed Hypotenuse

Keep the hypotenuse c=p+qc=p+q constant and vary the split. The product p×qp\times q, and therefore the altitude, peaks when the split is even. Algebraically, h≤p+q2h\le\frac{p+q}{2}, with equality exactly when p=qp=q. In plain terms, no altitude can exceed half its hypotenuse.

Zero Projections

Setting p=0p=0 gives h=0h=0: the altitude foot coincides with vertex A, the triangle collapses into a segment, and no genuine triangle remains. Treat zero projections as degenerate, not valid calculator input.

Negative Projections

A projection is a length, and lengths cannot be negative. A negative input has no geometric meaning and yields no valid altitude; the error lies upstream, in how the segment was measured.

Two right triangles with the same hypotenuse but different projection splits showing different altitudes
Same hypotenuse, different splits: equal projections give the tallest altitude.

Common Mistakes When Finding Altitude From Projections

  1. Adding the projections instead of multiplying them. The similar-triangle proportion requires a product: with p=4p=4 and q=9q=9, 4+9≈3.606\sqrt{4+9}\approx 3.606 is wrong, while 4×9=6\sqrt{4\times 9}=6 is correct.
  2. Forgetting the square root. Stopping at h2=36h^2=36 leaves an area-like number where a length belongs. Always take the positive square root to finish.
  3. Confusing projections with triangle legs. The legs lean off the hypotenuse while pp and qq lie flat along it; only the hypotenuse segments belong in the altitude theorem.
  4. Mixing units without converting. With p=40 mmp=40\text{ mm} and q=9 cmq=9\text{ cm}, convert first (40 mm=4 cm40\text{ mm}=4\text{ cm}), then compute h=4×9=6 cmh=\sqrt{4\times 9}=6\text{ cm}.
  5. Entering negative measurements. A negative projection is meaningless and can produce imaginary results. Confirm both pp and qq are positive before calculating.
  6. Carrying h2h^2 forward as hh in longer solutions. Keep the labels straight: h2=36h^2=36 is the squared step, h=6h=6 is the altitude.
  7. Rounding too early. Keep exact forms like 35\sqrt{35} as long as possible and round only the final answer.
  8. Applying the formula to a non-right triangle. The proportion hp=qh\frac{h}{p}=\frac{q}{h} needs the right angle at C; without it, the similarity argument collapses and the formula does not hold.

Practical Applications of the Altitude Theorem

Geometry classes use this theorem constantly. Altitude problems test whether students can spot the projections, pick the right formula, and verify with the Pythagorean theorem, and textbook exercises often hand over the projections as plain numbers on a labeled diagram.

In construction-style geometry problems, the theorem completes a right triangle when only partial measurements are known. Drafting a triangular truss may fix the hypotenuse segments first, with the altitude determining the peak height, and similarity proofs use the same hp=qh\frac{h}{p}=\frac{q}{h} proportion directly.

Surveying and engineering sketches sometimes model a sightline as the altitude of a right triangle, with the projections read off a baseline. Two arbitrary ground distances do not determine a height by themselves; the right-triangle geometry must genuinely hold before the theorem applies.

Architectural drawings of gable ends or folded-plate roofs use the same relations to recover a missing dimension, provided the right angle is really there.

Practice Problems With Answers

Problem 1: Beginner

The projections of a right triangle are p=25 cmp=25\text{ cm} and q=16 cmq=16\text{ cm}. Find the altitude.

Problem 2: Beginner-Intermediate

A right triangle has projections p=12 mp=12\text{ m} and q=27 mq=27\text{ m}. Find the altitude to the hypotenuse.

Problem 3: Intermediate

The altitude foot divides the hypotenuse into segments of 7 in7\text{ in} and 28 in28\text{ in}. What is the altitude?

Problem 4: Decimals

A right triangle has projections p=2.5 ftp=2.5\text{ ft} and q=14.4 ftq=14.4\text{ ft}. Compute the altitude.

Problem 5: Application

A right-triangle roof truss has a tie beam as its hypotenuse. The altitude foot splits the tie beam into 3.2 m3.2\text{ m} and 12.8 m12.8\text{ m} segments. Find the height of the truss at the altitude.

Practice Problem Answers

1. h=25×16=400=20 cmh=\sqrt{25\times 16}=\sqrt{400}=20\text{ cm}.

2. h=12×27=324=18 mh=\sqrt{12\times 27}=\sqrt{324}=18\text{ m}.

3. h=7×28=196=14 inh=\sqrt{7\times 28}=\sqrt{196}=14\text{ in}.

4. h=2.5×14.4=36=6 fth=\sqrt{2.5\times 14.4}=\sqrt{36}=6\text{ ft}.

5. h=3.2×12.8=40.96=6.4 mh=\sqrt{3.2\times 12.8}=\sqrt{40.96}=6.4\text{ m}.

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What is the formula for altitude from projections?

The formula is h=p×qh=\sqrt{p\times q}, where hh is the altitude to the hypotenuse and pp and qq are the two projections. Both projections must be positive lengths measured in the same unit. Multiply them, then take the positive square root. The result is the altitude in the same unit as the inputs.

02 What are hypotenuse projections?

The projections are the two segments into which the altitude foot divides the hypotenuse. In triangle ABC with the right angle at C and altitude CD, the segment AD is projection pp and DB is projection qq. Together they make the full hypotenuse, so p+q=cp+q=c. They are flat segments along the hypotenuse, not the triangle's legs.

03 Why is altitude the geometric mean of two projections?

Because the altitude creates two similar triangles. In triangles ACD and CBD, matching sides give the proportion hp=qh\frac{h}{p}=\frac{q}{h}. Cross-multiplying yields h2=p×qh²=p\times q, so h=p×qh=\sqrt{p\times q}. Since the geometric mean of two numbers is the square root of their product, the altitude is exactly the geometric mean of pp and qq.

04 Can I find altitude without knowing the triangle legs?

Yes. The altitude theorem needs only the two projections, so the legs are unnecessary input. Enter pp and qq into the calculator and it returns hh directly. This is the fastest route when a diagram or problem statement gives the hypotenuse segments. If you know the legs instead, a different formula, h=ab/ch=ab/c, applies.

05 Can the two projections have different lengths?

Yes, and they usually do. The projections are any two positive lengths, equal or unequal, and the formula handles both. With p=2p=2 and q=18q=18 the altitude is 66, sitting between the two values. Equal projections are simply the special case that produces an isosceles right triangle.

06 What happens when both projections are equal?

When p=qp=q, the altitude equals that common value, since p×p=p\sqrt{p\times p}=p. The altitude foot lands at the midpoint of the hypotenuse, and the triangle becomes an isosceles right triangle with two equal legs and 45∘45^\circ acute angles. For a fixed hypotenuse, this split also gives the tallest possible altitude.

07 Can the altitude be longer than either projection?

It can exceed the smaller projection. With p=2p=2 and q=18q=18, the altitude is 66, which is longer than p=2p=2. The geometric mean always lies between the two inputs, so the altitude falls between pp and qq. It can never exceed the larger projection, and it can never exceed half the hypotenuse.

08 What if the projections use different units?

Convert one of them so both share a unit before calculating. For example, change 40 mm40\text{ mm} to 4 cm4\text{ cm} when the other projection is 9 cm9\text{ cm}, then compute h=4×9=6 cmh=\sqrt{4\times 9}=6\text{ cm}. Mixing units without converting corrupts the product. The calculator assumes matching units, so always standardize first.

09 Can the altitude be greater than half the hypotenuse?

No. For any positive pp and qq, the geometric mean never exceeds the arithmetic mean, so h=p×q≤p+q2=c2h=\sqrt{p\times q}\le\frac{p+q}{2}=\frac{c}{2}. The altitude equals exactly half the hypotenuse only when p=qp=q. Any calculator result larger than half the hypotenuse signals an input or arithmetic error.

10 How do I check my altitude calculation?

Square the altitude and confirm it equals p×qp\times q. For a deeper check, rebuild the triangle: c=p+qc=p+q, a=p×ca=\sqrt{p\times c}, b=q×cb=\sqrt{q\times c}, then verify h=ab/ch=ab/c. You can also compare the two area expressions, (a×b)/2(a\times b)/2 and (c×h)/2(c\times h)/2, which must agree. If all three checks pass, the answer is solid.

11 Is the altitude theorem related to the Pythagorean theorem?

They describe the same right triangle from different angles. The altitude theorem comes from similarity, while the Pythagorean theorem relates the three sides: a2+b2=c2a²+b²=c². They reinforce each other: with p=4p=4 and q=9q=9, the legs 52\sqrt{52} and 117\sqrt{117} satisfy 52+117=169=13252+117=169=13², confirming the triangle the altitude theorem describes.

12 Can I use this formula for a non-right triangle?

No. The proportion hp=qh\frac{h}{p}=\frac{q}{h} depends on the similar triangles created by an altitude dropped from a right-angle vertex. Without that right angle, the similarity argument fails and h2=p×qh²=p\times q does not hold. For general triangles, use area-based or trigonometric altitude formulas suited to the given data instead.

One Square Root, Full Understanding

One square root captures the whole idea: the altitude of a right triangle is the geometric mean of the two projections on its hypotenuse. Multiply pp and qq, take the positive square root, and keep the units consistent, and the answer is in hand.

Behind that short calculation sits a clean piece of geometry. The altitude creates two similar triangles, similarity gives the proportion, and the proportion gives the formula. When you can see that chain, checking answers, avoiding mistakes, and recognizing projections in new problems all become routine.