Skip to content
One hour with George, then a written plan the next working day. Book yours.

Finding a triangle's orthocenter

The orthocenter is the single point where a triangle's three altitudes cross. To find it from coordinates, write the equations of two altitudes, solve them as a pair, and confirm that the third altitude passes through the same point. Its position depends on whether the triangle is acute, right or obtuse.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Where the orthocenter sits, with one computed triangle of each kind
Triangle typeWhere H isVerticesOrthocenter
AcuteInside the triangle(1, 4), (5, 0), (7, 6)(4, 3)
RightAt the right-angle vertex(0, 0), (8, 0), (0, 6)(0, 0)
ObtuseOutside the triangle(0, 0), (10, 0), (12, 4)(12, -6)
EquilateralAt the center, with the other centersAnySame as the centroid

In the obtuse case the angle at (10, 0) is the obtuse one, and the orthocenter lies outside the triangle.

Our own computed triangles; each orthocenter was solved from two altitudes and confirmed on the third

What is the orthocenter?

An altitude is a line from a corner perpendicular to the opposite side. A triangle has three of them, and they always meet at one point, which is the orthocenter, often written H. It is one of the four classic triangle centers.

What is the orthocenter?
CenterMade byWhere it can be
CentroidThe three mediansAlways inside
IncenterThe three angle bisectorsAlways inside
CircumcenterThe perpendicular bisectors of the sidesInside, on the hypotenuse of a right triangle, or outside
OrthocenterThe three altitudesInside, at the right-angle corner, or outside

In an equilateral triangle the four centers coincide.

How do you find it with coordinates?

You need only two altitudes, because the third passes through their crossing. Use the triangle P(1, 4), Q(5, 0) and R(7, 6).

  1. Find the slope of two sides. Side PQ has slope (0 - 4) / (5 - 1) = -1. Side QR has slope (6 - 0) / (7 - 5) = 3.
  2. Flip and negate each slope to get the perpendicular slope. The altitude from R is perpendicular to PQ, so its slope is 1. The altitude from P is perpendicular to QR, so its slope is -1/3.
  3. Write each altitude through its corner. From R(7, 6) with slope 1: y = x - 1. From P(1, 4) with slope -1/3: y = -x/3 + 13/3.
  4. Solve the pair. Setting x - 1 equal to -x/3 + 13/3 gives 3x - 3 = -x + 13, so 4x = 16, x = 4, and y = 3.

The orthocenter is (4, 3). To confirm it, take the third altitude, from Q(5, 0) perpendicular to PR. Side PR has slope 2/6, which is 1/3, so the altitude has slope -3 and the equation y = -3x + 15. At x = 4 this gives y = 3, which matches. A mismatch means a slope or sign slip in an earlier step.

For more on how test geometry uses coordinates, the math tutoring page explains how our SAT® and ACT® exam prep sessions handle it.

Why does the orthocenter move outside?

Take the right triangle with corners (0, 0), (8, 0) and (0, 6). The legs are already perpendicular, so they are two of the altitudes, and they cross at the right-angle corner (0, 0). That is the orthocenter, and no equation is needed.

Now stretch a triangle until one angle is obtuse, as in the corners (0, 0), (10, 0) and (12, 4). The angle at (10, 0) is more than 90 degrees. The altitude from (0, 0) is perpendicular to the side from (10, 0) to (12, 4), which has direction (2, 4), so its equation is 2x + 4y = 0. The altitude from (10, 0) is perpendicular to the side from (0, 0) to (12, 4), which gives 12x + 4y = 120. Subtracting leaves 10x = 120, so x = 12 and y = -6. The lines meet below the triangle, because the altitudes from the two sharp corners land on extended sides.

Does the orthocenter line up with the other centers?

Yes, and it makes a good check. In any triangle that is not equilateral, the orthocenter, the centroid and the circumcenter lie on one straight line, called the Euler line, and the centroid sits two thirds of the way from the orthocenter toward the circumcenter.

Worked example: Testing the Euler line on P(1, 4), Q(5, 0), R(7, 6). The orthocenter is (4, 3). Find the centroid and circumcenter and check that the three points line up.

  1. The centroid is the average of the corners: ((1 + 5 + 7) / 3, (4 + 0 + 6) / 3), which is (13/3, 10/3).
  2. The circumcenter is the point equally far from all three corners. The point (4.5, 3.5) is 12.5 units squared from each corner: from P, 3.5 squared plus 0.5 squared; from Q, 0.5 squared plus 3.5 squared; and from R, 2.5 squared plus 2.5 squared.
  3. Three times the centroid minus twice the circumcenter should equal H: (13 - 9, 10 - 7) is (4, 3).

Answer: the orthocenter is (4, 3), and H, G and the circumcenter lie on one line in that order, with G two thirds of the way from H to the circumcenter.

Method: the circumcenter was found by testing its distance to each corner, and the Euler relation H = 3G - 2O was confirmed on the numbers.

Practice problems

Try these before you read the answers.

  1. Find the orthocenter of the triangle (0, 0), (6, 0), (0, 8). Answer: (0, 0), the right-angle corner.
  2. A triangle side has slope 2. What is the slope of the altitude onto it? Answer: -1/2.
  3. Find the orthocenter of (0, 0), (10, 0), (4, 6). Answer: the altitude from (4, 6) is x = 4, and the one from (0, 0) is y = x, so the orthocenter is (4, 4).
  4. Where is the orthocenter of an obtuse triangle? Answer: outside the triangle.
  5. In an equilateral triangle, how does the orthocenter compare with the centroid? Answer: they are the same point.

The related pages below cover altitude lengths, and the study planner can set geometry weeks. The original math practice set has more items.

Common questions

Do I need all three altitudes?

No. Two altitudes cross at the orthocenter, and the third is a check.

Why can the orthocenter be outside the triangle?

In an obtuse triangle, the altitudes from the two sharper corners meet only after the sides are extended, so the crossing lies beyond the triangle.

Is the orthocenter ever a corner of the triangle?

Yes, for a right triangle it is the corner that holds the right angle.

How is it different from the centroid?

The centroid comes from medians and is always inside. The orthocenter comes from altitudes and can leave the triangle.

Sources