Triangles: Types, Angles, Area, Centers and Congruence

Updated 20 min read Beginner to intermediate Baca dalam Bahasa Indonesia

Geometry Fundamentals Proof Computing

Quick answer

A triangle is a closed shape with three straight sides, three vertices and three interior angles that always add up to 180°. Triangles are sorted by their sides (equilateral, isosceles, scalene) and by their angles (acute, right, obtuse). Three lengths form a triangle only if the longest is shorter than the other two together. The area is half the base times the height, and the law of sines and cosines links its sides and angles.

Key takeaways

  • The interior angles of every triangle add up to 180^\circ, so a triangle has at most one right or obtuse angle, and an exterior angle equals the sum of the two interior angles not next to it.
  • Three lengths make a triangle only if each is shorter than the sum of the other two; the longest side then decides the type: c^2<a^2+b^2 acute, = right, > obtuse.
  • A right triangle has its hypotenuse opposite the right angle, and the 45^\circ–45^\circ–90^\circ and 30^\circ–60^\circ–90^\circ triangles have sides in the fixed ratios 1:1:√2 and 1:√3:2.
  • Area is \frac12bh; with three sides use Heron's formula √(s(s-a)(s-b)(s-c)), with two sides and the angle between them \frac12ab\sin C, and with coordinates the shoelace formula.
  • The four centers are the centroid (medians, 2:1), circumcenter (perpendicular bisectors), orthocenter (altitudes) and incenter (angle bisectors); the first three lie on the Euler line.
  • Triangles are congruent by SSS, SAS, ASA, AAS or RHS and similar by AA; to solve a triangle use the law of cosines and the law of sines, and beware the two-triangle SSA case.

What is a triangle?

A triangle is a polygon with exactly three sides, three vertices (corners) and three interior angles. It is the simplest polygon, and every other polygon can be cut into triangles: a diagonal splits a quadrilateral into two. The Indonesian word is segitiga, "three-corner".

We name a triangle by its vertices, ABC. The side opposite the vertex A is written a (it is BC), the side opposite B is b (it is CA) and the side opposite C is c (it is AB). The interior angles are \angle A, \angle B, \angle C.

Any side can serve as the base. The height (or altitude) belonging to that base is the perpendicular distance from the opposite vertex to the line that holds the base. In an obtuse triangle this height falls outside the triangle, on the extension of the base.

A triangle is rigid: its three side lengths fix its shape completely, so it cannot be pushed out of shape without breaking a side. A four-sided frame can lean into a parallelogram, a triangle cannot, which is why bridges, roof trusses, bicycle frames and camera tripods are built from triangles.

A triangle ABC. The dashed line is the height from C to the base AB, perpendicular to it.

Why do the angles of a triangle add up to 180°?

The three interior angles of every triangle add up to 180^\circ, because a line through one vertex parallel to the opposite side makes the three angles fit together along a straight line.

Draw the line through C parallel to AB. The two angles it makes with CA and CB are alternate angles with \angle A and \angle B, so they are equal to them. Now \angle A, \angle C and \angle B sit side by side on the straight line through C, and a straight angle is 180^\circ:

\angle A+\angle B+\angle C=180^\circ.

Three consequences follow at once:

  • A triangle has at most one right angle or obtuse angle, since two of them would already use 180^\circ or more.
  • Knowing two angles gives the third: 50^\circ and 60^\circ leave 70^\circ.
  • The exterior angle at C, formed by extending AC past C (or BC), equals \angle A+\angle B, the sum of the two interior angles not next to it, because both it and \angle C are what is left of 180^\circ. With \angle A=50^\circ and \angle B=60^\circ the exterior angle at C is 110^\circ.

This is also where the 360^\circ of a quadrilateral comes from: two triangles. If three angles are in the ratio 1:2:3, call them x,2x,3x as in turning words into algebra: 6x=180, so x=30^\circ and the angles are 30^\circ,60^\circ,90^\circ, a right triangle.

The dashed line through C is parallel to AB. The angles it makes with CA and CB equal the angles at A and B, so the three angles at C add up to a straight angle.

Try it: the third angle

A triangle has angles 48^\circ and 75^\circ. How many degrees is the third angle?

What are the types of triangles?

Triangles are sorted in two independent ways: by their sides (equilateral, isosceles, scalene) and by their largest angle (acute, right, obtuse), so every triangle has one name from each list.

