a² + b² = c² — the formula every right triangle obeys
Reviewed by [email protected], Geometry Calculator Developer & Online Math Educator Last updated May 21, 2026
The Pythagorean theorem states that in any right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides. Discovered by ancient Greeks ~2500 years ago, it remains the single most-used formula in geometry — for distance calculations, navigation, construction, computer graphics, and far beyond. The formula a² + b² = c² is short to memorize but limited to right triangles only.
| Name | Formula | Notes |
|---|---|---|
| Standard Form | a² + b² = c² |
a, b = the two legs (sides adjacent to the right angle); c = hypotenuse (opposite the right angle, always the longest side). |
| Find the Hypotenuse | c = √(a² + b²) |
When both legs are known. Always positive (lengths are non-negative). |
| Find a Leg (given hypotenuse + other leg) | a = √(c² − b²) |
Subtract the squares, then take the square root. Requires c > b. |
| Pythagorean Identity Check | a² + b² ≟ c² |
For testing whether 3 given side lengths form a right triangle. If true, triangle is right; if not, it's acute or obtuse. |
| Distance Formula (2D) | d = √((x₂−x₁)² + (y₂−y₁)²) |
Pythagoras applied to coordinate geometry — the legs are horizontal Δx and vertical Δy. See distance & midpoint formula page. |
| Distance Formula (3D) | d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²) |
3D extension. Same idea: sum of squared component differences, then square root. |
| Pythagorean Triples | a:b:c = 3:4:5 / 5:12:13 / 8:15:17 / 7:24:25 / 20:21:29 |
Side-length ratios that always satisfy Pythagoras with integer values. Useful for quick checks and common test problems. |
| Multiples of Triples | k·a, k·b, k·c |
Any positive multiple k of a Pythagorean triple is also a Pythagorean triple: 6-8-10, 9-12-15, 30-40-50 all work. |
| Generating Triples (Euclid) | a = m²−n², b = 2mn, c = m²+n² |
For any positive integers m > n, this generates a Pythagorean triple. (m=2,n=1) → 3,4,5; (m=3,n=2) → 5,12,13. |
| Converse Theorem | If a² + b² = c² → triangle is right |
The reverse direction: if the side-square equation holds, the angle opposite c MUST be 90°. |
The validity of the relationship between the sides of a right triangle can be demonstrated through multiple rigorous methods. One of the most intuitive approaches is the rearrangement proof, which relies on area conservation. Consider four identical right triangles arranged inside a larger square. In the first configuration, the triangles are positioned such that their hypotenuses form a smaller square in the center. The area of this central square is equal to the sum of the areas of the two smaller squares formed by the legs when the triangles are rearranged differently within the same bounding square. This geometric manipulation visually confirms that the area associated with the longest side equals the combined areas of the other two.
An algebraic proof offers a different perspective by utilizing similar triangles. By drawing an altitude from the right angle vertex to the hypotenuse, the original triangle is divided into two smaller triangles that are similar to the parent triangle and to each other. Using the ratios of corresponding sides, one can derive equations that, when summed, yield the standard formula. Another common algebraic method involves constructing squares on each side of the triangle. The area of the square on the hypotenuse is shown to be exactly equal to the sum of the areas of the squares on the two legs. These proofs establish the theorem not merely as a rule for calculation, but as a fundamental property of Euclidean geometry.
Understanding these derivations helps clarify why the theorem holds true specifically for right triangles. The converse of Pythagorean theorem is also critical here; if the square of the longest side of any triangle equals the sum of the squares of the other two sides, then the triangle must contain a right angle. This bidirectional logic allows mathematicians and engineers to verify angular properties based solely on side measurements. Whether using visual rearrangements or algebraic manipulations involving similar triangles, the core principle remains consistent: the geometric integrity of the right triangle is defined by this precise mathematical equality.
Applying the formula requires identifying which sides correspond to the variables. In a right triangle, the hypotenuse is always the side opposite the right angle and is the longest side, denoted as c. The other two sides are called legs, labeled a and b. When solving for the hypotenuse, you square both legs, add them together, and take the square root of the result. For example, if leg a is 3 units and leg b is 4 units, the calculation proceeds as follows: 3 squared is 9, and 4 squared is 16. Adding these gives 25. The square root of 25 is 5. Thus, the hypotenuse measures 5 units. This specific set of integers (3, 4, 5) is known as a Pythagorean triple, where all three sides are whole numbers satisfying the equation.
Solving for a missing leg requires a slight variation in the algebraic steps. If the hypotenuse c is 10 and one leg a is 6, you must isolate the unknown leg b. First, square the known values: 10 squared is 100, and 6 squared is 36. Since the formula states a² + b² = c², you subtract the square of the known leg from the square of the hypotenuse. The equation becomes 36 + b² = 100. Subtracting 36 from both sides yields b² = 64. Taking the square root of 64 gives b = 8. Therefore, the missing leg is 8 units long. This process demonstrates how the theorem allows for flexible problem-solving depending on which dimension is unknown.
These examples illustrate the practical utility of the theorem in basic arithmetic. It is important to ensure that the triangle is indeed a right triangle before applying these calculations. If the calculated value for the hypotenuse is less than the longest given leg, or if the sum of the squares does not match, the initial assumption about the triangle's type may be incorrect. Mastery of these step-by-step procedures enables accurate determination of unknown distances in various geometric contexts.
The Pythagorean theorem extends far beyond classroom exercises, serving as a foundational tool in construction, navigation, and physics. In construction, carpenters and builders frequently use the theorem to ensure structures are square. By measuring diagonals across rectangular frames, workers can verify that corners are exactly 90 degrees. If the diagonal length matches the calculation derived from the width and height, the frame is properly aligned. This application is crucial for installing cabinets, laying foundations, and framing walls, ensuring stability and precision in built environments.
In navigation, the theorem calculates the shortest distance between two points, often referred to as the Euclidean distance. When plotting a course on a map, the direct path between two coordinates forms the hypotenuse of a right triangle created by north-south and east-west displacements. Pilots and sailors use this calculation to determine fuel requirements and travel time more accurately than following grid lines. Similarly, in physics, the theorem is essential for resolving vectors. When forces or velocities act at angles, they can be broken down into perpendicular components. The magnitude of the resultant vector is found using the theorem, allowing engineers to analyze structural loads and motion dynamics effectively.
These applications highlight the theorem's role in measuring spatial relationships. Whether determining the length of a ladder needed to reach a roof, calculating the displacement of a projectile, or verifying the alignment of a building, the ability to relate perpendicular dimensions to a diagonal distance is indispensable. The consistency of the mathematical relationship ensures reliable results across diverse fields, making it a universal standard for distance measurement in flat, two-dimensional space.
The formula for the Pythagorean theorem is a² + b² = c². In this equation, a and b represent the lengths of the two legs of a right triangle, while c represents the length of the hypotenuse, which is the side opposite the right angle and typically the longest side.
Although the theorem is named after the ancient Greek mathematician Pythagoras, evidence suggests that Babylonian and Indian mathematicians knew of the relationship centuries earlier. Pythagoras or his followers are credited with providing the first formal proof, establishing it as a fundamental principle of geometry.
No, the standard theorem applies exclusively to right triangles. However, the Law of Cosines generalizes this concept for any triangle. For obtuse triangles, the square of the longest side will be greater than the sum of the squares of the other two sides, indicating that the angle opposite that side is greater than 90 degrees.
Yes, the converse of Pythagorean theorem is a distinct form used to identify right triangles. It states that if a² + b² = c² holds true for a triangle's sides, then the triangle must contain a right angle. Additionally, in coordinate geometry, the theorem is used to calculate the distance between two points, known as the Euclidean distance formula.
Plug in your numbers and get instant step-by-step results.