Home » Math Theory » Geometry » Geometry Formulas Triangles

Geometry Formulas Triangles

Quick answer

Key triangle formulas: angles add to 180°; perimeter P = a + b + c; area A = ½ × base × height, or Heron’s formula A = √(s(s − a)(s − b)(s − c)) with s = (a + b + c)/2; for right triangles a² + b² = c² and SOH CAH TOA; for any triangle the sine rule a/sin A = b/sin B and the cosine rule a² = b² + c² − 2bc cos A.

Reviewed by the Helping with Math Team · Updated 13 October 2026

Introduction

We frequently encounter triangles in the real world, which are two-dimensional (2D) shapes with three sides and three angles.

A triangle is a three-sided polygon in geometry that has three edges and three vertices. One of the most significant characteristics of triangles is the sum of their internal angles is equal to 180 degrees.

In this article, you will find more about triangles, their properties and different formulas for finding specific measurements.

What are triangles?

Definition

Triangles are polygons with three (3) sides and (3) interior angles. It is denoted by the symbol △.

Parts of a Triangle

A triangle has three (3) vertices, three (3) sides, and three (3) angles. In the triangle below, we have the following:

The three vertices are L, M, and N.

The three sides are side LM, side MN, and side NL.

The three angles are ∠LMN, ∠MNL, and ∠NLM.

Triangle LMN with vertices L, M and N and sides LM, MN and NLMLNLMNLMN
Triangle LMN: vertices L, M and N; sides LM, MN and NL; angles ∠LMN, ∠MNL and ∠NLM.

Classification of Triangles

Triangles are classified by their sides and angles. Triangles can be categorized as scalene, isosceles, or equilateral based on the lengths of their sides. Triangles can be acute, obtuse, or right, depending on their angles.

The table below illustrates how triangles are categorized based on their sides and angles.

Classification of Triangles by their SidesClassification of Triangles by their Angles

Equilateral Triangle
Equilateral triangle with three equal sides
Equilateral: 3 equal sides.

An equilateral triangle has three equal-length sides.

Acute Triangle
Acute triangle with all angles less than 90 degrees
Acute: every angle is less than 90°.

Angles in an acute triangle are all less than 90 degrees.

Isosceles Triangle
Isosceles triangle with two equal sides
Isosceles: 2 equal sides.

Two of the sides of an isosceles triangle are of identical length.

Right Triangle
Right triangle with one 90 degree angle
Right: one angle is exactly 90°.

One angle of a right triangle is 90 degrees.

Scalene Triangle
Scalene triangle with no equal sides
Scalene: no equal sides.

A scalene triangle has no equal sides.

Obtuse Triangle
Obtuse triangle with one angle greater than 90 degrees
Obtuse: one angle is more than 90°.

An obtuse triangle has an angle that is higher than 90 degrees.

Sum of the Angles of a Triangle

A triangle’s internal angles are always added up to 180 degrees.

Sum of the ∠s of a Triangle = ∠1 + ∠2 + ∠3 = 180°

Example

Find the measure of the missing angle x below.

Triangle with angles 120 degrees, 46 degrees and an unknown angle x120°46°x
Two angles are 120° and 46°. The angles add to 180°, so x = 180° − 166° = 14°.

Solution

Since a triangle’s total angles equal 180 degrees, we obtain,

x + 120° + 46° = 180°
x + 166° = 180°
x = 180° − 166°
x = 14°

Therefore, the missing angle x measures 14°.

The Perimeter of a Triangle

A triangle’s perimeter is equal to the sum of its sides. Let us say, for example, in the illustration below; the perimeter can be calculated using the formula,

Perimeter = x + y + z

Triangle with sides x, y and zzxy
Perimeter = x + y + z: add the three side lengths.

Example

Find the perimeter of the triangle shown below.

Triangle with sides 3 centimeters, 6 centimeters and 7 centimeters3 cm7 cm6 cm
Perimeter = 3 cm + 6 cm + 7 cm = 16 cm.

Solution

Since the perimeter of a △ is the sum of all three sides, we have,

Perimeter = 3 cm + 6 cm + 7 cm
Perimeter = 16 cm

