Triangle Solver
Calculate the area, perimeter, and interior angles of any triangle given its three side lengths. Uses Heron's formula for area and the law of cosines for angles.
Examples
Classic 3-4-5 right triangle
The most well-known Pythagorean triple, forming a right triangle.
- Side a
- 3
- Side b
- 4
- Side c
- 5
Embed this calculator
Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.
How It Works
Formula
Variables, symbols and units
- Length of side a
- Length of side b
- Length of side c
- Semi-perimeter (half the perimeter)
- Interior angle opposite side a
- Triangle area (Heron's formula)
Calculation method explained
Enter the lengths of all three sides (a, b, c). The calculator first checks the triangle inequality to ensure a valid triangle exists, then computes the semi-perimeter, area via Heron's formula, and all three interior angles using the law of cosines.
The same Law of Cosines pattern gives the other two angles by rotating the sides:
In practice the calculator computes A and B from the Law of Cosines and recovers to keep the angle sum exact.
Examples
Classic 3-4-5 right triangle3 · 4 → Yes
The most well-known Pythagorean triple, forming a right triangle.
- Side a
- 3
- Side b
- 4
- Side c
- 5
- Valid triangle?
- Yes
Equilateral triangle6 · 6 → Yes
All sides equal at 6 units — all angles should be 60°.
- Side a
- 6
- Side b
- 6
- Side c
- 6
- Valid triangle?
- Yes
Scalene triangle7 · 10 → Yes
A general triangle with sides 7, 10, and 12.
- Side a
- 7
- Side b
- 10
- Side c
- 12
- Valid triangle?
- Yes