Triangle Vertices Calculator

Enter the (x, y) coordinates of a triangle's three vertices to get its area (shoelace formula), perimeter, centroid, and triangle type.

Quick Facts

Area formula (shoelace)
A = ½|x1(y2−y3)+x2(y3−y1)+x3(y1−y2)|
Works for any vertex ordering; the absolute value removes the sign from orientation.
Side length formula
side = √((x2−x1)²+(y2−y1)²)
The standard distance formula, applied to each pair of vertices.
Centroid formula
((x1+x2+x3)/3, (y1+y2+y3)/3)
The average of the three vertex coordinates — the triangle's balance point.

Your Results

Calculated
Area
-
Shoelace formula
Perimeter
-
Sum of the three side lengths
Centroid
-
(x̄, ȳ) — average of the vertices
Triangle Type
-
Classified by side and angle

Ready

Enter the three vertex coordinates, then press Calculate.

Formula and Method for Triangle Vertices

Given the (x, y) coordinates of a triangle's three vertices — A(x1, y1), B(x2, y2), and C(x3, y3) — you can compute every basic property of the triangle directly from those six numbers: its area, its perimeter, its centroid, and whether it is equilateral, isosceles, or scalene, and acute, right, or obtuse. This calculator applies the shoelace formula, the distance formula, and the centroid formula to your three vertices.

How the calculation works

The area comes from the shoelace formula: A = ½|x1(y2−y3) + x2(y3−y1) + x3(y1−y2)|. This is derived from the cross product of two edge vectors and gives the same area regardless of which vertex you label A, B, or C, or which direction you traverse them (clockwise or counterclockwise) — the absolute value strips out the sign that direction would otherwise introduce. Each side length uses the distance formula, side = √((x2−x1)² + (y2−y1)²), applied to each pair of vertices; adding all three gives the perimeter. The centroid — the point where the triangle's three medians intersect — is simply the average of the vertex coordinates: ((x1+x2+x3)/3, (y1+y2+y3)/3). Finally, the calculator classifies the triangle by comparing the three side lengths (equal sides → equilateral or isosceles, all different → scalene) and by comparing the square of the longest side to the sum of squares of the other two, using the converse of the Pythagorean theorem (equal → right triangle, longest² greater → obtuse, longest² smaller → acute).

Common mistakes

  • Mislabeling coordinates: keep x and y consistent for each vertex — swapping an x and a y value shifts the whole triangle and changes every derived result.
  • Collinear points: if the three points lie on a straight line, the shoelace formula returns an area of zero — that is not a valid triangle, and side/angle classification is undefined.
  • Assuming vertex order defines "side a": by convention, side a is opposite vertex A (i.e., the segment BC), side b is opposite B (segment AC), and side c is opposite C (segment AB) — not the segment starting at that letter.

Real-world applications

  • Computer graphics and game engines use vertex coordinates constantly to compute triangle area (for mesh rendering) and centroids (for physics and collision checks).
  • Surveying and GIS work uses the shoelace formula (generalized to polygons) to compute land area from boundary coordinates.
  • Structural and mechanical engineering use the centroid of triangular cross-sections when calculating center of mass and moments of inertia.
  • Geometry and trigonometry coursework uses these formulas to verify hand-worked coordinate-geometry problems.

Frequently Asked Questions

How do you find the area of a triangle from its vertices?
Use the shoelace formula: Area = ½|x1(y2−y3) + x2(y3−y1) + x3(y1−y2)|. Plug in the (x, y) coordinates of the three vertices and take the absolute value of the result divided by 2 — this works for any triangle orientation.
How do you find the perimeter of a triangle given its vertex coordinates?
Find each side length with the distance formula, side = √((x2−x1)² + (y2−y1)²), applied to each pair of vertices, then add the three side lengths together.
What is the centroid of a triangle and how is it calculated?
The centroid is the triangle's balance point, found by averaging the vertex coordinates: centroid = ((x1+x2+x3)/3, (y1+y2+y3)/3). It always lies inside the triangle, two-thirds of the way along each median from a vertex.
How can you tell if three points actually form a triangle?
If the three points are collinear (lie on the same straight line), the shoelace formula gives an area of zero and no triangle exists. Any nonzero area confirms the points form a valid triangle.