By sidesDefinitionExample sides
Equilateralall three sides equal; then all angles are 60^\circ5,5,5
Isoscelesexactly two sides equal; the angles opposite them are equal5,5,6
Scaleneall three sides different4,5,6
By anglesDefinitionExample sides
Acuteall three angles less than 90^\circ5,5,6
Rightone angle equal to 90^\circ3,4,5
Obtuseone angle greater than 90^\circ2,3,4

Two rules link sides and angles. Equal sides lie opposite equal angles, and a longer side lies opposite a larger angle. So the longest side of a triangle is opposite its largest angle, and in a right triangle that side, the hypotenuse, is opposite the right angle.

Not every pair of names can occur together. An equilateral triangle is always acute. An isosceles triangle can be acute (5,5,6), right (1,1,√2, the half of a square cut along its diagonal) or obtuse (5,5,8). A scalene triangle can be acute (4,5,6), right (3,4,5) or obtuse (2,3,4).

To find the angle type without any angle, look at the longest side c and compare c^2 with a^2+b^2: if c^2<a^2+b^2 the triangle is acute, if c^2=a^2+b^2 it is right, and if c^2>a^2+b^2 it is obtuse. For 2,3,4: 16>4+9=13, so it is obtuse. This is the Pythagorean theorem and its two extensions, and the next sections use it.

Can any three lengths form a triangle?

No: three lengths form a triangle only if each is shorter than the sum of the other two, which is the same as saying that the longest is shorter than the other two together. This is the triangle inequality, and it says that a straight path is shorter than a detour: going from A to B directly is shorter than going through C, so c<a+b.

Check 3,4,5: 5<3+4, so it is a triangle. Check 1,2,3: 3=1+2, so the short sides lie flat along the long one and the triangle is degenerate, a segment. Check 1,2,4: 4>1+2, the short sides cannot even reach each other.

The inequality also tells you how long the third side can be. If two sides are a and b, the third side c satisfies |a-b|<c<a+b. With sides 5 and 8 the third side lies strictly between 3 and 13, so a whole number can be 4,5,…,12, which is nine values.

Type three lengths below. The tool uses exact fractions: it tells you whether they form a triangle, whether it is acute, right or obtuse by comparing squares, and gives the area by Heron's formula (more on that soon), the radii of the two circles and the angles.

Interactive: can three lengths make a triangle?

Type three side lengths and see whether they make a triangle, its type by sides and angles, area from Heron's formula, inradius, circumradius and angles.

What is special about right triangles?

A right triangle has one 90^\circ angle; the side opposite it is the hypotenuse, the longest side, and the other two sides are the legs. Its other two angles are acute and add up to 90^\circ, since the three angles make 180^\circ.

The sides of a right triangle obey the Pythagorean theorem, a^2+b^2=c^2. That theorem has its own article, with proofs, whole-number triples and applications; the section on types above already uses it in reverse, to tell a right angle from three lengths.

Two right triangles are worth knowing by heart, because their sides come in fixed ratios:

  • The 45^\circ–45^\circ–90^\circ triangle (half a square) has sides in the ratio 1:1:√2: with legs a the hypotenuse is a√2.
  • The 30^\circ–60^\circ–90^\circ triangle (half an equilateral triangle) has sides in the ratio 1:√3:2: the short leg is half the hypotenuse and the long leg is the short leg times √3.

In a right triangle the two legs serve as base and height, so the area is simply \frac12ab, and the circumcenter is the midpoint of the hypotenuse.

How do you find the perimeter and area of a triangle?

The perimeter is a+b+c, and the area is half the base times the height; when the height is not known, use Heron's formula for three sides, \frac12ab\sin C for two sides and the angle between them, or the coordinate formula.

You knowArea
base b and height h\frac12bh
the legs a,b of a right triangle\frac12ab
three sides a,b,c, with s=(a+b+c)/(2)√(s(s-a)(s-b)(s-c)) (Heron)
two sides a,b and the angle C between them\frac12ab\sin C
the side s of an equilateral triangle(√3)/(4)s^2
the vertices (x_1,y_1),(x_2,y_2),(x_3,y_3)half the absolute value of x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)
the inradius r and semiperimeter srs

Why one half? Two copies of a triangle, one turned around, fit together into a parallelogram with the same base and height, whose area is bh as in the area of a quadrilateral. The triangle is half of it.

