Identify the side you need
A ladder, a screen diagonal or the straight connection between two points: a right angle makes Pythagoras the appropriate tool. The longest side lies opposite that angle. You work with squared lengths; taking the square root returns a length.
- Prerequisites: identify right triangles, convert length units, square numbers and take the positive square root.
- A sketch helps identify sides. An angle that merely looks right does not replace a stated or established right angle.
Legs, hypotenuse and squares
The sides adjacent to the right angle are legs a and b. The opposite side c is the hypotenuse and longest side. Letters can change: a problem may call the hypotenuse h or d. Identify it by its position relative to the right angle, not by its letter.
This equation applies to a nondegenerate right triangle in Euclidean geometry.[1]
Squares can be interpreted as areas: a square with side a has area a2. The two leg-square areas add to the hypotenuse-square area. Side lengths themselves do not satisfy . The original diagram above shows these three squares.
Trigonometry in a right triangle adds angle relationships to the side relation. Opposite and adjacent legs depend on the acute angle being considered. The hypotenuse remains opposite the right angle.[5]
A proof by rearranging areas
Take four congruent right triangles with legs a and b. Place them in the corners of a large square of side a + b, with their hypotenuses bounding a central quadrilateral. Each inner side has length c. The two acute angles of a right triangle sum to 90°, making the central quadrilateral a square.
The outer area consists of four triangle areas plus the central square c2.
Expand and subtract 2ab from both sides.
The proof relies on the right angle. An oblique triangle cannot be substituted under the same assumptions. Euclid’s classical proof in Book I, Proposition 47 uses another area construction. A proof establishes a general relation; one numerical example alone does not.[1]
Calculating a hypotenuse or a leg
For geometric lengths, use the positive square root.
To find c, add the leg squares. To find a leg, subtract the other leg square from the hypotenuse square. Subtracting lengths directly is incorrect. A negative indicates inconsistent side identification, data or right-angle assumptions. A zero radicand gives a degenerate triangle.
Convert every length to the same unit first. Squared lengths have the corresponding area unit; the square root returns a length unit. For and , use , not the number 50 alongside metres.
Three examples with different approaches
Diagonal of a rectangular panel
- Given
- Sides 1.20 m and 50 cm; adjacent sides are perpendicular.
- Find
- Calculate the diagonal.
Approach: The right-angle corner makes the diagonal the hypotenuse. . Convert the second length to metres.
Add squares; the diagonal is the hypotenuse.
Take the positive square root.
Result: The diagonal is 1.30 m long.
Check: It exceeds either side but is less than . Squaring returns 1.69 m2.
Finding a leg from a diagonal
- Given
- Hypotenuse 3.9 m; one leg 1.5 m.
- Find
- Find the other leg.
Approach: The hypotenuse is the longest side; select the positive length. . Subtract the known leg square from the hypotenuse square.
Take the positive square root.
Check using the original equation.
Result: The missing leg is 3.6 m long.
Check: Direct subtraction would be incorrect. The calculated leg remains shorter than the hypotenuse.
Two coordinate changes, one distance
- Given
- On a planar map with axes in metres, and .
- Find
- Find the straight-line distance and distinguish it from a route along the axes.
Approach: horizontal and vertical coordinate differences are perpendicular components. Initially retain their signs.
Subtract the starting coordinate from the ending coordinate.
Add the squares and choose the positive square root as a length.
Result: The straight-line distance is 10 m. Travelling horizontally and then vertically gives a 14 m route.
Check: The distance exceeds either component magnitude but is shorter than their sum. The negative vertical change describes direction only.
View diagram: coordinate differences form a right triangle
Straight-line distance and a route along the axes
Free with a Quanta account. Your download stays ready after registration.
Checking a right angle from side lengths
The converse also holds: if triangle sides satisfy with c the longest side, the angle opposite c is right. First check that positive lengths and the triangle inequality permit a nondegenerate triangle.[2]
Original check: 12, 35 and 37 satisfy and . The triangle is right. For 12, 35 and 36, the longest-side square is 1296 rather than 1369, so the relation does not hold.
Approximate equality from measured lengths does not prove an exactly right angle. Measurement uncertainty and rounding affect the squares. Use a tolerance consistent with measurement accuracy and state the result accordingly.
From a triangle to distance
Two points in Cartesian coordinates differ horizontally by Δx and vertically by Δy. These changes form perpendicular legs, so Euclidean distance is the square root of . Coordinate differences may be negative; their squares are nonnegative. Both axes must use the same spatial unit.[3]
For three perpendicular spatial axes, add under the square root.
Original points and give and , hence d = 10 length units. A cuboid with edges 2, 3 and 6 has space diagonal . Directly applying this formula to latitude and longitude on the curved Earth is not an exact distance calculation.
In a right regular square pyramid, the apex is vertically above the base centre. Let a denote the base side and k the edge from apex to a base vertex. Half the base diagonal is ; together with vertical height h and edge k, it forms a right triangle. The slant height of a triangular face is a different segment.[1]
The positive root gives vertical height; equality would make the pyramid degenerate.[1]
Original calculation: for and , . Check: . A pyramid-volume calculation needs this perpendicular height.[1]
Not every triangle is right
The cosine rule includes angle γ between sides a and b.[4]
For , gives Pythagoras as a special case. At other angles, the added term is generally nonzero. An equilateral triangle of side 2 has whereas . Merely knowing two sides does not establish a right angle.
Do not simplify to a + b. For the result is √2, not 2. Also round at the end; insufficient precision in intermediate values can distort the check.
The cosine rule extends the side calculation to a specified non-right angle. Use that relation when a right angle is not established; the appearance of a drawing is insufficient evidence.[4]
Five problems with solutions
Calculate · Foundation
Legs are 8 cm and 15 cm. Find the hypotenuse.
Show hint
Add squares, then take the square root.
Learning goal: Find hypotenuse from legs.
Show solution and calculation
Approach: The hypotenuse is opposite the right angle, so .
Substitution gives .
Check: . Taking a square root converts an area unit back to a length unit.
Calculate · Application
Hypotenuse 25 mm and one leg 7 mm. Find the other leg.
Show hint
Subtract the leg square from the hypotenuse square.
Learning goal: Find a missing leg.
Show solution and calculation
Approach: Rearrange for the missing positive length: .
Substitution gives .
Check: .
Calculate · Application
A rectangle has sides 90 cm and 1.20 m. Find the diagonal in metres.
Show hint
Convert 90 cm to 0.90 m first.
Learning goal: Calculate rectangle diagonal with unit conversion.
Show solution and calculation
Approach: The rectangle diagonal is the hypotenuse, so .
First convert .
Then .
Check: ; the diagonal is longer than either side.
Interpret · Application
A nondegenerate triangle has sides 5, 6 and 8 cm, with 8 cm largest. A sketch makes its opposite angle look right. Determine from lengths whether this is possible and whether that angle is acute or obtuse.
Show hint
Compare the longest-side square with the sum of the other squares.
Learning goal: Test right-angle geometry from side lengths.
Show solution and calculation
Approach: The converse theorem requires equality of squares for a right angle.
Here 64 exceeds 61, so the angle is obtuse rather than right.
The cosine rule confirms a negative cosine.
The lengths also satisfy the triangle inequality.
An unscaled sketch cannot replace the length test.
Error analysis · Application
A right-angled route runs 9 m east then 12 m north. Someone calls 21 m the direct distance by adding both segments. State path length and direct distance separately and explain the mistake.
Show hint
The hypotenuse joins start and finish rather than following the route.
Learning goal: Reject adding lengths in place of squares.
Show solution and calculation
Approach: Add lengths for the actual route, but add squared perpendicular components for the direct connection.
Path length is 21 m; distance is 15 m.
Check: the direct connection is shorter than the detour and longer than either component. The error confuses two distinct quantities.
What to remember for your solution
First establish the right angle and identify the opposite hypotenuse. Convert all lengths to one unit. Add squared legs to find the hypotenuse; subtract the known squared leg from the squared hypotenuse to find the other leg. The positive square root gives its length. Finally check by substitution and the triangle inequality.
Sources for this explanation
Quanta · Updated October 2, 2026
- Euclid, Elements I.47; edition and guide by David E. Joyce, Clark University
- Euclid, Elements I.48: Converse of the Pythagorean theorem
- OpenStax, College Algebra 2e §2.1: Coordinate systems and distance formula
- OpenStax, Algebra and Trigonometry 2e §10.2: Law of Cosines
- OpenStax, Algebra and Trigonometry 2e §7.2: Right Triangle Trigonometry
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 3 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An internal human subject review is documented for an earlier release of this page. That confirmation does not apply automatically to the revised explanation and new exercises.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added square-pyramid height with setup and check, connected relevant side, angle and volume relations and added a source on right-triangle trigonometry; preserved all prior exercises and figures.
- Added two exercises; labelled all five by task type, difficulty and learning goal.
- Clarified the introduction and prerequisites; added a third worked example, an original figure and a summary; made supplemental material selectively expandable.
Cite this reference page
Quanta. Pythagorean Theorem. Updated October 2, 2026. https://quanta-study.de/en/formula-sheet/pythagorean-theorem
When citing a specific scientific statement, also cite the specialist source linked to that statement.