In geometry, an altitude of a triangle is a line segment through a vertex and perpendicular to (i.e. forming a right angle with) a line containing the base (the opposite side of the triangle). This line containing the opposite side is called the extended base of the altitude. The intersection between the extended base and the altitude is called the foot of the altitude. The length of the altitude, often simply called the altitude, is the distance between the extended base and the vertex. The process of drawing the altitude from the vertex to the foot is known as dropping the altitude of that vertex. It is a special case of orthogonal projection.
Altitudes can be used to compute the area of a triangle: one half of the product of an altitude's length and its base's length equals the triangle's area. Thus the longest altitude is perpendicular to the shortest side of the triangle. The altitudes are also related to the sides of the triangle through the trigonometric functions.
In an isosceles triangle (a triangle with two congruent sides), the altitude having the incongruent side as its base will have the midpoint of that side as its foot. Also the altitude having the incongruent side as its base will form the angle bisector of the vertex.
It is common to mark the altitude with the letter h (as in height), often subscripted with the name of the side the altitude comes from.
In a right triangle, the altitude with the hypotenuse c as base divides the hypotenuse into two lengths p and q. If we denote the length of the altitude by hc, we then have the relation
For acute and right triangles the feet of the altitudes all fall on the triangle's interior or edge. In an obtuse triangle (one with an obtuse angle), the foot of the altitude to the obtuse-angled vertex falls on the opposite side, but the feet of the altitudes to the acute-angled vertices fall on the opposite extended side, exterior to the triangle. This is illustrated in the adjacent diagram: in this obtuse triangle, an altitude dropped perpendicularly from the top vertex, which has an acute angle, intersects the extended horizontal side outside the triangle.