Triangle Altitude Calculator
- The semiperimeter is half the perimeter: (3 + 4 + 5) / 2 = 6.
- Heron's formula gives the area: sqrt(6 x 3 x 2 x 1) = 6.00 square units.
- An altitude is the perpendicular from the opposite vertex to a side, and area = base x altitude / 2, so the altitude to side a is 2 x Area / a = 2 x 6.00 / 3 = 4.00.
- The same area yields the other two altitudes: 3.00 to side b and 2.40 to side c — the longest side always gets the shortest altitude.
- In a right triangle the two legs are themselves altitudes, which is why the 3-4-5 triangle needs no formula at all.
A triangle altitude calculator finds the length of each altitude in a triangle from its three sides. An altitude is the perpendicular segment from a vertex to the opposite side, and every triangle has three of them, one per side. The calculator first uses Heron's formula to compute the area: it finds the semiperimeter s = (a+b+c)/2, then calculates area = sqrt(s(s-a)(s-b)(s-c)). Each altitude then follows from the relationship area = base x altitude / 2, rearranged as altitude = 2 x area / base. For example, the 13-14-15 triangle, the classic Heronian triangle, has an area of exactly 84, yielding altitudes of 12.92, 12.00, and 11.20. In a right triangle the two legs are themselves altitudes, which is why the 3-4-5 triangle's altitudes to sides 3 and 4 are simply 4 and 3. The longest side always receives the shortest altitude, since the same area is spread over a longer base.
This two-step method, Heron's formula followed by the area-base relationship, is the accepted standard for calculating altitudes when only the side lengths are known. It is exact, works for every triangle, and avoids the need to measure angles. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify each result yourself.
Worked examples
The 3-4-5 right triangle
Primary result: 4.00 — In a right triangle the legs are altitudes themselves: 4.00 and 3.00 need no formula. (3 · 4 · 5)
| Altitude to side a | 4.00 |
| Altitude to side b | 3.00 |
| Altitude to side c | 2.40 |
| Triangle area | 6.00 |
The 13-14-15 Heronian triangle
Primary result: 12.92 — Area 84 exactly — the famous Heronian triangle — with altitudes 12.92, 12.00 and 11.20. (13 · 14 · 15)
| Altitude to side a | 12.92 |
| Altitude to side b | 12.00 |
| Altitude to side c | 11.20 |
| Triangle area | 84.00 |
A scalene 7-10-12
Primary result: 9.99 — The longest side (12) gets the shortest altitude, 5.83. (7 · 10 · 12)
| Altitude to side a | 9.99 |
| Altitude to side b | 7.00 |
| Altitude to side c | 5.83 |
| Triangle area | 34.98 |
How the altitudes are calculated
An altitude is the perpendicular segment from a vertex to the opposite side, and every triangle has three of them — one for each side. When you know only the three side lengths, a triangle altitude calculator finds each altitude by first computing the triangle's area and then rearranging the standard area formula. The process uses the semiperimeter, Heron's formula for area, and a simple division to produce all three altitudes.
The first step is to find the semiperimeter, s = (a + b + c) / 2, where a, b, and c are the three side lengths. With s in hand, Heron's formula gives the area directly: area = sqrt(s(s - a)(s - b)(s - c)). Once the area is known, each altitude follows from the familiar relationship area = base × altitude / 2. Rearranged to solve for altitude, the formula becomes altitude = 2 × area / base. Running this calculation three times — once with each side serving as the base — produces all three altitudes.
Consider the classic 13-14-15 triangle, a well-known Heronian triangle. The semiperimeter is (13 + 14 + 15) / 2 = 21. Plugging into Heron's formula: area = sqrt(21 × 8 × 7 × 6) = sqrt(7056) = exactly 84. From there, each altitude is 2 × 84 divided by the corresponding side. The altitude to side 13 is 168 / 13, or about 12.92. The altitude to side 14 is 168 / 14, which equals 12.00 exactly. The altitude to side 15 is 168 / 15, or about 11.20. Notice the pattern: the longest side, 15, receives the shortest altitude, 11.20. This makes sense because the same area is spread over a longer base, so the height shrinks proportionally.
A right triangle offers a useful shortcut that confirms the method. In a right triangle, the two legs are themselves altitudes, since each leg is perpendicular to the other. That is why the 3-4-5 triangle's altitudes to sides 3 and 4 are simply 4 and 3. The third altitude, to the hypotenuse of length 5, still requires the full calculation: the area is 3 × 4 / 2 = 6, so the altitude to side 5 is 2 × 6 / 5 = 2.4. The triangle altitude calculator applies the same logic automatically, but recognizing when a side is already an altitude can serve as a quick check that the results are correct.
Heronian triangles
A Heronian triangle is one whose three sides and area all come out as whole numbers. These triangles show up everywhere in textbooks, and for good reason: they let students practice every key formula without wrestling with messy decimals. A triangle altitude calculator that handles Heronian examples is especially useful, because the clean side lengths make it easy to verify each step of the work.
The 13-14-15 triangle is the classic example. Its area is exactly 84, found through Heron's formula: first compute the semiperimeter s = (a+b+c)/2, then area = sqrt(s(s-a)(s-b)(s-c)). Once the area is known, each altitude falls out of the relationship area = base × altitude / 2, rearranged as altitude = 2 × area / base. For the 13-14-15 triangle this gives altitudes of 12.92, 12.00, and 11.20. Notice the pattern: the longest side always receives the shortest altitude, since the same area is spread over a longer base. That is why the side of length 15 gets the smallest altitude, 11.20.
The 3-4-5 triangle is another favorite, and it reveals a special shortcut. In a right triangle the two legs are themselves altitudes, which is why the 3-4-5 triangle's altitudes to sides 3 and 4 are simply 4 and 3. The third altitude, to the hypotenuse, still requires the full area-then-divide method, but the legs save time and illustrate why right triangles are a natural starting point for studying altitudes.
These two examples belong to a larger family of Heronian triangles that share the same useful property: integer sides and integer area. Textbook writers love them because every intermediate value stays clean and verifiable. An altitude is the perpendicular segment from a vertex to the opposite side, and every triangle has three, one per side. Working through Heronian triangles gives students a clear view of how sides, area, and altitudes connect.
Right and obtuse triangles
An altitude is the perpendicular segment from a vertex to the opposite side, and every triangle has three of them — one for each side. Where those altitudes land depends on the type of triangle you are working with. In an acute triangle, all three altitudes fall inside the shape. In a right triangle, the two legs are themselves altitudes, so the perpendiculars from the opposite vertices simply run along those legs. In an obtuse triangle, the two altitudes drawn from the acute vertices fall outside the triangle, extending past the longest side rather than hitting it directly.
This difference matters for drawing diagrams, but it has no effect on the math. A triangle altitude calculator uses the same relationship in every case: area equals base times altitude divided by 2, rearranged as altitude equals 2 times area divided by base. The formula does not care whether the perpendicular segment lands inside, on, or outside the triangle. It only needs the area and the length of the side you are treating as the base. With only the sides known, Heron's formula gives the area first: semiperimeter s equals (a+b+c)/2, and area equals the square root of s(s-a)(s-b)(s-c). Each altitude then falls out of the rearranged area formula.
A concrete example shows how this works regardless of triangle type. The 13-14-15 triangle has an area of exactly 84 — the classic Heronian triangle — with altitudes 12.92, 12.00 and 11.20. Notice that the longest side, 15, receives the shortest altitude, 11.20. This pattern holds for every triangle: the longest side always receives the shortest altitude, since the same area is spread over a longer base. The right triangle case is even simpler. In a right triangle the two legs are themselves altitudes, which is why the 3-4-5 triangle's altitudes to sides 3 and 4 are simply 4 and 3. The third altitude, to the hypotenuse, requires the same area-then-altitude calculation as any other side.
Altitudes in practice
In land surveying, area checking is one of the most common uses of a triangle altitude calculator. Surveyors measure the three sides of a triangular plot and then use Heron's formula to find the area before computing any altitude. The semiperimeter is s = (a+b+c)/2, and the area equals sqrt(s(s-a)(s-b)(s-c)). Each altitude then falls out of area = base x altitude / 2, rearranged as altitude = 2 x area / base. This two-step path from sides to area to altitude is reliable because an altitude is the perpendicular segment from a vertex to the opposite side, and every triangle has three, one per side.
The 13-14-15 triangle shows the process cleanly. Its area is exactly 84 — the classic Heronian triangle — and its three altitudes are 12.92, 12.00, and 11.20. Notice that the longest side always receives the shortest altitude, since the same area is spread over a longer base. That inverse relationship is useful in surveying and construction: it tells you which side to use as a base when you need the tallest clearance, and which side will give you the most compact height figure.
Right triangles simplify the picture further. In a right triangle the two legs are themselves altitudes, which is why the 3-4-5 triangle's altitudes to sides 3 and 4 are simply 4 and 3. The third altitude, the one drawn to the hypotenuse, is the altitude-on-hypotenuse segment. This segment creates two smaller triangles inside the original, both similar to the original, a configuration known as altitude-on-hypotenuse geometry. It is the basis for many proportional relationships in roof framing, ramp design, and navigation problems.
All three altitudes of a triangle meet at a single point called the orthocenter. In an acute triangle the orthocenter lies inside the figure; in a right triangle it sits at the right-angle vertex; in an obtuse triangle it falls outside. Knowing where the orthocenter lands helps when you need to check whether a computed altitude is internal or external to the shape, which matters in structural and mechanical drawing.
FAQs
What is the altitude of a triangle?
The altitude is the perpendicular distance from a vertex to the opposite side. Each triangle has three altitudes, one for each choice of base. This means you can measure from any corner straight down to the side across from it, giving you three possible height values for every triangle.
How do you find the altitude from the sides?
Compute the area with Heron's formula, then divide twice the area by the side. For a 3-4-5 triangle, the area is 6, so the altitude to side 3 is 2 x 6 / 3 = 4.00. This method works for any side you choose as the base.
What is Heron's formula?
Heron's formula is Area = sqrt(s(s-a)(s-b)(s-c)) where s is half the perimeter. It gives you the area from sides alone, no angles needed. Once you have the area, you can find any altitude by dividing twice the area by the length of the chosen base side.
What are the altitudes of a 13-14-15 triangle?
The altitudes are 12.92 to side 13, 12.00 to side 14 and 11.20 to side 15, from its area of 84. Each altitude is found by dividing twice the area by the side length. The longest side gets the shortest altitude, which is why side 15 has the smallest height value.
Can an altitude fall outside the triangle?
Yes. In an obtuse triangle, two altitudes land outside, on the extension of their sides. The length formula is unchanged, so you still calculate the altitude the same way. The perpendicular line simply drops to an extended side rather than the side itself, but the measurement method stays the same.
Which side gets the shortest altitude?
The longest side gets the shortest altitude. Since altitude equals twice the area divided by the base, the same area divided by a longer base gives a smaller height. This is why in a 13-14-15 triangle, side 15 has the smallest altitude at 11.20 while side 13 has the largest at 12.92.