Orthocenter - Triangle Altitude Intersection
Use this orthocenter calculator to compute (Hx, Hy) from three vertex coordinates, with a third-altitude cross-check and a right/obtuse/acute triangle label.
Orthocenter
Results
What Is Orthocenter?
An orthocenter calculator returns the point where the three altitudes of a triangle meet, given three vertex coordinates. The altitudes are the lines through each vertex that are perpendicular to the opposite side, and they all cross at one point, the orthocenter, which is one of the four classical triangle centers. The orthocenter equals the intersection of the altitude from A perpendicular to BC and the altitude from B perpendicular to AC, and the same point also lies on the third altitude from C.
- • Coordinate geometry homework: Verify textbook exercises where the triangle is given as three coordinate points and the orthocenter must be reported in the same length unit as the input grid.
- • Classifying a triangle by its orthocenter location: The orthocenter sits inside an acute triangle, on the right-angle vertex of a right triangle, and outside an obtuse triangle, so the orthocenter position is a quick way to label the triangle type.
- • Pre-step for Euler line and nine-point circle work: The orthocenter, centroid, and circumcenter are collinear on the Euler line in a fixed 2:1 ratio, so the orthocenter is the first triangle center needed before computing the nine-point center.
- • CAD and graphics triangle centers: Mark the orthocenter of a triangle stored in a model as three vertex coordinates, especially when the triangle is rotated away from the axes and a base-height shortcut does not apply.
A triangle in the plane is uniquely defined by three non-collinear points, so its orthocenter is a function of six coordinates. The same six coordinates also feed the centroid, but the two centers coincide only for an equilateral triangle.
For the same three vertex coordinates the Centroid Calculator returns the arithmetic mean of the three vertices, which is the second of the four classical triangle centers.
How Orthocenter Works
The orthocenter calculator writes the altitude from A as the line through A perpendicular to BC, writes the altitude from B as the line through B perpendicular to AC, and solves the two-line intersection with Cramer's rule. The third-altitude cross-check confirms the result.
- x1, y1, x2, y2, x3, y3: Cartesian coordinates of the three triangle vertices, in the same length unit.
- Hx, Hy: Orthocenter coordinates returned by the two-altitude intersection, in the same length unit as the input coordinates.
The same six coordinates that produce the orthocenter also produce the triangle area through the shoelace formula, so the area-triangle-coordinates-calculator is the natural next step when both the center and the area of a triangle are needed in the same report.
Right triangle with legs 6 and 9 along the axes
x1 = 0, y1 = 0; x2 = 6, y2 = 0; x3 = 0, y3 = 9
Altitude from A: -6*x + 9*y = 0. Altitude from B: 0*x + 9*y = 0. Solving gives Hx = 0, Hy = 0.
Orthocenter = (0, 0).
The orthocenter coincides with the right-angle vertex at the origin, which is the standard result for a right triangle whose legs lie on the axes.
Equilateral triangle with vertices (0,0), (2,0), (1, sqrt(3))
x1 = 0, y1 = 0; x2 = 2, y2 = 0; x3 = 1, y3 = 1.7320508
Altitude from A: -1*x + 1.7320508*y = 0. Altitude from B: 1*x + 1.7320508*y = 2. Solving gives Hx = 1, Hy = 0.5773503.
Orthocenter = (1, 0.5774).
For an equilateral triangle the orthocenter coincides with the centroid, incenter, and circumcenter, all sitting one third of the way up from the base along the symmetry axis.
According to Wolfram MathWorld, the orthocenter of a triangle is the point of concurrency of the three altitudes, and in closed form the orthocenter coordinates are H = (x1 + x2 + x3 - 2*Ox, y1 + y2 + y3 - 2*Oy), where (Ox, Oy) is the circumcenter of the same triangle.
The same six coordinates that produce the orthocenter also produce the triangle area through the shoelace formula, so the Area Triangle Coordinates Calculator is the natural next step when both the center and the area of a triangle are needed in the same report.
Key Concepts Explained
Four ideas decide what the orthocenter means for a triangle and how the formula behaves on edge cases.
Altitude of a triangle
An altitude is a line through one vertex that is perpendicular to the opposite side. A triangle always has exactly three altitudes, one through each vertex, and they all meet at the orthocenter.
Orthocenter vs centroid
The centroid is the arithmetic mean of the three vertices ((x1+x2+x3)/3, (y1+y2+y3)/3), while the orthocenter is the intersection of the three altitudes. The two centers coincide only for an equilateral triangle.
Inside, on, or outside the triangle
The orthocenter sits inside an acute triangle, on the right-angle vertex of a right triangle, and outside an obtuse triangle. This location is the standard way to label the triangle type from the altitudes alone.
Collinear and identical points
When the three points are collinear or all coincide, the figure is degenerate. The altitudes are all parallel or undefined, so the orthocenter is not defined. The orthocenter calculator flags the input as a degenerate triangle.
For any non-equilateral triangle the orthocenter, centroid, and circumcenter are collinear on the Euler line, with the centroid sitting two-thirds of the way from the circumcenter to the orthocenter (HG:GO = 2:1), while the incenter does not lie on this line in general. For a right triangle the orthocenter is the right-angle vertex and the circumcenter is the midpoint of the hypotenuse, so the two centers sit at different points. The output is in the same length unit as the input coordinates, so the page does not convert units.
When all three angles of the triangle are acute the orthocenter sits inside the figure, and the Acute Triangle explores the same acute case with the angle sum and side length bounds that the orthocenter location depends on.
How to Use This Calculator
Use the orthocenter calculator with all six coordinates in the same length unit, then read the orthocenter (Hx, Hy), the third-altitude cross-check, and the triangle type in the same pass.
- 1 Enter the first vertex: Type the x and y coordinates of the first vertex. Use the same length unit for both coordinates and for the other two vertices so the orthocenter comes out in that unit.
- 2 Enter the second and third vertices: Type the x and y coordinates of the second and third vertices. The order of the vertices does not change the orthocenter because the formula is symmetric in the three inputs.
- 3 Read the orthocenter: Use the orthocenter point in the black results panel as the primary answer. Hx and Hy are also listed below as separate numeric rows in the same length unit as the inputs.
- 4 Cross-check with the third altitude: The page shows the third-altitude cross-check, which is the orthocenter recomputed from the altitude from C perpendicular to AB. The two values match for any non-degenerate triangle.
- 5 Check the right-triangle case: When the triangle is a right triangle, the orthocenter coincides with the right-angle vertex. The right-triangle calculator on this site is the natural pair when the input comes from a right triangle, because it shares the same length unit and the orthocenter lands at the right-angle vertex.
For a triangle with vertices (0, 0), (6, 0), and (0, 9), the orthocenter is (0, 0). The result panel reports Hx = 0 and Hy = 0, the third-altitude cross-check matches, and the triangle type label reads 'Right triangle'.
For a right triangle the orthocenter lands at the right-angle vertex, which is a useful shortcut the Right Triangle Calculator explores in more depth with the same length unit and the same six-coordinate input pattern.
Benefits of Using This Calculator
The two-altitude intersection is a short calculation, but the orthocenter calculator wraps it in a layout that helps with plotting, verifying, and reporting the orthocenter of a triangle.
- • Direct from six coordinates: The two-altitude intersection takes the three vertices straight to the orthocenter, so no medians, side lengths, or perpendicular heights are needed first.
- • Orthocenter point is shown explicitly: The page formats the orthocenter as (Hx, Hy) so it can be plotted on a coordinate plane or pasted into a report without further formatting.
- • Third-altitude cross-check is included: The cross-check recomputes the orthocenter from the third altitude, so a single page can confirm the two-altitude intersection and the third altitude at the same time.
- • Triangle type label is built in: The page reports the triangle as right, obtuse, acute, or degenerate, so the user knows immediately whether the orthocenter is on, inside, or outside the triangle.
The orthocenter calculator returns the orthocenter point, the two coordinate rows, the third-altitude cross-check, and the triangle type label together.
When the input is given as side lengths or a base and a height instead of three vertex coordinates, the Triangle Calculator handles the SSS, SAS, and base-height cases in the same Math and Conversion cluster.
Factors That Affect Your Results
The two-altitude intersection is stable, but a few input choices decide whether the orthocenter calculator returns the right value for a given triangle.
Same length unit for all six coordinates
Mixing meters and feet silently produces a wrong orthocenter, so use one unit for the three vertices and convert the result later if needed.
Order of the vertices
Reordering the vertices does not change the orthocenter because the altitude construction is symmetric in the three vertices.
Right, obtuse, and acute triangle position
For a right triangle the orthocenter coincides with the right-angle vertex, for an acute triangle it sits inside the triangle, and for an obtuse triangle it lies outside. The triangle type label tells the user which case the current input is in.
Result unit is always the input length unit
There is no implicit unit conversion inside the calculator. Use a length converter to translate the finished orthocenter into another unit if the report needs it.
- • The calculator does not solve for a missing vertex when only the orthocenter and two vertices are known. Use a system of equations for that case instead.
- • Hand calculation that rounds the intermediate slopes partway through can differ by a few hundredths of a length unit from the calculator, which keeps full precision until the display step.
- • For polygons with more than three sides the orthocenter is not defined, and the triangle-area-calculator is the natural next step when the shape is a polygon instead of a triangle.
For an obtuse triangle the orthocenter sits outside the triangle, so a plot on a coordinate plane will need extra room around the triangle. For an equilateral triangle the orthocenter coincides with the centroid, incenter, and circumcenter.
According to Wikipedia, the orthocenter of a triangle is the point where the three altitudes meet, and for a right triangle it coincides with the vertex of the right angle.
For polygons with more than three sides the orthocenter is not defined, and the Triangle Area Calculator is the natural next step when the shape is a polygon instead of a triangle.
Frequently Asked Questions
Q: What is the orthocenter of a triangle?
A: The orthocenter of a triangle is the single point where the three altitudes meet. An altitude is the line through one vertex that is perpendicular to the opposite side, and the three altitudes always cross at the orthocenter, which is one of the four classical triangle centers.
Q: How do you compute the orthocenter of a triangle from coordinates?
A: Write the altitude from A as the line through A perpendicular to side BC, and the altitude from B as the line through B perpendicular to AC. Solve the two-line intersection to get the orthocenter (Hx, Hy) in the same length unit as the input coordinates. The third altitude from C also passes through the same point.
Q: What is the formula for the orthocenter of a triangle?
A: The two-altitude intersection gives Hx = (c1*dyAC - c2*dyBC) / det and Hy = (dxBC*c2 - dxAC*c1) / det, where dxBC = x3 - x2, dyBC = y3 - y2, dxAC = x3 - x1, dyAC = y3 - y1, c1 = dxBC*x1 + dyBC*y1, c2 = dxAC*x2 + dyAC*y2, and det = dxBC*dyAC - dxAC*dyBC.
Q: Is the orthocenter the same as the centroid?
A: No. The centroid is the arithmetic mean of the three vertices ((x1+x2+x3)/3, (y1+y2+y3)/3), while the orthocenter is the intersection of the three altitudes. The two centers coincide only for an equilateral triangle, and they sit at different points for every other triangle shape.
Q: What is the orthocenter of a right triangle?
A: The orthocenter of a right triangle is the right-angle vertex. The two legs are already altitudes, so they meet at the right-angle vertex, and the third altitude from the right-angle vertex also lands there. For a triangle with vertices (0,0), (6,0), (0,9) the orthocenter is (0,0).
Q: Can the orthocenter of a triangle fall outside the triangle?
A: Yes. The orthocenter sits inside an acute triangle, on the right-angle vertex of a right triangle, and outside an obtuse triangle. For a triangle with vertices (0,0), (4,0), (1,-1) the orthocenter is (1,-3), which is below the triangle because the triangle is obtuse.