# Triangle calculator SSA

Please enter two sides and a non-included angle
°

Triangle has two solutions with side c=57.91441161279 and with side c=32.47991281602

### #1 Acute scalene triangle.

Sides: a = 59   b = 40   c = 57.91441161279

Area: T = 1098.181105005
Perimeter: p = 156.9144116128
Semiperimeter: s = 78.45770580639

Angle ∠ A = α = 71.46217696984° = 71°27'42″ = 1.24772431705 rad
Angle ∠ B = β = 40° = 0.69881317008 rad
Angle ∠ C = γ = 68.53882303016° = 68°32'18″ = 1.19662177823 rad

Height: ha = 37.22664762729
Height: hb = 54.90990525026
Height: hc = 37.92444689715

Median: ma = 40.08545659006
Median: mb = 54.93219799701
Median: mc = 41.25551668071

Vertex coordinates: A[57.91441161279; 0] B[0; 0] C[45.1976622144; 37.92444689715]
Centroid: CG[34.37702460906; 12.64114896572]
Coordinates of the circumscribed circle: U[28.95770580639; 11.38441749137]
Coordinates of the inscribed circle: I[38.45770580639; 13.99772244327]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 108.5388230302° = 108°32'18″ = 1.24772431705 rad
∠ B' = β' = 140° = 0.69881317008 rad
∠ C' = γ' = 111.4621769698° = 111°27'42″ = 1.19662177823 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

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 = 59 \ \\ b = 40 \ \\ c = 57.91$

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

$p = a+b+c = 59+40+57.91 = 156.91$

### 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{ 156.91 }{ 2 } = 78.46$

### 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{ 78.46(78.46-59)(78.46-40)(78.46-57.91) } \ \\ T = \sqrt{ 1206001.62 } = 1098.18$

### 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 \ 1098.18 }{ 59 } = 37.23 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 1098.18 }{ 40 } = 54.91 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 1098.18 }{ 57.91 } = 37.92$

### 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{ 40^2+57.91^2-59^2 }{ 2 \cdot \ 40 \cdot \ 57.91 } ) = 71^\circ 27'42" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 59^2+57.91^2-40^2 }{ 2 \cdot \ 59 \cdot \ 57.91 } ) = 40^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 71^\circ 27'42" - 40^\circ = 68^\circ 32'18"$

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{ 1098.18 }{ 78.46 } = 14$

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{ 59 \cdot \ 40 \cdot \ 57.91 }{ 4 \cdot \ 13.997 \cdot \ 78.457 } = 31.11$

### 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 \ 40^2+2 \cdot \ 57.91^2 - 59^2 } }{ 2 } = 40.085 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 57.91^2+2 \cdot \ 59^2 - 40^2 } }{ 2 } = 54.932 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 59^2+2 \cdot \ 40^2 - 57.91^2 } }{ 2 } = 41.255$

### #2 Obtuse scalene triangle.

Sides: a = 59   b = 40   c = 32.47991281602

Area: T = 615.8776844066
Perimeter: p = 131.479912816
Semiperimeter: s = 65.74395640801

Angle ∠ A = α = 108.5388230302° = 108°32'18″ = 1.89443494831 rad
Angle ∠ B = β = 40° = 0.69881317008 rad
Angle ∠ C = γ = 31.46217696984° = 31°27'42″ = 0.54991114697 rad

Height: ha = 20.87771811548
Height: hb = 30.79438422033
Height: hc = 37.92444689715

Median: ma = 21.38221627302
Median: mb = 43.22197510754
Median: mc = 47.71655798297

Vertex coordinates: A[32.47991281602; 0] B[0; 0] C[45.1976622144; 37.92444689715]
Centroid: CG[25.89219167681; 12.64114896572]
Coordinates of the circumscribed circle: U[16.24395640801; 26.54402940578]
Coordinates of the inscribed circle: I[25.74395640801; 9.36884351681]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 71.46217696984° = 71°27'42″ = 1.89443494831 rad
∠ B' = β' = 140° = 0.69881317008 rad
∠ C' = γ' = 148.5388230302° = 148°32'18″ = 0.54991114697 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

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 = 59 \ \\ b = 40 \ \\ c = 32.48$

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

$p = a+b+c = 59+40+32.48 = 131.48$

### 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{ 131.48 }{ 2 } = 65.74$

### 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{ 65.74(65.74-59)(65.74-40)(65.74-32.48) } \ \\ T = \sqrt{ 379304.29 } = 615.88$

### 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 \ 615.88 }{ 59 } = 20.88 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 615.88 }{ 40 } = 30.79 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 615.88 }{ 32.48 } = 37.92$

### 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{ 40^2+32.48^2-59^2 }{ 2 \cdot \ 40 \cdot \ 32.48 } ) = 108^\circ 32'18" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 59^2+32.48^2-40^2 }{ 2 \cdot \ 59 \cdot \ 32.48 } ) = 40^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 108^\circ 32'18" - 40^\circ = 31^\circ 27'42"$

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{ 615.88 }{ 65.74 } = 9.37$

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{ 59 \cdot \ 40 \cdot \ 32.48 }{ 4 \cdot \ 9.368 \cdot \ 65.74 } = 31.11$

### 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 \ 40^2+2 \cdot \ 32.48^2 - 59^2 } }{ 2 } = 21.382 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 32.48^2+2 \cdot \ 59^2 - 40^2 } }{ 2 } = 43.22 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 59^2+2 \cdot \ 40^2 - 32.48^2 } }{ 2 } = 47.716$