{
  "id": "right-triangle",
  "title": "Right Triangle",
  "lang": "en",
  "source_lang": "en",
  "summary": "A right triangle has one 90-degree angle; its sides obey the Pythagorean theorem and provide the basic ratios of trigonometry.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Right-angled triangle",
    "Rectangular triangle"
  ],
  "generated_at": "2026-11-03",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/right-triangle/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/right-triangle/",
      "json": "https://aiwiki.page/zh/right-triangle.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A right triangle is a triangle with one angle equal to \\(90^\\circ\\), or \\(\\pi/2\\) radians. In Euclidean geometry, its other two angles are acute and complementary: their sum is \\(90^\\circ\\). 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."
    },
    {
      "heading": "Notation and basic properties",
      "text": "Let \\(ABC\\) be a right triangle with its right angle at \\(C\\). Write\n\n\\[a=BC,\\qquad b=CA,\\qquad c=AB,\\]\n\nso that \\(a\\) and \\(b\\) are the legs and \\(c\\) is the hypotenuse. Let the angles at \\(A\\) and \\(B\\) be \\(\\alpha\\) and \\(\\beta\\). Then\n\n\\[\\alpha+\\beta=90^\\circ.\\]\n\nA nondegenerate Euclidean triangle cannot contain two right angles, because its three interior angles sum to \\(180^\\circ\\), and each must be positive.\n\nThe 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.\n\nTwo 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."
    },
    {
      "heading": "The Pythagorean theorem",
      "text": "The defining relation among the side lengths is\n\n\\[a^2+b^2=c^2.\\]\n\nThus, if the legs are known,\n\n\\[c=\\sqrt{a^2+b^2},\\]\n\nand if the hypotenuse and one leg are known,\n\n\\[a=\\sqrt{c^2-b^2}.\\]\n\nFor example, legs of lengths \\(3\\) and \\(4\\) give a hypotenuse of length \\(5\\), since \\(3^2+4^2=5^2\\).\n\nThe converse is equally important: if a triangle has positive side lengths \\(a,b,c\\) satisfying \\(a^2+b^2=c^2\\), then the angle opposite \\(c\\) is a right angle. This provides a way to establish perpendicularity from length measurements.\n\nMore generally, if \\(c\\) is the longest side of a triangle, comparison of \\(c^2\\) with \\(a^2+b^2\\) classifies its largest angle:\n\n- \\(c^2=a^2+b^2\\): the triangle is right.\n- \\(c^2<a^2+b^2\\): the triangle is acute.\n- \\(c^2>a^2+b^2\\): the triangle is obtuse.\n\nThese comparisons follow from the law of cosines, which generalizes the Pythagorean relation to arbitrary Euclidean triangles."
    },
    {
      "heading": "Trigonometric ratios",
      "text": "For the acute angle \\(\\alpha\\), the opposite leg is \\(a\\) and the adjacent leg is \\(b\\). The basic trigonometric functions are therefore\n\n\\[\\sin\\alpha=\\frac{a}{c},\\qquad \\cos\\alpha=\\frac{b}{c},\\qquad \\tan\\alpha=\\frac{a}{b}.\\]\n\nBecause 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.\n\nDividing the Pythagorean theorem by \\(c^2\\) gives the identity\n\n\\[\\sin^2\\alpha+\\cos^2\\alpha=1.\\]\n\nThe complementary angles also satisfy\n\n\\[\\sin\\alpha=\\cos\\beta, \\qquad \\cos\\alpha=\\sin\\beta.\\]\n\nIf the hypotenuse \\(c\\) and angle \\(\\alpha\\) are known, the legs are\n\n\\[a=c\\sin\\alpha,\\qquad b=c\\cos\\alpha.\\]\n\nIf both legs are known, the angle can be recovered using an inverse function:\n\n\\[\\alpha=\\arctan\\left(\\frac{a}{b}\\right).\\]\n\nRight-triangle definitions apply directly to acute angles. Definitions using a unit circle extend the trigonometric functions to arbitrary angles."
    },
    {
      "heading": "Area, altitude, and similarity relations",
      "text": "Since the legs are perpendicular, either can serve as the base while the other serves as the height. The area \\(K\\) is\n\n\\[K=\\frac{ab}{2}.\\]\n\nLet the altitude from \\(C\\) meet the hypotenuse at \\(D\\), and write\n\n\\[CD=h,\\qquad AD=p,\\qquad DB=q.\\]\n\nThen \\(p+q=c\\). 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\n\n\\[b^2=cp,\\qquad a^2=cq,\\qquad h^2=pq.\\]\n\nIn particular, the altitude is the geometric mean of the two hypotenuse segments.\n\nExpressing the area using the hypotenuse as the base gives\n\n\\[K=\\frac{ch}{2},\\]\n\nand hence\n\n\\[h=\\frac{ab}{c}.\\]\n\nAdding \\(b^2=cp\\) and \\(a^2=cq\\) produces\n\n\\[a^2+b^2=c(p+q)=c^2,\\]\n\nwhich is a similarity-based proof of the Pythagorean theorem."
    },
    {
      "heading": "Circumcircle and incircle",
      "text": "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\n\n\\[R=\\frac{c}{2}.\\]\n\nEquivalently, 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.\n\nThe median from the right-angle vertex to the hypotenuse consequently has length \\(c/2\\). The two legs themselves are altitudes, so the three altitudes intersect at the right-angle vertex.\n\nThe incircle is tangent to all three sides. If \\(r\\) is its radius and\n\n\\[s=\\frac{a+b+c}{2}\\]\n\nis the semiperimeter, the general triangle formula \\(K=rs\\) gives\n\n\\[r=\\frac{ab}{a+b+c} =\\frac{a+b-c}{2}.\\]\n\nThe second equality follows from \\(a^2+b^2=c^2\\)."
    },
    {
      "heading": "Special right triangles",
      "text": "Isosceles right triangle\n\nIf the legs are equal, the acute angles are both \\(45^\\circ\\). Its side lengths have the ratio\n\n\\[1:1:\\sqrt{2}.\\]\n\nA diagonal of a square divides it into two such triangles. For a fixed hypotenuse \\(c\\), the isosceles right triangle has the greatest possible area:\n\n\\[K\\leq\\frac{c^2}{4}.\\]\n\nEquality holds precisely when \\(a=b\\).\n\nThe 30–60–90 triangle\n\nBisecting an equilateral triangle by an altitude produces two right triangles with angles \\(30^\\circ\\), \\(60^\\circ\\), and \\(90^\\circ\\). Their side lengths, in the order opposite these angles, have ratio\n\n\\[1:\\sqrt{3}:2.\\]\n\nThus, the side opposite the \\(30^\\circ\\) angle is half the hypotenuse.\n\nInteger-sided right triangles\n\nA Pythagorean triple is a triple of positive integers \\((a,b,c)\\) satisfying \\(a^2+b^2=c^2\\). Examples include \\((3,4,5)\\), \\((5,12,13)\\), and \\((8,15,17)\\).\n\nEvery primitive Pythagorean triple—one whose three entries have no common divisor greater than \\(1\\)—can be written, after possibly interchanging the legs, as\n\n\\[a=m^2-n^2,\\qquad b=2mn,\\qquad c=m^2+n^2,\\]\n\nwhere \\(m>n>0\\) are coprime integers of opposite parity. Other triples are positive integer multiples of primitive ones. These triangles form a classical subject in number theory."
    },
    {
      "heading": "Coordinates and applications",
      "text": "In a Cartesian coordinate system, points\n\n\\[C=(0,0),\\qquad A=(b,0),\\qquad B=(0,a)\\]\n\nform a right triangle. The Pythagorean theorem then gives the distance formula between arbitrary points:\n\n\\[d=\\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.\\]\n\nMore generally, two nonzero vectors form perpendicular legs when their dot product is zero. For such vectors \\(\\mathbf{u}\\) and \\(\\mathbf{v}\\),\n\n\\[\\|\\mathbf{u}+\\mathbf{v}\\|^2 = \\|\\mathbf{u}\\|^2+\\|\\mathbf{v}\\|^2.\\]\n\nRight triangles are used to calculate heights, horizontal distances, slopes, diagonals, and perpendicular components. For example, on level ground, a horizontal distance \\(d\\) and an angle of elevation \\(\\theta\\) determine the height difference\n\n\\[H=d\\tan\\theta.\\]\n\nThe 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."
    },
    {
      "heading": "Historical development and geometric scope",
      "text": "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.\n\nAlthough 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.\n\nThe 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 \\(R\\), a geodesic right triangle with side lengths \\(a,b\\) adjacent to the right angle and opposite side \\(c\\) satisfies\n\n\\[\\cos\\left(\\frac{c}{R}\\right) = \\cos\\left(\\frac{a}{R}\\right) \\cos\\left(\\frac{b}{R}\\right).\\]\n\nWhen all three sides are small relative to \\(R\\), expansion of the cosine terms recovers \\(c^2\\approx a^2+b^2\\) as a local approximation."
    }
  ],
  "links": [
    "euclidean-geometry",
    "pythagorean-theorem",
    "trigonometry",
    "triangle-similarity",
    "law-of-cosines",
    "trigonometric-functions",
    "inverse-function",
    "circle",
    "pythagorean-triple",
    "integer",
    "number-theory",
    "cartesian-coordinate-system",
    "euclidean-distance",
    "dot-product",
    "physics",
    "analytic-geometry",
    "euclids-elements",
    "pythagoras",
    "non-euclidean-geometry"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}