Triangle calculator

You have entered side a, b and angle β.

Triangle has two solutions: a=39.2; b=28.6; c=14.04110700862 and a=39.2; b=28.6; c=51.18441330889.

#1 Obtuse scalene triangle.

Sides: a = 39.2   b = 28.6   c = 14.04110700862

Area: T = 152.6965946057
Perimeter: p = 81.84110700862
Semiperimeter: s = 40.92105350431

Angle ∠ A = α = 130.493293264° = 130°29'35″ = 2.27875313251 rad
Angle ∠ B = β = 33.7° = 33°42' = 0.58881759579 rad
Angle ∠ C = γ = 15.80770673602° = 15°48'25″ = 0.27658853705 rad

Height: ha = 7.79106094927
Height: hb = 10.67880381858
Height: hc = 21.7549901556

Median: ma = 11.1088367323
Median: mb = 25.73772458624
Median: mc = 33.58658912002

Vertex coordinates: A[14.04110700862; 0] B[0; 0] C[32.61326015875; 21.7549901556]
Centroid: CG[15.55112238912; 7.25499671853]
Coordinates of the circumscribed circle: U[7.02105350431; 24.79883691476]
Coordinates of the inscribed circle: I[12.32105350431; 3.73215236933]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 49.50770673602° = 49°30'25″ = 2.27875313251 rad
∠ B' = β' = 146.3° = 146°18' = 0.58881759579 rad
∠ C' = γ' = 164.193293264° = 164°11'35″ = 0.27658853705 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. Input data entered: side a, b and angle β.

$a = 39.2 \ \\ b = 28.6 \ \\ β = 33.7^\circ$

2. From angle β, side a and side b we calculate side c - by using the law of cosines and quadratic equation:

$b^2 = a^2 + c^2 - 2a c \cos β \ \\ \ \\ 28.6^2 = 39.2^2 + c^2 - 2 \cdot \ 39.2 \cdot \ c \cdot \ \cos 33^\circ 42' \ \\ \ \\ \ \\ c^2 -65.225c +718.68 =0 \ \\ \ \\ p=1; q=-65.225; r=718.68 \ \\ D = q^2 - 4pr = 65.225^2 - 4\cdot 1 \cdot 718.68 = 1379.60712922 \ \\ D>0 \ \\ \ \\ c_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 65.23 \pm \sqrt{ 1379.61 } }{ 2 } \ \\ c_{1,2} = 32.61260159 \pm 18.5715315014 \ \\ c_{1} = 51.1841330889 \ \\ c_{2} = 14.0410700862 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (c -51.1841330889) (c -14.0410700862) = 0 \ \\ \ \\ \ \\ c > 0 \ \\ \ \\ c = 51.184$

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 = 39.2 \ \\ b = 28.6 \ \\ c = 14.04$

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

$p = a+b+c = 39.2+28.6+14.04 = 81.84$

4. 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{ 81.84 }{ 2 } = 40.92$

5. 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{ 40.92(40.92-39.2)(40.92-28.6)(40.92-14.04) } \ \\ T = \sqrt{ 23316.05 } = 152.7$

6. 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 \ 152.7 }{ 39.2 } = 7.79 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 152.7 }{ 28.6 } = 10.68 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 152.7 }{ 14.04 } = 21.75$

7. 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{ 28.6^2+14.04^2-39.2^2 }{ 2 \cdot \ 28.6 \cdot \ 14.04 } ) = 130^\circ 29'35" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 39.2^2+14.04^2-28.6^2 }{ 2 \cdot \ 39.2 \cdot \ 14.04 } ) = 33^\circ 42' \ \\ γ = 180^\circ - α - β = 180^\circ - 130^\circ 29'35" - 33^\circ 42' = 15^\circ 48'25"$

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{ 152.7 }{ 40.92 } = 3.73$

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{ 39.2 \cdot \ 28.6 \cdot \ 14.04 }{ 4 \cdot \ 3.732 \cdot \ 40.921 } = 25.77$

10. 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 \ 28.6^2+2 \cdot \ 14.04^2 - 39.2^2 } }{ 2 } = 11.108 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 14.04^2+2 \cdot \ 39.2^2 - 28.6^2 } }{ 2 } = 25.737 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 39.2^2+2 \cdot \ 28.6^2 - 14.04^2 } }{ 2 } = 33.586$

