A right triangle is a triangle with one angle equal to , or radians. In Euclidean geometry, its other two angles are acute and complementary: their sum is . The two sides that meet at the right angle are called legs or catheti; the side opposite it is the hypotenuse, which is always the longest side. Right triangles connect geometric measurement, the Pythagorean theorem, and trigonometry.
Notation and basic properties
Let be a right triangle with its right angle at . Write
so that and are the legs and is the hypotenuse. Let the angles at and be and . Then
A nondegenerate Euclidean triangle cannot contain two right angles, because its three interior angles sum to , and each must be positive.
The right angle is usually indicated in a diagram by a small square. The hypotenuse is identified by its position opposite this angle, not by whether it appears horizontal, vertical, or sloping on the page.
Two right triangles are similar if one acute angle of one equals an acute angle of the other. Consequently, a single acute angle determines a right triangle's shape, while an additional side length determines its size. Two right triangles are congruent if their hypotenuses and one pair of corresponding legs are equal.
The Pythagorean theorem
The defining relation among the side lengths is
Thus, if the legs are known,
and if the hypotenuse and one leg are known,
For example, legs of lengths and give a hypotenuse of length , since .
The converse is equally important: if a triangle has positive side lengths satisfying , then the angle opposite is a right angle. This provides a way to establish perpendicularity from length measurements.
More generally, if is the longest side of a triangle, comparison of with classifies its largest angle:
- : the triangle is right.
- : the triangle is acute.
- : the triangle is obtuse.
These comparisons follow from the law of cosines, which generalizes the Pythagorean relation to arbitrary Euclidean triangles.
Trigonometric ratios
For the acute angle , the opposite leg is and the adjacent leg is . The basic trigonometric functions are therefore
Because similar triangles have equal corresponding side ratios, these values depend only on the angle, not on the triangle's size. This is the geometric basis of right-triangle trigonometry.
Dividing the Pythagorean theorem by gives the identity
The complementary angles also satisfy
If the hypotenuse and angle are known, the legs are
If both legs are known, the angle can be recovered using an inverse function:
Right-triangle definitions apply directly to acute angles. Definitions using a unit circle extend the trigonometric functions to arbitrary angles.
Area, altitude, and similarity relations
Since the legs are perpendicular, either can serve as the base while the other serves as the height. The area is
Let the altitude from meet the hypotenuse at , and write
Then . The altitude divides the original triangle into two smaller right triangles, each similar to the original and to the other. Their corresponding side ratios yield
In particular, the altitude is the geometric mean of the two hypotenuse segments.
Expressing the area using the hypotenuse as the base gives
and hence
Adding and produces
which is a similarity-based proof of the Pythagorean theorem.
Circumcircle and incircle
The midpoint of the hypotenuse is equidistant from all three vertices. It is therefore the center of the triangle's circumcircle, and the circumradius is
Equivalently, the hypotenuse is a diameter of the circumcircle. Thales' theorem states that an angle subtended by a diameter at any other point on the circle is a right angle. This gives both a characterization and a construction of right triangles: choose the endpoints of a diameter and any third point elsewhere on the circle.
The median from the right-angle vertex to the hypotenuse consequently has length . The two legs themselves are altitudes, so the three altitudes intersect at the right-angle vertex.
The incircle is tangent to all three sides. If is its radius and
is the semiperimeter, the general triangle formula gives
The second equality follows from .
Special right triangles
Isosceles right triangle
If the legs are equal, the acute angles are both . Its side lengths have the ratio
A diagonal of a square divides it into two such triangles. For a fixed hypotenuse , the isosceles right triangle has the greatest possible area:
Equality holds precisely when .
The 30–60–90 triangle
Bisecting an equilateral triangle by an altitude produces two right triangles with angles , , and . Their side lengths, in the order opposite these angles, have ratio
Thus, the side opposite the angle is half the hypotenuse.
Integer-sided right triangles
A Pythagorean triple is a triple of positive integers satisfying . Examples include , , and .
Every primitive Pythagorean triple—one whose three entries have no common divisor greater than —can be written, after possibly interchanging the legs, as
where are coprime integers of opposite parity. Other triples are positive integer multiples of primitive ones. These triangles form a classical subject in number theory.
Coordinates and applications
In a Cartesian coordinate system, points
form a right triangle. The Pythagorean theorem then gives the distance formula between arbitrary points:
More generally, two nonzero vectors form perpendicular legs when their dot product is zero. For such vectors and ,
Right triangles are used to calculate heights, horizontal distances, slopes, diagonals, and perpendicular components. For example, on level ground, a horizontal distance and an angle of elevation determine the height difference
The same geometry underlies the resolution of forces and velocities into perpendicular components in physics, as well as many calculations in surveying, construction, and analytic geometry.
Historical development and geometric scope
Right-triangle calculations appear in ancient mathematical traditions, including Babylonian numerical work and Indian geometric texts. In ancient Chinese mathematics, the relation between the legs and hypotenuse was expressed through the gougu rule. Euclid's Elements gives proofs of the Pythagorean theorem and its converse in Book I, Propositions 47 and 48.
Although the theorem bears the name of Pythagoras, knowledge of the numerical relation predates him. The history of the relation, its proofs, and its applications extends across multiple mathematical cultures.
The formulas above assume a flat Euclidean plane. In non-Euclidean geometry, a triangle may still have a right angle, but its side relations and angle sum differ. For example, on a sphere of radius , a geodesic right triangle with side lengths adjacent to the right angle and opposite side satisfies
When all three sides are small relative to , expansion of the cosine terms recovers as a local approximation.