Pythagorean Theorem Calculator
Find the missing side of a right triangle. Enter any two sides and get the third, with angle calculations.
Enter two sides and click Calculate.
How Does the Formula Work?
The Pythagorean theorem calculator finds the missing side of any right triangle using the formula a² + b² = c², where c is the hypotenuse (the longest side, opposite the right angle) and a and b are the two legs. Enter any two sides and the calculator computes the third, along with both acute angles (using inverse trigonometry), the triangle's area (½ × a × b), and perimeter (a + b + c). This calculator supports all three solving modes: find the hypotenuse from two legs, or find either leg from the other leg and the hypotenuse.
Hypotenuse: c = √(a² + b²)
Leg: a = √(c² − b²) or b = √(c² − a²)
Angles: A = arctan(a/b), B = arctan(b/a), A + B = 90°
Area = ½ × a × b | Perimeter = a + b + c
Example: a=3, b=4 → c=5, A=36.87°, B=53.13°
History and Significance
The theorem carries the name of the Greek thinker Pythagoras, who lived from about 570 to about 490 BC, although no proof by him is recorded. The relation itself is older: Plimpton 322, a clay tablet from the Old Babylonian period now at Columbia University, is a table of right triangles with whole number sides, written more than a thousand years before Pythagoras. Euclid's Elements proves the theorem in Book I, Proposition 47 by comparing the areas of the squares drawn on the three sides. James A. Garfield, then a member of the US Congress and later President, published a proof based on a trapezoid in 1876.
Pythagorean Triples
Pythagorean triples are sets of three positive integers where a² + b² = c². The most famous include 3-4-5, 5-12-13, 8-15-17, 7-24-25, 20-21-29, and 9-40-41. Any multiple of a triple is also a triple: 6-8-10, 9-12-15, 12-16-20 are all multiples of 3-4-5. Every primitive triple (one whose three numbers share no common factor) comes from two whole numbers m > n > 0 that have no common factor and are not both odd: a = m² − n², b = 2mn, c = m² + n². For m=2, n=1: a=3, b=4, c=5. For m=3, n=2: a=5, b=12, c=13. Carpenters and builders use the 3-4-5 rule to verify right angles; measure 3 feet along one wall, 4 feet along the other, and if the diagonal is exactly 5 feet, the corner is perfectly square.
Construction and Architecture
The Pythagorean theorem is used daily in construction. Laying out building foundations requires precise right angles; the 3-4-5 method (or scaled versions like 6-8-10 or 9-12-15) checks them with nothing more than a tape measure. Roof pitch calculations use the theorem to find rafter length: if a roof rises 4 feet over a 12-foot horizontal run, the rafter length is √(4² + 12²) = √160 ≈ 12.65 feet. Staircase design requires calculating the stringer length from rise and run. Diagonal bracing in wall framing uses the theorem to cut braces to the correct length. Tile layout on diagonal patterns requires the theorem to calculate spacing. Even hanging a picture level on a wall can involve the theorem when measuring diagonal distances.
Navigation and Surveying
Over short distances, where the ground can be treated as flat, the straight line distance between two points is √(Δx² + Δy²) of their east and north offsets. A surveyor measuring the width of a river without crossing it can set out a right triangle with a baseline along the bank. In these uses the calculator gives a quick check of a calculation done by hand.
Everyday Applications
Will a 65-inch TV fit in a space that is 55 inches wide and 32 inches tall? TV sizes are measured diagonally, so the actual width and height depend on the aspect ratio. For a 16:9 TV, the screen is approximately 56.7 × 31.9 inches; it would just barely not fit width-wise. Moving furniture through doorways? If a sofa is 90 inches long and a doorway is 36 × 80 inches, the diagonal is √(36² + 80²) ≈ 87.7 inches; the sofa will not fit diagonally through the door. Landscaping often involves right triangles: the diagonal of a rectangular garden measuring 20 × 30 feet is √(400 + 900) = √1300 ≈ 36.06 feet. This calculator turns these practical geometry problems into instant answers.
The Pythagorean theorem is where abstract mathematics meets concrete reality. This calculator bridges that gap instantly; from construction site measurements to physics homework, from TV fitting to navigation calculations. Enter two sides, click Calculate, and the complete geometry of any right triangle is revealed.
From Babylonian clay tablets to the coordinates on a screen, the same relation between the three sides is still in daily use, and this calculator puts it a single click away.
Tips & Recommendations
Verify right angles in construction: 3 units + 4 units + 5 diagonal = perfect 90°.
TV inches = diagonal. Use this to find actual width and height for your space.
The hypotenuse is ALWAYS the longest side. If not, your triangle isn't right-angled.
The two acute angles always sum to exactly 90°. Verify your results with this check.
Frequently Asked Questions
What is the Pythagorean theorem?
a² + b² = c²: the sum of squares of two legs equals the square of the hypotenuse in a right triangle.
How do I find the hypotenuse?
c = √(a² + b²). Enter both legs and select 'Solve for c'.
How do I find a leg?
a = √(c² − b²). Enter the other leg and hypotenuse, select 'Solve for a'.
What is the 3-4-5 rule?
A right triangle with sides 3, 4, and 5. Used in construction to verify right angles.
Do the angles always add to 90°?
The two acute angles always sum to 90° (the right angle provides the other 90° for the 180° total).
Recent Calculations
No calculations yet
Sources
- Euclid, Elements, Book I, Proposition 47, D. E. Joyce edition (Clark University): for a right triangle, the square built on the hypotenuse has the same area as the two squares built on the legs together, shown with areas of triangles and parallelograms
- Cuneiform Digital Library Initiative, Plimpton 322: an Old Babylonian clay tablet listing Pythagorean triples, held at the Rare Book and Manuscript Library, Columbia University
- Stanford Encyclopedia of Philosophy, Pythagoras: lived from about 570 to about 490 BCE; no evidence survives of a proof of the theorem by Pythagoras himself
- Scientific American, A Presidential Pythagorean Proof (Evelyn Lamb, 19 November 2012): James A. Garfield, then an Ohio congressman, published a proof built on a trapezoid in the New-England Journal of Education in 1876