ZU CALCULATOR
Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required.
Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required. Free calculators for everyday decisions ❤️ fast, clear and no sign-up required.
Home / Math & General / Triangle Calculator
Math & General

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.

Developed and maintained by Muhammad Zakria • Verified Formula & Worked Examples • Editorial Policy • Disclaimer

Triangle Calculator

Enter values Calculate
Result

|

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.

Frequently asked questions

Why did the calculator return a "Triangle inequality violated" error for my side lengths?
A valid triangle requires that the two shorter sides added together are strictly longer than the longest side. For example, sides of 4, 5, and 10 cannot form a triangle because 4 + 5 = 9, which is too short to bridge a base of 10.
What is the difference between Equilateral, Isosceles, and Scalene triangles?
An Equilateral triangle has all three sides equal (a = b = c) and all three interior angles equal to 60°. An Isosceles triangle has two equal sides and two equal opposite angles. A Scalene triangle has three different side lengths and three different interior angles.
How does the calculator determine if a triangle is Acute, Right, or Obtuse?
By comparing the largest interior angle (or c² vs. a² + b² for the longest side c): if the largest angle equals 90° (c² = a² + b²), it is a Right triangle; if all three angles are less than 90° (c² < a² + b²), it is Acute; if one angle exceeds 90° (c² > a² + b²), it is Obtuse.
Why is Heron’s formula so useful in land surveying and construction?
Measuring a true 90-degree perpendicular altitude across an irregular triangular lot or roof gable on-site is difficult, whereas measuring the three straight boundary edges with a tape measure or laser disto is fast and exact. Heron’s formula converts those three edge lengths directly into square footage.
Developed and maintained by Muhammad Zakria. Calculations are informational estimates based on standard formulas. Creator Profile • Editorial Policy • Disclaimer • Report an Issue