Orthocenter Calculator

Find where the three altitudes of a triangle meet, from the three vertex coordinates.

Math and PercentUpdated 2026-11-184 min read
Orthocenter Calculator
Orthocenter
...
Circumcenter...
Centroid...
Circumradius...
Placement...
Altitude check dot product...

What it does

Drop a perpendicular from each corner of a triangle to the opposite side and the three lines meet at one point. That point is the orthocenter. Wolfram MathWorld defines it as the intersection of the three altitudes, and notes that the name was introduced by Besant and Ferrers in 1865. The altitude from a vertex runs through that vertex at right angles to the opposite side, so the orthocenter records how the three perpendicular directions balance each other.

Where the point lands tells you the shape of the triangle. MathWorld states that an acute triangle places the orthocenter in the interior, while a right triangle puts it exactly at the vertex where the right angle sits. An obtuse triangle pushes it outside, beyond the longest side. This page reports that placement for every set of coordinates you enter.

The orthocenter also sits on the Euler line together with the centroid and the circumcenter. A set of course notes from the University of Illinois at Urbana-Champaign proves the Euler line theorem using vectors and writes the relationship as H = 3G - 2D, where G is the barycenter and D is the circumcenter. Since G is the average of the three vertices, the orthocenter can be checked against the circumcenter without drawing a single altitude.

This calculator takes the three vertex coordinates in any order and solves the two altitude equations directly. It returns the orthocenter, the circumcenter, the centroid, the circumradius and a short read on whether the point falls inside, on a vertex or outside. A final dot product shows that the computed point really does lie on the altitude from the first vertex.

Coordinates are plain numbers on a flat Cartesian grid, so no unit selector appears. Use the same scale on both axes; if the axes are stretched differently the perpendicular lines in the picture will not match the perpendicular lines in the arithmetic.

How to use

  1. Enter the x and y coordinates of the first vertex.
  2. Enter the coordinates of the second and third vertices in any order.
  3. Read the main result, the orthocenter, as an (x, y) point.
  4. Compare it with the circumcenter and centroid to see the Euler line relationship.
  5. Check the placement line to learn whether the triangle is acute, right or obtuse.
  6. Use the altitude check value to confirm the point sits on the altitude from vertex one. A value of 0 confirms it.

Formula

Altitude from A: (x2 - x3)(x - x1) + (y2 - y3)(y - y1) = 0. Altitude from B: (x1 - x3)(x - x2) + (y1 - y3)(y - y2) = 0. Solve the pair for the orthocenter H. The Euler line gives H = 3G - 2O, where G is the centroid and O the circumcenter.
(x1, y1)
Coordinates of the first vertex.
(x2, y2)
Coordinates of the second vertex.
(x3, y3)
Coordinates of the third vertex.
H
Orthocenter, the intersection of the three altitudes.
G
Centroid, the average of the three vertices.
O
Circumcenter, the point equidistant from all three vertices.

The two altitude equations are solved as a linear system in x and y, and the determinant is zero only when the three points are collinear, in which case there is no triangle. The circumcenter comes from the perpendicular bisectors of two sides, and the circumradius is the distance from that center to any vertex. For a right triangle the orthocenter lands on the right angle vertex, and for an obtuse triangle it lies outside the triangle. Coordinates larger than one million are rejected to protect floating point precision.

Worked example

Example: vertices (0,0), (6,0) and (2,4)

Defaults: (x1, y1) = (0,0), (x2, y2) = (6,0) and (x3, y3) = (2,4).

  1. Altitude from (0,0): normal vector (6 - 2, 0 - 4) = (4, -4), giving 4(x - 0) - 4(y - 0) = 0, or x = y.
  2. Altitude from (6,0): normal vector (0 - 2, 0 - 4) = (-2, -4), giving -2(x - 6) - 4(y - 0) = 0.
  3. Solving the two equations gives x = 2 and y = 2, so the orthocenter is (2, 2).
  4. Circumcenter: the perpendicular bisector of the base is x = 3, and the other bisector gives y = 1, so O = (3, 1).
  5. Centroid: ((0 + 6 + 2)/3, (0 + 0 + 4)/3) = (2.6667, 1.3333).
  6. Circumradius: distance from (3, 1) to (0,0) is sqrt(10) = 3.1623.
  7. Side squares are 36, 32 and 20, and 36 is less than 32 + 20, so the triangle is acute and the point is inside. The tool shows the orthocenter (2, 2), circumcenter (3, 1), centroid (2.6667, 1.3333), circumradius 3.1623 and altitude check 0.

Reference table

Triangle centers and checks for the worked triangle
QuantityValueHow it is found
Orthocenter H(2, 2)Intersection of two altitudes
Circumcenter O(3, 1)Intersection of two perpendicular bisectors
Centroid G(2.6667, 1.3333)Mean of the three vertices
Circumradius3.1623Distance from O to a vertex
Altitude check0Dot product on the altitude from vertex one

Limits

  • Assumes a flat Cartesian plane with equal scale on both axes.
  • Three collinear or repeated points give no triangle and are rejected.
  • The circumcenter and circumradius use exact algebra, so very large coordinates can lose precision; inputs are capped.
  • Reports the classical triangle centers only, not weighted or spherical versions.

Common mistakes

  • Using the midpoint of a side as the foot of an altitude, which only works for an isosceles triangle.
  • Confusing the orthocenter with the centroid, which is the average of the vertices.
  • Expecting the orthocenter to always lie inside the triangle; an obtuse triangle puts it outside.
  • Mixing vertex order between the coordinate entry and a hand calculation, which changes the sign of a normal vector.
  • Reading the circumradius as the distance from the orthocenter to a vertex.

Try it yourself

Quick checks. Answers sit tucked under each question.

Find the orthocenter of (0,0), (6,0), (0,8).

This is a right triangle with the right angle at (0,0), so the orthocenter is (0,0). The circumcenter is the midpoint of the hypotenuse, (3, 4), and the tool reports altitude check 0.

Where does the orthocenter of (0,0), (4,0), (1,3) land?

The altitude from (0,0) is y = x and the altitude from (4,0) gives x + 3y = 4, so the orthocenter is (1, 1). The tool reports (1, 1) with altitude check 0.

Does the orthocenter of (0,0), (4,0), (1,1) fall inside or outside the triangle?

The altitudes meet at (1, 3), above the third vertex, so the triangle is obtuse and the orthocenter lies outside. Side squares 16, 10 and 2 confirm this because 16 exceeds 10 + 2. The tool reports (1, 3) and labels the placement outside.

Questions

What is an orthocenter?

The point where a triangle's three altitudes cross. An altitude is the perpendicular line from a vertex to the line holding the opposite side.

Is the orthocenter always inside the triangle?

No. It sits inside an acute triangle, at the right angle vertex of a right triangle, and outside an obtuse triangle. The placement line on this page tells you which case you have.

How is it different from the centroid?

The centroid is the average of the three vertex coordinates and is the balance point of a uniform triangle. The orthocenter is found from perpendicular lines and generally sits somewhere else. They coincide only for an equilateral triangle.

What is the Euler line?

A straight line through the centroid, circumcenter and orthocenter. The centroid lies one third of the way from the circumcenter to the orthocenter, which is why H = 3G - 2O.

Do I need to draw the triangle first?

No. Enter the three coordinate pairs. The page solves two altitude equations and reports the intersection directly.

What if my three points form a straight line?

Then no triangle exists and the page returns an error asking for three points that are not collinear.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.