Skip to content
Calixo

Pythagorean Theorem Calculator with Steps

Find any missing side of a right triangle — hypotenuse or leg — from the other two, using a² + b² = c².

Inputs

Paste this into any page — the widget stays live and updates automatically as this calculator improves. Using WordPress or Notion? See the embed guide.

Saved Scenarios

— select 2+ to compare
Inputs updated · Results recalculated · Just now

Missing Side

5.0000

Spark says

How it's calculated
Mathematical study scene with open book, graph paper, and pen for learning and homework.
Photo by Lum3n on Pexels
Hand writing mathematical equations on a chalkboard in a classroom setting.
Photo by Monstera Production on Pexels

Formula

a2+b2=c2a^2 + b^2 = c^2
c
— The hypotenuse — the longest side, always opposite the right angle

What is the Pythagorean Theorem Calculator with Steps?

This calculator finds any missing side of a right triangle — the hypotenuse or either leg — from the other two sides, using the Pythagorean theorem a² + b² = c².

Use this when finding a missing right-triangle side for coursework, checking a diagonal measurement in construction or design, or verifying whether a triangle with three known sides is actually a right triangle in the first place.

How to use it

  1. 1 Choose what you're solving for: the hypotenuse, or one of the two legs.
  2. 2 Enter the two known side lengths.
  3. 3 Read the missing side, computed by rearranging a² + b² = c² as needed.

Understanding Pythagorean Theorem Calculator with Steps

The Pythagorean theorem is one of the most recognizable results in all of mathematics, and its genuine usefulness extends well beyond pure geometry coursework into an enormous range of everyday and professional measurement problems, precisely because right angles and straight-line distances show up constantly in the physical world.

The theorem itself — a² + b² = c², where a and b are a right triangle's two legs (the sides forming the right angle) and c is the hypotenuse (the longest side, opposite the right angle) — has been known and proven in multiple independent ways across different mathematical traditions for thousands of years, a testament to how fundamental this specific relationship between right-triangle sides genuinely is. The theorem works in exactly one direction of certainty and one direction of restriction worth being clear about: if a triangle genuinely has a right angle, a²+b²=c² is guaranteed to hold for its sides; and conversely, if three specific side lengths satisfy a²+b²=c², the triangle they form is guaranteed to be a right triangle — this converse relationship is itself a useful, separate fact, sometimes used specifically to verify or construct a right angle using only length measurements, without any angle-measuring tool at all (a technique carpenters and surveyors have used historically, and sometimes still do, via the specific 3-4-5 triangle ratio).

The practical, real-world reach of this theorem comes from recognizing right-triangle relationships in situations that don't obviously look like a geometry textbook problem at first glance. A TV or monitor's diagonal screen size, its width, and its height form a right triangle, which is exactly why knowing any two of those three measurements lets you find the third via the Pythagorean theorem — useful for confirming a screen will actually fit a given space, or comparing screens advertised by diagonal size alone. A ladder leaned against a wall forms a right triangle with the wall and the ground, meaning the ladder's length, how far its base sits from the wall, and how high it reaches up the wall are all related by the same theorem — a genuinely practical safety and planning calculation. Diagonal bracing in construction, the shortest path across a rectangular field or room, and countless similar 'straight line across a right-angle corner' situations all reduce to exactly this same underlying relationship.

Pythagorean triples — sets of three whole numbers that exactly satisfy a²+b²=c², like (3,4,5) and (5,12,13) — are worth recognizing on sight, both because they show up constantly in textbook problems specifically chosen for their clean whole-number answers, and because they're genuinely useful practical reference points: if you're roughly estimating whether a given set of measurements might form a right angle in a real-world layout, checking against a known Pythagorean triple ratio is a fast mental sanity check before reaching for more precise tools. Beyond the most commonly cited (3,4,5) and (5,12,13), infinitely many Pythagorean triples exist (7,24,25) and (8,15,17) among the next most common examples, all following the same underlying a²+b²=c² relationship exactly.

The theorem's generalization beyond right triangles specifically — the Law of Cosines, which reduces to the ordinary Pythagorean theorem exactly when the included angle is 90° — is worth knowing about even for someone who only ever works with right triangles, since it clarifies that the Pythagorean theorem isn't an isolated, special-case fact but rather one specific instance of a more general relationship between a triangle's sides and its angles, applicable to right triangles as the particular case where that general relationship simplifies down to its cleanest, most recognizable form.

Worked examples

Advantages

  • Solves for any of the three sides, not just the hypotenuse — the two most common variations are both covered directly.
  • Simple, direct application of one of the most fundamental relationships in geometry.
  • Works for any valid right-triangle side lengths, not just simple whole-number cases.
  • Useful both for pure geometry problems and real-world diagonal-measurement applications.

Limitations

  • Only applies to right triangles specifically — for a triangle without a right angle, the Law of Cosines calculator on this site is the correct tool instead.

Common mistakes

  • ⚠️ Applying the Pythagorean theorem to a triangle that isn't actually a right triangle — the relationship a²+b²=c² only holds when the triangle has a genuine 90° angle.
  • ⚠️ Mixing up which side is the hypotenuse when solving for a leg — the hypotenuse is always the longest side, always opposite the right angle, and must be correctly identified as c (not a or b) in the formula.
  • ⚠️ Forgetting to take the square root at the end — a²+b² gives c² (the hypotenuse squared), not c itself, so the final square-root step is essential, not optional.

Tips

  • 💡 How can I tell which side is the hypotenuse? It's always the longest side of the right triangle, and it's always the side directly opposite the right angle — never one of the two sides forming the right angle itself.
  • 💡 The 3-4-5 and 5-12-13 side ratios are classic 'Pythagorean triples' — whole-number solutions worth recognizing, since they show up constantly in textbook problems and real construction measurements.
  • 💡 For checking whether a triangle with three known sides is a right triangle, verify a²+b²=c² holds for the longest side as c — if it doesn't hold exactly, the triangle isn't a right triangle.
  • 💡 For a triangle that isn't a right triangle, use the Law of Cosines calculator instead, which generalizes this same idea to any triangle.

Real-life uses

  • Finding a missing right-triangle side for coursework
  • Checking a diagonal measurement in construction or design (a doorway, a TV screen, a piece of furniture)
  • Verifying whether a triangle with three known sides is actually a right triangle
  • Calculating the shortest straight-line distance across a rectangular space

Frequently asked questions

How can I tell which side is the hypotenuse?

It's always the longest side of the right triangle, and it's always the side directly opposite the right angle — never one of the two sides forming the right angle itself.

What are Pythagorean triples?

Sets of whole numbers that exactly satisfy a²+b²=c², like (3,4,5) and (5,12,13) — useful reference points that show up constantly in both textbook problems and real-world measurements.

Does the Pythagorean theorem work for any triangle?

No — it only applies to right triangles specifically. For a triangle without a right angle, use the Law of Cosines calculator instead, which generalizes the same idea to any triangle.

Can I use this to check if a triangle is a right triangle?

Yes — if three known side lengths satisfy a²+b²=c² (with the longest side as c), the triangle is guaranteed to be a right triangle; if they don't, it isn't.

What real-world problems use the Pythagorean theorem?

Finding a TV or monitor's diagonal size from width and height, checking a ladder's safe reach against a wall, diagonal bracing in construction, and any situation involving the shortest straight-line distance across a right-angle corner.