Therefore, the perimeter of the triangle is 16 cm.

Area of a Triangle

The region bounded by a triangle’s perimeter, or its three sides, is known as the triangle’s area.

Base and height are known

It is determined by taking the product of the triangle’s base and height and dividing it by two. It is always measured in square units.

Area of a Triangle = ½ × base × height

Let us say in the illustration below the base if NM while the height is LO. Thus, the area is the triangle is given by,

Area of ∆LMN = ½ × NM × LO

Triangle LMN with base NM and height LO drawn from L down to the base at OLNMO
The base is NM and the height LO is drawn from L straight down to the base, meeting it at a right angle. Area = ½ × NM × LO.

For example, we want to find the area of the triangle below,

Triangle QRS with base 14 meters and height 5 metersQRS5 m14 m
Base RS = 14 m and height = 5 m, so Area = ½ × 14 × 5 = 35 m².

To calculate the area of ∆QRS, we have,

Area of ∆QRS = ½ × 14 m × 5 m
Area of ∆QRS = ½ × 70 m2
Area of ∆QRS = 35 m2
Hence, the area of ∆QRS is 35 m2.

Heron’s Formula

Given is Heron’s formula for calculating the area of any triangle when you know all three sides.

Area=$\sqrt{S (S − a)(S − b)(S − c)}$

where the variable S is the semi-perimeter, and the sides are a, b, and c.

The formula S=$\frac{a+b+c}{2}$ gives the semi-perimeter S.

For example, we want to solve the area of a scalene triangle with sides that are 81, 93, and 121 cm long.

Solution:

Let us find the semi-perimeter of the scalene triangle by using the formula S=$\frac{a+b+c}{2}$. Hence, we have,

S=$\frac{81+93+121}{2}$

S=$\frac{295}{2}$

S=147.50 cm.

Since we already know that the semi-perimeter of the given scalene triangle is 147.50 cm., let us now use Heron’s formula to find its area.

Area=$\sqrt{S (S-a)(S-b)(S-c)}$

Area=$\sqrt{147.50 (147.50-81)(147.50-93)(147.50-121)}$

Area=$\sqrt{147.50 ( 66.50)(54.50)(26.50)}$

Area=$\sqrt{14166287.19}$

Area≈3763.81 cm2

Therefore, the area of the given scalene triangle is 3763.81 square centimeters.

Pythagorean Theorem

The Pythagorean theorem, also known as Pythagoras’ theorem, states that in a right triangle, the square on the hypotenuse (the side across from the right angle) equals the total of the squares on the two smaller sides. Hence, we use the formula,

a2 + b2 = c2

where side c is the length of the hypotenuse while a and b are the other two sides.

Right triangle with legs a and b and hypotenuse cabc
In a right triangle, a² + b² = c². c is the hypotenuse, the longest side, across from the right angle.

To further explain this, let us look at the image below,

Squares built on the sides of a 3, 4, 5 right triangle with 9, 16 and 25 unit squares3² = 94² = 165² = 25
The squares on the legs hold 9 and 16 unit squares; together they fill the 25 squares on the hypotenuse: 9 + 16 = 25.

We can see that we have three squares with side lengths a, b, and c. Notice that we have a right triangle formed using these lengths. Let us say that side a has 3 units, and side b has 4 units. By Pythagorean Theorem, we can calculate side c.

c2 = a2 + b2
c2 = 32 + 42
c2 = 9 + 16
c2 = 25
c = $\sqrt{25}$
c = 5

Consequently, the hypotenuse, or the longest side of the right triangle, is 5 units long.

From the square tiles, it can be seen that the area of the yellow square ( 9 square units ) and the area of the blue square (16 square units ) is equal to the area of the green square ( 25 square units).

Here are the formulas when getting the lengths of the sides of a right triangle using the Pythagorean Theorem.

c=$\sqrt{a^2+b^2}$

a=$\sqrt{c^2-b^2}$

b=$\sqrt{c^2-a^2}$

Examples

Example 1

If the other two sides of a right triangle are 8 cm and 15 cm long, determine the hypotenuse length.

Solution

