ΣCALCULATORWizard171+ Calculators

Pythagorean Theorem Calculator

Find the hypotenuse or any missing side of a right triangle. Enter two sides and get instant results with step-by-step solutions. Verify if three sides form a right triangle.

Pythagorean triples
3, 4, 5 5, 12, 13 8, 15, 17 7, 24, 25 1, 1, ?
Hypotenuse (c)
5
3² + 4² = 5² → 9 + 16 = 25 ✓
5
Hypotenuse c
6
Perimeter
6
Area
53.1°
Angle C

Step-by-step

c = √(a² + b²)
c = √(3² + 4²)
c = √(9 + 16) = √25
c = 5
Missing leg
Missing Leg
Perimeter
Area
Angle

Step-by-step

Enter all three sides
a² + b²
Difference
Triangle Type
💡

The Pythagorean Theorem: From Ancient Greece to Modern GPS

The Pythagorean theorem (a² + b² = c²) is arguably the most proven theorem in mathematics, with over 370 known proofs including one by US President James Garfield in 1876. But its real power lies in its practical applications that extend from everyday construction to cutting-edge technology. In construction, the 3-4-5 rule (scaled to 6-8-10 or 9-12-15 for larger spaces) is how builders verify perfect right angles on job sites worldwide. Measure 3 feet along one wall, 4 feet along the adjacent wall, if the diagonal is exactly 5 feet, the corner is 90°. This technique dates back at least 4,000 years to ancient Egypt, where 'rope stretchers' used knotted ropes with this ratio to square temple foundations. GPS technology solves a 3D version of the theorem millions of times per second. Your device receives signals from at least four satellites and computes its position by finding where spheres of distance (each calculated via d = √(x² + y² + z²)) intersect. Every navigation app, self-driving car, and delivery drone relies on this direct extension of a² + b² = c².

CalculatorWizard Team Updated: 2026-04-15
Affiliate Recommendation
Expert Pick
Top Pick

Texas Instruments TI-84 Plus CE Graphing Calculator

Visualize triangles and verify geometry instantly
Graph triangles, compute square roots, and verify Pythagorean relationships. Standard for geometry, trigonometry, and pre-calculus. Approved for SAT, ACT, and AP exams.
Graph any triangle visually
Built-in square root and trig functions
SAT/ACT/AP exam approved
Rechargeable with color display
Shop on Amazon

The Pythagorean Theorem: Everything You Need to Know

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c², where c is the hypotenuse (the longest side, opposite the right angle) and a and b are the two legs. This fundamental relationship was known to Babylonian mathematicians as early as 1800 BCE (nearly 1,200 years before Pythagoras himself lived) and has been proven in over 370 different ways throughout history.

The theorem is not just a mathematical curiosity. It is the foundation of Euclidean geometry, GPS technology, computer graphics, structural engineering, and navigation. When a GPS satellite calculates your position, it is essentially solving a three-dimensional version of the Pythagorean theorem to find the distance from multiple satellites simultaneously. The theorem underlies the distance formula in algebra, the dot product in linear algebra, and the metric tensor in general relativity.

Pythagorean Triples: Perfect Integer Solutions

A Pythagorean triple consists of three positive integers (a, b, c) satisfying a² + b² = c². The most famous is (3, 4, 5). Any multiple of a Pythagorean triple is also a triple, so (6, 8, 10), (9, 12, 15), and (30, 40, 50) all work. There are infinitely many primitive Pythagorean triples (those where a, b, c share no common factor).

abcVerificationScale Multiple
3459 + 16 = 25Foundation triple
5121325 + 144 = 169Common in exams
8151764 + 225 = 289Engineering use
7242549 + 576 = 625Construction use
202129400 + 441 = 841Less common
9404181 + 1600 = 1681Primitive triple
💡 Pro Tip: The 3-4-5 Rule in Construction. Builders and surveyors use the 3-4-5 Pythagorean triple to create perfect right angles without a protractor. Measure 3 feet along one wall, 4 feet along the adjacent wall, and if the diagonal between the two endpoints measures exactly 5 feet, the corner is a perfect 90°. Scale this up to 6-8-10 or 9-12-15 for larger rooms. This technique is used in laying foundations, tiling floors, and setting fence posts.

