Triangle Calculator

Enter any three measurements, making sure at least one of them is a side length, into the six input fields and press the "Calculate" button. If you choose radians for the angle unit, you may type values like π/2, π/4, etc.


 
   

Angle Unit:




A triangle is a three‑sided polygon whose corners are called vertices. Each vertex is the meeting point of two line segments; together the three vertices are linked by three edges. We usually label a triangle by its vertices, for instance Δabc denotes the triangle with corners a, b and c. Triangles are commonly classified by side lengths: when all three sides match we have an equilateral triangle, if exactly two are equal it is isosceles, and when no sides are the same it is called scalene.

triangle types

Small tick marks drawn on a side are a typical way to indicate its length—identical numbers of ticks mean equal lengths. Likewise, interior angles are shown by different counts of concentric arcs at the vertices. Because side lengths and interior angles are linked, an equilateral triangle naturally possesses three equal angles as well as three equal sides. Keep in mind that the graphic shown in the calculator is not drawn to scale; although it may look equilateral and carries equal‑angle marks, the actual dimensions depend on the numbers you input, and the result will display the correct shape.

Triangles can be grouped according to their interior angles into right and oblique types. A right‑angled triangle contains one 90° angle, which is usually highlighted by a small square at the vertex. The side opposite this right angle, and the longest side of the triangle, is called the hypotenuse. All other triangles are termed oblique; they are either acute, with every angle smaller than 90°, or obtuse, where one angle exceeds 90°, as illustrated below.

triangle types

Triangle facts, theorems, and laws

a
sin(A)
=
b
sin(B)
=
c
sin(C)
2
sin(90°)
=
c
sin(45°)
c = 2 ×
2
2
×
1
1
= √2
A = arccos(
b2 + c2 - a2
2bc
)
B = arccos(
a2 + c2 - b2
2ac
)
C = arccos(
a2 + b2 - c2
2ab
)
B =arccos(
82 + 102 - 62
2 × 8 × 10
)
=arccos(0.8) = 36.87°

Area of a Triangle

Various formulas exist for computing a triangle’s area, depending on which measurements are available. The most familiar one uses the base b and the corresponding height h. Here “base” may be any side, and the height is the perpendicular distance from the opposite vertex to that side.

area =
1
2
b × h
EX:Triangle example
area =
1
2
× 5 × 6 = 15

If you know the lengths of two sides and the angle formed between them, the area can be obtained with this formula. The variables refer to the triangle displayed in the calculator. For example, with a = 9, b = 7 and the included angle C = 30°:

area =
1
2
ab × sin(C)
=
1
2
bc × sin(A)
=
1
2
ac × sin(B)
EX:   area =
1
2
× 7 × 9 × sin(30°)
= 15.75

Heron’s formula provides another way to compute a triangle’s area without selecting a base or a reference vertex. It requires only the three side lengths. Referring again to the calculator’s triangle, suppose a = 3, b = 4 and c = 5:

area = s(s - a)(s - b)(s - c)
Where: s =
a + b + c
2
EX: s =
3 + 4 + 5
2
= 6
area = 6(6 - 3)(6 - 4)(6 - 5) = 6

Median, inradius, and circumradius

Median

In a triangle, a median is the segment that joins one vertex with the midpoint of the opposite side. Every triangle possesses three such medians, and they all meet at a single point called the centroid – the geometric center representing the average position of all points of the triangle. See the illustration below for a visual aid.

median of a triangle

The medians of the triangle are represented by the line segments ma, mb, and mc. The length of each median can be calculated as follows:

median of a triangle segments

Where a, b, and c represent the length of the side of the triangle as shown in the figure above.

As an example, given that a=2, b=3, and c=4, the median ma can be calculated as follows:

median of a triangle example

Inradius

The inradius is the radius of the largest circle that can be inscribed inside a polygon, here a triangle. This circle touches each side at a right angle. To determine the inradius of a triangle, draw the two angle bisectors to locate the incenter; the perpendicular distance from this incenter to any side equals the inradius, because the incenter is equidistant from all three sides.

triangle inradius

For the purposes of this calculator, the inradius is calculated using the area (Area) and semiperimeter (s) of the triangle along with the following formulas:

inradius =  
area
s
s =  
a + b +c
2

where a, b, and c are the sides of the triangle

Circumradius

The circumradius is the radius of the circumcircle – the circle that passes through all three vertices of a triangle. Its center, the circumcenter, is found at the intersection of the perpendicular bisectors of the triangle’s sides. The circumcenter may lie inside or outside the triangle, but every triangle has a circumcircle and therefore a circumradius.

triangle circumradius

For the purposes of this calculator, the circumradius is calculated using the following formula:

circumradius =  
a
2sin(A)

Where a is a side of the triangle, and A is the angle opposite of side a

Although side a and angle A are being used, any of the sides and their respective opposite angles can be used in the formula.

Financial Fitness & Health Math Other