Last updated: August 5, 2026
Pythagoras Triangle Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
The Pythagoras Triangle Calculator finds the hypotenuse of a right triangle from its two legs using c = √(a² + b²), then reports the triangle's perimeter and area, giving a complete geometric summary from just two known leg lengths.
The hypotenuse of a right triangle equals the square root of the sum of the squares of its two legs.
Key Takeaways
- The Pythagorean theorem, a² + b² = c², only applies to right triangles.
- The hypotenuse is always the longest side, located opposite the right angle.
- Area of a right triangle is simply half the product of its two perpendicular legs.
- The 3-4-5 triangle is the smallest whole-number Pythagorean triple and a classic construction tool.
- Most leg length combinations produce an irrational hypotenuse, not a whole number.
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
c = √(a² + b²); perimeter = a + b + c; area = (a × b) / 2
Where:
- a=First leg length
- b=Second leg length
- c=Hypotenuse length
Watch & Learn
An intuitive proof and application of the Pythagorean theorem, a² + b² = c², for finding an unknown side of a right triangle.
Worked Examples
The classic 3-4-5 right triangle
The most famous integer-sided right triangle, often used to check that a corner is square.
- 1Square each leg: 3² = 9, 4² = 16.
- 2Add the squares: 9 + 16 = 25.
- 3Take the square root: √25 = 5.
- 4Result: hypotenuse = 5, perimeter = 12, area = 6.
A non-integer hypotenuse
Not every right triangle has whole-number sides; many produce irrational hypotenuses.
- 1Square each leg: 5² = 25, 6² = 36.
- 2Add the squares: 25 + 36 = 61.
- 3Take the square root: √61 ≈ 7.8103.
- 4Result: hypotenuse ≈ 7.8103.
A right isosceles triangle
When both legs are equal, the hypotenuse follows a predictable √2 multiple.
- 1Square each leg: 7² = 49, 7² = 49.
- 2Add the squares: 49 + 49 = 98.
- 3Take the square root: √98 ≈ 9.899, matching 7√2.
- 4Result: hypotenuse ≈ 9.899.
Introduction
The Pythagoras Triangle Calculator applies the most famous theorem in geometry — a² + b² = c² — to find the hypotenuse of a right triangle from its two legs, then reports the perimeter and area alongside it. Whether you're checking a construction corner for squareness, solving a geometry homework problem, or verifying a physics vector calculation, this tool turns two known leg lengths into a complete picture of the triangle.

What is the Pythagorean theorem?
The Pythagorean theorem states that in any right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides, known as the legs. This relationship, a² + b² = c², has been proven in hundreds of different ways throughout history.
Only applies to right triangles (one 90° angle).
The hypotenuse is always the longest side.
The relationship a² + b² = c² is one of the oldest proven theorems in mathematics.
How the formula works
To find the hypotenuse, square each leg, add the results together, and take the square root of the sum. Once you know all three sides, the perimeter is just their sum, and the area of any right triangle is half the product of its two legs (since the legs form a natural base and height).
Square leg A and leg B separately.
Add the two squared values together.
Take the square root to find the hypotenuse.
Area = (leg A × leg B) / 2, since the legs are perpendicular.
Using the inputs correctly
Enter the two leg lengths as positive numbers. The calculator assumes the triangle already has a right angle between the two legs you provide, and computes the hypotenuse from that assumption.
Both legs must be positive numbers.
Use consistent units for both legs.
This calculator solves for the hypotenuse; use a different tool if you need to solve for a missing leg instead.
Reading the outputs
The primary output is the hypotenuse length. Perimeter sums all three sides, and area gives the enclosed space, both useful for verifying your triangle behaves as expected in a larger problem.
- hypotenuse:
the longest side, opposite the right angle.
- perimeter:
the sum of all three sides.
- area:
half the product of the two legs.
A dependable step-by-step workflow
These four steps mirror exactly how the calculator processes the two legs.
Square each leg.
Add the squares together.
Take the square root of the sum.
Verify with the area using the two original legs.
Common mistakes and how to avoid them
A frequent mistake is applying the Pythagorean theorem to a triangle that isn't actually a right triangle, which produces a meaningless result. Another is confusing which side is the hypotenuse — it must be opposite the right angle, never one of the two legs.
Only use this theorem for confirmed right triangles.
The hypotenuse is always the longest side, opposite the 90° angle.
Don't average the legs instead of using the square-root-of-sum-of-squares formula.
Where the Pythagorean theorem shows up
This theorem is foundational to construction (squaring corners with the 3-4-5 rule), navigation and physics (finding resultant distances or vectors), computer graphics (distance calculations), and virtually every branch of geometry and trigonometry.
- Construction:
verifying square corners using the 3-4-5 rule.
- Navigation:
computing straight-line distances from perpendicular components.
- Physics:
resolving vector magnitudes from their components.
- Computer graphics:
calculating on-screen distances between points.
Reference patterns to remember
Memorizing a few common Pythagorean triples speeds up mental checks.
3-4-5 and its multiples (6-8-10, 9-12-15) are the most common integer triples.
5-12-13 and 8-15-17 are other frequently used triples.
A right isosceles triangle always has a hypotenuse equal to leg × √2.
| Leg A | Leg B | Hypotenuse |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 7 | 9.899 |
Quick Reference Card
Pythagoras Triangle Cheat Sheet
Quick reference • Pythagoras Triangle Calculator
c = √(a² + b²)Valid range: Both legs greater than 0
Common Values
⚠ Watch Out
- •Only valid for right triangles — not general triangles.
- •The hypotenuse must be the longest side, opposite the right angle.
- •Keep both legs in the same unit of measurement.
- •Check domain restrictions before trusting the final value.
Pro Tips
- →Memorize the 3-4-5, 5-12-13, and 8-15-17 triples for quick mental checks.
- →Use the area output as a sanity check against a separate base-times-height calculation.
- →For an isosceles right triangle, expect the hypotenuse to equal leg × √2.
- →Estimate the answer mentally first so large errors stand out.
FAQs
What is the Pythagorean theorem used for here?
It's used to find the hypotenuse of a right triangle given its two legs, using the relationship a² + b² = c², where c is the hypotenuse and a and b are the two legs.
Does this theorem work for any triangle?
No, it only applies to right triangles — triangles containing exactly one 90-degree angle. For other triangles, you'd need the Law of Cosines or Law of Sines instead.
Why is the 3-4-5 triangle so famous?
It's the smallest set of positive integers satisfying a² + b² = c² (9 + 16 = 25), making it easy to remember and widely used by builders and carpenters to check that a corner is exactly square.
How is the area of a right triangle calculated?
Since the two legs of a right triangle are perpendicular to each other, one leg can serve as the base and the other as the height, so the area is simply half their product: (leg A × leg B) / 2.
What if my hypotenuse isn't a whole number?
That's very common — most combinations of leg lengths produce an irrational hypotenuse, like √61 ≈ 7.8103. Only specific combinations (Pythagorean triples) produce whole-number results.
Can I use this calculator to find a missing leg instead?
This particular calculator solves for the hypotenuse given both legs. To find a missing leg given the hypotenuse and one leg, you would rearrange the formula to b = √(c² − a²).
Is the Pythagorean theorem only used in math class?
Not at all — it's used daily in construction, engineering, navigation, physics, and computer graphics anywhere a straight-line distance needs to be computed from perpendicular components.