Quick Answer
A right triangle with legs of 3 and 4 has a hypotenuse of 5, an area of 6 square units, and a perimeter of 12 units.
Common Examples
| Input | Result |
|---|---|
| a = 3, b = 4, solve for c | c = 5, Area: 6, Perimeter: 12 |
| a = 5, b = 12, solve for c | c = 13, Area: 30, Perimeter: 30 |
| b = 8, c = 17, solve for a | a = 15, Area: 60, Perimeter: 40 |
| a = 7, c = 25, solve for b | b = 24, Area: 84, Perimeter: 56 |
How It Works
The Formula
The Pythagorean theorem is one of the most fundamental relationships in geometry:
a² + b² = c²
Where:
- a and b are the lengths of the two legs (the sides that form the right angle)
- c is the length of the hypotenuse (the side opposite the right angle, always the longest side)
This formula can be rearranged to solve for any of the three sides:
Solve for c: c = sqrt(a² + b²)
Solve for a: a = sqrt(c² - b²)
Solve for b: b = sqrt(c² - a²)
When solving for a leg, the hypotenuse (c) must be longer than the other leg. Otherwise, the expression under the square root would be negative, which has no real solution.
Triangle Area: For a right triangle, the two legs serve as base and height, so Area = (a x b) / 2.
Triangle Perimeter: The perimeter is simply the sum of all three sides: P = a + b + c.
Pythagorean Triples
Certain integer combinations satisfy the theorem exactly. The most well-known are (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). Any multiple of a Pythagorean triple is also a triple; for example, (6, 8, 10) = 2 x (3, 4, 5).
Worked Example
For a right triangle with legs a = 5 and b = 12: c = sqrt(5² + 12²) = sqrt(25 + 144) = sqrt(169) = 13. Area = (5 x 12) / 2 = 30 square units. Perimeter = 5 + 12 + 13 = 30 units. This is the well-known (5, 12, 13) Pythagorean triple. To find a missing leg: if b = 8 and c = 17, then a = sqrt(17² - 8²) = sqrt(289 - 64) = sqrt(225) = 15.
Related Calculators
Slope Calculator
Calculate the slope, angle, distance, and midpoint between two points on a coordinate plane.
Area Calculator
Calculate the area of common shapes: rectangle, triangle, circle, trapezoid, and ellipse.
Circle Calculator
Calculate the area, circumference, and diameter of a circle from any known value.
CalculateY