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

Triangle Height Calculator

Find the height of a triangle from three sides, two sides and the included angle, or the area and a base. Returns the altitude, the area and the other two.

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 vertex to the line containing the base — side a in the two side-based modes, or the base you supplied in area-and-base mode. A triangle has three different heights; this is the one measured against that side.
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.

The Quanta triangle height calculator finds the altitude of a triangle — the perpendicular distance from a vertex down to the line containing the opposite side — from any of three starting points: all three side lengths, two sides with the angle between them, or the area together with the base you want the height measured against. It returns that height, the area behind it, the formula path it took, and the other two altitudes when they can be worked out. With the default 13-14-15 triangle it returns an area of 84 and a height of 12.9230769231 onto the side of length 13, with the remaining altitudes coming out at exactly 12 and 11.2.

Every mode is the same identity read backwards. Euclid's Elements, Book I, Proposition 41 established that a parallelogram sharing a base with a triangle and lying between the same parallels is double the triangle, which is where area = ½ × base × height comes from. Rearranged, height = 2 × area ÷ base. So the calculator's real job is finding the area, and each mode does that differently: Heron's formula from three sides, half the product of two sides times the sine of the angle between them, or simply accepting the area you already have.

The first thing to be clear about is that a triangle has three heights, not one. Each side can serve as the base, and each gives a different altitude — in the 13-14-15 triangle they are 12.9230769231, 12 and 11.2. That is why this page names the base beside the answer instead of leaving you to guess, and why it prints the other two underneath. If you were told "the height of the triangle" without a base attached, the question was incomplete, and the usual intended meaning is the altitude onto the longest side or onto whichever side is drawn horizontally.

The second thing is a limitation worth stating before you use the area-and-base mode. Knowing an area and one base is enough to fix that one height, but it is not enough to fix the triangle. Infinitely many triangles share an area of 84 and a base of 13 — slide the apex along a line parallel to the base and neither the base nor the area changes, while the other two sides and the other two altitudes change continuously. So in that mode the calculator returns the height you asked for and says outright that the other two are not determined, rather than manufacturing numbers for them.

The third thing matters for obtuse triangles. When one angle exceeds 90°, two of the three altitudes fall outside the triangle: the perpendicular from a vertex meets the extension of the opposite side rather than the side itself. The length is still correct and still satisfies area = ½ × base × height; it is only the picture that changes. The 2-3-4 triangle in the test suite is exactly this case, and its altitudes come back as 2.9047375097, 1.9364916731 and 1.4523687548.

Heights are what turn a shape into a quantity in practice. A gable end needs its rise to work out sheet material; a triangular garden bed needs its perpendicular depth to plan rows; a truss needs the height of each web triangle to size the members; a plot of land with three measured boundary lines needs Heron's formula and then an altitude to be divided sensibly. In all of those the sides are the thing you can measure with a tape and the height is the thing you cannot, which is precisely the gap this page fills.

What is triangle height calculator?

The height, or altitude, of a triangle is the perpendicular segment from one vertex to the line containing the opposite side. That opposite side is called the base for that altitude, and since any of the three sides can be chosen as the base, every triangle has three altitudes. MathWorld's Altitude entry defines them as the cevians perpendicular to the opposite sides and notes that all three are concurrent at a single point, the orthocenter; it also records the relation 1/h₁ + 1/h₂ + 1/h₃ = 1/r, where r is the inradius, which this calculator uses as an internal consistency check. The altitude is tied to the area by the oldest identity in plane geometry: Euclid's Elements Book I, Proposition 41 shows that a parallelogram on the same base and between the same parallels as a triangle has double its area, so the triangle's area is ½ × base × height. MathWorld states the same as Equation (18) of its Triangle entry, Δ = ½ah. Reversing it gives h = 2Δ ÷ a, which is the calculator's engine. Getting the area depends on what you know: with three sides it is Heron's formula, Δ = √(s(s − a)(s − b)(s − c)) with s the semiperimeter ½(a + b + c); with two sides and the angle they enclose it is Δ = ½ab sin C, MathWorld's Equation (19); and if the area is already known no derivation is needed at all. In an obtuse triangle two of the three altitudes land outside the figure, meeting the extended base — the length is unaffected, only the drawing changes. In a right triangle the two legs are themselves altitudes, which is why a 3-4-5 triangle has altitudes of 4, 3 and 2.4.

