This site is supported by donations to The OEIS Foundation.
Pythagorean theorem
Consider a right triangle, with short "leg" , long "leg" and hypotenuse , and have it stand on its short "leg" ;
Add a congruent triangle standing on its long "leg" , with each hypotenuse meeting at a common vertex;
By joining the top vertices of both triangles, you get a trapezium made up of three triangles;
The trapezium has base and parallel sides and , with area ;
The three triangles are our two former congruent triangles, each with area ;
And since the two acute angles of a right triangle are complementary;
The third triangle is a right triangle with both sides , and area ;
Equating the areas, we have
;
or
;
yielding^{[1]}
Pythagoras theorem

The Pythagorean theorem provides a way to calculate the length of the longest side of a right triangle (one with a right angle for one of the vertices) in the Euclidean plane if we only know the lengths of the two shorter sides.
Contents
A classic proof
The classic proof by Euclid is Proposition 47 of Book I of The Elements.^{[2]} It requires results from earlier in the book, like the triangle sideangle equality. Since we want to get to the numbertheoretic relevance of the theorem more quickly, we will instead present a proof that relies on much fewer geometrical axioms and theorems.
Theorem (Pythagorean theorem). (Pythagoras)
Given a right triangle with the two shorter sides (the "legs") being and , and the longest side (the hypotenuse) being , the equality holds. In other words, if and are known, then can be computed as .
Proof. [by dissection]^{[3]} (Bhāskara).
1. Draw a right triangle of whatever size you wish, the only constraint being that one of the angles must be precisely 90 degrees ( radians). Label the shorter sides and , and the longest side .
2. is a line segment: extend it units. (This can be accomplished with straightedge and compass by drawing a circle centered where meets with radius ).
3. Next, use the segment you just extended to construct a square with each side measuring , thus having area ; the triangle's area should be within the square's area.
4. Draw a line perpendicular to that touches where meets .
5. Extend by units (this is easy now thanks to the square).
6. Observe that the square now contains two smaller squares, as well as two nonsquare rectangles. The area of one square is , the area of the other is . Both rectangles have an area of . Therefore, .
7. Since the area of the triangle is and the combined area of the two rectangles is , this means we can easily break both rectangles into four triangles of the same size as our original triangle. While maintaining the size and shape of the larger square, rearrange the four triangles so that the shorter sides of each triangle are all on the perimeter of the larger square.
8. Note that this rearrangement has created a new square inside the larger square, and each side of the new square is the hypotenuse of one of the four triangles. Therefore, (the being the combined area of the four triangles, per Step 7). Using the equality obtained in Step 6, substitute to obtain . Obviously, cancels out , thus leaving us with as specified by the theorem.^{[4]} □
There are many other proofs of this theorem, and even a President of the United States has done one^{[1]}, and there is an entire book of different proofs.
Garfield's proof of the Pythagorean theorem
See (a stylized rendition of!) Garfield's proof at the top of this page. James Garfield, the 20^{ th} president of the United States, gave this proof (via trapezium) of the Pythagorean Theorem in 1876.
Pythagorean triples
One aspect of the Pythagorean theorem that is of particular interest to number theorists is those cases of where the equation has integer solutions; the three integers are then called "Pythagorean triples" (see A046083, A046084 and A009000).
Euclidean 2space and Euclidean distance
In Euclidean 2space, the Euclidean distance between two points with Cartesian coordinates and is defined as the length of the hypotenuse of the the right triangle with sides (or "legs") of length equal to and , i.e.
Euclidean 3space and Euclidean distance
In Euclidean 3space, we obtain the Euclidean distance between two points with Cartesian coordinates and by applying the Pythagorean theorem twice, giving
The definition for Euclidean distance in Euclidean space follows by applying the Pythagorean theorem times.
See also
 Fermat's last theorem ( has no solutions in positive integers for )
Notes
 ↑ ^{1.0} ^{1.1} James Garfield, the 20^{ th} president of the United States, gave this proof by dissection, which dissects a trapezium in one way only (i.e. into three triangles), of the Pythagorean Theorem in 1876. (Could there be an even more economical proof?)
 ↑ See Pythagoras's Theorem/Classic Proof on Proof Wiki.
 ↑ Bhāskara's proof by dissection dissects a square in two different ways, first into two squares and two rectangles, then into one square and four triangles. (Compare with Garfield's much more economical proof by dissection, which dissects a trapezium in one way only, i.e. into three triangles!)
 ↑ This proof is adapted from the one given in K. O. Friedrichs, From Pythagoras to Einstein Washington D. C.: Mathematical Association of America (1965): 7  8. Some details have been spelled out more, others deemphasized, but the basic approach is exactly the same.
External links
 A. Bogomolny, Pythagorean Theorem and its many proofs, from Interactive Mathematics Miscellany and Puzzles.