Pythagorean Theorem Calculator

: Solve a right triangle from two sides, a side and an angle, or as a 45-45-90 or 30-60-90 triangle, with the exact root, the angles and the working
Triangle
Fill any two to find the third, or all three to check for a right angle. Whole numbers, decimals, fractions (3/4) or roots: √2, 3√5, sqrt(2), 1/√2.
Exact: each side is kept as its exact square, so squares, sums and differences are exact and a side that is not whole is shown in simplest root form with its rounding. Sums of unlike roots and angles other than 30°, 45° and 60° are rounded to 6 decimals; ≈ marks a rounded figure.
Result
Hypotenuse c
5
c = √(a² + b²): the side opposite the right angle, always the longest.
Working
c² = a² + b² = 3² + 4² = 9 + 16 = 25 c = √25 = 5
Sides
a = 3, b = 4, c = 5
Legs a and b meet at the right angle; the hypotenuse c is opposite it. Angle A is opposite leg a.
Angle A
≈ 36.869898°
≈ 0.643501 rad. arctan(a ÷ b): the angle opposite leg a.
Angle B
≈ 53.130102°
≈ 0.927295 rad. arctan(b ÷ a), or 90° - A: the angle opposite leg b.
Area
6
a × b ÷ 2: half the rectangle on the two legs.
Perimeter
12
a + b + c.
Altitude to the hypotenuse
12/5 = 2.4
h = a × b ÷ c: from the right angle, at right angles to the hypotenuse.
Hypotenuse segments
9/5 = 1.8 and 16/5 = 3.2
The altitude cuts c into a² ÷ c (next to leg a) and b² ÷ c (next to leg b); they add up to c.
Inradius
1
r = (a + b - c) ÷ 2: the radius of the circle that touches all three sides.
Circumradius
5/2 = 2.5
R = c ÷ 2: the hypotenuse is a diameter of the circle through the three corners.
Triple
(3, 4, 5), primitive
A Pythagorean triple: three whole numbers with a² + b² = c² and no common factor.
The triangle to scale
b = 4c = 5a = 3

A Pythagorean theorem calculator for right triangles: give two sides and it finds the third, give all three and it checks whether they make a right angle. It works as a hypotenuse calculator and as a right triangle calculator or right triangle solver, from two sides, from a side and an angle, or for a 45-45-90 or 30-60-90 triangle. Sides can be whole numbers, decimals, fractions or roots, and the answer comes in simplest root form with a rounded decimal and the working in your own numbers.

  1. Pick what you know beside Solve from: Two or three sides, A side and an angle, or 45-45-90 or 30-60-90.
  2. For Two or three sides, fill any two of Leg a, Leg b and Hypotenuse c to find the third, or fill all three to check for a right angle. Roots such as √2 or 3√5 and fractions such as 3/4 are accepted.
  3. For A side and an angle, choose the Known side, type its Length and Angle A (the angle opposite leg a), and set Angle in to degrees or radians. For 45-45-90 or 30-60-90, choose the Triangle, the Known side and its Length.
  4. Read the missing side at the top. Working shows the formula with your numbers; the rows below give the angles, area, perimeter, altitude to the hypotenuse, inradius and circumradius, with a drawing to scale. The Example button fills one example for the mode you are in.

Legs 3 and 6: the hypotenuse, the working and the other figures the tool gives.

Input
Solve from: Two or three sides
Leg a: 3
Leg b: 6
Output
Hypotenuse c: 3√5 ≈ 6.708204
Angle A: ≈ 26.565051°
Angle B: ≈ 63.434949°
Area: 9
Perimeter: 9 + 3√5 ≈ 15.708204
Altitude to the hypotenuse: 6√5/5 ≈ 2.683282
Inradius: 4.5 - 3√5/2 ≈ 1.145898
Circumradius: 3√5/2 ≈ 3.354102

Working:
c² = a² + b²
   = 3² + 6²
   = 9 + 36
   = 45
c = √45 = 3√5 ≈ 6.708204

How do you find the hypotenuse of a right triangle?

Square both legs, add the squares and take the square root: c = √(a² + b²). For legs 3 and 4 that is √25 = 5, and for legs 3 and 6 it is √45 = 3√5 ≈ 6.708204. Leave the hypotenuse field empty and the calculator does this for you.

Why can a leg not be as long as the hypotenuse?

The hypotenuse is the longest side of a right triangle, and c² - a² has to leave something for the other leg. The tool refuses it and says: "Leg a must be shorter than the hypotenuse c (5): the hypotenuse is the longest side of a right triangle, opposite the right angle. A leg as long as the hypotenuse would leave the other leg 0."

What is a Pythagorean triple?

Three whole numbers with a² + b² = c². 3, 4, 5 is primitive, with no common factor: (3, 4, 5), primitive. Multiplying all three by the same number gives another, such as (6, 8, 10) = 2 × (3, 4, 5). The tool shows this row whenever all three sides are whole.

How do you check if a triangle is a right triangle?

Fill all three sides and compare a² + b² with c², the converse of the theorem. Sides 10, 24, 26 give yes, a right triangle; sides 8, 15, 16 give no, acute, because 289 is more than 256.

What are the sides of a 45-45-90 and a 30-60-90 triangle?

A 45-45-90 triangle has sides x, x, x√2, so a leg of 7 gives a hypotenuse of 7√2 ≈ 9.899495. A 30-60-90 triangle has sides x, x√3, 2x, so a short leg of 5 gives 5√3 ≈ 8.660254 and 10. Use the 45-45-90 or 30-60-90 mode.

Runs entirely in your browser. Nothing is uploaded.