Pythagorean theorem: formula, proof, and problems with solutions
Short answer The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c². Here a and b are the legs, and c is the hypotenuse (the side opposite the right angle).
The Pythagorean theorem is one of the fundamental theorems of geometry. On this page, you will find the formula, the proof, the converse theorem, a table of Pythagorean triples, typical problems with solutions, and examples of application in construction.
- pifagora_nav_1
- converse of the pythagorean theorem
- pythagorean triples
- problems on the topic "pythagorean theorem"
- applications of the pythagorean theorem
The Pythagorean theorem is perhaps one of the most famous theorems in mathematics in general and geometry in particular. In fact, despite being named after Pythagoras, it was known a thousand years before him.
The Pythagorean theorem states: in a right triangle, the square of the hypotenuse equals the sum of the squares of the legs. If the legs are a and b, and the hypotenuse is c, then:
We know that the quantity describes the area of a square with side a. That is, if we construct a square on leg a, a square on leg b, and a square on hypotenuse c, we obtain that the area of the square with side a plus the area of the square with side b equals the area of the square with side c. This is the so-called geometric explanation of the Pythagorean theorem: the sum of the areas of the squares built on the legs equals the area of the square built on the hypotenuse.
If instead of squares you construct any similar figures, say semicircles, then the sum of the areas built on the legs will still equal the area of the figure built on the hypotenuse.
Proof of the Pythagorean theorem
Today, more than 200 different proofs of the Pythagorean theorem are known. We will use one of them.
In order to prove the Pythagorean theorem, consider a right triangle with legs a, b and hypotenuse c.
Extend the right triangle with sides a, b, c to a square as follows: extend the leg of length a by a distance b.
We know:
- The area of the square with side a+b equals the square of the side (a+b).
- The square consists of four identical right triangles and an inner figure — a square. The area of each right triangle is half the product of its legs.
-
The inner figure — a square — has sides c.
Let us prove that the inner figure is a square.
All sides of the figure are equal — so it is a rhombus. If we prove that one angle is right, then all the other angles will also be right.
From the properties of a right triangle we know that the acute angles of a right triangle sum to 90°.
Since all the triangles shown are equal, and
Hence it follows that — this is the angle between the sides of the inner figure — the rhombus.
In our case it was proved that this rhombus is a square.
Transforming what was described above into a formula, we get:
Expand the square of a sum formula:
Cancel 2ab:
We get:
We have proved the Pythagorean theorem.
Converse of the Pythagorean theorem
The converse of the Pythagorean theorem allows you to determine whether a triangle is right-angled if you know the lengths of its sides.
Statement
If the square of one side of a triangle equals the sum of the squares of the other two sides, then the triangle is right-angled, and the right angle lies opposite the longest side.
If for the sides of a triangle with sides a, b, and c (where c is the longest side) the following equality holds:
then the triangle is right-angled and the angle between the sides a and b equals 90°.
Example. Check whether a triangle is right-angled
Given:
A triangle with sides 6, 7, and 9.
Solution:
The longest side is 9. Let us check whether the equality holds:
Since , the equality does not hold.
Answer: a triangle with sides 6, 7, and 9 is not right-angled.
Pythagorean triples
Pythagorean triples are sets of three natural numbers a, b, and c for which the equality a² + b² = c² holds. Such triples are useful to memorize: they are often encountered in problems and allow you to quickly find the sides of a right triangle without computation.
The most well-known Pythagorean triples:
| a | b | c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 6 | 8 | 10 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 9 | 12 | 15 |
| 9 | 40 | 41 |
| 12 | 16 | 20 |
| 15 | 20 | 25 |
| 20 | 21 | 29 |
The triple 3, 4, 5 is called the Egyptian triangle — it was used by the ancient Egyptians to construct right angles.
How to get new Pythagorean triples
If a Pythagorean triple is multiplied by any natural number k, a new Pythagorean triple is obtained. For example, from the triple (3, 4, 5) with k = 2 we get (6, 8, 10), and with k = 3 — (9, 12, 15).
Problems on the topic "Pythagorean theorem"
Egyptian triangle
Given:
A right triangle with legs 3 and 4.
Required to find its hypotenuse.
Solution:
Denote the hypotenuse as c and use the Pythagorean theorem: the sum of the squares of the legs equals the square of the hypotenuse:
Answer: the hypotenuse of a right triangle with legs 3 and 4 equals 5.
A right triangle with sides 3, 4, and 5 is called the Egyptian triangle.
Pythagorean triple
Given:
The hypotenuse is 13, and one of the legs is 12.
Required to find the second leg.
Solution:
Denote the second leg as a and again use the Pythagorean theorem: the sum of the squares of the legs equals the square of the hypotenuse:
Answer: the second leg a of a right triangle with hypotenuse 13 and one leg 12 equals 5.
Note that in the first and second examples the sides of the triangles turned out to be whole numbers. Such numbers, which satisfy the Pythagorean theorem, are called Pythagorean triples.
Find the hypotenuse
Given:
A right triangle with legs 6 and 8.
Required to find the hypotenuse.
Solution:
Denote the hypotenuse as c and apply the Pythagorean theorem:
Answer: the hypotenuse equals 10.
Find a leg
Given:
A right triangle with hypotenuse 10 and leg 6.
Required to find the second leg.
Solution:
Denote the second leg as b and apply the Pythagorean theorem:
Answer: the second leg equals 8.
Isosceles trapezoid
Given:
An isosceles trapezoid. The top base is 4, the lateral side is 10, the bottom base is 20.
Required to find the area of the trapezoid S.
Solution:
Denote the angles of the trapezoid by points A, B, C, D. From points B and C, drop perpendiculars to side AD at points E and K respectively.
Consider the quadrilateral BCKE. This quadrilateral is a rectangle. Sides BC and EK are mutually parallel, and sides BE and CK are also mutually parallel, and one of the angles of the rectangle BCKE is 90°. This proves that the quadrilateral BCKE is a rectangle.
In a rectangle, opposite sides are equal. If segment BC equals 4, then EK also equals 4.
Since our trapezoid is isosceles, the left and right triangles are equal to each other, because they have equal legs and equal hypotenuses. By the criteria for congruence of right triangles they are equal. This means that segments AE and KD are equal to each other.
Segment AD is 20, segment EK is 4. Hence, for the segments (AE+KD) there remains . Hence each of them equals 8.
Consider any of the triangles, for example ABE. It is a right triangle. One of the legs equals 8, and the hypotenuse equals 10.
By the Pythagorean theorem we can find BE. The sum of the squares of the legs equals the square of the hypotenuse:
Thus we have found the height of the trapezoid.
Now we can find the area of the trapezoid S.
The area of the trapezoid equals the half-sum of the bases multiplied by the height of the trapezoid.
Answer: the area of the trapezoid S equals 72.
Applications of the Pythagorean theorem
The most frequent application of the Pythagorean theorem can be seen in construction. Modern laser rangefinders have a built-in function that indirectly determines the length of the third side of a triangle when measuring two other sides.
Let us consider two theoretical examples where one needs to calculate a roof structure, and in the other we will learn to position the walls of a house relative to each other at an angle of 90°.
Calculation of the roof rafter system
The problem is extremely simplified for exact calculations of the roof rafter system, but it is clear enough to convey the principles of calculation using the Pythagorean theorem.
Given:
The distance between the mauerlat (M) and the ledger (L) (they lie on the walls) is known and equals 5 meters.
The roof is covered with metal tiles, whose minimum recommended slope angle is 22.5°.
The post (h) is positioned strictly perpendicular to the ledger (L).
Required to find the length of the rafter (g) and the height of the post (h).
Solution:
To find the height of the post (h), one can apply the law of sines. To do this, one needs to find the angle opposite the known side. Knowing that the sum of the angles of a triangle is 180°, we calculate the angle opposite the known side ML:
Now we substitute the known values into the formula for determining the height of the post (h) using the law of sines:
One can also find the length (g) using the law of sines, but we are interested in the Pythagorean theorem.
Therefore, knowing that the square of the hypotenuse (in our case this is g) equals the sum of the squares of the legs (in our case these are h and the distance between points ML), we obtain:
Substituting the previously calculated and known values into the formula, we get:
Answer: the obtained values are measured in meters. In construction, rounding such parts to millimeters is more than accurate. Therefore, rounding the values of the rafter g and the post h, we get:
мм
мм
Egyptian triangle
Another example of the practical application of the Pythagorean theorem in construction is the use of the Egyptian triangle.
To lay out a 90° angle on a flat surface, one needs to take a rope and mark three distances on it: 3, 4, 5. It does not matter in what units the segments are measured; perhaps these units of measurement will be invented by you.
Join the rope into a triangle, as shown in the image, and stretch the sides of the resulting triangle.
The angle between the sides 3, 4 will always be 90°. Using it, one can lay out the walls or the foundation of a future house.
Online Pythagorean theorem calculator
Enter two known values — the calculator will find the third using the Pythagorean theorem. Both integer and decimal numbers are supported.
About the author and verification
The material was prepared by Alexey Pavlov, a mathematics teacher with over 10 years of experience in school and tutoring. All formulas, proofs, and problems have been tested in practice while preparing students for the OGE and EGE. The Pythagorean theorem appears in OGE and EGE tasks every year — both in the basic and in the profile part.
Frequently asked questions about the Pythagorean theorem
How is the Pythagorean theorem stated?
What is the Egyptian triangle?
What Pythagorean triples exist?
Where is the Pythagorean theorem applied?
How do you find a leg using the Pythagorean theorem?
What is the hypotenuse by the Pythagorean theorem?
How do you find a leg using the Pythagorean theorem?
For which triangles does the Pythagorean theorem work?
📚 Read also:
Compiled by: Alexey Pavlov, mathematics teacher. Source: standard school geometry curriculum, materials for the OGE and EGE preparation. Last updated: 11.10.2026