A worked example. The triangle with sides 13,14,15 has s=21, so the area is √(21·8·7·6)=√(7056)=84. Taking 14 as the base, the height is h=(2·84)/(14)=12. The inradius is r=(84)/(21)=4 and the circumradius is R=(abc)/(4K)=(13·14·15)/(4·84)=(65)/(8).

The coordinate formula for A(0,0), B(6,0), C(0,8) gives \frac12|0+6·8+0|=24, which is \frac12·6·8 for the right triangle. The sine formula for sides 7 and 10 with a 30^\circ angle between them gives \frac12·7·10·\sin30^\circ=17.5. An equilateral triangle of side 6 has area (√3)/(4)·36=9√3≈15.59.

A word problem: a plot of land is a triangle with a base of 24 m and a height of 15 m, and land costs 50 dollars per square meter. The area is \frac12·24·15=180 m², so the plot costs 180·50=9000 dollars.

What are the medians, altitudes and centers of a triangle?

A triangle has four classic centers, and each is the point where three special lines meet: the centroid (medians), the circumcenter (perpendicular bisectors), the orthocenter (altitudes) and the incenter (angle bisectors).

CenterWhere three of these lines meetWhat it does
Centroid Gthe medians, from a vertex to the midpoint of the opposite sidethe balance point; it cuts each median 2:1; its coordinates are the mean of the vertices
Circumcenter Othe perpendicular bisectors of the sidesthe center of the circle through all three vertices, radius R
Orthocenter Hthe altitudes, from a vertex perpendicular to the opposite sideno simple meaning, but H=A+B+C-2O
Incenter Ithe angle bisectorsthe center of the circle that touches all three sides, radius r=\frac Ks

The centroid and the incenter are always inside the triangle. The circumcenter and orthocenter are inside an acute triangle, at the midpoint of the hypotenuse and at the right-angle vertex of a right triangle, and outside an obtuse one.

The Euler line. Euler showed in 1765 that O, G and H lie on one line, and that G is one third of the way from O to H: OG:GH=1:2. In an equilateral triangle all three coincide; the incenter lies on that line only for an isosceles triangle.

For the right triangle A(0,0), B(6,0), C(0,8) the circumcenter is the midpoint of the hypotenuse, O=(3,4), with R=5; the orthocenter is the right-angle vertex, H=(0,0); and the centroid is the average of the vertices, G=\left(2,\frac83\right). Check the line: O+\frac13(H-O)=(3-1, 4-\frac43)=\left(2,\frac83\right)=G. The inradius is r=(6+8-10)/(2)=2.

Move the vertices below and watch the four centers, the two circles and the Euler line. The three exact centers are fractions, because the formulas use only addition, multiplication and division.

Interactive: the centers of a triangle

Type three vertices and see the exact centroid, circumcenter and orthocenter, the incenter, both circles and the Euler line through O, G and H.

How do you tell whether two triangles are congruent or similar?

Two triangles are congruent (the same shape and size) if three well-chosen measurements agree, and similar (the same shape, possibly a different size) if their angles agree or their sides are proportional.

Congruence testWhat must match
SSSall three sides
SAStwo sides and the angle between them
ASAtwo angles and the side between them
AAStwo angles and a side that is not between them
RHS (HL)in right triangles, the hypotenuse and one leg

Side-side-angle (SSA), where the angle is not between the sides, is not a test: the same a, b and A can make two different triangles, as the solver below shows. The only exception is the right-triangle case RHS. Angle-angle-angle (AAA) fixes the shape but not the size, so it only proves similarity.

