Every triangle hides several special points. The centroid is its center of mass, the circumcenter is the center of the circle through the three vertices, the orthocenter is where the altitudes cross, and the incenter is the center of the largest circle inside. This calculator takes the coordinates of the three vertices and gives all four points, plus the circumradius, the inradius and the area.
How the calculation works
- Centroid = average of the three vertices
- Circumcenter from the perpendicular bisectors of two sides, with D = 2 × (x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂))
- Orthocenter H = 3 × centroid − 2 × circumcenter
- Incenter = (a × A + b × B + c × C) ÷ (a + b + c), where a, b and c are the lengths of the sides opposite A, B and C
- Inradius = 2 × area ÷ perimeter
Example
Take the triangle A(0, 0), B(8, 0), C(2, 6). Its area is 24. The centroid is at (3.3333, 2), the circumcenter at (4, 2) with a circumradius of 4.4721, and the orthocenter at (2, 2). The incenter is at (2.9196, 2.1043) and the inradius is 2.1043. The three points G, O and H all have y = 2: they lie on the Euler line.
Why it matters
These points are used in geometry, surveying, computer graphics and mesh generation. The circumcenter is the basis for Delaunay triangulation, the incenter locates the best position for a circular element inside a triangular plot, and the centroid gives the balance point of a triangular plate or a land parcel.
Good to know
The three points must not be on one line. If they are, the calculator flags it. All the lengths are in the unit of your coordinates, and the area in its square. Coordinates can be negative. For a right triangle, the circumcenter is the midpoint of the hypotenuse, which is a quick check on the result.
Related tools
The triangle solver gives the sides and angles, the triangle area calculator covers area formulas, and the distance and midpoint calculators cover the building blocks used here.