Pythagorean Theorem Calculator
Enter two sides and click Calculate.
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). The Pythagorean theorem is arguably the most famous equation in all of mathematics — discovered independently by civilizations across the ancient world and still used daily by engineers, architects, carpenters, surveyors, and students. 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 is named after the Greek mathematician Pythagoras (circa 570-495 BC), though evidence suggests Babylonian mathematicians knew the relationship at least 1,000 years earlier — a clay tablet known as Plimpton 322 (circa 1800 BC) lists Pythagorean triples. Ancient Indian mathematicians documented the theorem in the Sulba Sutras (circa 800-500 BC), and Chinese mathematicians proved it in the Zhoubi Suanjing (circa 1046-256 BC). There are over 400 known proofs of the Pythagorean theorem — more than any other theorem in mathematics. The most elegant include Euclid's proof using similar triangles, the proof by rearrangement attributed to the Chinese, and US President James Garfield's 1876 proof using a trapezoid. Einstein reportedly called it the most beautiful theorem in mathematics.
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. The formula for generating all primitive triples uses two integers m and n where m is greater than n: 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) has been used for thousands of years. 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
Surveyors and navigators use the Pythagorean theorem constantly. GPS distance calculations between two points on a flat surface use the theorem (with latitude and longitude converted to meters). A surveyor measuring the distance across a river without crossing it can use a right triangle: measure a baseline along the bank and the angle to a point across, then calculate. Pilots use the theorem for descent calculations: if an aircraft is at 10,000 feet altitude and needs to reach a runway 30 miles away, the descent angle involves Pythagorean calculations. Maritime navigation uses the theorem to calculate distance to shore from radar bearings. In all these applications, this calculator provides quick verification of manual calculations.
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 ancient Babylon to modern GPS, the Pythagorean theorem has been humanity's most enduring mathematical tool for over 3,800 years. This calculator continues that tradition — making the geometry of right triangles accessible to everyone with a single click.
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