# Triangle calculator SSA

Please enter two sides and a non-included angle
°

Triangle has two solutions with side c=19.42223257971 and with side c=16.70765470629

### #1 Acute scalene triangle.

Sides: a = 24.7   b = 16.9   c = 19.42223257971

Area: T = 163.5888030126
Perimeter: p = 61.02223257971
Semiperimeter: s = 30.51111628985

Angle ∠ A = α = 85.39114031612° = 85°23'29″ = 1.49903611381 rad
Angle ∠ B = β = 43° = 0.75504915784 rad
Angle ∠ C = γ = 51.60985968388° = 51°36'31″ = 0.90107399372 rad

Height: ha = 13.24659943422
Height: hb = 19.36595301925
Height: hc = 16.84553594935

Median: ma = 13.37551960615
Median: mb = 20.54988654111
Median: mc = 18.80327475428

Vertex coordinates: A[19.42223257971; 0] B[0; 0] C[18.064443643; 16.84553594935]
Centroid: CG[12.4965587409; 5.61551198312]
Coordinates of the circumscribed circle: U[9.71111628985; 7.69546007123]
Coordinates of the inscribed circle: I[13.61111628985; 5.3621579651]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 94.60985968388° = 94°36'31″ = 1.49903611381 rad
∠ B' = β' = 137° = 0.75504915784 rad
∠ C' = γ' = 128.3911403161° = 128°23'29″ = 0.90107399372 rad

# How did we calculate this triangle?

The calculation of the triangle progress in two phases. The first phase is such that we try to calculate all three sides of the triangle from the input parameters. The first phase is different for the different triangles query entered. The second phase is the calculation of other characteristics of the triangle, such as angles, area, perimeter, heights, the center of gravity, circle radii, etc. Some input data also results in two to three correct triangle solutions (e.g., if the specified triangle area and two sides - typically resulting in both acute and obtuse) triangle).

### 1. Use the Law of Cosines

$a = 24.7 \ \\ b = 16.9 \ \\ β = 43^\circ \ \\ \ \\ b^2 = a^2 + c^2 - 2ac \cos β \ \\ 16.9^2 = 24.7^2 + c^2 -2 \cdot \ 24.7 \cdot \ c \cdot \ \cos (43^\circ ) \ \\ \ \\ c^2 -36.129c +324.48 =0 \ \\ \ \\ p=1; q=-36.129; r=324.48 \ \\ D = q^2 - 4pr = 36.129^2 - 4\cdot 1 \cdot 324.48 = 7.3754541331 \ \\ D>0 \ \\ \ \\ c_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 36.13 \pm \sqrt{ 7.38 } }{ 2 } \ \\ c_{1,2} = 18.06443643 \pm 1.3578893671 \ \\ c_{1} = 19.4223257971 \ \\ c_{2} = 16.7065470629 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (c -19.4223257971) (c -16.7065470629) = 0 \ \\ \ \\ \ \\ c>0$

Now we know the lengths of all three sides of the triangle, and the triangle is uniquely determined. Next, we calculate another its characteristics - same procedure as calculation of the triangle from the known three sides SSS.

$a = 24.7 \ \\ b = 16.9 \ \\ c = 19.42$

### 2. The triangle perimeter is the sum of the lengths of its three sides

$p = a+b+c = 24.7+16.9+19.42 = 61.02$

### 3. Semiperimeter of the triangle

The semiperimeter of the triangle is half its perimeter. The semiperimeter frequently appears in formulas for triangles that it is given a separate name. By the triangle inequality, the longest side length of a triangle is less than the semiperimeter.

$s = \dfrac{ p }{ 2 } = \dfrac{ 61.02 }{ 2 } = 30.51$

### 4. The triangle area using Heron's formula

Heron's formula gives the area of a triangle when the length of all three sides are known. There is no need to calculate angles or other distances in the triangle first. Heron's formula works equally well in all cases and types of triangles.