How to use this calculator.

  1. Choose what you know. "All three sides" is the most common — it is the case where you can measure with a tape but cannot measure the height directly.
  2. In three-sides mode, enter the sides in any consistent unit. Side a is the base the main result is measured against, so put the side you care about there. Each side must be shorter than the sum of the other two, or the lengths cannot form a triangle at all.
  3. In two-sides-and-angle mode, the angle must be the one enclosed by the two sides you entered — the angle at the vertex where they meet — not one of the other two. Enter it in degrees.
  4. In area-and-base mode, enter the area and the side you want the height measured perpendicular to. This is the direct rearrangement of area = ½ × base × height.
  5. Read the height at the top and check the base beside it. Because a triangle has three heights, the answer only means something once you know which side it belongs to.
  6. Read the other two altitudes underneath. In area-and-base mode they are not determined and the output says so — that is a real limitation, not a missing feature.
  7. For an obtuse triangle, expect two of the three altitudes to fall outside the shape. Measure to the extension of the base, not to the base itself.

The formula.

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

Everything on this page rests on area = ½ × base × height, so the calculator's task in each mode is to establish the area and then divide it out. Rearranged, the altitude onto side a is h = 2Δ ÷ a, and by the same argument the altitudes onto b and c are 2Δ ÷ b and 2Δ ÷ c.

In three-sides mode the area comes from Heron's formula: with s = (a + b + c) ÷ 2, the area is √(s(s − a)(s − b)(s − c)). For the 13-14-15 default, s = (13 + 14 + 15) ÷ 2 = 21, and the area is √(21 × 8 × 7 × 6) = √7056 = 84 exactly. The altitude onto side a is 2 × 84 ÷ 13 = 168 ÷ 13 = 12.9230769231. Onto side b it is 2 × 84 ÷ 14 = 12 exactly, and onto side c it is 2 × 84 ÷ 15 = 11.2 exactly.

In two-sides-and-angle mode the area is ½ab sin C, MathWorld's Equation (19), and the third side comes from the law of cosines, c² = a² + b² − 2ab cos C, so that all three altitudes are still available. With a = 13, b = 14 and C = 37°, the area is ½ × 13 × 14 × sin 37° = 54.7651671068, the third side is 8.6195518644, and the altitude onto side a is 2 × 54.7651671068 ÷ 13 = 8.4254103241.

In area-and-base mode the division is all there is: 2 × 84 ÷ 13 = 12.9230769231 again, which is a useful check that the two routes agree. What that mode cannot do is recover the rest of the triangle. Slide the apex of a triangle along any line parallel to the base and the base and the area both stay fixed while the other two sides change, so an area and a base describe an infinite family of triangles with different remaining altitudes. The calculator says so in the output rather than returning a number it cannot justify.

An independent structural check runs on every result: MathWorld's Altitude entry gives 1/h₁ + 1/h₂ + 1/h₃ = 1/r, where r is the inradius. For the 13-14-15 triangle the inradius is 84 ÷ 21 = 4, and 13/168 + 1/12 + 1/11.2 = 0.0773809524 + 0.0833333333 + 0.0892857143 = 0.25, which is exactly 1 ÷ 4. The test suite asserts that identity on every sample triangle.

Rounding stage: all arithmetic runs in Decimal at 40 significant digits and is rounded once, at the return boundary, to 10 decimal places. The area is never rounded before the altitudes are divided out of it — doing that would move the ninth decimal place of the height. The sine and cosine in two-sides-and-angle mode are the only double-precision step, evaluated once each and immediately carried back into Decimal, so the error floor is near 1e-16. Nothing on this page is sorted into bands or grades, so no threshold depends on display rounding; the two text outputs name the formula path and report the other altitudes, and neither changes because a value crossed a boundary.

A worked example.

Example

A triangular plot has been measured along all three boundaries at 13, 14 and 15 metres, and the owner needs the perpendicular depth from the far corner down to the 13 metre frontage in order to lay out planting rows. No height can be measured directly, because the far corner is not accessible in a straight line from the frontage, but three tape measurements are enough. The semiperimeter is (13 + 14 + 15) ÷ 2 = 21, and Heron's formula gives an area of √(21 × 8 × 7 × 6) = √7056 = 84 square metres exactly — one of the rare triangles where the square root comes out whole. Dividing back out, the height onto the 13 metre side is 2 × 84 ÷ 13 = 168 ÷ 13 = 12.9230769231 metres, so the plot is a little under 13 metres deep at its deepest point. The other two altitudes come out cleanly: onto the 14 metre side it is 2 × 84 ÷ 14 = 12 metres exactly, and onto the 15 metre side it is 2 × 84 ÷ 15 = 11.2 metres exactly. Those three numbers are a good demonstration of why the base has to be named — quoting "the height of this triangle" as 11.2, 12 or 12.9230769231 would all be defensible and only one of them answers the question that was asked. A quick check on the arithmetic: ½ × 13 × 12.9230769231 = 84.0000000001, and ½ × 14 × 12 = 84, and ½ × 15 × 11.2 = 84. All three bases and heights return the same area, which is the definition of an altitude doing its job.

