The Pythagorean theorem
In a right triangle the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c². Knowing any two sides gives the third, and the angles follow from the sine: α = arcsin(a/c).
Any triangle
For any triangle the law of cosines c² = a² + b² − 2ab·cos γ and the law of sines a/sin α = b/sin β = c/sin γ give the missing sides and angles. Choose three sides, two sides with the angle between them, or two angles and a side.
Frequently asked questions
How do I use the Pythagorean theorem?
In a right triangle a² + b² = c², where c is the hypotenuse, the side opposite the right angle. Knowing any two sides gives the third: c = √(a²+b²) or a = √(c²−b²). Example: legs 3 and 4 give c = √(9+16) = 5.
How do I find the angles of a right triangle?
Use the sine: α = arcsin(a/c). Example: a = 3, c = 5 gives α = arcsin(0.6) ≈ 36.87° and β = 90° − 36.87° ≈ 53.13°. The angles of a triangle always add up to 180°.
How do I solve a triangle that is not right-angled?
Use the law of cosines c² = a² + b² − 2ab·cos γ and the law of sines a/sin α = b/sin β = c/sin γ. The calculator accepts three sides, two sides with the angle between them, or two angles and a side.
Why are two sides with a non-included angle not covered?
Two sides with an angle that is not between them (SSA) can give two valid triangles, one, or none, so the result would be ambiguous. Enter the angle between the two sides instead.
Which side is a, b and c?
Side a is opposite angle α, b is opposite β and c is opposite γ. In a right triangle c is the hypotenuse and a, b are the legs. Angles are in degrees.
Angles are in degrees. Side a is opposite angle α, b opposite β and c opposite γ. Everything is calculated in your browser and nothing you enter is stored or sent.