Triangle Calculator
Solve any valid three-side (SSS) triangle using Heron’s formula and the Law of Cosines to find area, perimeter, semi-perimeter, all three interior angles, altitude, and geometric classification.
Triangle Calculator
Enter values Calculate|
How a Three-Side (SSS) Triangle Is Solved
When you know the lengths of all three sides of a triangle ($a$, $b$, and $c$) without knowing its perpendicular height or angles, classical geometry solves the complete triangle in three steps: validating the Triangle Inequality Theorem, computing surface area via Heron’s Formula, and finding all three interior angles ($\angle A, \angle B, \angle C$) via the Law of Cosines:
$$\text{Semi-Perimeter } (s) = \frac{a + b + c}{2}, \qquad \text{Area} = \sqrt{s(s - a)(s - b)(s - c)}$$
$$\angle A = \arccos\!\left(\frac{b^2 + c^2 - a^2}{2bc}\right), \quad \angle B = \arccos\!\left(\frac{a^2 + c^2 - b^2}{2ac}\right), \quad \angle C = 180^\circ - \angle A - \angle B$$
$$\text{Altitude to Side } a \ (h_a) = \frac{2 \times \text{Area}}{a}$$
The Triangle Inequality Rule ($a + b > c$)
Not every combination of three positive numbers can form a closed planar triangle. For three line segments to meet at three vertices, the sum of the lengths of any two sides must be strictly greater than the length of the third side ($a + b > c$, $a + c > b$, and $b + c > a$). If the two shorter sides sum to exactly the longest side (such as $2, 3, 5$), the segments collapse into a flat degenerate line with $0$ area; if they sum to less (such as $2, 3, 6$), the ends cannot touch.
Worked Example: Classic 3–4–5 Right Triangle
- Perimeter & Semi-Perimeter ($s$): $P = 3 + 4 + 5 = \mathbf{12\text{ units}}$, $s = 12 \div 2 = \mathbf{6}$.
- Area (Heron’s Formula): $\sqrt{6(6 - 3)(6 - 4)(6 - 5)} = \sqrt{6 \times 3 \times 2 \times 1} = \sqrt{36} = \mathbf{6\text{ units}^2}$.
- Interior Angles: $\angle A = \mathbf{36.87^\circ}$, $\angle B = \mathbf{53.13^\circ}$, $\angle C = \mathbf{90.00^\circ}$.
- Altitude to Side $a = 3$: $h_a = (2 \times 6) \div 3 = \mathbf{4\text{ units}}$.
- Classification: Scalene, Right-angled triangle.
If you only know the base and perpendicular height of a triangle, use the Triangle mode in our Area Calculator; if you know two legs of a $90^\circ$ right triangle and need the hypotenuse, use the Pythagorean Theorem Calculator.