Let us say that side a = 8 cm and side b = 15 cm. Hence, to calculate the hypotenuse length, let us use the Pythagorean formula, c2 = a2 + b2.

c2 = a2 + b2
c2 = 82 + 152
c2 = 64 + 225
c2 = 289
c = √289
c = 17

Thus, the length of the hypotenuse is 17 cm.

Example 2

Find the length of the base of the right triangle below.

Right triangle with height 8 centimeters, hypotenuse 10 centimeters and unknown base b8 cmb = ?10 cm
Height 8 cm, hypotenuse 10 cm. b² = 10² − 8² = 36, so b = 6 cm.

Solution

In the right triangle, we know that the hypotenuse length (the side opposite the right angle) is 10 cm, and the height is 8 cm. Let us say that a = 8 cm and c = 10 cm.

Therefore, by Pythagorean Theorem, to calculate the base of the right triangle, we have,

b2 = c2 − a2
b2 = 102 − 82
b2 = 100 − 64
b2 = 36
b = √36
b = 6

As a result, the right triangle’s base measures 6 cm in length.

Basic Trigonometric Functions

The three basic trigonometric functions with right triangles are sine, cosine, and tangent.

Let us use the illustration below to become familiar with the parts and the basic trigonometric functions sine, cosine, and tangent.

Right triangle with angle theta, the opposite side, the adjacent side and the hypotenuseadjacent (a)opposite (o)hypotenuse (h)θ
For angle θ: the opposite side is across from θ, the adjacent side is next to θ, and the hypotenuse is across from the right angle.

∟ used to represent the right angle of the triangle

θ (theta) is used to represent one of the angles in the right triangle but not the right angle

o is used to represent the opposite side of the angle θ

a is used to represent the adjacent side of the angle θ

h is used to represent the hypotenuse of the right triangle

For the three basic trigonometric functions, we use the mnemonic device: SOH CAH TOA, where S is for sine, C is for cosine, and T is for tangent.

The formulas for the three basic trigonometric functions are given:

sine θ=$\frac{opposite}{hypotenuse}$sin θ=$\frac{o}{h}$
cosine θ=$\frac{adjacent}{hypotenuse}$cos θ=$\frac{a}{h}$
tangent θ=$\frac{opposite}{adjacent}$tan θ=$\frac{o}{a}$

Examples

Example 1

Find the length of the opposite side of angle θ.

Right triangle with angle 45 degrees, adjacent side 10 centimeters and unknown opposite side10 cmopposite = ?45°
θ = 45° and the adjacent side is 10 cm. tan 45° = opposite ÷ 10, so the opposite side is 10 cm.

Solution

We know from the given data that θ=45° and the length of the adjacent side is 10 cm. Since the parts involved are the angle , the opposite side and the adjacent side, we will use the formula tan θ=$\frac{o}{a}$. Hence, we have,

tan θ=$\frac{opposite}{adjacent}$

tan 45°=$\frac{opposite}{10 cm}$

(tan 45°)(10 cm) = opposite

( 1 )( 10 cm )=opposite

10 cm=opposite

Example 2

Find the length of the hypotenuse.

Right triangle with angle 60 degrees, opposite side 12 centimeters and unknown hypotenuse12 cmhypotenuse = ?60°
θ = 60° and the opposite side is 12 cm. sin 60° = 12 ÷ hypotenuse, so the hypotenuse is 8√3 ≈ 13.86 cm.

Solution

We know the angle = 60°, and the opposite side has a length of 12 cm. Since we must find the hypotenuse length, we will use the formula sin θ=$\frac{opposite}{hypotenuse}$.

Hence, we have,

sin θ=$\frac{opposite}{hypotenuse}$

sin 60°=$\frac{12 cm}{hypotenuse}$

hypotenuse=$\frac{12 cm}{\sin 60^\circ}$

hypotenuse=$\frac{12 cm}{\frac{\sqrt{3}}{2}}$

hypotenuse=8$\sqrt{3}$ cm

Therefore, the length of the hypotenuse is 8$\sqrt{3}$ cm.

The Sine and Cosine Rules

