# Triangle calculator

You have entered side a, b and angle β.

Triangle has two solutions: a=22.24; b=18.8; c=3.87444476828 and a=22.24; b=18.8; c=36.43881226846.

### #1 Obtuse scalene triangle.

Sides: a = 22.24   b = 18.8   c = 3.87444476828

Area: T = 18.20880252753
Perimeter: p = 44.91444476828
Semiperimeter: s = 22.45772238414

Angle ∠ A = α = 150.0033412992° = 150°12″ = 2.61880534459 rad
Angle ∠ B = β = 25° = 0.4366332313 rad
Angle ∠ C = γ = 4.99765870083° = 4°59'48″ = 0.08772068947 rad

Height: ha = 1.63774123449
Height: hb = 1.93770239655
Height: hc = 9.39990301411

Median: ma = 7.78327548094
Median: mb = 12.90217236222
Median: mc = 20.50106332534

Vertex coordinates: A[3.87444476828; 0] B[0; 0] C[20.15662851837; 9.39990301411]
Centroid: CG[8.01102442888; 3.1333010047]
Coordinates of the circumscribed circle: U[1.93772238414; 22.15877716702]
Coordinates of the inscribed circle: I[3.65772238414; 0.81107870057]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 29.99765870083° = 29°59'48″ = 2.61880534459 rad
∠ B' = β' = 155° = 0.4366332313 rad
∠ C' = γ' = 175.0033412992° = 175°12″ = 0.08772068947 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).

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

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 = 22.24 \ \\ b = 18.8 \ \\ c = 3.87$

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

$p = a+b+c = 22.24+18.8+3.87 = 44.91$

### 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{ 44.91 }{ 2 } = 22.46$

### 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{ 22.46(22.46-22.24)(22.46-18.8)(22.46-3.87) } \ \\ T = \sqrt{ 331.53 } = 18.21$

### 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 \ 18.21 }{ 22.24 } = 1.64 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 18.21 }{ 18.8 } = 1.94 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 18.21 }{ 3.87 } = 9.4$

### 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{ 18.8^2+3.87^2-22.24^2 }{ 2 \cdot \ 18.8 \cdot \ 3.87 } ) = 150^\circ 12" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 22.24^2+3.87^2-18.8^2 }{ 2 \cdot \ 22.24 \cdot \ 3.87 } ) = 25^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 150^\circ 12" - 25^\circ = 4^\circ 59'48"$

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{ 18.21 }{ 22.46 } = 0.81$

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{ 22.24 \cdot \ 18.8 \cdot \ 3.87 }{ 4 \cdot \ 0.811 \cdot \ 22.457 } = 22.24$

### 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 \ 18.8^2+2 \cdot \ 3.87^2 - 22.24^2 } }{ 2 } = 7.783 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 3.87^2+2 \cdot \ 22.24^2 - 18.8^2 } }{ 2 } = 12.902 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 22.24^2+2 \cdot \ 18.8^2 - 3.87^2 } }{ 2 } = 20.501$

### #2 Obtuse scalene triangle.

Sides: a = 22.24   b = 18.8   c = 36.43881226846

Area: T = 171.2421506699
Perimeter: p = 77.47881226846
Semiperimeter: s = 38.73990613423

Angle ∠ A = α = 29.99765870083° = 29°59'48″ = 0.52435392077 rad
Angle ∠ B = β = 25° = 0.4366332313 rad
Angle ∠ C = γ = 125.0033412992° = 125°12″ = 2.18217211329 rad

Height: ha = 15.39994160701
Height: hb = 18.21771815637
Height: hc = 9.39990301411

Median: ma = 26.77656230999
Median: mb = 28.68547902623
Median: mc = 9.59765933437

Vertex coordinates: A[36.43881226846; 0] B[0; 0] C[20.15662851837; 9.39990301411]
Centroid: CG[18.86548026228; 3.1333010047]
Coordinates of the circumscribed circle: U[18.21990613423; -12.75987415291]
Coordinates of the inscribed circle: I[19.93990613423; 4.42203834777]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 150.0033412992° = 150°12″ = 0.52435392077 rad
∠ B' = β' = 155° = 0.4366332313 rad
∠ C' = γ' = 54.99765870083° = 54°59'48″ = 2.18217211329 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).

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

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 = 22.24 \ \\ b = 18.8 \ \\ c = 36.44$

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

$p = a+b+c = 22.24+18.8+36.44 = 77.48$

### 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{ 77.48 }{ 2 } = 38.74$

### 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{ 38.74(38.74-22.24)(38.74-18.8)(38.74-36.44) } \ \\ T = \sqrt{ 29323.65 } = 171.24$

### 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 \ 171.24 }{ 22.24 } = 15.4 \ \\ h _b = \dfrac{ 2 \ T }{ b } = \dfrac{ 2 \cdot \ 171.24 }{ 18.8 } = 18.22 \ \\ h _c = \dfrac{ 2 \ T }{ c } = \dfrac{ 2 \cdot \ 171.24 }{ 36.44 } = 9.4$

### 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{ 18.8^2+36.44^2-22.24^2 }{ 2 \cdot \ 18.8 \cdot \ 36.44 } ) = 29^\circ 59'48" \ \\ \ \\ b^2 = a^2+c^2 - 2ac \cos β \ \\ β = \arccos(\dfrac{ a^2+c^2-b^2 }{ 2ac } ) = \arccos(\dfrac{ 22.24^2+36.44^2-18.8^2 }{ 2 \cdot \ 22.24 \cdot \ 36.44 } ) = 25^\circ \ \\ γ = 180^\circ - α - β = 180^\circ - 29^\circ 59'48" - 25^\circ = 125^\circ 12"$

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{ 171.24 }{ 38.74 } = 4.42$

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{ 22.24 \cdot \ 18.8 \cdot \ 36.44 }{ 4 \cdot \ 4.42 \cdot \ 38.739 } = 22.24$

### 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 \ 18.8^2+2 \cdot \ 36.44^2 - 22.24^2 } }{ 2 } = 26.776 \ \\ m_b = \dfrac{ \sqrt{ 2c^2+2a^2 - b^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 36.44^2+2 \cdot \ 22.24^2 - 18.8^2 } }{ 2 } = 28.685 \ \\ m_c = \dfrac{ \sqrt{ 2a^2+2b^2 - c^2 } }{ 2 } = \dfrac{ \sqrt{ 2 \cdot \ 22.24^2+2 \cdot \ 18.8^2 - 36.44^2 } }{ 2 } = 9.597$