Triangle Calculator

Enter any three inputs that defines a triangle,
and click on Calculate button


\(a\) : units
\(b\) : units
\(c\) : units
\(∠A\) : degrees
\(∠B\) : degrees
\(∠C\) : degrees
\(Area\) : sq. units
\(P\) : units





How to use this Triangle Calculator 🤔

  1. There are input fields for side length \((a)\), side length \((b)\), side length \((c)\), angle \((∠A)\), angle \((∠B)\), angle \((∠C)\), Area \((Area)\), Perimeter \((P)\), and \((s)\). Enter any three inputs that defines a triangle,
    and click on Calculate button.
  2. The calculator uses the formula, substitues given values, and calcuates the missing value.
  3. The missing value is calcuated and displayed in the input field. Also, the caculation is displayed under the input section.

Examples

In the following examples, we cover scenarios where we find all the properties of a given triangle: all the three sides, all the three angles, perimeter, and area.

1. Example to solve triangle when three sides are given.

Answer

Given:

  • Side a = 5
  • Side b = 6
  • Side c = 7

Solving Perimeter:

The perimeter \( P \) is calculated using the formula:

\( P = a + b + c \)

\( P = 5 + 6 + 7 \)

\( P = 18 \)

Solving half perimeter:

The half perimeter \( s \) is calculated using the formula:

\( s = \frac{a + b + c}{2} \)

\( s = \frac{5 + 6 + 7}{2} \)

\( s = 9 \)

Solving area:

The area is calculated using Heron's formula:

\( \text{Area} = \sqrt{s(s-a)(s-b)(s-c)} \)

\( \text{Area} = \sqrt{9(9-5)(9-6)(9-7)} \)

\( \text{Area} = \sqrt{9 \times 4 \times 3 \times 2} \)

\( \text{Area} = \sqrt{216} \)

\( \text{Area} = 14.7 \)

Solving angle A:

\( \angle A = \cos^{-1} \left( \frac{b^2 + c^2 - a^2}{2bc} \right) \frac{180}{\pi} \)

\( \angle A = \cos^{-1} \left( \frac{6^2 + 7^2 - 5^2}{2 \times 6 \times 7} \right) \frac{180}{\pi} \)

\( \angle A = \cos^{-1} \left( \frac{36 + 49 - 25}{84} \right) \frac{180}{\pi} \)

\( \angle A = \cos^{-1} \left( \frac{60}{84} \right) \frac{180}{\pi} \)

\( \angle A = \cos^{-1} \left( 0.7143 \right) \frac{180}{\pi} \)

\( \angle A = 44.42° \)

Solving angle B:

\( \angle B = \cos^{-1} \left( \frac{a^2 + c^2 - b^2}{2ac} \right) \frac{180}{\pi} \)

\( \angle B = \cos^{-1} \left( \frac{5^2 + 7^2 - 6^2}{2 \times 5 \times 7} \right) \frac{180}{\pi} \)

\( \angle B = \cos^{-1} \left( \frac{25 + 49 - 36}{70} \right) \frac{180}{\pi} \)

\( \angle B = \cos^{-1} \left( \frac{38}{70} \right) \frac{180}{\pi} \)

\( \angle B = \cos^{-1} \left( 0.5429 \right) \frac{180}{\pi} \)

\( \angle B = 57.12° \)

Solving angle C:

\( \angle C = 180 - \angle A - \angle B \)

\( \angle C = 180 - 44.42 - 57.12 \)

\( \angle C = 78.46° \)

2. Example to solve triangle when two sides and included angle are given.

Answer

Given:

  • Side a = 5
  • Side b = 6
  • Included Angle ∠C = 45°

Solving Side c:

The side c is calculated using the formula:

\( c = \sqrt{a^2 + b^2 - 2ab \cos \angle C} \)

\( c = \sqrt{5^2 + 6^2 - 2 \times 5 \times 6 \times \cos 45°} \)

\( c = \sqrt{25 + 36 - 60 \times 0.7071} \)

\( c = \sqrt{25 + 36 - 42.426} \)

\( c = \sqrt{18.574} \)

\( c = 4.31 \)

Solving Perimeter:

The perimeter \( P \) is calculated using the formula:

\( P = a + b + c \)

\( P = 5 + 6 + 4.31 \)

\( P = 15.31 \)

Solving angle A:

\( \angle A = \sin^{-1} \left( \frac{a \sin \angle C}{c} \right) \frac{180}{\pi} \)

\( \angle A = \sin^{-1} \left( \frac{5 \times \sin 45°}{4.31} \right) \frac{180}{\pi} \)

\( \angle A = \sin^{-1} \left( \frac{5 \times 0.7071}{4.31} \right) \frac{180}{\pi} \)

\( \angle A = \sin^{-1} \left( \frac{3.5355}{4.31} \right) \frac{180}{\pi} \)

\( \angle A = \sin^{-1} (0.8202) \frac{180}{\pi} \)

\( \angle A = 55.32° \)

Solving angle B:

\( \angle B = 180 - \angle A - \angle C \)

\( \angle B = 180 - 55.32 - 45 \)

\( \angle B = 79.68° \)

Solving Area:

The area is calculated using the formula:

\( \text{Area} = \frac{1}{2} ab \sin \angle C \)

\( \text{Area} = \frac{1}{2} \times 5 \times 6 \times \sin 45° \)

\( \text{Area} = \frac{1}{2} \times 5 \times 6 \times 0.7071 \)

\( \text{Area} = \frac{1}{2} \times 30 \times 0.7071 \)

\( \text{Area} = 15 \times 0.7071 \)

\( \text{Area} = 10.61 \)