Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Triangle Vertices Calculator

Find a triangle's centroid and area from the x and y coordinates of its three vertices, using the vertex average and the shoelace formula.

Triangle Vertices Calculator

Centroid x
2
The x-coordinate of the centroid, the mean of the three vertices' x values, in the coordinate unit.
Centroid y
2
Coordinate area
18

Background.

Three points on a grid fix a triangle completely, and two of the most useful facts about it fall straight out of the coordinates without measuring a single side or angle. The centroid — the point where the triangle would balance on a pin if it were cut from card — is simply the average of the three vertices: add the x-coordinates and divide by three, then do the same for y. It is also where the three medians cross, each running from a vertex to the midpoint of the opposite side, and it sits two-thirds of the way along every median from its vertex.

The area comes from the shoelace formula, named after the criss-cross pattern of products you write down when using it: x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂), halved. Before the absolute value is taken, that bracket carries a sign telling you which way the vertices run — positive anticlockwise, negative clockwise — and the same pattern, extended vertex by vertex, gives the area of any simple polygon. When the three points lie on one straight line it returns exactly zero, which makes it a quick test for collinearity.

Enter the coordinates of A, B and C in any consistent unit and the page returns the centroid and the area in square units. It assumes a flat Cartesian plane, so latitude and longitude need projecting onto a planar grid first.

What is triangle vertices calculator?

The page reports two properties of the triangle defined by three vertices. The centroid is the point whose coordinates are the means of the vertices' x and y values; it is the triangle's geometric centre and the centre of mass of a thin uniform plate of that shape. The area is the region enclosed by the vertices, computed from the coordinates by the shoelace, or determinant, formula and expressed in the square of the coordinate unit.

How to use this calculator.

  1. Enter the x and y coordinates of vertices A, B and C. The order in which you label the vertices changes neither result.
  2. Keep all six values in the same unit — metres, feet or grid squares — so the area comes out in square metres, square feet or square grid units.
  3. For map locations, convert latitude and longitude to a projected grid such as UTM before entering them, because degrees are not a flat distance.
  4. Read the centroid x and y together as one point, and glance at the area: zero means the three points lie on a line.

The formula.

G=((x₁+x₂+x₃)/3,(y₁+y₂+y₃)/3); shoelace area

The centroid is G = ((x₁ + x₂ + x₃)/3, (y₁ + y₂ + y₃)/3), the arithmetic mean of the vertices. The area is A = |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)| / 2. The bracket equals the cross product of the vectors from one vertex to the other two, which is twice the signed area; its sign records whether the vertices run anticlockwise (positive) or clockwise (negative), and taking the absolute value means the area is never negative. Shifting the whole triangle moves the centroid by the same amount but leaves the area unchanged, and sliding one vertex parallel to the opposite side keeps the area constant because base and height stay the same. Coordinates may be negative or zero, and three collinear points give an area of 0 rather than an error.

A worked example.

Example

Take A = (0, 0), B = (6, 0) and C = (0, 6). The centroid averages the coordinates: x = (0 + 6 + 0)/3 = 2 and y = (0 + 0 + 6)/3 = 2, so G = (2, 2). For the area, the shoelace terms are 0 × (0 − 6) = 0, 6 × (6 − 0) = 36 and 0 × (0 − 0) = 0; they sum to 36, and half of that is 18 square units. The right-angle check agrees: ½ × 6 × 6 = 18. Slide C along the line y = 6 to (3, 6) and the area stays 18, because base AB and the height are unchanged, while the centroid moves to (3, 2). Put C at (12, 0), on the same line as A and B, and the area drops to 0.

y10
x10
y20
x26
y36
x30

Frequently asked questions.

Why is the centroid just the average of the three vertices?
The medians of a triangle meet at the point two-thirds of the way from each vertex to the midpoint of the opposite side, and writing that out in coordinates gives exactly the mean of the three vertices. The same point is the centre of mass of a uniform triangular plate, which is why it is also called the balance point.
Is the centroid the centre of the circle through the vertices?
Not in general. The circumcentre, where the perpendicular bisectors meet, is equidistant from the three vertices, and the incentre is equidistant from the three sides; only in an equilateral triangle do they coincide with the centroid. In the worked example the circumcentre is (3, 3), the midpoint of the hypotenuse, while the centroid is (2, 2).
What does an area of zero tell me?
That the three points lie on one straight line and enclose no triangle. The shoelace bracket equals the length of AB multiplied by the distance of C from the line through A and B, so it vanishes exactly when C is on that line. A centroid is still returned; it is then just the mean of three points on the line.
Does listing the vertices clockwise instead of anticlockwise change the area?
Only its sign, which the page discards. Anticlockwise order makes the bracket positive and clockwise order makes it negative, with the same size either way. Surveyors and graphics programmers use that sign on purpose to tell which way a boundary or a mesh face runs.
Can I enter latitude and longitude as the coordinates?
Not directly. A degree of longitude covers less ground the farther you are from the equator, so treating degrees as flat x and y distances distorts the area and shifts the centroid. Convert the points to a projected grid in metres, such as UTM, and enter those eastings and northings instead.
How do I find the area of a shape with more than three corners?
Extend the shoelace pattern around every vertex in order: add xᵢ(yᵢ₊₁ − yᵢ₋₁) for each vertex, wrapping round at the ends, and halve the absolute value. For a convex shape you can instead split it into triangles from one corner and add the areas this page gives for each.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
G=((x₁+x₂+x₃)/3,(y₁+y₂+y₃)/3); shoelace area
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon