Triangle Calculator

Solve a triangle from three measurements and see every step.

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Leave empty if unknown

Angles in

Choose degrees or radians.

Try

Result

You entereda=3, b=4, c=5a = 3,\ b = 4,\ c = 5

abcABC34536.869898∘53.130102∘90∘\displaystyle \begin{array}{cccccc} a & b & c & A & B & C \\ \hline 3 & 4 & 5 & 36.869898^\circ & 53.130102^\circ & 90^\circ \\ \end{array}

Area

6\displaystyle 6

Perimeter

12\displaystyle 12

Heights

4, 3, 2.4\displaystyle 4\text{, }3\text{, }2.4

Medians

4.272002, 3.605551, 2.5\displaystyle 4.272002\text{, }3.605551\text{, }2.5

Inradius

1\displaystyle 1

Circumradius

2.5\displaystyle 2.5

Type

scalene, right\displaystyle \text{scalene, right}
Show the work
  1. Three sides known (SSS)

    All three sides are given: a=3a = 3, b=4b = 4 and c=5c = 5. The law of cosines finds each angle from the three sides.

  2. Law of cosines (angle A)

    To find angle AA, use the two sides beside it and the side opposite it. Here b=4b = 4, c=5c = 5 and a=3a = 3.

    A=cos⁡−1(b2+c2−a22bc)=cos⁡−1((4)2+(5)2−(3)22×4×5)=cos⁡−1(3240)=cos⁡−1(0.8)=36.869898∘\begin{aligned} A &= \cos^{-1}\left(\frac{b^2 + c^2 - a^2}{2bc}\right) \\ &= \cos^{-1}\left(\frac{\left(4\right)^2 + \left(5\right)^2 - \left(3\right)^2}{2 \times 4 \times 5}\right) \\ &= \cos^{-1}\left(\frac{32}{40}\right) \\ &= \cos^{-1}\left(0.8\right) \\ &= 36.869898^\circ \end{aligned}
  3. Law of cosines (angle B)

    To find angle BB, use the two sides beside it and the side opposite it. Here a=3a = 3, c=5c = 5 and b=4b = 4.

    B=cos⁡−1(a2+c2−b22ac)=cos⁡−1((3)2+(5)2−(4)22×3×5)=cos⁡−1(1830)=cos⁡−1(0.6)=53.130102∘\begin{aligned} B &= \cos^{-1}\left(\frac{a^2 + c^2 - b^2}{2ac}\right) \\ &= \cos^{-1}\left(\frac{\left(3\right)^2 + \left(5\right)^2 - \left(4\right)^2}{2 \times 3 \times 5}\right) \\ &= \cos^{-1}\left(\frac{18}{30}\right) \\ &= \cos^{-1}\left(0.6\right) \\ &= 53.130102^\circ \end{aligned}
  4. Law of cosines (angle C)

    To find angle CC, use the two sides beside it and the side opposite it. Here a=3a = 3, b=4b = 4 and c=5c = 5.

    C=cos⁡−1(a2+b2−c22ab)=cos⁡−1((3)2+(4)2−(5)22×3×4)=cos⁡−1(024)=cos⁡−1(0)=90∘\begin{aligned} C &= \cos^{-1}\left(\frac{a^2 + b^2 - c^2}{2ab}\right) \\ &= \cos^{-1}\left(\frac{\left(3\right)^2 + \left(4\right)^2 - \left(5\right)^2}{2 \times 3 \times 4}\right) \\ &= \cos^{-1}\left(\frac{0}{24}\right) \\ &= \cos^{-1}\left(0\right) \\ &= 90^\circ \end{aligned}
  5. Semiperimeter

    Heron's formula needs ss, half the perimeter. Add the three sides a=3a = 3, b=4b = 4 and c=5c = 5 and halve the total.

    s=3+4+52=122=6\begin{aligned} s &= \frac{3 + 4 + 5}{2} \\ &= \frac{12}{2} \\ &= 6 \end{aligned}
  6. Heron's formula

    Heron's formula gives the area from the three sides alone, with s=6s = 6 from above. Work out each s−as - a, s−bs - b and s−cs - c, multiply, and take the square root.

    A=s(s−a)(s−b)(s−c)=6×(6−3)×(6−4)×(6−5)=6×3×2×1=36=6\begin{aligned} A &= \sqrt{s\left(s - a\right)\left(s - b\right)\left(s - c\right)} \\ &= \sqrt{6 \times \left(6 - 3\right) \times \left(6 - 4\right) \times \left(6 - 5\right)} \\ &= \sqrt{6 \times 3 \times 2 \times 1} \\ &= \sqrt{36} \\ &= 6 \end{aligned}
  7. Result

    So the triangle has a=3a = 3, b=4b = 4, c=5c = 5, A=36.869898∘A = 36.869898^\circ, B=53.130102∘B = 53.130102^\circ and C=90∘C = 90^\circ.

Worked examples

a=3, b=4, c=5a = 3,\ b = 4,\ c = 5
abcABC34536.869898∘53.130102∘90∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 3 & 4 & 5 & 36.869898^\circ & 53.130102^\circ & 90^\circ \\ \end{array}

Three sides known (SSS), Law of cosines (angle A)

a=5, b=5, c=6a = 5,\ b = 5,\ c = 6
abcABC55653.130102∘53.130102∘73.739795∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 5 & 5 & 6 & 53.130102^\circ & 53.130102^\circ & 73.739795^\circ \\ \end{array}

Three sides known (SSS), Law of cosines (angle A)

b=4, c=3, A=90∘b = 4,\ c = 3,\ A = 90^\circ
abcABC54390∘53.130102∘36.869898∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 5 & 4 & 3 & 90^\circ & 53.130102^\circ & 36.869898^\circ \\ \end{array}

Two sides and the angle between them (SAS), Law of cosines

c=2, A=60∘, B=60∘c = 2,\ A = 60^\circ,\ B = 60^\circ
abcABC22260∘60∘60∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 2 & 2 & 2 & 60^\circ & 60^\circ & 60^\circ \\ \end{array}

Two angles and the side between them (ASA), Angle sum of a triangle

a=10, A=45∘, B=60∘a = 10,\ A = 45^\circ,\ B = 60^\circ
abcABC1012.24744913.66025445∘60∘75∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 10 & 12.247449 & 13.660254 & 45^\circ & 60^\circ & 75^\circ \\ \end{array}

Two angles and a side not between them (AAS), Angle sum of a triangle

a=10, b=8, A=30∘a = 10,\ b = 8,\ A = 30^\circ
abcABC10816.09335530∘23.578178∘126.421822∘\begin{array}{cccccc} a & b & c & A & B & C \\ \hline 10 & 8 & 16.093355 & 30^\circ & 23.578178^\circ & 126.421822^\circ \\ \end{array}

Two sides and an angle not between them (SSA), Law of sines

a=6, b=8, A=30∘a = 6,\ b = 8,\ A = 30^\circ
abcABCTriangle 16811.40033930∘41.810315∘108.189685∘Triangle 2682.45606730∘138.189685∘11.810315∘\begin{array}{l|cccccc} & a & b & c & A & B & C \\ \hline \text{Triangle 1} & 6 & 8 & 11.400339 & 30^\circ & 41.810315^\circ & 108.189685^\circ \\ \text{Triangle 2} & 6 & 8 & 2.456067 & 30^\circ & 138.189685^\circ & 11.810315^\circ \\ \end{array}

Two sides and an angle not between them (SSA), Law of sines