Formula and Method for the Centroid of a Triangle
The centroid of a triangle is the point where its three medians intersect. A median is the line segment from one vertex to the midpoint of the opposite side. All three medians of any triangle always meet at exactly one point, and that point — the centroid — also marks the triangle's center of mass if it is a flat, uniform plate.
How the calculation works
Given the three vertices A(x1, y1), B(x2, y2), and C(x3, y3), the centroid G is simply the average of the three points:
G = ( (x1 + x2 + x3) / 3 , (y1 + y2 + y3) / 3 )
This calculator also reports the triangle's area using the shoelace formula, Area = |x1(y2 − y3) + x2(y3 − y1) + x3(y1 − y2)| / 2, and classifies the triangle as scalene, isosceles, or equilateral by comparing the three side lengths.
Common mistakes
- Mixing up coordinates: double-check that each x and y belongs to the same vertex — swapping a y-value between two vertices silently changes the shape.
- Confusing the centroid with the visual "middle": the centroid is a specific averaged point, not the midpoint of the bounding box, and it generally does not coincide with the incenter or circumcenter except in an equilateral triangle.
- Collinear points: if the three vertices lie on a single straight line, the area is zero and there is no valid triangle or centroid to compute.
Real-world applications
- Engineering and physics use the centroid to locate the center of mass of flat triangular plates and cross-sections for load and balance calculations.
- Computer graphics and game development use triangle centroids for mesh processing, collision approximation, and placing labels on triangular faces.
- Surveying and GIS work use centroids to represent a triangular parcel of land with a single reference coordinate.
- Structural design uses the centroid, alongside the moment of inertia, when analyzing how a triangular cross-section resists bending.