Audited 29 Jul 2026·Last updated 28 Oct 2026·4 citations·Tier 2·0 uses

Triangle Height Calculator

Find a triangle's height (altitude) from three sides, from two sides and the angle between them, or from its area and base, with the other two altitudes.

Triangle Height Calculator

What do you know about the triangle?
The main result is the altitude perpendicular to this side. Used by the three-sides and two-sides-and-angle modes.
The second side. In two-sides-and-angle mode this is the other side enclosing the angle you enter.
The third side, used only in three-sides mode. Each side must be shorter than the sum of the other two or the lengths do not close into a triangle.
In degrees, strictly between 0 and 180. Used only in two-sides-and-angle mode. It must be the angle enclosed by the two sides you entered, not one of the other two.
°
Used only in area-and-base mode, in the square of your length unit.
Used only in area-and-base mode: the side you want the height measured perpendicular to.
Height (altitude onto the base)
12.9231
The perpendicular distance from the opposite corner to the line of side a, or of the base you entered, in your length unit.
Base used
13
Area
84
Method used
Heron's formula from the three sides, then h = 2 × area ÷ base
The other two altitudes
Altitude to side b (14) = 12; altitude to side c (15) = 11.2

Background.

A gable wall 8 metres wide, closed by two roof slopes of 5 metres each, rises 3 metres from the eaves line to the ridge. Nobody had to measure that 3 metres; it follows from the three lengths you can put a tape on. That is the usual position with a triangle's height. The sides are easy to measure and the perpendicular is not, whether the triangle is a gable end, a plot with three surveyed boundaries or one panel of a roof truss.

Every route to the height runs through the area. Euclid showed in Book I, Proposition 41 of the Elements that a triangle is half the parallelogram standing on the same base between the same parallels, which is where area = ½ × base × height comes from. Turned around, height = 2 × area ÷ base, so the real work is getting the area: by Heron's formula from three sides, by ½ab·sin C from two sides and the angle between them, or straight from a plan or title deed if the area is already known.

The point that trips people up is that a triangle has three heights, one for each side you might call the base, and they are usually all different. The gable above is 3 m tall over its 8 m base but 4.8 m tall measured square to either roof slope. The calculator reports the height onto side a, or onto the base you enter, and lists the other two whenever the triangle is fully known.

What is triangle height calculator?

An altitude, or height, of a triangle is the perpendicular segment from a vertex to the straight line through the opposite side, which is that altitude's base. Each of the three sides has its own. Base × height gives the same product, twice the area, whichever side you choose, so the longest side always has the shortest altitude. Extended as lines, the three altitudes meet at one point, the orthocentre. In an obtuse triangle two of them meet their bases outside the figure, on the extension of the side; in a right triangle the two legs are altitudes of each other.

How to use this calculator.

  1. Pick the mode that matches what you measured: all three sides, two sides with the angle between them, or the area with one base.
  2. With three sides, put the side you want the height onto in side a. Use one unit throughout. Each side must be shorter than the other two added together, so 13, 14 and 27 is refused: laid end to end, 13 and 14 only just reach 27 and enclose no area.
  3. With two sides and an angle, the angle must be the one at the corner where sides a and b meet. If the angle you know faces one of those sides instead, that is the side-side-angle case; use the SSA triangle calculator, which deals with the chance of two different triangles.
  4. With area and base, enter the area in the square of the base's unit, for example m² with a base in metres.
  5. Read the height and the base it belongs to, then the other two altitudes. In area-and-base mode they are reported as not determined.

The formula.

h = 2Δ ⁄ a , Δ = √(s(s−a)(s−b)(s−c)) , s = (a+b+c) ⁄ 2 , Δ = ½ab·sin C

