Centroid of a triangle (Coordinate Geometry)

Given the coordinates of the three vertices of a triangle ABC,
the centroid O coordinates are given by
where Ax and Ay are the x and y coordinates of the point A etc..

Try this Drag any point A,B,C. The centroid O of the triangle ABC is continuously recalculated using the above formula. You can also drag the origin point at (0,0).

Recall that the centroid of a triangle is the point where the triangle's three medians intersect. It is also the center of gravity of the triangle. For more see Centroid of a triangle.

The coordinates of the centroid are simply the average of the coordinates of the vertices. So to find the x coordinate of the orthocenter, add up the three vertex x coordinates and divide by three. Repeat for the y coordinate.


  x y

Use the calculator on the right to calculate coordinates of the centroid of the triangle ABC.

Enter the x,y coordinates of each vertex, in any order.

Things to try

  1. In the diagram at the top of the page, Drag the points A, B or C around and notice how the centroid moves and the coordinates are calculated. Try points that are negative in x and y. You can drag the origin point to move the axes.
  2. Click "hide details". Drag the triangle to some random new shape. Calculate the centroid position then click "show details" to see if you got it right.
Once you have done the above, you can click on "print" and it will print the diagram exactly as you set it.


In the interest of clarity in the applet above, the coordinates are rounded off to integers. This can cause calculations to be slightly off.

For more see Teaching Notes

While you are here..

... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone. However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site? When we reach the goal I will remove all advertising from the site.

It only takes a minute and any amount would be greatly appreciated. Thank you for considering it!   – John Page

Become a patron of the site at

Other Coordinate Geometry topics