Finding the lengths of a triangle’s sides and all of its angles is necessary to solve it. The sine and cosine rules may be used in solving any triangles. The sine rule is used when a side and its opposite angle are known. We apply the cosine rule when we have either two sides and the included angle or three sides of a triangle.

Triangle ABC with side a opposite angle A, side b opposite angle B and side c opposite angle CABCcab
Each side is named after the angle across from it: a is opposite ∠A, b is opposite ∠B, c is opposite ∠C.
side a is the opposite of ∠A
side b is the opposite of ∠B
side c is the opposite of ∠C

The Sine Rule

The sine rule may be used in solving any triangle, not just a right triangle. The sine rule is used when a side and its opposite angle are known.

$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$ =$\frac{c}{\sin C}$

$\frac{\sin A}{a}$=$\frac{\sin B}{b}$ = $\frac{\sin C}{c}$

Note that we will only use two parts of the formula, not three parts.

Calculating Sides

In calculating the length of a side, the Sine Rule to use is where the side lengths are the numerators.

$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$ =$\frac{c}{\sin C}$

Example

Find the length of a in the figure below.

Triangle with angle A 85 degrees, angle B 65 degrees, side b 8 and unknown side aABCa = ?885°65°
∠A = 85°, ∠B = 65° and b = 8. By the sine rule, a = 8 ÷ sin 65° × sin 85° ≈ 8.79.

Solution

In the given figure, we know two angles, A = 85° and B = 65°, and the side b = 8 opposite B. We will use the formula,

$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$

Let us now substitute the known values and find the length of side a.

$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$

$\frac{a}{\sin 85^\circ}$ =$\frac{8}{\sin 65^\circ}$

a=$\frac{8}{sin 65^\circ}$ x sin 85°

a≈8.79

Calculating Angles

In calculating the angle measures of a triangle, the Sine Rule to use is where the angle measures are the numerators.

$\frac{\sin A}{a}$ =$\frac{\sin B}{b}$ =$\frac{\sin C}{c}$

Example

Find the missing angle in the figure below.

Triangle with angle C 70 degrees, side c 11, side b 9 and unknown angle BABC11970°B = ?
∠C = 70°, c = 11 and b = 9. sin B = sin 70° ÷ 11 × 9 ≈ 0.769, so ∠B ≈ 50.26°.

Solution

Since we know that ∠C = 70°, c = 11, and b = 9, we will use the sine rule,

$\frac{\sin B}{b}$ =$\frac{\sin C}{c}$

To find the missing ∠B, let us substitute the known values to the formula

$\frac{\sin B}{b}$ =$\frac{\sin C}{c}$

$\frac{\sin B}{9}$ = $\frac{\sin 70^\circ}{11}$

sin B = $\frac{\sin 70^\circ}{11}$ × 9

sin B=0.769 ( 3 decimal places)
Use the inverse function ( sin-1 ) to find angle B.
∠B = sin−1(0.769)
∠B≈50.26° ( 2 decimal places )
Therefore, ∠B measures 50.26°.

The Cosine Rule

The cosine rule can be used in triangles where you try to relate all three sides to an angle. The following are the formulas to consider:

a2=b2+c2 − 2bc cos A

cos A=$\frac{b^2+c^2-a^2}{2bc}$

where b and c are two sides and ∠A is the angle between them, opposite side a

Calculating Sides

Knowing the length of the other 2 sides and the measurement of the angle opposite the missing side are necessary to calculate the length of a triangle’s missing side. In this scenario, we will use the formula,

a2=b2+c2 − 2bc cos A

Remember that a is the missing side, b and c are the lengths of the other two sides, and ∠A is the angle opposite side a.

Example

Calculate the length of the missing side.

Triangle with angle A 95 degrees between sides 20 and 29 and unknown opposite side aABC29a = ?2095°
∠A = 95° sits between b = 20 and c = 29. a² = 20² + 29² − 2(20)(29) cos 95° ≈ 1,342.1, so a ≈ 36.63.

Solution

The given figure has the information: ∠A=95°, b=20, c=29. Let us now substitute the known values in the formula to find the missing side a.

a2=b2+c2 − 2bc cos A

a2=202+292 − 2(20)(29)(cos 95°)

