Pythagorean Theorem Calculator
Calculate any side of a right triangle from the other two. Enter two sides and get the third with the formula a² + b² = c².
Fill in two fields to calculate the third.
The Theorem
For any right triangle, the relation a² + b² = c² holds: squaring the hypotenuse c gives the same result as adding the squares of the legs a and b. The legs are the two sides that form the right angle, while the hypotenuse sits opposite that angle and is always the longest side.
The Pythagorean theorem
In a right triangle (one 90° angle), a² + b² = c², where a and b are the legs and c is the hypotenuse — the side opposite the right angle. The converse also holds: if a² + b² = c², the triangle is right-angled. Example: legs 3 and 4 give c = √(9 + 16) = √25 = 5. The relation was known to pre-Greek civilizations (Babylonian tablet Plimpton 322, Egyptian rope-stretchers) but Pythagoras of Samos (~530 BC) is credited with a general proof; more than 400 distinct proofs are documented today. Pythagorean triples are integer solutions: (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25), (20, 21, 29). A generalisation to any triangle is the law of cosines: c² = a² + b² − 2ab·cos C, which reduces to Pythagoras when C = 90°. The 2D Euclidean distance d = √((x₂−x₁)² + (y₂−y₁)²) is Pythagoras applied to coordinates.
Applications
Construction (the 3-4-5 square method to set walls and foundations at right angles), surveying, navigation, GPS triangulation, computer graphics (vector lengths and collision detection), screen-diagonal computation and any physics problem involving perpendicular components (force vectors, projectile motion).
FAQ
Does it work for any triangle? No — only right triangles. For others use the law of cosines.
Which side is the hypotenuse? The longest side, opposite the 90° angle. It is always c in the formula.
What is a Pythagorean triple? Three positive integers (a, b, c) with a² + b² = c². The smallest is (3, 4, 5); multiples like (6, 8, 10) also count.
Did Pythagoras really discover it? The relation was used centuries earlier in Babylonia and Egypt; Pythagoras (or his school) is credited with the first general proof in the Greek tradition.
The Pythagorean theorem in practice
Few geometry relationships get as much mileage as a² + b² = c². It shows up on the school test and turns up again when you're doing a job around the house. What it does is tie together the three sides of a right triangle, and this tool finds any one of those sides once you already have the other two.
There are two paths. Give it the two legs and it finds the hypotenuse; give it one leg and the hypotenuse and it returns the missing side. That covers maths exercises and also real problems, like checking whether a corner came out square or measuring the diagonal of a room.
Nothing needs installing, since the calculation happens right in the browser. Use it as a reference for studying, teaching, or just getting through a problem that involves right angles.
Frequently asked questions
Do I fill in two fields or all three?
Why do I get an error when the hypotenuse is smaller than a leg?
How precise is the result, and what unit is it in?
Related Tools
3D Distance Calculator
Compute Euclidean distance between two 3D points.
Rectangle Area Calculator
Calculate the area of a rectangle from its base and height. Formula: A = b × h. Instant result.
Pascal Triangle Row Calculator
Generate any row of Pascal triangle by entering the row number. See the binomial coefficients instantly — useful for combinatorics, algebra and math study.
Truncated Cone Volume Calculator
Compute volume and lateral area of a truncated cone: V = (π·h/3)·(R²+r²+R·r). For containers and construction.
Heron Triangle Area Calculator
Computes triangle area from three sides using Heron formula with semi-perimeter and square root.
Effective Runway Slope
Calculate a runway's effective slope, S = (max elevation − min elevation) ÷ length · 100, from the highest and lowest elevations along the runway centerline and its length. The effective slope is the difference between the highest and lowest points of the longitudinal profile divided by total length — a global measure of the incline the aircraft faces. It feeds directly into the runway length correction (+10% length per 1% effective slope), since an uphill runway needs more takeoff acceleration distance. ICAO limits effective slope by runway code (typically 1-2% max for higher codes) and also limits local slopes and their rate of change for safety. Geometric design minimizes effective slope and smooths transitions, balancing earthwork and drainage. Enter the maximum and minimum elevations and the runway length.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.