$T = \sqrt{ s(s-a)(s-b)(s-c) } \ \\ T = \sqrt{ 30.51(30.51-24.7)(30.51-16.9)(30.51-19.42) } \ \\ T = \sqrt{ 26761.04 } = 163.59$

### 5. Calculate the heights of the triangle from its area.

There are many ways to find the height of the triangle. The easiest way is from the area and base length. The area of a triangle is half of the product of the length of the base and the height. Every side of the triangle can be a base; there are three bases and three heights (altitudes). Triangle height is the perpendicular line segment from a vertex to a line containing the base.

$T = \dfrac{ a h _a }{ 2 } \ \\ \ \\ h _a = \dfrac{ 2 \ T }{ a } = \dfrac{ 2 \cdot \ 163.59 }{ 24.7 } = 13.25 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 163.59 }{ 16.9 } = 19.36 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 163.59 }{ 19.42 } = 16.85$

### 6. Calculation of the inner angles of the triangle using a Law of Cosines

The Law of Cosines is useful for finding the angles of a triangle when we know all three sides. The cosine rule, also known as the law of cosines, relates all three sides of a triangle with an angle of a triangle. The Law of Cosines is the extrapolation of the Pythagorean theorem for any triangle. Pythagorean theorem works only in a right triangle. Pythagorean theorem is a special case of the Law of Cosines and can be derived from it because the cosine of 90° is 0. It is best to find the angle opposite the longest side first. With the Law of Cosines, there is also no problem with obtuse angles as with the Law of Sines, because cosine function is negative for obtuse angles, zero for right, and positive for acute angles. We also use inverse cosine called arccosine to determine the angle from cosine value.

$a^2 = b^2+c^2 - 2bc \cos α \ \\ \ \\ α = \arccos(\dfrac{ b^2+c^2-a^2 }{ 2bc } ) = \arccos(\dfrac{ 16.9^2+19.42^2-24.7^2 }{ 2 \cdot \ 16.9 \cdot \ 19.42 } ) = 85^\circ 23'29" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 24.7^2+19.42^2-16.9^2 }{ 2 \cdot \ 24.7 \cdot \ 19.42 } ) = 43^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 85^\circ 23'29" - 43^\circ = 51^\circ 36'31"$

An incircle of a triangle is a circle which is tangent to each side. An incircle center is called incenter and has a radius named inradius. All triangles have an incenter, and it always lies inside the triangle. The incenter is the intersection of the three angle bisectors. The product of the inradius and semiperimeter (half the perimeter) of a triangle is its area.

$T = rs \ \\ r = \dfrac{ T }{ s } = \dfrac{ 163.59 }{ 30.51 } = 5.36$

The circumcircle of a triangle is a circle that passes through all of the triangle's vertices, and the circumradius of a triangle is the radius of the triangle's circumcircle. Circumcenter (center of circumcircle) is the point where the perpendicular bisectors of a triangle intersect.

$R = \dfrac{ a b c }{ 4 \ r s } = \dfrac{ 24.7 \cdot \ 16.9 \cdot \ 19.42 }{ 4 \cdot \ 5.362 \cdot \ 30.511 } = 12.39$

### 9. Calculation of medians

A median of a triangle is a line segment joining a vertex to the midpoint of the opposite side. Every triangle has three medians, and they all intersect each other at the triangle's centroid. The centroid divides each median into parts in the ratio 2:1, with the centroid being twice as close to the midpoint of a side as it is to the opposite vertex. We use Apollonius's theorem to calculate the length of a median from the lengths of its side.

$m_a = \dfrac{ \sqrt{ 2b^2+2c^2 - a^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 16.9^2+2 \cdot \ 19.42^2 - 24.7^2 } }{ 2 } = 13.375 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 19.42^2+2 \cdot \ 24.7^2 - 16.9^2 } }{ 2 } = 20.549 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 24.7^2+2 \cdot \ 16.9^2 - 19.42^2 } }{ 2 } = 18.803$

