Triangle Side and Angle Calculator

Triangle Side and Angle Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

c=Side a2+Side b2−2Side aSide bcos⁡(Angle C)c = \sqrt{\text{Side a}^{2} + \text{Side b}^{2} - 2\,\text{Side a}\,\text{Side b}\cos\!\left(\text{Angle C}\right)}
Show calculation steps (2)
  1. Angle A (Law of Sines)

    A=arcsin⁡(Side asin⁡(Angle C)c)B=180∘−Angle C−A\begin{gathered} A = \arcsin\!\left(\frac{\text{Side a}\,\sin\!\left(\text{Angle C}\right)}{c}\right) \\[1em] B = 180^{\circ} - \text{Angle C} - A \end{gathered}

    A is found from the Law of Sines; then B = 180 - C - A.

  2. Area and Perimeter

    Area=12Side aSide bsin⁡(Angle C)P=Side a+Side b+c\begin{gathered} \text{Area} = \tfrac{1}{2}\,\text{Side a}\,\text{Side b}\,\sin\!\left(\text{Angle C}\right) \\[1em] P = \text{Side a} + \text{Side b} + c \end{gathered}

    Area from two sides and included angle; perimeter is the sum of all sides.

Usage stats

Advertisement

Results

Third Side (c)
8.6023
opposite the included angle C
Angle A (degrees) 35.54
Angle B (degrees) 54.46
Perimeter 20.6023
Area 17.5

Report an error on this page

What this calculator does

This is an SAS (Side-Angle-Side) triangle solver. Given two sides of a triangle and the angle between them, it computes the third side, both remaining angles, the perimeter and the area. It uses the Law of Cosines to find the missing side and the Law of Sines to recover the angles — the same approach used in trigonometry, surveying, navigation and engineering.

Triangle with two known sides and the included angle marked, third side unknown
SAS setup: two sides a and b with the included angle C, solving for side c.

How to use it

Enter the lengths of side a and side b (any unit, as long as both match), then enter the included angle C in degrees — this is the angle formed where sides a and b meet. Click calculate. The result shows side c (opposite angle C), angle A (opposite side a), angle B (opposite side b), the perimeter and the area.

The formulas explained

The Law of Cosines generalizes the Pythagorean theorem: c² = a² + b² − 2ab·cos C. When C is 90°, cos C = 0 and it reduces to c² = a² + b². Once c is known, the Law of Sines, a/sin A = c/sin C, gives angle A. The last angle follows from the fact that all three add to 180°: B = 180° − C − A. The area uses ½·a·b·sin C.

$$c = \sqrt{a^{2} + b^{2} - 2ab\cos C}$$$$\frac{a}{\sin A} = \frac{c}{\sin C}$$$$B = 180^{\circ} - C - A$$$$\text{Area} = \tfrac{1}{2}\,a\,b\,\sin C$$
Advertisement
Triangle showing area as half a times b times sine of included angle C
The area equals ½·a·b·sin C, using the two sides and their included angle.

Worked example

Suppose a = 5, b = 7 and the included angle C = 60°. Then \(c^{2} = 25 + 49 - 2\cdot 5\cdot 7\cdot\cos 60^{\circ} = 74 - 70\cdot 0.5 = 39\), so \(c = \sqrt{39} \approx 6.245\). Angle \(A = \arcsin\!\left(\dfrac{5\cdot\sin 60^{\circ}}{6.245}\right) \approx 43.9^{\circ}\), and \(B = 180 - 60 - 43.9 \approx 76.1^{\circ}\). The area is \(\tfrac{1}{2}\cdot 5\cdot 7\cdot\sin 60^{\circ} \approx 15.16\) square units.

Advertisement

How the Result Changes with the Included Angle

The table keeps sides a = 5 and b = 7 fixed and changes only the included angle C. Each row uses the Law of Cosines, \(c = \sqrt{a^2 + b^2 - 2ab\cos C}\), and the area formula \(\tfrac12 ab\sin C\). The angles A and B come from the Law of Cosines, so no obtuse-angle ambiguity arises. Values are rounded.

C c A B Perimeter Area
30° 3.658 43.1° 106.9° 15.658 8.75
60° 6.245 43.9° 76.1° 18.245 15.155
90° 8.602 35.5° 54.5° 20.602 17.5
120° 10.440 24.5° 35.5° 22.440 15.155
150° 11.603 12.4° 17.6° 23.603 8.75

Two patterns stand out:

  • The side c grows steadily as C increases, because the term \(-2ab\cos C\) goes from negative to positive. At C = 90° it reduces to the Pythagorean theorem, \(c = \sqrt{25 + 49} = \sqrt{74}\).
  • The area peaks at C = 90°, where \(\sin C = 1\) and the area is \(\tfrac12 \cdot 5 \cdot 7 = 17.5\). Angles that add up to 180° (30° and 150°, or 60° and 120°) have equal sines and therefore equal areas.

FAQ

What is the "included" angle? It is the angle located between the two sides you entered (a and b). It is opposite the side you are solving for.

Can I use any units? Yes — feet, meters, inches, anything — as long as sides a and b use the same unit. Angles must be in degrees.

Why does my angle look wrong? This solver assumes a valid SAS triangle with the angle strictly between 0° and 180°; arcsin returns the acute solution, which is always correct for an included angle case.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators