Centroid of a Triangle screenshot Loading Centroid of a Triangle…

How to Use Centroid of a Triangle

New window

Centroid of a Triangle finds the point where the three medians of a triangle meet – its centroid, or the center of gravity of a thin uniform triangular plate.

Triangle with vertices A(0,0), B(6,0), C(2,4) and its centroid
The centroid of A(0, 0), B(6, 0), C(2, 4) is G(2.667, 1.333)

How to use it

  1. Enter the vertices A, B and C as x and y coordinates. Any order and any sign are fine.
  2. Read the centroid \(G(\bar x, \bar y)\) and the area in the green card.
  3. Look at the drawing. The triangle, its three medians and G are drawn to scale. Drag any vertex with the mouse or finger; the coordinates snap to half units.
  4. Read the calculation below the drawing: the averages, the area with the shoelace formula and a check with a median.
  5. Use Copy result to copy the numbers, or the example chips (Right triangle, Isosceles, General, Negative coords) to start from a ready triangle.
Tip: if the three points lie on one line the area is 0; the app warns you, because such a “triangle” has no area centroid.

Theoretical Background

New window

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.

Version history

  • 2.01 Dec 2026New app: centroid and area of a triangle from its vertex coordinates, with medians, a draggable drawing, examples and the full calculation.