Right Triangle Calculator

Solve a right triangle from two measurements with C = 90°.

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=90∘a = 3,\ b = 4,\ C = 90^\circ

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. Two sides and the angle between them (SAS)

    Two sides and the angle between them are given: a=3a = 3, b=4b = 4 and C=90∘C = 90^\circ. The law of cosines finds the third side, and then each remaining angle.

  2. Law of cosines

    The law of cosines extends Pythagoras' theorem to any triangle. It builds the side cc opposite the known angle C=90∘C = 90^\circ from the two sides beside that angle: a=3a = 3 and b=4b = 4.

    c2=a2+b2−2abcos⁡C=(3)2+(4)2−2×3×4×cos⁡90∘=9+16−0=25\begin{aligned} c^2 &= a^2 + b^2 - 2ab\cos C \\ &= \left(3\right)^2 + \left(4\right)^2 - 2 \times 3 \times 4 \times \cos 90^\circ \\ &= 9 + 16 - 0 \\ &= 25 \end{aligned}
  3. Take the square root

    A side is a length, so take the positive square root of c2c^2.

    c=25=5\begin{aligned} c &= \sqrt{25} \\ &= 5 \end{aligned}
  4. 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}
  5. 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}
  6. Area of a triangle

    The area is half the product of two sides and the sine of the angle between them. Here a=3a = 3, b=4b = 4 and C=90∘C = 90^\circ.

    A=12absin⁡C=12×3×4×sin⁡90∘=12×3×4×1=6\begin{aligned} A &= \tfrac12 ab\sin C \\ &= \tfrac12 \times 3 \times 4 \times \sin 90^\circ \\ &= \tfrac12 \times 3 \times 4 \times 1 \\ &= 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