Triangle Height Calculator
Calculate the height of any triangle from base and area, three sides, or a right triangle.
What is the Height (Altitude) of a Triangle?
The height of a triangle, also called the altitude, is the perpendicular distance from a vertex to the opposite side (or its extension). Every triangle has exactly three heights, one from each vertex. These three altitudes always intersect at a single point called the orthocenter, which lies inside the triangle for acute triangles, at the right-angle vertex for right triangles, and outside the triangle for obtuse triangles.
The most familiar use of triangle height is in calculating area: Area = (1/2) times base times height. This formula works for any triangle as long as the height is measured perpendicular to the chosen base. However, finding the height is not always straightforward - if you know the area and base, you can work backwards. If you only know the three sides, you need Heron’s formula to find the area first, then derive all three heights from it.
For a right triangle, there is a special case worth knowing: the altitude from the right-angle vertex to the hypotenuse equals (leg1 times leg2) divided by the hypotenuse. This result connects to the geometric mean: the altitude squared equals the product of the two segments it divides the hypotenuse into. This is a key result in Euclidean geometry and appears frequently in trigonometry and engineering.
The three heights of a triangle are related to each other through the area: h_a times a = h_b times b = h_c times c = 2 times Area. This means the tallest altitude is always opposite the shortest side, and the shortest altitude is always opposite the longest side. In an equilateral triangle, all three altitudes are equal, each measuring side times sqrt(3) / 2.
Understanding triangle altitudes is essential for many practical applications: calculating roof pitch and rafter length in construction, finding the depth of a triangular cross-section in structural engineering, determining the height of a triangular land parcel in surveying, and computing stress distributions in triangular finite elements in computational mechanics.
Formula and Derivation
Mode 1 - Base and Area:
Mode 2 - Three Sides (Heron’s formula):
Mode 3 - Right Triangle:
How to Use This Calculator
- Choose the mode that matches what you know. “Base and Area” is simplest if you already know those. “Three Sides” uses Heron’s formula to find all three altitudes. “Right Triangle” finds the altitude to the hypotenuse from one leg and the hypotenuse.
- Enter the values - use any consistent unit of length. For Three Sides mode, verify the triangle inequality: the sum of any two sides must be greater than the third.
- Click Calculate - in Base and Area mode you get one height. In Three Sides mode you see all three altitudes h_a, h_b, h_c. In Right Triangle mode you see the altitude to the hypotenuse.
- Read the formula note - in Three Sides mode this shows the area calculated by Heron’s formula, which confirms the triangle is valid and shows the intermediate step.
- Try example links - each worked example below includes a pre-fill link so you can verify the results immediately.
Example Calculations
Example 1 - Base 8, Area 24
Find the height of a triangle with base 8 cm and area 24 sq cm.
Example 2 - Right triangle with sides 3, 4, 5
Find all three altitudes of the classic 3-4-5 right triangle.
Example 3 - Right triangle: leg 6, hypotenuse 10
Find the altitude to the hypotenuse of a right triangle with one leg 6 and hypotenuse 10.
Example 4 - Three sides 5, 12, 13
Find all three altitudes of a 5-12-13 right triangle (all three sides known).