Similarity testWhat must match
AAtwo angles (the third then matches too)
SSS~all three side ratios (a)/(a')=(b)/(b')=(c)/(c')
SAS~one equal angle between two sides in the same ratio

If two triangles are similar with scale factor k, every length is multiplied by k, every angle is unchanged, and areas are multiplied by k^2. This is the idea behind measuring a tall object by its shadow: a person 1.8 m tall casts a shadow of 2.4 m while a tree casts 12 m at the same moment. The triangles are similar (the sun's angle is the same), so (h)/(12)=(1.8)/(2.4) and the tree is h=9 m tall. Setting up such an equation is the ratio and proportion idea.

How do you solve a triangle with the law of sines and cosines?

To solve a triangle means to find all three sides and all three angles from three measurements, using the law of cosines, c^2=a^2+b^2-2ab\cos C, and the law of sines, (a)/(\sin A)=(b)/(\sin B)=(c)/(\sin C).

The law of cosines is the Pythagorean theorem with a correction: at C=90^\circ the cosine is 0 and it becomes c^2=a^2+b^2. Its sign decides the type: \cos C>0 (acute), =0 (right) or <0 (obtuse), which is the test in the section on types. The law of sines says that each side is proportional to the sine of the opposite angle.

GivenHow to solve
SSS: three sideslaw of cosines for two angles, then C=180^\circ-A-B
SAS: two sides and the angle betweenlaw of cosines for the third side, then SSS
ASA or AAS: two angles and a sideC=180^\circ-A-B, then the law of sines for the other sides
SSA: two sides and an angle opposite one of themlaw of sines for the other angle: 0, 1 or 2 triangles

Examples. SSS with 7,8,9: \cos A=(64+81-49)/(2·8·9)=\frac23, so A≈48.19^\circ; likewise B≈58.41^\circ and C=180-48.19-58.41≈73.40^\circ. SAS with a=5, b=8 and C=60^\circ: c^2=25+64-2·5·8·\frac12=49, so c=7.

The ambiguous case. Take a=3, b=5 and A=30^\circ. The law of sines gives \sin B=(5\sin30^\circ)/(3)=\frac56≈0.8333, and two angles have that sine, B≈56.44^\circ and B≈123.56^\circ. Both leave a positive third angle (93.56^\circ or 26.44^\circ), so two triangles fit: with c≈5.99 and with c≈2.67. In general, with A acute, side a too short (a<b\sin A) gives no triangle, a=b\sin A gives one right triangle, b\sin A<a<b gives two, and a\ge b gives one.

Try every case below. A calculator or a program must be in degree mode for these formulas, or the angles must be converted to radians.

Interactive: solve a triangle

Give three measurements (SSS, SAS, ASA, AAS or SSA) and get every side and angle by the law of sines and cosines, including the two-triangle ambiguous case.

How do you work with triangles in code?

Classify a triangle with integer squares, not with angles: sort the sides, check a+b>c, and compare c^2 with a^2+b^2. Keep Heron's formula exact by computing the square of the area with Fraction, and use a root only at the very end.

Python
from fractions import Fraction
from math import sqrt, acos, degrees

def kind(a, b, c):
    a, b, c = sorted((a, b, c))
    if a + b <= c: return "not a triangle"
    sides = {1: "equilateral", 2: "isosceles", 3: "scalene"}[len({a, b, c})]
    d = a * a + b * b - c * c          # the sign of the cosine of the largest angle
    return sides + (" right" if d == 0 else " acute" if d > 0 else " obtuse")

def area_sq(a, b, c):
    s = Fraction(a + b + c, 2)
    return s * (s - a) * (s - b) * (s - c)         # Heron without the root: exact

def area_xy(p, q, r):
    return abs(p[0] * (q[1] - r[1]) + q[0] * (r[1] - p[1]) + r[0] * (p[1] - q[1])) / 2

>>> kind(3, 4, 5)
'scalene right'
>>> kind(5, 5, 8)
'isosceles obtuse'
>>> kind(2, 3, 4)
'scalene obtuse'
>>> kind(1, 2, 3)
'not a triangle'
>>> area_sq(13, 14, 15)
Fraction(7056, 1)
>>> sqrt(area_sq(13, 14, 15))
84.0
>>> area_xy((0, 0), (6, 0), (0, 8))
24.0
>>> degrees(acos(Fraction(2, 3)))                  # angle A of the 7, 8, 9 triangle
48.18968510422141
>>> a, b, c = 1e8, 1e8 - 1e-6, 1e-6               # a needle-thin triangle
>>> s = (a + b + c) / 2
>>> sqrt(max(0, s * (s - a) * (s - b) * (s - c)))  # Heron with floats
0.0
>>> sqrt(area_sq(Fraction(a), Fraction(b), Fraction(c)))   # exact on the same numbers
2.846826518921699
JavaScript
const [a, b, c] = [3, 4, 5]
Math.hypot(a, b)                                          // 5
Math.acos((b * b + c * c - a * a) / (2 * b * c)) * 180 / Math.PI   // angle A: 36.86989764584402
Math.sin(30 * Math.PI / 180)                              // 0.49999999999999994, not 0.5
a * a + b * b === c * c                                   // true: exact for integers, the right-angle test
C++
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

const char* kind(int a, int b, int c) {
  int t;                                               // sort so that a <= b <= c
  if (a > b) { t = a; a = b; b = t; }
  if (b > c) { t = b; b = c; c = t; }
  if (a > b) { t = a; a = b; b = t; }
  if (a + b <= c) return "not a triangle";
  int d = a * a + b * b - c * c;                       // the sign of the cosine of the largest angle
  if (a == b && b == c) return "equilateral acute";
  if (a == b || b == c) {
    if (d == 0) return "isosceles right";
    if (d > 0) return "isosceles acute";
    return "isosceles obtuse";
  }
  if (d == 0) return "scalene right";
  if (d > 0) return "scalene acute";
  return "scalene obtuse";
}

int areaSq16(int a, int b, int c) {                    // 16 A^2 by Heron's formula, in whole numbers
  return (a + b + c) * (-a + b + c) * (a - b + c) * (a + b - c);
}

int main() {
  cout << kind(3, 4, 5) << endl;                       // scalene right
  cout << kind(5, 5, 8) << endl;                       // isosceles obtuse
  cout << kind(2, 3, 4) << endl;                       // scalene obtuse
  cout << kind(1, 2, 3) << endl;                       // not a triangle
  cout << areaSq16(13, 14, 15) / 16 << " " << sqrt(areaSq16(13, 14, 15) / 16.0) << endl;   // A^2 = 7056, A = 84
  printf("%.4f\n", acos(2.0 / 3) * 180 / acos(-1.0));  // angle A of the 7, 8, 9 triangle
  // a needle-thin triangle: the textbook form of Heron's formula loses everything, the stable form does not
  double a = 1e8, b = 1e8 - 1e-6, c = 1e-6;
  double s = (a + b + c) / 2, naive = s * (s - a) * (s - b) * (s - c);
  printf("%d\n", naive <= 0);                          // 1: nothing is left of the area under the root
  printf("%.6f\n", 0.25 * sqrt((a + (b + c)) * (c - (a - b)) * (c + (a - b)) * (a + (b - c))));   // the stable form
  return 0;
}

/* output:
scalene right
isosceles obtuse
scalene obtuse
not a triangle
7056 84
48.1897
1
2.846827
*/

The pitfalls, in order of how often they bite:

PitfallWhat happensWhat to do
Testing a right angle with floatsmath.sqrt(aa + bb) == c can fail through roundingcompare the integers aa + bb == c*c, or use math.isclose; see real numbers in code
Heron's formula on a thin triangles-a and s-b lose their digits and the area becomes 0.0use Fraction as above, or sort the sides and use Kahan's stable form
Degrees against radiansmath.sin(30) is not 0.5use math.radians(30); math.degrees goes back
acos of a rounded cosinea value like 1.0000000000000002 raises ValueErrorclamp the argument to [-1,1]
Not sorting the sidesthe longest side is not testedsort first, or take max
Degenerate inputa+b=c is a flat triangle with area 0require a + b > c strictly
^ for a squareit is XORuse ** or multiply: a * a

Where does the study of triangles come from?

Triangles are the oldest tool of surveying and of proof, and most of what this article covers was set down in Euclid's Elements or soon after.

  • c. 600 BCE. Tradition says that Thales of Miletus measured the height of a pyramid from the length of its shadow, an early use of similar triangles.
  • c. 300 BCE. Euclid's Elements, Book I, proves that the angles of a triangle add up to two right angles (I.32), and the triangle inequality (I.20); Book II gives the law of cosines in geometric form.
  • c. 60 CE. Heron of Alexandria's Metrica proves the formula for the area from the three sides, which Arabic sources credit to Archimedes.
  • 1765. Leonhard Euler shows that the circumcenter, centroid and orthocenter of a triangle are collinear: the Euler line.
  • 1822. Karl Feuerbach describes the nine-point circle, which passes through the midpoints of the sides, the feet of the altitudes and the midpoints between the orthocenter and the vertices, and which touches the incircle.

What are the common mistakes with triangles?

The most common mistakes with triangles are the nine below, each with the correct statement.

MistakeCorrect
❌ The angles of a triangle add up to 360^\circThat is a quadrilateral. A triangle has 180^\circ.
❌ Any three lengths make a triangleThe longest must be shorter than the other two together: 1,2,3 is flat.
❌ The height is the slanted sideThe height is the perpendicular distance; the slanted side is longer.
❌ The area is base times heightIt is half of that: \frac12bh.
❌ a^2+b^2=c^2 holds in every triangleOnly in a right triangle; otherwise use the law of cosines.
❌ Any side can be the hypotenuseIt is the longest side, opposite the right angle: c^2=a^2+b^2.
❌ 4,5,6 is a right triangle16+25=41\ne36: it is acute. Check the squares.
❌ In SSA there is always one triangleThere can be none, one or two; check the second angle 180^\circ-B.
❌ A calculator in radian mode gives \sin30^\circ=0.5It gives -0.988: use degree mode, or convert.

Practice: test your understanding

These questions mix everything above. A wrong answer costs nothing here: read the hint and try again.

True or false?

Decide whether each statement is True or False.

  • The interior angles of every triangle add up to 180^\circ.
  • Any three positive lengths form a triangle.
  • A triangle can have two right angles.
  • An equilateral triangle is always acute.
  • In a right triangle the hypotenuse is the longest side.
  • The centroid cuts each median in the ratio 2:1.

Select all that apply

Choose all the sets of lengths that form a triangle.

  • 3,4,5
  • 1,2,3
  • 5,5,9
  • 2,2,5
  • 6,7,12

Which type?

A triangle has sides 6, 8 and 10. What kind of triangle is it?

  • acute
  • right
  • obtuse
  • not a triangle

Angles in a ratio

The angles of a triangle are in the ratio 2:3:4. How many degrees is the largest?

A right triangle

A right triangle has legs 9 and 12. Find its hypotenuse and its area.

Heron's formula

Use Heron's formula to find the area of the triangle with sides 5, 5 and 6.

Area from coordinates

Find the area of the triangle with vertices (1,1), (7,1) and (4,6).

The law of cosines

Two sides of a triangle are 5 and 8 with 60^\circ between them. Find the third side.

The ambiguous case

How many triangles have a=3, b=5 and A=30^\circ?

  • none
  • one
  • two
  • three

A shadow

A person 1.5 m tall casts a shadow of 2 m. At the same moment a tree casts a shadow of 16 m. How tall is the tree?

  • 8 m
  • 12 m
  • 16 m
  • 21.3 m

A plot of land

A plot is a triangle with a base of 20 m and a height of 12 m. Land costs 70 dollars per square meter. What does the plot cost?

  • 8,400 dollars
  • 16,800 dollars
  • 4,200 dollars
  • 2,400 dollars

Summary: triangles at a glance

  • Angles: \angle A+\angle B+\angle C=180^\circ; an exterior angle is the sum of the two remote interior angles.
  • Existence: each side is shorter than the sum of the other two; the third side is between |a-b| and a+b.
  • Types: equilateral, isosceles, scalene by sides; acute, right, obtuse by c^2 against a^2+b^2 for the longest side c.
  • Area: \frac12bh, Heron √(s(s-a)(s-b)(s-c)), \frac12ab\sin C, and the coordinate formula.
  • Centers: centroid G (medians, 2:1), circumcenter O, orthocenter H (O,G,H on the Euler line), incenter I (r=\frac Ks).
  • Congruent: SSS, SAS, ASA, AAS, RHS; similar: AA, with areas in the ratio k^2.
  • Solve: law of cosines c^2=a^2+b^2-2ab\cos C, law of sines; SSA can give 0, 1 or 2 triangles.
  • Code: integer squares for the right-angle test, Fraction for exact Heron, radians for sin and cos.

Glossary: key terms

Triangle
A polygon with three sides, three vertices and three interior angles that add up to 180 degrees.
Hypotenuse
The longest side of a right triangle, opposite the right angle.
Altitude
The perpendicular segment from a vertex to the line holding the opposite side; its length is the height for that base.
Median
The segment from a vertex to the midpoint of the opposite side.
Centroid
The point where the three medians meet, the balance point of the triangle, two thirds of the way along each median from its vertex.
Circumcenter
The point where the perpendicular bisectors of the sides meet, equally far from the three vertices.
Orthocenter
The point where the three altitudes of a triangle meet.
Incenter
The point where the three angle bisectors meet, equally far from the three sides and the center of the inscribed circle.
Triangle inequality
The rule that each side of a triangle is shorter than the sum of the other two sides.
Congruent triangles
Triangles with the same shape and size, so that all corresponding sides and angles are equal.
Similar triangles
Triangles with equal angles and proportional sides, the same shape but possibly different sizes.
Heron's formula
The formula that gives the area of a triangle from its three sides as the square root of s times s minus a times s minus b times s minus c.
Law of cosines
The rule that c squared equals a squared plus b squared minus twice a times b times the cosine of the angle C between them.
Law of sines
The rule that each side of a triangle divided by the sine of its opposite angle gives the same number.

Frequently asked questions

What is a triangle?

A triangle is a polygon with three sides, three vertices and three interior angles. The angles always add up to 180 degrees. It is the simplest polygon, and any other polygon can be divided into triangles.

What are the types of triangles?

By sides, a triangle is equilateral (three equal sides), isosceles (two equal sides) or scalene (no equal sides). By angles it is acute (all angles below 90 degrees), right (one angle of 90 degrees) or obtuse (one angle above 90 degrees).

Why do the angles of a triangle add up to 180 degrees?

Draw a line through one vertex parallel to the opposite side. The alternate angles it makes equal the other two angles of the triangle, so all three angles sit together on a straight line, which measures 180 degrees.

Can any three lengths form a triangle?

No. Each length must be shorter than the sum of the other two. The lengths 3, 4 and 5 work, but 1, 2 and 3 only make a flat line and 1, 2 and 4 cannot meet. This is the triangle inequality.

How do you find the area of a triangle?

Multiply the base by the height and divide by two. If you only know the three sides, use Heron's formula with the semiperimeter s, the square root of s times s minus a times s minus b times s minus c. For sides 13, 14 and 15 the area is 84.

How do you find the area of a triangle from coordinates?

Take half the absolute value of x1 times y2 minus y3, plus x2 times y3 minus y1, plus x3 times y1 minus y2. For the vertices 0,0, 6,0 and 0,8 this gives half of 48, which is 24.

What is the difference between a median and an altitude?

A median goes from a vertex to the midpoint of the opposite side and splits that side in half. An altitude goes from a vertex perpendicular to the opposite side and measures the height. They are the same line only in an isosceles triangle, for the apex.

What are the centroid, circumcenter, orthocenter and incenter?

They are the meeting points of the medians, the perpendicular bisectors, the altitudes and the angle bisectors. The first three lie on the Euler line, and the centroid is one third of the way from the circumcenter to the orthocenter. The incenter is the center of the inscribed circle.

How do you know if two triangles are congruent?

Show that three suitable measurements match: all three sides (SSS), two sides and the angle between them (SAS), two angles and the side between them (ASA), two angles and another side (AAS), or the hypotenuse and a leg of right triangles (RHS). Side-side-angle is not enough.

What is the law of cosines?

It says that c squared equals a squared plus b squared minus 2ab times the cosine of the angle C between sides a and b. It extends the Pythagorean theorem to every triangle, because for a right angle the cosine is zero.

Why can two sides and an angle make two triangles?

When the angle is opposite one of the two given sides, the law of sines gives a sine, and two different angles share it: an acute one and its supplement. If both leave a positive third angle, two triangles fit. This is the ambiguous SSA case.

How do you classify a triangle in Python?

Sort the three sides, check that the two shorter ones add up to more than the longest, then compare the square of the longest with the sum of the other two squares using integers. Avoid comparing square roots as floats, which can differ by rounding.

References

  1. Thomas L. Heath (translator) (1908). The Thirteen Books of Euclid's Elements (2nd ed.), Book I, propositions 20, 32, 47 and 48, and Book II, propositions 12 and 13. Cambridge University Press.
  2. Otto Neugebauer and Abraham Sachs (1945). Mathematical Cuneiform Texts (the tablet Plimpton 322). American Oriental Society.
  3. H. S. M. Coxeter and Samuel L. Greitzer (1967). Geometry Revisited, chapters 1 and 5 (the Euler line and the nine-point circle). Mathematical Association of America.
  4. William Kahan (2014). Miscalculating Area and Angles of a Needle-like Triangle. University of California, Berkeley, lecture notes.
  5. Python Software Foundation. The Python Standard Library: math, mathematical functions. docs.python.org. https://docs.python.org/3/library/math.html.