Pythagorean theorem

The Pythagorean theorem is a central result of Euclidean geometry: in a right triangle, the sum of the squares of the two legs equals the square of the hypotenuse, written a^2 + b^2 = c^2. It provides a way to calculate unknown side lengths, underlies the distance formula in coordinate geometry, and has many geometric proofs. Although named for the ancient Greek mathematician Pythagoras, records show that the relationship was known in earlier civilizations.

Last updated
12 October 2026
Confidence
High (99%)
Sources
6
Versions
1
This article was researched and drafted with AI assistance and checked by an automated review pass. It is not guaranteed to be accurate — verify important facts against the references below.

Statement and geometric meaning

In a right triangle, the two sides that meet at the 90-degree angle are called the legs; the side opposite that angle is the hypotenuse. If the leg lengths are a and b and the hypotenuse has length c, the theorem states a^2 + b^2 = c^2. Geometrically, the area of the square built on the hypotenuse equals the sum of the areas of squares built on the two legs. The relation applies to lengths in a Euclidean plane and depends on the triangle being right-angled.

Using the relation

The theorem can be rearranged to find a missing side: for example, c = sqrt(a^2 + b^2) when the hypotenuse is unknown. A triangle with legs 3 and 4 has hypotenuse 5 because 3^2 + 4^2 = 9 + 16 = 25 = 5^2. Whole-number side lengths that satisfy the relation, such as 3, 4, and 5, are called Pythagorean triples. The converse also holds: if the side lengths of a triangle satisfy a^2 + b^2 = c^2, where c is the longest side, then the angle opposite c is a right angle.

Proofs and extensions

The theorem has many proofs, including demonstrations that rearrange areas and arguments based on similar triangles. Euclid's Elements gives a geometric proof in Book I, Proposition 47, by comparing the areas of figures constructed on the three sides. The theorem is one case of a broader relationship among the sides and angles of triangles: the law of cosines reduces to a^2 + b^2 = c^2 when the included angle is 90 degrees. In Cartesian coordinates, applying the theorem to horizontal and vertical differences gives the Euclidean distance formula between two points, d = sqrt((x2 - x1)^2 + (y2 - y1)^2).

History

The familiar name links the theorem to Pythagoras, who lived in the sixth century BCE, but the mathematical relationship is older than the Greek tradition. Babylonian tablets from roughly 1900–1600 BCE show knowledge of numerical relationships involving right triangles. Related procedures and proofs also appear in ancient Indian and Chinese mathematical traditions. Euclid's Elements preserves a systematic Greek proof, but the historical evidence does not establish that Pythagoras himself discovered or first proved the theorem.

Importance

By connecting perpendicular side lengths to a diagonal, the theorem is useful in geometry, measurement, surveying, construction, and coordinate-based calculations. It is also a foundational result for later study of distance, trigonometry, and analytic geometry. Its many distinct proofs make it a longstanding example of how one mathematical statement can be established through different lines of reasoning.

Key facts

Formula
For legs a and b and hypotenuse c of a right triangle, a^2 + b^2 = c^2.
Converse
If a triangle's side lengths satisfy the equation with c the longest side, the angle opposite c is 90 degrees.
Example
3, 4, and 5 form a Pythagorean triple because 3^2 + 4^2 = 5^2.
Historical record
The relationship was known in ancient Babylonian mathematics before the era of Pythagoras.

Ask about this article

Answers use only “Pythagorean theorem” and its references, with citations.

References

  1. 1.
    The Pythagorean Theorem

    University of Utah, Math 1010 Online · other · reliability: high · retrieved 12 October 2026

    Supports: Statement, converse, area-based proof, and connection to distance in Cartesian coordinates.

  2. 2.
    3.4 Solve Geometry Applications: Triangles, Rectangles, and the Pythagorean Theorem

    OpenStax, Rice University · other · reliability: high · retrieved 12 October 2026

    Supports: Definitions of right-triangle legs and hypotenuse, the theorem's formula, and worked applications for finding side lengths.

  3. 3.
    Pythagorean theorem Definition & History

    Encyclopaedia Britannica · encyclopedia · reliability: high · retrieved 12 October 2026

    Supports: Definition, Euclid's proof, earlier Babylonian evidence, and historical context for the theorem's traditional name.

  4. 4.
    Pythagorean Theorem

    Wolfram MathWorld · other · reliability: high · retrieved 12 October 2026

    Supports: The theorem's statement, proof traditions, generalization, and evidence of pre-Greek uses.

  5. 5.
    Proposition 47 (Euclid's Elements, Book I)

    Euclid's Elements online, Clark University (David E. Joyce) · other · reliability: high · retrieved 12 October 2026

    Supports: Primary mathematical text: Euclid's geometric statement and proof that the square on the hypotenuse equals the sum of the squares on the legs.

  6. 6.
    Pythagoras's theorem in Babylonian mathematics

    MacTutor History of Mathematics, University of St Andrews · other · reliability: high · retrieved 12 October 2026

    Supports: Historical discussion of Old Babylonian tablets and numerical procedures related to right-triangle side relationships.

References are suggested by the research engine and may be incomplete. Unverified URLs are omitted rather than guessed.

Article history

  1. Version 112 October 2026 · EditorCreated by Zapia