The height onto side a is h = 2Δ ÷ a, where Δ is the area, and the heights onto b and c are 2Δ ÷ b and 2Δ ÷ c. With three sides, the area comes from Heron's formula: s = (a + b + c) ÷ 2 and Δ = √(s(s − a)(s − b)(s − c)). With two sides and their included angle C, Δ = ½ab·sin C, and the third side follows from the law of cosines, c² = a² + b² − 2ab·cos C, so all three altitudes are available. That route also shows why h onto a is simply b·sin C: the height depends only on the side leaning away from the base and how steeply it leans. In area-and-base mode the division is the whole calculation, and nothing more can be recovered, because sliding the apex along a line parallel to the base keeps both the area and that height fixed while the other two sides change. A built-in check holds for every triangle: 1/h_a + 1/h_b + 1/h_c = 1/r, where r = Δ ÷ s is the radius of the inscribed circle.

A worked example.

Example

A triangular plot has boundaries of 13, 14 and 15 metres, and the owner wants the perpendicular depth from the far corner to the 13 m frontage. The semiperimeter is (13 + 14 + 15) ÷ 2 = 21, so the factors under Heron's square root are 21, 21 − 13 = 8, 21 − 14 = 7 and 21 − 15 = 6. Their product is 7,056 and its square root is 84, an exact area of 84 m². The height onto the frontage is 2 × 84 ÷ 13 = 168 ÷ 13 = 12.9231 m. The same area gives the other two altitudes: 168 ÷ 14 = 12 m onto the 14 m side and 168 ÷ 15 = 11.2 m onto the 15 m side. As a check, the inscribed circle has radius 84 ÷ 21 = 4, and 13/168 + 14/168 + 15/168 = 42/168 = 0.25, which is 1 ÷ 4. All three heights are correct; which one answers the owner's question depends only on which side is the frontage.

knownsss
side C15
side B14
side A13

Frequently asked questions.

Can a triangle's height lie outside the triangle?
Yes, in every obtuse triangle. Take sides 2, 3 and 4: the angle opposite the 4 is about 104.48°, and the altitudes onto the sides of 2 and 3, which are 2.9047 and 1.9365, land on those sides extended past the obtuse corner. Only the altitude onto the 4, 1.4524, falls inside. The lengths still satisfy area = ½ × base × height.
What is the height of a right triangle onto its hypotenuse?
The two legs are already altitudes of each other, so only the third needs work: legs multiplied together and divided by the hypotenuse. For a 3-4-5 triangle that is 3 × 4 ÷ 5 = 2.4, and entering 5, 3 and 4 as the three sides returns 2.4 with the other altitudes as 4 and 3.
Why are the other two heights 'not determined' when I enter area and base?
Because infinitely many triangles share an area and a base. Hold the base still and slide the top corner along a line parallel to it: the height onto that base and the area stay fixed, while the two sloping sides, and the altitudes onto them, keep changing. Only the one height you asked for is fixed.
Why do 37° and 143° give the same height?
With sides 13 and 14, the height onto the 13 side is 14 × sin C, and sin 37° equals sin 143°, so both give 8.4254. They are different triangles, though: the third side is 8.6196 in one and 25.6067 in the other, so the altitude onto that third side changes from 12.7072 to 4.2774.
Is there a shortcut for isosceles and equilateral triangles?
Yes. The height onto the unequal side of an isosceles triangle splits it in half, so Pythagoras gives it directly: legs of 5 over a base of 8 give √(25 − 16) = 3. An equilateral triangle's height is √3 ÷ 2 times the side, 8.6603 for a side of 10, the same onto every side.
Is the altitude the same line as the median?
Only in special cases. The median runs from a corner to the midpoint of the opposite side and is generally not perpendicular to it; the altitude is perpendicular but generally misses the midpoint. They coincide on the base of an isosceles triangle and on every side of an equilateral one, which is why those shortcuts work.

How this page was produced

Published by
Quanta Calculator
Primary sources
4 cited below
Method
h = 2Δ ⁄ a , Δ = √(s(s−a)(s−b)(s−c)) , s = (a+b+c) ⁄ 2 , Δ = ½ab·sin C
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon