Advertisement

Centroid of a triangle calculator

Enter three vertices to find the centroid, or supply the centroid and two vertices to recover the third. Median lengths use your coordinate unit.

Calculator

Centroid x
2.00000000
Centroid y
2.00000000
Vertex C x
0.00000000
Vertex C y
6.00000000
Median sections (coordinate units)
From vertexOpposite midpoint xOpposite midpoint yMedian lengthVertex to centroidCentroid to midpoint
A3.000000003.000000004.242640692.828427121.41421356
B0.000000003.000000006.708203934.472135952.23606798
C3.000000000.000000006.708203934.472135952.23606798

Advertisement

How this calculator works

The centroid is the average of the three vertices and the intersection of the medians. Each median joins a vertex to the opposite side midpoint. The centroid lies two thirds of the way from the vertex along that median. Reversing the coordinate average recovers a missing vertex, after which the calculator verifies that the triangle has positive area.

Formula

G=(A+B+C)/3; C=3G-A-B. For opposite midpoint M: AG=2AM/3 and GM=AM/3.

Worked example

Vertices (0,0), (6,0), (0,6) have centroid (2,2). The median from the origin ends at (3,3), has length 3√2, and divides into 2√2 and √2. If G=(2,4), A=(1,2) and B=(4,2), the missing vertex is C=(1,8).

Advertisement

Frequently asked questions

Is this the centre of the circumcircle?

No. The centroid averages vertices and balances a uniform triangular sheet. The circumcentre is equally distant from all three vertices.

Which vertex can be recovered?

Label the missing vertex C and enter the two known vertices as A and B. Relabelling does not change the centroid.

Can a centroid lie outside a triangle?

For a genuine triangle it always lies inside. A result outside your drawn outline suggests that coordinates or labels were entered incorrectly.

Sources

Advertisement