knownsss
side C15
side B14
side A13

Frequently asked questions.

How do I find the height of a triangle if I only know the three sides?
Use Heron's formula to get the area, then divide it back out. With sides a, b and c, let s = (a + b + c) ÷ 2, then the area is √(s(s − a)(s − b)(s − c)), and the height onto side a is 2 × area ÷ a. For a 13-14-15 triangle: s = 21, area = √(21 × 8 × 7 × 6) = 84, height onto the 13 side = 168 ÷ 13 = 12.9230769231. This is the default mode on this page, and it is the practical case — three lengths are what a tape measure gives you, and the perpendicular height usually is not.
Why does a triangle have three heights?
Because any of the three sides can be taken as the base, and each choice gives a different perpendicular. In the 13-14-15 triangle the three altitudes are 12.9230769231, 12 and 11.2 — all correct, each measured against a different side. They are related by the area: base × height is the same product every time, so the longest side always has the shortest altitude. MathWorld's Altitude entry adds that all three altitudes, extended as lines, meet at a single point called the orthocenter. When someone quotes "the height" of a triangle without naming a base, the statement is incomplete.
If I know the area and the base, why can't you tell me the other two heights?
Because an area and a base do not determine a triangle. Picture the base fixed on a line and the third vertex sliding along a parallel line above it: the base never changes, the perpendicular distance between the parallels never changes, so the area never changes — but the other two sides get longer or shorter continuously, and so do the altitudes onto them. Infinitely many different triangles share any given area and base. The height onto that base is fixed and this calculator returns it; the other two are genuinely unknowable from that input, so the output says so instead of printing a number.
Can the height of a triangle fall outside the triangle?
Yes, and in every obtuse triangle two of the three do. The altitude is defined as the perpendicular from a vertex to the line containing the opposite side, not to the side itself. When one angle exceeds 90°, the foot of two of those perpendiculars lands on the extension of the base beyond a corner. The computed lengths are unaffected and area = ½ × base × height still holds exactly. For the obtuse 2-3-4 triangle the altitudes are 2.9047375097, 1.9364916731 and 1.4523687548, and each still returns the area 2.9047375097 when multiplied by half its base.
What is the height of a right triangle?
A right triangle has an unusually tidy answer: the two legs are already altitudes of each other, because they are perpendicular. For a 3-4-5 triangle, the altitude onto the leg of 3 is 4, and the altitude onto the leg of 4 is 3. Only the third altitude — the one onto the hypotenuse — needs computing, and it is the product of the legs divided by the hypotenuse, 3 × 4 ÷ 5 = 2.4. This page returns all three from the three sides; the right triangle calculator returns the hypotenuse altitude directly alongside the angles and radii.
How do I find the height when I know two sides and the angle between them?
The area is ½ × a × b × sin C, where C is the angle enclosed by the two sides — MathWorld's Equation (19) for the triangle. Divide twice that by whichever side you want as the base. With a = 13, b = 14 and C = 37°, the area is 54.7651671068 and the height onto the 13 side is 8.4254103241. The angle must be the one between the two sides you entered; using one of the other two angles gives a different, wrong triangle. This calculator also derives the third side by the law of cosines so it can report all three altitudes.
Is the height the same as the median or the perpendicular bisector?
No — the three are different lines that coincide only in special cases. The altitude is perpendicular to the base but generally does not hit its midpoint. The median runs from a vertex to the midpoint of the opposite side but is generally not perpendicular. The perpendicular bisector is perpendicular to a side at its midpoint but generally does not pass through any vertex. All three coincide in an equilateral triangle, and in an isosceles triangle the altitude, median and perpendicular bisector of the base are the same line — which is exactly why the isosceles height formula is so simple.

In this category

Embed

Quanta Pro

Paid features are coming later.

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