### #2 Obtuse scalene triangle.

Sides: a = 24.7   b = 16.9   c = 16.70765470629

Area: T = 140.7143895585
Perimeter: p = 58.30765470629
Semiperimeter: s = 29.15332735314

Angle ∠ A = α = 94.60985968388° = 94°36'31″ = 1.65112315155 rad
Angle ∠ B = β = 43° = 0.75504915784 rad
Angle ∠ C = γ = 42.39114031612° = 42°23'29″ = 0.74398695597 rad

Height: ha = 11.39438376992
Height: hb = 16.65325320219
Height: hc = 16.84553594935

Median: ma = 11.3954597728
Median: mb = 19.3188303688
Median: mc = 19.4444094767

Vertex coordinates: A[16.70765470629; 0] B[0; 0] C[18.064443643; 16.84553594935]
Centroid: CG[11.5990327831; 5.61551198312]
Coordinates of the circumscribed circle: U[8.35332735314; 9.15107587812]
Coordinates of the inscribed circle: I[12.25332735314; 4.82766928046]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 85.39114031612° = 85°23'29″ = 1.65112315155 rad
∠ B' = β' = 137° = 0.75504915784 rad
∠ C' = γ' = 137.6098596839° = 137°36'31″ = 0.74398695597 rad

# How did we calculate this triangle?

The calculation of the triangle progress in two phases. The first phase is such that we try to calculate all three sides of the triangle from the input parameters. The first phase is different for the different triangles query entered. The second phase is the calculation of other characteristics of the triangle, such as angles, area, perimeter, heights, the center of gravity, circle radii, etc. Some input data also results in two to three correct triangle solutions (e.g., if the specified triangle area and two sides - typically resulting in both acute and obtuse) triangle).

### 1. Use the Law of Cosines

$a = 24.7 \ \\ b = 16.9 \ \\ β = 43^\circ \ \\ \ \\ b^2 = a^2 + c^2 - 2ac \cos β \ \\ 16.9^2 = 24.7^2 + c^2 -2 \cdot \ 24.7 \cdot \ c \cdot \ \cos (43^\circ ) \ \\ \ \\ c^2 -36.129c +324.48 =0 \ \\ \ \\ p=1; q=-36.129; r=324.48 \ \\ D = q^2 - 4pr = 36.129^2 - 4\cdot 1 \cdot 324.48 = 7.3754541331 \ \\ D>0 \ \\ \ \\ c_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 36.13 \pm \sqrt{ 7.38 } }{ 2 } \ \\ c_{1,2} = 18.06443643 \pm 1.3578893671 \ \\ c_{1} = 19.4223257971 \ \\ c_{2} = 16.7065470629 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (c -19.4223257971) (c -16.7065470629) = 0 \ \\ \ \\ \ \\ c>0$

Now we know the lengths of all three sides of the triangle, and the triangle is uniquely determined. Next, we calculate another its characteristics - same procedure as calculation of the triangle from the known three sides SSS.

$a = 24.7 \ \\ b = 16.9 \ \\ c = 16.71$

### 2. The triangle perimeter is the sum of the lengths of its three sides

$p = a+b+c = 24.7+16.9+16.71 = 58.31$

### 3. Semiperimeter of the triangle

The semiperimeter of the triangle is half its perimeter. The semiperimeter frequently appears in formulas for triangles that it is given a separate name. By the triangle inequality, the longest side length of a triangle is less than the semiperimeter.

$s = \dfrac{ p }{ 2 } = \dfrac{ 58.31 }{ 2 } = 29.15$

### 4. The triangle area using Heron's formula

Heron's formula gives the area of a triangle when the length of all three sides are known. There is no need to calculate angles or other distances in the triangle first. Heron's formula works equally well in all cases and types of triangles.

