Pythagorean Theorem Calculator
Scale relative to inputs
Step-by-Step Solution
Recent Calculations
- No history yet.
Pythagorean Theorem Calculator
Featured Snippet Optimization (Position Zero):
Include a direct, bolded definition in your introduction: “The Pythagorean theorem states that in a right-angled triangle, the square of the hypotenuse (the longest side) is equal to the sum of the squares of the other two sides ($a^2 + b^2 = c^2$).” Featured Snippet Optimization (Position Zero):
: How to Use This Calculator
- Select Mode: Choose to find the hypotenuse, a missing leg, or the distance between two coordinate points.
- Input Values: Enter the known lengths or X/Y coordinates.
- Choose Precision: Select decimal precision (e.g., 2, 4, or exact square root).
- View Results: The calculator instantly provides the result, an interactive diagram, and step-by-step mathematical working.
The Comprehensive Guide to the Pythagorean Theorem
What is the Pythagorean Theorem?
The Pythagorean Theorem is one of the most fundamental and widely used principles in all of geometry. It defines the mathematical relationship between the three sides of a right-angled triangle.
Simply put, the theorem states that in any right-angled triangle, the area of the square whose side is the hypotenuse (the longest side) is equal to the sum of the areas of the squares on the other two sides.
The Core Formula
The theorem is universally expressed as:
a² + b² = c²
- a and b represent the “legs” of the triangle. These are the two shorter sides that meet to form the perfect 90-degree right angle.
- c represents the “hypotenuse.” This is always the longest side of the triangle, and it is always located directly opposite the 90-degree angle.
Deep Dive: Key Concepts and Rules
1. It Only Applies to Right Triangles
The Pythagorean theorem is strictly limited to flat, 2D triangles that contain exactly one 90-degree angle. If a triangle has all acute angles (less than 90 degrees) or one obtuse angle (greater than 90 degrees), the standard a² + b² = c² formula will not work.
2. The Converse of the Theorem
The theorem works in reverse, which is an incredibly useful tool. The Converse of the Pythagorean Theorem states: If the square of the longest side of a triangle equals the sum of the squares of the other two sides, then that triangle is absolutely guaranteed to be a right triangle. Builders use this rule constantly to ensure rooms are perfectly square.
3. Historical Origins
While named after the ancient Greek philosopher and mathematician Pythagoras (c. 570–495 BC), he was not the first to discover it.
- The Babylonians: Ancient clay tablets, such as the famous Plimpton 322 tablet, prove that Babylonians understood and used Pythagorean triples a full 1,000 years before Pythagoras was born.
- The Indians: The Baudhayana Sulba Sutra, an ancient Indian mathematical text from roughly 800 BC, contains a clear statement of the theorem and a list of Pythagorean triples.
- Pythagoras’ Contribution: Pythagoras (or his students in the Pythagorean school) is credited with popularizing the theorem and was potentially the first to offer a formalized geometric proof for it.
4. Famous Proofs
There are over 350 known ways to prove that a² + b² = c².
- Geometric Proofs: Rearranging squares inside a larger square to visually show that the area of a² + b² equals the area of c².
- President James A. Garfield’s Proof: The 20th President of the United States published a unique proof in 1876 using the area of a trapezoid.
- Albert Einstein’s Proof: At just 11 years old, Einstein developed his own proof using the concept of similar triangles.
Step-by-Step Guide: How to Calculate
Finding the Hypotenuse (c)
When you know the length of both legs, you add their squares to find the hypotenuse.
Example: Leg a = 3, Leg b = 4.
- Square leg a: 3² = 9
- Square leg b: 4² = 16
- Add the squares together: 9 + 16 = 25
- Find the square root of the total: √25 = 5The hypotenuse is 5.
Finding a Missing Leg (a or b)
When you know the hypotenuse and one leg, you must subtract instead of add.
Example: Hypotenuse c = 13, Leg a = 5.
- Square the hypotenuse: 13² = 169
- Square the known leg: 5² = 25
- Subtract the leg’s square from the hypotenuse’s square: 169 – 25 = 144
- Find the square root of the result: √144 = 12The missing leg is 12.
Real-Life Applications of the Pythagorean Theorem
- Architecture & Construction: Carpenters use the “3-4-5 rule” to lay out foundations. If they measure 3 feet down one wall, 4 feet down the connecting wall, and the distance between those two points is exactly 5 feet, they know the corner is a perfect 90 degrees.
- Navigation & Surveying: Used to calculate the shortest straight-line distance between two points on a topographical map, essentially finding the hypotenuse of the landscape.
- Technology & Screens: When you buy a 65-inch television, it is not 65 inches wide. Screen sizes are measured diagonally—which is the hypotenuse of the rectangular screen.
- Computer Graphics: Rendering 3D objects onto 2D screens relies heavily on distance formulas derived directly from Pythagoras to calculate depth and perspective.
- Physics & Engineering: Calculating vector forces. If a boat travels north at 4 mph and a wind pushes it east at 3 mph, the theorem calculates the boat’s actual diagonal speed (5 mph).
The Ultimate 100 Frequently Asked Questions (FAQ)
Category 1: The Basics (1-20)
1. What is the Pythagorean Theorem?
A mathematical rule stating that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two legs. Example: If legs are 3 and 4, the hypotenuse is 5 (3² + 4² = 5²).
2. What is the formula for the Pythagorean Theorem?
a² + b² = c². Example: If a=6 and b=8, then 6² + 8² = c², making c=10.
3. Who invented the Pythagorean Theorem?
It is named after the Greek philosopher Pythagoras, though ancient Babylonians and Indians used it much earlier.
4. What is a hypotenuse?
The longest side of a right-angled triangle, always located directly across from the 90-degree angle.
5. Does the theorem work on all triangles?
No. It only works on right-angled triangles (triangles containing one 90-degree angle).
6. What are legs a and b?
They are the two shorter sides of the right triangle that intersect to form the 90-degree angle.
7. Does it matter which leg is a and which is b?
No. Because addition is commutative (a² + b² is the same as b² + a²), you can assign a and b to either leg.
8. What is a right angle?
An angle that measures exactly 90 degrees, often represented by a small square in the corner of a triangle.
9. Can the hypotenuse be shorter than a leg?
Never. The hypotenuse must always be the longest side of a right triangle.
10. How do I know which side is c?
Side c is always the slanted side opposite the right angle.
11. What is the converse of the Pythagorean Theorem?
It states that if a² + b² = c² for a triangle’s sides, then the triangle must be a right triangle.
12. How do I square a number?
Multiply the number by itself. Example: The square of 4 is 4 x 4 = 16.
13. How do I find a square root?
Find the number that, when multiplied by itself, gives the original number. Example: The square root of 25 is 5.
14. What if the triangle has no right angle?
You cannot use this theorem. You must use the Law of Cosines or Law of Sines instead.
15. Is c² = a² + b² the same thing?
Yes, the equation can be written in either order.
16. Can side lengths be negative?
No. In geometry, distances and lengths must always be positive numbers.
17. What is an isosceles right triangle?
A right triangle where legs a and b are equal in length.
18. What are the angles in an isosceles right triangle?
One 90-degree angle and two 45-degree angles.
19. How many sides does a right triangle have?
Like all triangles, it has three sides.
20. Can a triangle have two right angles?
No. The sum of all angles in a triangle is 180 degrees. Two 90-degree angles would leave 0 degrees for the third corner.
Category 2: Finding the Hypotenuse & Legs (21-40)
21. How do I find the hypotenuse?
Square a and b, add them together, and find the square root of the result. c = √(a² + b²).
22. How do I find a missing leg (a)?
Square the hypotenuse and the known leg, subtract the leg’s square from the hypotenuse’s square, and find the square root. a = √(c² – b²).
23. Example: Find c if a=5 and b=12.
5² + 12² = 25 + 144 = 169. The square root of 169 is 13. So, c=13.
24. Example: Find b if c=10 and a=6.
10² – 6² = 100 – 36 = 64. The square root of 64 is 8. So, b=8.
25. What if my calculation results in a decimal?
Not all triangles have whole numbers. Use a calculator to find the decimal approximation (e.g., √2 ≈ 1.414).
26. Should I round my answers?
Yes, usually to 2 or 4 decimal places depending on your math teacher’s or project’s requirements.
27. Can a and b be the exact same length?
Yes. If a=5 and b=5, then c = √(25+25) = √50 ≈ 7.07.
28. What if I accidentally subtract c² from a²?
You will get a negative number. You cannot take the square root of a negative number in basic geometry. Always do c² – a².
29. Do units matter?
Yes. All sides must be in the same unit (all inches, or all centimeters) before calculating.
30. How do I convert units before calculating?
Multiply or divide by the conversion factor. Example: If a is 1 foot and b is 6 inches, convert a to 12 inches first.
31. Why is my hypotenuse calculation smaller than my leg?
You likely subtracted instead of added, or forgot to take the square root. c must be the largest number.
32. Is the hypotenuse always exactly equal to a + b?
No! c is always less than a + b. Walking the hypotenuse is a shortcut compared to walking along both legs.
33. What is the hypotenuse if legs are 1 and 1?
c = √(1² + 1²) = √2 ≈ 1.414.
34. What is the hypotenuse if legs are 30 and 40?
Using the 3-4-5 ratio multiplied by 10, the hypotenuse is 50.
35. Can I use fractions in the formula?
Yes. Just square the numerator and denominator separately. Example: (1/2)² = 1/4.
36. Can I use decimals in the formula?
Yes. Example: 1.5² + 2² = c².
37. How do I find c without a calculator?
You can leave the answer in “radical form” (e.g., c = √45).
38. What is radical form?
Leaving the answer with the square root symbol rather than a decimal approximation.
39. How do I simplify a square root?
Find the largest perfect square factor. Example: √20 = √(4 x 5) = 2√5.
40. What if I know the area and one leg?
Find the other leg using the area formula (Area = (a x b)/2), then use Pythagoras to find c.
Category 3: Pythagorean Triples (41-55)
41. What is a Pythagorean Triple?
A set of three positive whole numbers that perfectly fit the formula a² + b² = c².
42. What is the most famous Pythagorean triple?
The 3-4-5 triangle. (3² + 4² = 5² becomes 9 + 16 = 25).
43. Give another example of a triple.
5, 12, 13. (25 + 144 = 169).
44. What is a “primitive” triple?
A triple where the three numbers share no common divisor other than 1 (like 3, 4, 5).
45. What is a non-primitive triple?
A multiple of a primitive triple. Example: 6, 8, 10 is just 3, 4, 5 multiplied by 2.
46. How many Pythagorean triples exist?
There are infinitely many Pythagorean triples.
47. Is 7, 24, 25 a triple?
Yes. 49 + 576 = 625, which is 25².
48. Is 9, 40, 41 a triple?
Yes. 81 + 1600 = 1681, which is 41².
49. How did ancient builders use the 3-4-5 triple?
They knotted ropes at intervals of 3, 4, and 5. By pulling it tight into a triangle, they guaranteed a perfect 90-degree corner for buildings.
50. Can a triple include decimals?
No. By definition, Pythagorean triples only consist of positive integers (whole numbers).
51. Is there a formula to generate triples?
Yes, Euclid’s formula: a = m² – n², b = 2mn, c = m² + n² (where m > n > 0).
52. If I multiply a triple by 10, does it stay a right triangle?
Yes. Similar triangles maintain their angles regardless of size.
53. Is 8, 15, 17 a triple?
Yes. 64 + 225 = 289, which is 17².
54. Is 1, 2, 3 a triple?
No. 1² + 2² = 5, and 3² = 9. They do not match.
55. Are triples useful in modern times?
Yes, in programming and pixel generation, integer coordinates are faster for computers to process than decimals.
Category 4: Real-Life Applications (56-75)
56. How do painters use this theorem with ladders?
To find out how long a ladder they need to reach a certain window height while keeping the base a safe distance from the wall.
57. Example: Ladder calculation.
If the wall is 12ft high (a) and the ladder base is 5ft away (b), the ladder (c) must be 13ft long.
58. How do I measure my TV screen?
TV sizes are the hypotenuse. A 50-inch TV measures 50 inches from the top left corner to the bottom right corner.
59. If my TV is 40 inches wide and 30 inches tall, what is the screen size?
40² + 30² = c². 1600 + 900 = 2500. The TV is a 50-inch TV.
60. How is this used in aviation?
To calculate the actual flight distance (hypotenuse) considering the plane’s ground distance and its altitude.
61. Can it be used to find wheelchair ramp lengths?
Yes. The height of the stairs is leg a, the horizontal distance is leg b, and the ramp surface is the hypotenuse.
62. How does GPS use the Pythagorean Theorem?
GPS uses a complex 3D version of the theorem to calculate the distance between satellites and your phone.
63. How is it used in baseball?
To find the throwing distance from home plate to second base. (A baseball diamond is a 90x90ft square. The throw is the hypotenuse: ≈ 127.2 ft).
64. How do architects use it?
To calculate roof slopes, rafter lengths, and structural diagonal supports.
65. Example: Finding the length of a roof slope.
If a roof rises 6 feet vertically (a) and spans 8 feet horizontally (b), the slanted roof rafter (c) is 10 feet.
66. How is it used in computer monitors?
To calculate the exact pixel density (PPI) based on the screen’s horizontal and vertical pixel counts.
67. Is it used in physics?
Yes, heavily. It is used to resolve vectors, such as calculating the net force when two forces push at right angles.
68. Example: Vector forces.
If wind pushes a boat East at 3 mph (a) and the current pushes North at 4 mph (b), the boat travels at 5 mph (c).
69. How is it used in quilting or sewing?
To calculate the exact dimensions of diagonal fabric cuts.
70. Can I use it for shadows?
Yes. If you know the height of a flagpole and the length of its shadow, you can find the distance from the tip of the shadow to the top of the pole.
71. How do campers use it?
To figure out how much rope they need to tie a tent pole diagonally to a ground stake.
72. How do surveyors use it?
To measure steep hills. They measure the horizontal distance and vertical elevation to find the actual ground surface length.
73. Example: Shortest path.
Instead of walking 3 blocks East and 4 blocks North (7 blocks total), walking diagonally through a park is only 5 blocks.
74. Is it used in game development?
Yes! Every time a character moves diagonally on screen, the game engine uses Pythagoras to keep their movement speed consistent.
75. How does it apply to packing boxes?
To find the longest item (like a bat or umbrella) that can fit diagonally inside a rectangular box.
Category 5: Distance Formula & 3D Space (76-90)
76. What is the Distance Formula?
A variation of the theorem used to find the distance between two coordinate points: d = √[(x2 – x1)² + (y2 – y1)²].
77. Example: Distance between (0,0) and (3,4)?
d = √[(3-0)² + (4-0)²] = √(9+16) = √25 = 5.
78. How does the distance formula relate to Pythagoras?
The change in X coordinates creates leg a, the change in Y coordinates creates leg b, and the distance is the hypotenuse c.
79. Can the theorem be used in 3D space?
Yes! The 3D Pythagorean theorem is a² + b² + c² = d², where d is the 3D diagonal.
80. Example: Fitting a pole in a room.
If a room is 3m wide, 4m long, and 5m high, the longest diagonal is √(3² + 4² + 5²) = √(9 + 16 + 25) = √50 ≈ 7.07m.
81. How do you find the diagonal of a square?
Multiply the side length by √2. (Derived from a² + a² = c²).
82. Example: Diagonal of a 10×10 square.
10√2, which is approximately 14.14.
83. How do you find the diagonal of a rectangle?
Use the standard formula: length² + width² = diagonal².
84. Example: Diagonal of a 5×12 rectangle.
5² + 12² = 25 + 144 = 169. The diagonal is 13.
85. What is coordinate geometry?
The study of geometry using a coordinate plane (X and Y axes), where Pythagoras is used constantly to measure line segments.
86. Can X and Y coordinates be negative?
Yes. But when you subtract them and square the result in the formula, it always becomes positive.
87. Example: Distance between (-2, -3) and (1, 1).
Change in X = 3, Change in Y = 4. 3² + 4² = 25. Distance = 5.
88. Is the Pythagorean theorem used in circles?
Yes. The equation of a circle on a graph (x² + y² = r²) is literally the Pythagorean theorem, where r (radius) is the hypotenuse.
89. What is a unit circle?
A circle with a radius of 1. It forms the basis of trigonometry, linking sine and cosine to the Pythagorean theorem.
90. How do you find the perimeter of a right triangle?
Add all three sides together: a + b + c. If c is missing, calculate it first.
Category 6: Advanced & Historical (91-100)
91. How does Pythagoras relate to Trigonometry?
The fundamental trigonometric identity sin²(θ) + cos²(θ) = 1 is derived directly from the Pythagorean theorem.
92. What are Sine, Cosine, and Tangent?
Ratios of the sides of a right triangle. Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent (SOH CAH TOA).
93. Did Albert Einstein prove the Pythagorean theorem?
Yes, at age 11, Einstein developed his own unique proof of the theorem based on similar triangles.
94. How many ways are there to prove the theorem?
There are over 350 known mathematical proofs, including geometric, algebraic, and calculus-based proofs.
95. Did a US President prove the theorem?
Yes, James A. Garfield, the 20th US President, published an original algebraic proof using a trapezoid in 1876.
96. What is Fermat’s Last Theorem?
A famous math problem based on Pythagoras. It states that no three positive integers can satisfy a^n + b^n = c^n for any integer value of n greater than 2.
97. Did Pythagoras actually discover the theorem?
No. The Plimpton 322 tablet proves that ancient Babylonians understood the concept 1,000 years before Pythagoras was born.
98. Why is it named after Pythagoras then?
He (or his followers in the Pythagorean school) was the first to widely popularize and potentially offer a formal mathematical proof for it in ancient Greece.
99. Can the theorem be used for non-Euclidean geometry?
No. It only works on flat planes (Euclidean geometry). It fails on curved surfaces like spheres (the Earth).
100. How do I practice the Pythagorean Theorem?
The best way is to set up practice problems on a coordinate plane, use a measuring tape to find the hypotenuse of objects around your house (like your TV screen), and use online right-triangle calculators to check your manual math work.