Math

Centroid Calculator

Find a triangle's centroid from its three vertices.


Centroid Calculator

Advertisement

Finds the geometric center of a triangle — the point where all three medians intersect — from its three corner coordinates.

How it works

The x-coordinates of all three vertices are averaged, and the y-coordinates are averaged separately, giving the centroid’s coordinates.

What this does not include

This does not include weighting by mass — for a mass-weighted balance point instead of a plain geometric average, use this site’s center of mass calculator instead.

How to use this calculator

  1. Enter the x and y coordinates of all three vertices.

A worked example

Triangle vertices (0,0), (4,0), (2,6): centroid = average of the three x-values and three y-values = (2, 2).

Vertices (1,1), (5,1), (3,7): centroid = (3, 3).

What the variables mean

Variable Meaning
(x1,y1), (x2,y2), (x3,y3) The triangle’s three vertex coordinates

Edge cases worth knowing

The centroid is simply the average of the three vertices — average all the x-coordinates, average all the y-coordinates, independently, the same averaging principle behind this site’s midpoint calculator.

The centroid is the triangle’s balance point — if cut from a rigid, uniform material, the triangle would balance perfectly on a pin placed at this point.

Frequently asked questions

What is a median, in this context?

A line segment from one vertex to the midpoint of the opposite side — a triangle has three medians, and they always meet at the centroid.

Does the centroid always lie inside the triangle?

Yes — unlike some other triangle centers, the centroid always falls within the triangle’s interior, regardless of its shape.

Is the centroid the same as the triangle’s “center of gravity”?

Yes, for a triangle of uniform density — the centroid corresponds to where a physical triangular plate would balance perfectly.

Be the first to rate this

Written by

J. Adeyemi

Statistics writer

J. Adeyemi writes the statistics and probability calculators, from descriptive summaries through to distributions and conditional probability. The recurring theme is scope: each page states precisely which question it answers, because most statistical mistakes come from applying a correct formula to the wrong question. Related-but-different measures get separate pages rather than being quietly merged.

Reviewed by

T. Okafor

Calculator reviewer — mathematics

T. Okafor reviews the mathematics calculators, verifying algebraic correctness and, just as importantly, behaviour at the edges — division by zero, undefined results, and the floating-point cases where a formula technically returns a number that should be reported as undefined. Every test case is recomputed independently rather than taken on trust.

How we write and review

Related calculators