Understanding the calculation
This calculator takes three side lengths and derives everything else about the triangle: its area, perimeter, and all three interior angles. It's useful whenever you know the side lengths but need the other measurements—common in surveying, construction, and geometry problems.
The formula
Area = √[s(s−a)(s−b)(s−c)] where s = (a+b+c)/2 (Heron's formula); Perimeter = a+b+c; cos(A) = (b²+c²−a²)/(2bc) (law of cosines)
Worked example
Suppose you have a triangle with sides a = 5 cm, b = 6 cm, and c = 7 cm.
Step 1: Check validity
- Is 5 + 6 > 7? Yes (11 > 7) ✓
- Is 5 + 7 > 6? Yes (12 > 6) ✓
- Is 6 + 7 > 5? Yes (13 > 5) ✓
The sides form a valid triangle.
Step 2: Calculate perimeter
- Perimeter = 5 + 6 + 7 = 18 cm
Step 3: Calculate area using Heron's formula
- Semi-perimeter: s = (5 + 6 + 7) / 2 = 9
- Area = √[9 × (9−5) × (9−6) × (9−7)]
- Area = √[9 × 4 × 3 × 2]
- Area = √216 ≈ 14.7 cm²
Step 4: Calculate angles using the law of cosines
For angle A (opposite side a = 5):
- cos(A) = (6² + 7² − 5²) / (2 × 6 × 7)
- cos(A) = (36 + 49 − 25) / 84 = 60 / 84 ≈ 0.714
- A = arccos(0.714) ≈ 44.4°
For angle B (opposite side b = 6):
- cos(B) = (5² + 7² − 6²) / (2 × 5 × 7)
- cos(B) = (25 + 49 − 36) / 70 = 38 / 70 ≈ 0.543
- B = arccos(0.543) ≈ 57.1°
For angle C (opposite side c = 7):
- C = 180° − 44.4° − 57.1° = 78.5°
Verification: 44.4° + 57.1° + 78.5° = 180° ✓
Common mistakes
Forgetting to check the triangle inequality. Before calculating, always verify that the sum of any two sides exceeds the third. Sides like 1, 2, and 5 will fail because 1 + 2 = 3, which is less than 5—no triangle exists.
Mixing up units. If your sides are in centimetres, the perimeter is in centimetres but the area is in square centimetres. Always label your answer with the correct unit.
Rounding too early. In Heron's formula and the law of cosines, keep extra decimal places during intermediate steps. Rounding the semi-perimeter or the cosine value prematurely can skew your final answer. Round only the final result.
Assuming you can use this for quadrilaterals or other shapes. This calculator is built specifically for triangles. Four-sided or irregular polygons need different formulas.