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.