a2=1342.100662
a=$\sqrt{1342.100662}$
a≈36.63

Therefore, the missing side-length measures 36.63 units.

Calculating Angles

To calculate the measure of an angle, we will use the formula,

cos A=$\frac{b^2+c^2-a^2}{2bc}$

Remember that ∠A is the missing angle, b and c are the lengths of the other two sides, and a is the side opposite ∠A.

Example

Calculate the measure of ∠A in the figure below.

Triangle with sides 6, 9 and 13 and unknown angle A opposite the side 9ABC6913A = ?
The side across from ∠A is 9. cos A = (6² + 13² − 9²) ÷ (2 × 6 × 13) = 124/156, so ∠A ≈ 37.36°.

Solution

In the given figure, we are asked to find the measure of ∠A given the three sides of the triangle with measures 6, 9, and 13 units. The side opposite ∠A is the side with a measure of 9 units, so we must use it as side a.

Let us use the formula below to calculate ∠A.

cos A=$\frac{b^2+c^2-a^2}{2bc}$

Substituting the known values to the formula, we have,

cos A=$\frac{b^2+c^2-a^2}{2bc}$

cos A=$\frac{6^2+13^2-9^2}{2×6×13}$

cos A=$\frac{124}{156}$

cos A≈0.7949 ( 3 decimal places )
Use the inverse function ( cos-1 ) to find angle A.
∠A = cos−1(0.7949)
∠A≈37.36° ( 2 decimal places )

Therefore, the missing angle A measures 37.36° using the cosine rule.

Triangle calculator

Perimeter = 3 + 4 + 5 = 12. s = 6, so Heron’s area = √(6 × 3 × 2 × 1) ≈ 6. Angles by the cosine rule add to 180°. This is a scalene, right triangle.

Type three side lengths. The tool checks they can make a triangle, draws it to scale, and uses the formulas on this page: perimeter, Heron’s formula for the area, the cosine rule for each angle, and the triangle’s type.

List of Geometry Formulas Triangles

NameDefinitionFormula
The Perimeter of a TriangleA triangle’s perimeter is equal to the sum of its sides.Perimeter = x + y + z
Area of a TriangleThe region bounded by a triangle’s perimeter, or its three sides, is known as the triangle’s area.Area of a Triangle = ½ × base × height
Heron’s Formula
Area=$\sqrt{S (S-a)(S-b)(S-c)}$
The formula S = $\frac{a+b+c}{2}$ gives the semi-perimeter S.
Pythagorean Theorem
The Pythagorean theorem, also known as Pythagoras’ theorem, states that in a right triangle, the square on the hypotenuse (the side across from the right angle) equals the total of the squares on the two smaller sides.a2+b2=c2
Basic Trigonometric FunctionsSolving problems based on the angles and sides of a right triangle requires using basic trigonometric functions like sine, cosine, and tangent.Mnemonic Device: SOH CAH TOA
sin θ=$\frac{opposite}{hypotenuse}$
cos θ=$\frac{adjacent}{hypotenuse}$
tan θ=$\frac{opposite}{adjacent}$
The Sine RuleThe sine rule may be used in solving any triangle, not just a right triangle. The sine rule is used when a side and its opposite angle are known.$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$ =$\frac{c}{\sin C}$

$\frac{\sin A}{a}$ =$\frac{\sin B}{b}$ =$\frac{\sin C}{c}$
The Cosine RuleAny triangle whose three sides must be related to an angle is subject to the cosine rule.
a2=b2+c2-2bc cos A
cos A=$\frac{b^2+c^2-a^2}{2bc}$
where b and c are two sides and ∠A is the angle between them, opposite side a

Summary

Triangles are polygons with three (3) sides and (3) interior angles. It is denoted by the symbol △.

The list of fundamental formulas for working with triangles is displayed in the table below.

Geometry Formulas Triangles

The Perimeter of a Triangle

A triangle’s perimeter is equal to the sum of its sides.

Perimeter = x + y + z

Area of a Triangle

The region bounded by a triangle’s perimeter, or its three sides, is known as the triangle’s area.

Base and height are known

It is determined by taking the product of the triangle’s base and height and dividing it by two. It is always measured in square units.

