Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Triangle Calculator — Free Online Triangle Solver

Solve any triangle instantly using five input methods.

Triangle Results

Side a

5.0000

Side b

7.0000

Side c

8.0000

Perimeter

20.0000

Angle A

38.21°

Angle B

60.00°

Angle C

81.79°

Area

17.3205 sq units

Height to a

6.9282

Height to b

4.9487

Height to c

4.3301

Triangle Properties Reference Table

Triangle Type Sides Angles Special Property Example
Equilateral a = b = c All 60° Maximum symmetry 5, 5, 5
Isosceles Two equal Two equal Line of symmetry 5, 5, 8
Scalene All different All different No symmetry 3, 5, 7
Right a² + b² = c² One 90° Pythagorean theorem 3, 4, 5
Acute No constraint All < 90° All angles are acute 5, 6, 7
Obtuse No constraint One > 90° One obtuse angle 3, 4, 6
Right Isosceles a = b 45-45-90 c = a x sqrt(2) 1, 1, 1.414
30-60-90 1 : sqrt(3) : 2 30-60-90 Fixed ratio 1, 1.732, 2

Related Calculators

About this calculator

Triangle Formulas

Heron's Formula (Area from Three Sides)

s = (a + b + c) / 2, Area = sqrt(s(s-a)(s-b)(s-c))

Law of Cosines

c² = a² + b² - 2ab x cos(C)

Law of Sines

a / sin(A) = b / sin(B) = c / sin(C)

Height from Area

h_a = 2 x Area / a

Angle Sum Property

A + B + C = 180°

Variables Explained

  • a, b, c: The three side lengths of the triangle. Side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. All side lengths must be positive.
  • A, B, C: The three interior angles measured in degrees. Each angle must be greater than 0 and less than 180 degrees. Their sum always equals exactly 180 degrees.
  • s: The semi-perimeter, equal to half the perimeter. Used in Heron's formula for calculating area from side lengths alone.
  • h_a, h_b, h_c: The three altitudes (heights) of the triangle. Each height is measured perpendicular to its corresponding base.

Step-by-Step Example (SSS Method)

Solve a triangle with sides a = 5, b = 7, c = 8:

  1. Calculate the semi-perimeter: s = (5 + 7 + 8) / 2 = 10
  2. Apply Heron's formula: Area = sqrt(10 x 5 x 3 x 2) = sqrt(300) = 17.32 sq units
  3. Find angle A using the Law of Cosines: cos(A) = (7² + 8² - 5²) / (2 x 7 x 8) = 0.7857, so A = 38.21°
  4. Find angle B: cos(B) = (5² + 8² - 7²) / (2 x 5 x 8) = 0.5, so B = 60°
  5. Find angle C: C = 180 - 38.21 - 60 = 81.79°
  6. Calculate heights: h_a = 2 x 17.32 / 5 = 6.93, h_b = 2 x 17.32 / 7 = 4.95, h_c = 2 x 17.32 / 8 = 4.33

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026