Triangle Calculator

Pythagorean theorem, sides, angles and area

What You Know
Result
c = 5
a = 3 · b = 4
AnglesA 36.87° · B 53.13° · C 90°
Sidesa 3 · b 4 · c 5
Area6
Perimeter12
Height to side c2.4
TypeRight · scalene

Side a is opposite angle A, and so on. In a right triangle, C is the right angle and c is the hypotenuse.

Pythagorean Triples
abc (hypotenuse)Check
3459 + 16 = 25
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
202129400 + 441 = 841
9404181 + 1600 = 1681
681036 + 64 = 100
121620144 + 256 = 400
Special Right Triangles
Special triangleSide ratio
30° · 60° · 90°1 : √3 : 2 (1 : 1.732 : 2)
45° · 45° · 90°1 : 1 : √2 (1 : 1 : 1.414)
EquilateralArea = √3 ÷ 4 × side²
Triangle Formulas
FormulaExpression
Pythagorean theorema² + b² = c²
Area (base, height)½ × b × h
Area (Heron)√(s(s−a)(s−b)(s−c)), s = (a+b+c) ÷ 2
Area (SAS)½ × a × b × sin C
Law of cosinesc² = a² + b² − 2ab cos C
Law of sinesa ÷ sin A = b ÷ sin B = c ÷ sin C
Formulas & Sources
📐 Wikipedia — Triangle
Last reviewed: 2026-10-19
FAQ
How do I find the hypotenuse?
c = √(a² + b²). With legs 3 and 4, the hypotenuse is √(9 + 16) = 5.
How do I find a missing leg?
Leg = √(c² − other leg²). With a hypotenuse of 13 and a leg of 5, the other leg is √(169 − 25) = 12.
How do I find the area from three sides?
Use Heron's formula: s = (a + b + c) ÷ 2, area = √(s(s−a)(s−b)(s−c)). Sides 5, 6 and 7 give about 14.7.
When can three lengths not form a triangle?
If the longest side is equal to or longer than the other two combined, e.g. 2, 3 and 6.
What are the side ratios of a 30-60-90 triangle?
1 : √3 : 2. A 45-45-90 triangle is 1 : 1 : √2.

How to solve a triangle

For a right triangle, the Pythagorean theorem (a² + b² = c²) finds the third side from any two. Any other triangle can be solved from three sides (SSS), two sides and the included angle (SAS), or two angles and the included side (ASA) using the laws of cosines and sines.

This calculator returns all three sides and angles, area, perimeter, height and the triangle type — useful for homework, diagonals and slopes alike.

Share