Triangle Calculator
Enter a triangle's three side lengths (or a base and height for area only) to find its area, perimeter, angles, and classification, with every step shown.
On-screen number pad
Step-by-step proofCheck by hand
How the angles and classification are found
Given all three side lengths, Heron's formula finds the area without needing any angle, and the law of cosines — a generalization of the Pythagorean theorem — finds each angle from the three sides in turn. A triangle is equilateral if all three sides match, isosceles if exactly two do, and scalene if all three differ. It's a right triangle exactly when the square of its longest side equals the sum of the squares of the other two.
The formulas
Worked example
A 3-4-5 triangle: Heron's formula gives an area of 6, the perimeter is 3 + 4 + 5 = 12, and the law of cosines finds the angles as approximately 36.9°, 53.1°, and 90° — a right triangle, since 3² + 4² = 5².
Frequently asked questions
How are the angles calculated from just the three side lengths?
What's the difference between equilateral, isosceles and scalene?
How does this calculator check for a right triangle?
- Heron's formula, the law of cosines, and the Pythagorean theorem — general published mathematics.