Perimeter of a Triangle with Vertices Calculator

Enter the coordinates of a triangle's three vertices to get its perimeter and the length of each side, computed with the distance formula.

Quick Facts

Distance formula
d = √((x₂−x₁)² + (y₂−y₁)²)
Gives the length between any two coordinate points, from the Pythagorean theorem.
Perimeter formula
P = |AB| + |BC| + |CA|
Sum of the three side lengths computed from the vertices.
Degenerate check
Area = 0 → not a triangle
Three collinear points enclose zero area and cannot form a valid triangle.
Triangle inequality
a + b > c (for every pair)
Any two sides together must exceed the third for the triangle to be valid.

Your Results

Calculated
Perimeter
-
P = |AB| + |BC| + |CA|
Side a (B to C)
-
Opposite vertex A
Side b (C to A)
-
Opposite vertex B
Side c (A to B)
-
Opposite vertex C

Ready

Enter the three vertex coordinates, then press Calculate.

Formula and Method for the Perimeter of a Triangle with Vertices

Given the coordinates of a triangle's three vertices on the Cartesian plane, you can find its perimeter without measuring a single physical side. Each side length comes from the distance formula, and the perimeter is simply the sum of the three side lengths.

How the calculation works

Label the vertices A(x₁, y₁), B(x₂, y₂), and C(x₃, y₃). The distance formula, derived directly from the Pythagorean theorem, gives the length of each side: |AB| = √((x₂−x₁)² + (y₂−y₁)²), |BC| = √((x₃−x₂)² + (y₃−y₂)²), and |CA| = √((x₁−x₃)² + (y₁−y₃)²). The perimeter is the sum of all three: P = |AB| + |BC| + |CA|. This calculator also checks that the three points are not collinear — if all three fall on a single straight line, the enclosed area is zero and no real triangle exists, even though a "perimeter" number could still be computed.

Common mistakes

  • Mismatched coordinate pairs: keep each vertex's x and y together. Swapping a y-value between two vertices silently changes every side length.
  • Perimeter vs. area: the perimeter is a length (a sum of distances); it is not the same as the triangle's area, which comes from the shoelace formula, ½|x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)|.
  • Rounding too early: round only the final perimeter, not each intermediate side length — rounding distances first compounds error across the sum.
  • Collinear points: if the three vertices lie on one line, they do not form a triangle at all, even though the distance formula still returns numbers for each "side."

Real-world applications

  • Land surveying and property platting use vertex coordinates to compute boundary perimeter for fencing or deed descriptions
  • Computer graphics and game development calculate polygon edge lengths from vertex data for collision and rendering logic
  • GIS and mapping software derive parcel or region perimeters from stored coordinate points
  • CAD design and structural engineering use vertex-based side lengths to size triangular trusses, brackets, and panels

Frequently Asked Questions

What is the formula for the perimeter of a triangle given its vertices?
Compute the length of each side using the distance formula, d = √((x₂−x₁)² + (y₂−y₁)²), for each pair of vertices, then add the three side lengths together: P = |AB| + |BC| + |CA|.
How do you find the distance between two coordinate points?
The distance between (x₁,y₁) and (x₂,y₂) is d = √((x₂−x₁)² + (y₂−y₁)²). This comes directly from the Pythagorean theorem applied to the horizontal and vertical differences between the two points.
What happens if the three points are collinear?
If the three vertices lie on the same straight line, the enclosed area is zero and the figure is a degenerate triangle, not a valid one, even though the sum of the three distances is still a number. This calculator checks for that case and flags it instead of returning a false result.
Does the order in which I enter the vertices matter?
No. The three side lengths and their sum, the perimeter, are the same no matter which point you label A, B, or C or the order you enter them in — the perimeter depends only on the three points' positions, not on their labels.