The Distance Formula: Pythagorean Theorem in Coordinates

The distance between two points (x₁, y₁) and (x₂, y₂) in a coordinate plane is: d = √[(x₂−x₁)² + (y₂−y₁)²]. This is simply the Pythagorean theorem applied to the horizontal and vertical distances between the points. The horizontal distance (x₂−x₁) is leg a, the vertical distance (y₂−y₁) is leg b, and the straight-line distance d is the hypotenuse c. Google Maps, robotics path planning, and collision detection in video games all use this formula millions of times per second.

Geometry & Math Tools

Amazon's Choice

Texas Instruments TI-84 Plus CE Graphing Calculator

$99.99
★★★★☆ (48,312)

Graph triangles and verify right-angle relationships directly on screen.

View on Amazon →
Best Seller

Professional Geometry Set: Compass, Protractor & Rulers

$16.99
★★★★☆ (12,847)

Verify right angles and construct triangles accurately for geometry coursework.

View on Amazon →
Top Rated

Graph Paper Composition Notebook (4-pack)

$12.99
★★★★☆ (18,230)

Draw accurate right triangles on grid paper to visualize a² + b² = c² relationships.

View on Amazon →
Affiliate Recommendation
🚀 Next Step Recommendation
Best Seller

Geometry Workbook with Practice Problems

Master triangles, proofs, and real-world geometry
Comprehensive geometry coverage including the Pythagorean theorem, similar triangles, trigonometry, and coordinate geometry. Includes step-by-step solutions and real-world applications.
Full Pythagorean theorem chapter
Pythagorean triple reference
Coordinate geometry and distance formula
Answer key for all problems
Shop on Amazon

Pythagorean Theorem in Real-World Applications

The theorem's applications extend far beyond classroom exercises. In architecture and construction, it determines rafter lengths for roofs. If a roof has a horizontal run of 12 feet and a rise of 5 feet, the rafter length is √(12² + 5²) = √(144 + 25) = √169 = 13 feet. Knowing this in advance tells the builder exactly how much lumber to order. Stair building similarly uses the theorem to calculate stringer length from rise and run.

In navigation, the theorem calculates straight-line distances. A ship traveling 30 miles east then 40 miles north is √(30² + 40²) = 50 miles from its starting point. Pilots use a 3D version, the distance formula in three dimensions adds a third squared term for altitude: d = √(x² + y² + z²). This is how air traffic control calculates separation distances between aircraft flying at different altitudes.

In screen and display technology, the diagonal size of a TV or monitor is calculated using the Pythagorean theorem. A 16:9 ratio screen that is 1920 pixels wide and 1080 pixels tall has a diagonal of √(1920² + 1080²) = √(3,686,400 + 1,166,400) = √4,852,800 ≈ 2203 pixels. For a 27-inch monitor, each pixel is 27/2203 ≈ 0.01225 inches, giving a pixel density of about 81.6 PPI.

Obtuse and Acute Triangles: Beyond Right Triangles

The Pythagorean theorem also helps classify any triangle by comparing a² + b² to c² (where c is the longest side). If a² + b² = c², the triangle is a right triangle. If a² + b² > c², it's an acute triangle (all angles less than 90°). If a² + b² < c², it's an obtuse triangle (one angle greater than 90°). This relationship, called the law of cosines generalization, is used in surveying to determine land plot shapes without needing to directly measure all angles.

💡 Pro Tip: Special Right Triangles. Two triangle types have fixed angle ratios that make calculations much simpler. The 45-45-90 triangle has legs in ratio 1:1:√2, so if each leg is x, the hypotenuse is x√2. The 30-60-90 triangle has sides in ratio 1:√3:2. If the shortest side is x, the hypotenuse is 2x and the middle side is x√3. These show up constantly in trigonometry, calculus, and physics problems.

Frequently Asked Questions

