Orthocenter Calculator
Find the intersection point of a triangle's three altitudes from the Cartesian coordinates of its vertices.
Find a triangle's orthocenter
Enter coordinates for vertices A, B, and C. The points must form a nondegenerate triangle.
About the Orthocenter
The orthocenter is the common intersection of a triangle's three altitudes. An altitude is a line through one vertex that is perpendicular to the line containing the opposite side. Although drawing all three altitudes makes the construction easy to recognize, only two are needed for calculation: once two distinct altitude lines meet, the third passes through the same point. This concurrency is a fundamental theorem of Euclidean geometry.
The orthocenter's location depends on the triangle's angles. In an acute triangle, all three altitudes meet inside the triangle. In a right triangle, the two legs are already perpendicular altitudes, so the orthocenter is the right-angle vertex. In an obtuse triangle, the altitudes intersect outside the triangle because at least two opposite sides must be extended. An exterior coordinate is therefore a valid answer rather than evidence that the calculation failed.
Coordinate geometry turns perpendicularity into dot products. A line from vertex A to the unknown point H is an altitude when vector H minus A is perpendicular to side BC. Their dot product must equal zero. A second equation says vector H minus B is perpendicular to side AC. Expanding those two dot products produces a two-by-two linear system in the x- and y-coordinates of H. The calculator solves that system directly, avoiding slope formulas that require special cases for vertical lines.
If the three supplied points are collinear, they do not define a triangle. The two altitude equations then fail to have one unique intersection, which appears algebraically as a zero determinant. The calculator detects this condition and requests noncollinear vertices. Repeated points are rejected for the same geometric reason. Decimal and negative coordinates are accepted, so the method works in every quadrant and does not require axis-aligned sides.
The orthocenter is one of four classical triangle centers. The centroid is the intersection of medians, the incenter is the intersection of angle bisectors, and the circumcenter is the intersection of perpendicular bisectors. In a general triangle these are different points. The centroid, circumcenter, and orthocenter lie on the Euler line, and their positions obey a simple ratio. In an equilateral triangle, symmetry causes all four principal centers to coincide.
This calculator is useful for analytic geometry, checking graph constructions, triangle-center exercises, and computer graphics. Enter each ordered pair carefully, preserving which x-coordinate belongs with which y-coordinate. The result is rounded for readable display while the equations are evaluated with full JavaScript floating-point precision. Substituting the result into either altitude dot-product equation provides a direct way to verify it.
Orthocenter Examples
| Vertices | Orthocenter | Explanation |
|---|---|---|
| A(0,0), B(4,0), C(0,3) | H(0,0) | The triangle is right at A, so A is the orthocenter. |
| A(0,0), B(6,0), C(2,4) | H(2,2) | The vertical altitude from C meets the second altitude at (2,2). |
| A(0,0), B(4,0), C(1,1) | H(1,3) | This obtuse triangle has an orthocenter outside its interior. |
How to Find an Orthocenter
- Enter the x- and y-coordinates of vertex A.
- Enter the corresponding coordinates of vertices B and C.
- Confirm that the three points are distinct and do not lie on one line.
- Click Find orthocenter to solve the two perpendicular-altitude equations.
Orthocenter FAQ
Can an orthocenter lie outside a triangle?
Yes. The orthocenter of an obtuse triangle lies outside because the relevant altitudes meet on extensions of the sides.
Where is the orthocenter of a right triangle?
It is the vertex containing the right angle. The two legs are perpendicular and each serves as an altitude through that vertex.
Why are collinear points invalid?
Three collinear points have zero area and do not form a triangle. Their altitude equations cannot define one unique triangle center.
Do I need to calculate all three altitudes?
No. Any two altitudes of a valid triangle determine their common intersection, and the third altitude passes through that same point.
Is the orthocenter the same as the centroid?
Usually not. The orthocenter intersects altitudes, while the centroid intersects medians; they coincide in an equilateral triangle.