#2 Obtuse scalene triangle.

Sides: a = 39.2   b = 28.6   c = 51.18441330889

Area: T = 556.6254927955
Perimeter: p = 118.9844133089
Semiperimeter: s = 59.49220665444

Angle ∠ A = α = 49.50770673602° = 49°30'25″ = 0.86440613284 rad
Angle ∠ B = β = 33.7° = 33°42' = 0.58881759579 rad
Angle ∠ C = γ = 96.79329326398° = 96°47'35″ = 1.68993553672 rad

Height: ha = 28.39992310181
Height: hb = 38.92548201367
Height: hc = 21.7549901556

Median: ma = 36.53439258776
Median: mb = 43.28766924127
Median: mc = 22.85548929113

Vertex coordinates: A[51.18441330889; 0] B[0; 0] C[32.61326015875; 21.7549901556]
Centroid: CG[27.93222448921; 7.25499671853]
Coordinates of the circumscribed circle: U[25.59220665444; -3.04884675916]
Coordinates of the inscribed circle: I[30.89220665444; 9.35662883303]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 130.493293264° = 130°29'35″ = 0.86440613284 rad
∠ B' = β' = 146.3° = 146°18' = 0.58881759579 rad
∠ C' = γ' = 83.20770673602° = 83°12'25″ = 1.68993553672 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. Input data entered: side a, b and angle β.

$a = 39.2 \ \\ b = 28.6 \ \\ β = 33.7^\circ$

2. From angle β, side a and side b we calculate side c - by using the law of cosines and quadratic equation:

$b^2 = a^2 + c^2 - 2a c \cos β \ \\ \ \\ 28.6^2 = 39.2^2 + c^2 - 2 \cdot \ 39.2 \cdot \ c \cdot \ \cos 33^\circ 42' \ \\ \ \\ \ \\ c^2 -65.225c +718.68 =0 \ \\ \ \\ p=1; q=-65.225; r=718.68 \ \\ D = q^2 - 4pr = 65.225^2 - 4\cdot 1 \cdot 718.68 = 1379.60712922 \ \\ D>0 \ \\ \ \\ c_{1,2} = \dfrac{ -q \pm \sqrt{ D } }{ 2p } = \dfrac{ 65.23 \pm \sqrt{ 1379.61 } }{ 2 } \ \\ c_{1,2} = 32.61260159 \pm 18.5715315014 \ \\ c_{1} = 51.1841330889 \ \\ c_{2} = 14.0410700862 \ \\ \ \\ \text{ Factored form of the equation: } \ \\ (c -51.1841330889) (c -14.0410700862) = 0 \ \\ \ \\ \ \\ c > 0 \ \\ \ \\ c = 51.184$

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 = 39.2 \ \\ b = 28.6 \ \\ c = 51.18$

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

$p = a+b+c = 39.2+28.6+51.18 = 118.98$

4. 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{ 118.98 }{ 2 } = 59.49$

5. 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{ 59.49(59.49-39.2)(59.49-28.6)(59.49-51.18) } \ \\ T = \sqrt{ 309831.31 } = 556.62$

6. 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 \ 556.62 }{ 39.2 } = 28.4 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 556.62 }{ 28.6 } = 38.92 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 556.62 }{ 51.18 } = 21.75$

7. 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{ 28.6^2+51.18^2-39.2^2 }{ 2 \cdot \ 28.6 \cdot \ 51.18 } ) = 49^\circ 30'25" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 39.2^2+51.18^2-28.6^2 }{ 2 \cdot \ 39.2 \cdot \ 51.18 } ) = 33^\circ 42' \ \\ γ = 180^\circ - α - β = 180^\circ - 49^\circ 30'25" - 33^\circ 42' = 96^\circ 47'35"$

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{ 556.62 }{ 59.49 } = 9.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{ 39.2 \cdot \ 28.6 \cdot \ 51.18 }{ 4 \cdot \ 9.356 \cdot \ 59.492 } = 25.77$

10. 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 \ 28.6^2+2 \cdot \ 51.18^2 - 39.2^2 } }{ 2 } = 36.534 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 51.18^2+2 \cdot \ 39.2^2 - 28.6^2 } }{ 2 } = 43.287 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 39.2^2+2 \cdot \ 28.6^2 - 51.18^2 } }{ 2 } = 22.855$