Back to Centroid of a Triangle

Theoretical Background: Centroid of a Triangle

Open the app

Centroid of a triangle

A median joins a vertex to the midpoint of the opposite side. The three medians meet at one point, the centroid G. For vertices \(A(x_1,y_1)\), \(B(x_2,y_2)\), \(C(x_3,y_3)\):

$$ \bar x = \frac{x_1 + x_2 + x_3}{3}, \qquad \bar y = \frac{y_1 + y_2 + y_3}{3} $$

G divides every median in the ratio 2 : 1 – it lies two thirds of the way from a vertex to the midpoint of the opposite side.

Area – shoelace formula

$$ A = \tfrac12\left|\,x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\,\right| $$

Without the absolute value the result is positive when A → B → C runs counter-clockwise and negative when clockwise.

Worked example

Example

A(0, 0), B(6, 0), C(2, 4).

\(\bar x = (0 + 6 + 2)/3 = 2.6667\), \(\bar y = (0 + 0 + 4)/3 = 1.3333\).

Area: \(\tfrac12|0(0-4) + 6(4-0) + 2(0-0)| = 12\).

Check: the midpoint of BC is M(4, 2); \(A + \tfrac23(M - A) = (2.6667, 1.3333)\) ✓.

Why the average of the vertices?

The centroid of an area is \(\bar x = \frac{1}{A}\int x\,dA\). Cutting the triangle into thin strips parallel to one side, each strip has its midpoint on the median from the opposite vertex, so the centroid lies on every median. Integrating along a median gives the 2/3 position, which equals the vertex average.

In statics

For a uniform plate of constant thickness the centroid is the center of gravity: the plate balances on a pin at G. Triangles are the building blocks of composite areas – see the Centroid Calculator for shapes built from several parts and holes. For a right triangle with legs b and h, G lies at b/3 and h/3 from the right-angle corner.

FAQ

Is the centroid the same as the circumcenter or incenter?

No. Only for an equilateral triangle do the centroid, circumcenter, incenter and orthocenter coincide.

Can the centroid lie outside the triangle?

No. The centroid of a triangle is always inside it, even for very obtuse triangles.

Does the order of the vertices matter?

Not for the centroid or the area; it only changes the sign of the signed area.