$T = \sqrt{ s(s-a)(s-b)(s-c) } \ \\ T = \sqrt{ 29.15(29.15-24.7)(29.15-16.9)(29.15-16.71) } \ \\ T = \sqrt{ 19800.4 } = 140.71$

### 5. Calculate the heights of the triangle from its area.

There are many ways to find the height of the triangle. The easiest way is from the area and base length. The area of a triangle is half of the product of the length of the base and the height. Every side of the triangle can be a base; there are three bases and three heights (altitudes). Triangle height is the perpendicular line segment from a vertex to a line containing the base.

$T = \dfrac{ a h _a }{ 2 } \ \\ \ \\ h _a = \dfrac{ 2 \ T }{ a } = \dfrac{ 2 \cdot \ 140.71 }{ 24.7 } = 11.39 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 140.71 }{ 16.9 } = 16.65 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 140.71 }{ 16.71 } = 16.85$

### 6. Calculation of the inner angles of the triangle using a Law of Cosines

The Law of Cosines is useful for finding the angles of a triangle when we know all three sides. The cosine rule, also known as the law of cosines, relates all three sides of a triangle with an angle of a triangle. The Law of Cosines is the extrapolation of the Pythagorean theorem for any triangle. Pythagorean theorem works only in a right triangle. Pythagorean theorem is a special case of the Law of Cosines and can be derived from it because the cosine of 90° is 0. It is best to find the angle opposite the longest side first. With the Law of Cosines, there is also no problem with obtuse angles as with the Law of Sines, because cosine function is negative for obtuse angles, zero for right, and positive for acute angles. We also use inverse cosine called arccosine to determine the angle from cosine value.

$a^2 = b^2+c^2 - 2bc \cos α \ \\ \ \\ α = \arccos(\dfrac{ b^2+c^2-a^2 }{ 2bc } ) = \arccos(\dfrac{ 16.9^2+16.71^2-24.7^2 }{ 2 \cdot \ 16.9 \cdot \ 16.71 } ) = 94^\circ 36'31" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 24.7^2+16.71^2-16.9^2 }{ 2 \cdot \ 24.7 \cdot \ 16.71 } ) = 43^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 94^\circ 36'31" - 43^\circ = 42^\circ 23'29"$

An incircle of a triangle is a circle which is tangent to each side. An incircle center is called incenter and has a radius named inradius. All triangles have an incenter, and it always lies inside the triangle. The incenter is the intersection of the three angle bisectors. The product of the inradius and semiperimeter (half the perimeter) of a triangle is its area.

$T = rs \ \\ r = \dfrac{ T }{ s } = \dfrac{ 140.71 }{ 29.15 } = 4.83$

The circumcircle of a triangle is a circle that passes through all of the triangle's vertices, and the circumradius of a triangle is the radius of the triangle's circumcircle. Circumcenter (center of circumcircle) is the point where the perpendicular bisectors of a triangle intersect.

$R = \dfrac{ a b c }{ 4 \ r s } = \dfrac{ 24.7 \cdot \ 16.9 \cdot \ 16.71 }{ 4 \cdot \ 4.827 \cdot \ 29.153 } = 12.39$

### 9. Calculation of medians

A median of a triangle is a line segment joining a vertex to the midpoint of the opposite side. Every triangle has three medians, and they all intersect each other at the triangle's centroid. The centroid divides each median into parts in the ratio 2:1, with the centroid being twice as close to the midpoint of a side as it is to the opposite vertex. We use Apollonius's theorem to calculate the length of a median from the lengths of its side.

$m_a = \dfrac{ \sqrt{ 2b^2+2c^2 - a^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 16.9^2+2 \cdot \ 16.71^2 - 24.7^2 } }{ 2 } = 11.395 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 16.71^2+2 \cdot \ 24.7^2 - 16.9^2 } }{ 2 } = 19.318 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 24.7^2+2 \cdot \ 16.9^2 - 16.71^2 } }{ 2 } = 19.444$