Area of a Triangle = ½ × base × height

Heron’s Formula

Given is Heron’s formula for calculating the area of any triangle when you know all three sides.

Area=$\sqrt{S (S-a)(S-b)(S-c)}$
where the variable S is the semi-perimeter.
The formula S = $\frac{a+b+c}{2}$ gives the semi-perimeter S.

Pythagorean Theorem

The Pythagorean theorem, also known as Pythagoras’ theorem, states that in a right triangle, the square on the hypotenuse (the side across from the right angle) equals the total of the squares on the two smaller sides.

a2+b2=c2

where side c is the hypotenuse, and the other two legs of the right triangle are a and b.

Basic Trigonometric Functions

Right triangle with angle theta, the opposite side, the adjacent side and the hypotenuseadjacent (a)opposite (o)hypotenuse (h)θ
For angle θ: the opposite side is across from θ, the adjacent side is next to θ, and the hypotenuse is across from the right angle.

∟ used to represent the right angle of the triangle
θ (theta) is used to represent one of the angles in the right triangle but not the right angle
o is used to represent the opposite side of the angle θ
a is used to represent the adjacent side of the angle θ
h is used to represent the hypotenuse of the right triangle
The mnemonic device for the three basic trigonometric functions is SOH CAH TOA.

sin θ=$\frac{opposite}{hypotenuse}$

cos θ=$\frac{adjacent}{hypotenuse}$

tan θ=$\frac{opposite}{adjacent}$

The Sine and Cosine Rules

Triangle ABC with side a opposite angle A, side b opposite angle B and side c opposite angle CABCcab
Each side is named after the angle across from it: a is opposite ∠A, b is opposite ∠B, c is opposite ∠C.

side a is the opposite of ∠A
side b is the opposite of ∠B
side c is the opposite of ∠C

Sine Rule
$\frac{a}{\sin A}$ =$\frac{b}{\sin B}$ =$\frac{c}{\sin C}$
$\frac{\sin A}{a}$=$\frac{\sin B}{b}$=$\frac{\sin C}{c}$
Cosine Rule
a2=b2+c2 − 2bc cos A
cos A=$\frac{b^2+c^2-a^2}{2bc}$

More practice: Adding and Subtracting Angles, Isosceles Triangle, Pythagorean Triples, Area of Triangles Themed worksheets, Triangles and Quadrilaterals Winter Solstice Themed worksheets and Triangles Themed worksheets.

Triangle formulas FAQs

What is the formula for the area of a triangle?

Area = ½ × base × height. A triangle with base 14 m and height 5 m has area ½ × 14 × 5 = 35 m².

How do you find the area with only the three sides?

Use Heron’s formula: s = (a + b + c)/2, then Area = √(s(s − a)(s − b)(s − c)). For sides 3, 4 and 5: s = 6 and Area = √(6 × 3 × 2 × 1) = 6.

What is the formula for the perimeter of a triangle?

Add the three sides: P = a + b + c. Sides of 3 cm, 6 cm and 7 cm give 16 cm.

How do you find a missing side of a right triangle?

Use the Pythagorean theorem a² + b² = c², where c is the hypotenuse. Legs of 6 and 8 give c = √100 = 10.

What do the angles of a triangle add up to?

180°. If two angles are 120° and 46°, the third is 180° − 166° = 14°.

When do you use the sine rule and the cosine rule?

Use the sine rule when you know a side and its opposite angle. Use the cosine rule when you know two sides and the angle between them, or all three sides.

What is SOH CAH TOA?

A memory aid for right triangles: sin = opposite/hypotenuse, cos = adjacent/hypotenuse, tan = opposite/adjacent.

Practice with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Geometry Formulas Triangles". Helping with Math. Accessed on November 13, 2026. https://helpingwithmath.com/geometry-formulas-triangles/.

  • "Geometry Formulas Triangles". Helping with Math, https://helpingwithmath.com/geometry-formulas-triangles/. Accessed 13 November, 2026.

  • Geometry Formulas Triangles. Helping with Math. Retrieved from https://helpingwithmath.com/geometry-formulas-triangles/.