What is the Pythagorean theorem and when can I use it?
The Pythagorean theorem (a² + b² = c²) applies only to right triangles, triangles with exactly one 90° angle. The hypotenuse c is always the side opposite the right angle and is always the longest side. You can use it whenever you know two sides of a right triangle and need the third, or when you need to verify whether three given lengths form a right triangle. For non-right triangles, use the law of cosines: c² = a² + b² − 2ab×cos(C).
How do I find the missing leg (not the hypotenuse)?
Rearrange a² + b² = c² to isolate the unknown leg. If you know hypotenuse c and leg a, then b = √(c² − a²). For example, with hypotenuse 13 and leg 5: b = √(13² − 5²) = √(169 − 25) = √144 = 12. Always make sure the number under the square root is positive, if c² < a², you've mislabeled which side is the hypotenuse (the hypotenuse must always be the longest side).
What are the angles of a 3-4-5 right triangle?
The 3-4-5 right triangle has angles of 90°, approximately 53.13°, and approximately 36.87°. The 90° angle is opposite the hypotenuse (5). The angle opposite the side of length 4 is arctan(4/3) ≈ 53.13°, and the angle opposite the side of length 3 is arctan(3/4) ≈ 36.87°. Notice that 90° + 53.13° + 36.87° = 180°, as must be true for all triangles. These specific angles are irrational, they cannot be expressed as simple fractions of 180°.
Does the Pythagorean theorem work in 3D?
Yes, and it extends naturally. The distance between two points in 3D space is d = √(x² + y² + z²), which is just the theorem applied twice. First find the diagonal of the base: d₁ = √(x² + y²), then treat d₁ and z as the two legs of a new right triangle: d = √(d₁² + z²) = √(x² + y² + z²). The diagonal of a rectangular box with dimensions l × w × h is √(l² + w² + h²). A 3×4×12 box has a space diagonal of √(9 + 16 + 144) = √169 = 13 feet.
How many proofs of the Pythagorean theorem exist?
Over 370 distinct proofs have been published, making it one of the most-proven theorems in mathematics. The American President James Garfield published an original proof in 1876 using a trapezoid. Euclid's classic proof (Elements Book I, Proposition 47) uses area arguments. Leonardo da Vinci discovered a proof using symmetry. Albert Einstein reportedly devised a proof as a child using similar triangles and the concept of proportionality. Bhaskara, a 12th-century Indian mathematician, proved it with a simple diagram showing four copies of the triangle rearranged around a central square.
Can the Pythagorean theorem be used with non-integer values?
Absolutely, the theorem works for any positive real numbers. For example, a right triangle with legs of 1 and 1 has a hypotenuse of √2 ≈ 1.41421356. A triangle with legs 2.5 and 6 has hypotenuse √(6.25 + 36) = √42.25 = 6.5. In practice, most real-world triangles involve irrational hypotenuses, only specific integer combinations (Pythagorean triples) produce whole-number hypotenuses. For decimal results, our calculator gives the answer to 6 significant figures.

💡 Quick Answers

What is the most famous Pythagorean triple?
The 3-4-5 triangle is the most famous and practical Pythagorean triple: 3² + 4² = 9 + 16 = 25 = 5². Builders scale it to 6-8-10 or 9-12-15 to create perfect right angles on job sites. Other common triples are 5-12-13, 8-15-17, and 7-24-25. Any multiple of a Pythagorean triple is also a triple, so (30, 40, 50) and (15, 20, 25) are both valid.
How do I find the missing leg (not the hypotenuse)?
Rearrange a² + b² = c² to solve for the unknown leg. If you know hypotenuse c = 13 and one leg a = 5, then b = √(c² - a²) = √(169 - 25) = √144 = 12. Always make sure c is actually the longest side (the hypotenuse) before solving, the equation only works when c is opposite the 90° angle.
Does the Pythagorean theorem work in 3D?
Yes, and it extends naturally. The distance between two 3D points is d = √(x² + y² + z²), applying the theorem twice. The space diagonal of a rectangular box with dimensions l × w × h is √(l² + w² + h²). A box that is 3 × 4 × 12 has a space diagonal of √(9 + 16 + 144) = √169 = 13. This 3D distance formula underlies GPS, computer graphics, and robotics navigation.
How is the Pythagorean theorem used in construction?
Builders use the 3-4-5 method to verify right angles: measure 3 feet along one wall, 4 feet along the adjacent wall, and check that the diagonal measures exactly 5 feet. If it does, the corner is a perfect 90°. For roof framing, if a roof has a run of 12 feet and a rise of 5 feet, the rafter is √(144 + 25) = √169 = 13 feet. Knowing this before cutting saves material and ensures accurate assembly.