Centroid of a Triangle Calculator

Enter the coordinates of a triangle's three vertices to find its centroid - the point where the three medians meet and the triangle's center of mass.

Quick Facts

Formula
G = ((x1+x2+x3)/3, (y1+y2+y3)/3)
The centroid is the average of the three vertices - coordinates can be in any consistent unit.
Geometric meaning
Intersection of the three medians
The centroid splits each median 2:1, with the longer part nearer the vertex, and always lies inside the triangle.

Your Results

Calculated
Centroid X (Gx)
-
(x1+x2+x3)/3
Centroid Y (Gy)
-
(y1+y2+y3)/3
Triangle area
-
Shoelace formula, square units
Triangle type
-
By side-length comparison

Ready

Enter the three vertices and press Calculate to find the centroid.

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.

Frequently Asked Questions

What is the centroid of a triangle?
The centroid is the point where a triangle's three medians intersect. It equals the average of the three vertices' coordinates, G = ((x1+x2+x3)/3, (y1+y2+y3)/3), and it is the triangle's center of mass if the triangle is a flat, uniform plate.
Is the centroid the same as the center of a triangle?
Not exactly. A triangle has several distinct centers, including the centroid, incenter, circumcenter, and orthocenter, and they generally sit at different points. The centroid is the average-of-vertices center and always lies inside the triangle, unlike the circumcenter or orthocenter, which can fall outside an obtuse triangle. All four coincide only for an equilateral triangle.
How does the centroid relate to the medians?
Each median connects a vertex to the midpoint of the opposite side. The centroid divides every median in a 2:1 ratio, with the longer segment running from the vertex to the centroid and the shorter segment from the centroid to the midpoint of the opposite side.
What happens if the three points are collinear?
If all three vertices fall on the same straight line, the shape has zero area and is not a valid triangle, so there is no well-defined centroid. This calculator detects that case and flags it as invalid input instead of returning a misleading point.