Perimeter Of A Triangle With Vertices - Distance Formula

Enter (x1, y1), (x2, y2), (x3, y3) to read the three side lengths and the total perimeter of a triangle with vertices in your chosen unit.

Updated: June 20, 2026 • Free Tool

Perimeter Of A Triangle With Vertices

x-coordinate of vertex A. Use the same linear unit for all six values.

y-coordinate of vertex A.

x-coordinate of vertex B. Same unit as x1.

y-coordinate of vertex B.

x-coordinate of vertex C.

y-coordinate of vertex C.

Linear unit applied to every vertex. The calculator does not convert between units, so all six coordinates must use the same unit.

Results

Perimeter
0
Side AB 0
Side BC 0
Side CA 0
Collinear? 0

What Is the Perimeter of a Triangle With Vertices Calculator?

A perimeter of a triangle with vertices calculator adds the three side lengths of any triangle whose corners are given as (x, y) coordinates and returns the total boundary length in the unit you select. The result panel shows side AB, side BC, side CA, the total perimeter, and a collinearity check that flags degenerate triangles.

  • Coordinate geometry homework: Verify a textbook problem where the triangle is given as three coordinate points and the question asks for the boundary length in the same unit as the grid.
  • Land plot and survey triangles: Estimate the perimeter of a triangular lot whose three corners are recorded as (x, y) coordinates in a local survey grid.
  • CAD and graphics triangles: Compute the perimeter of a triangle whose three vertices are stored as Cartesian coordinates in a model or drawing, especially when the triangle is not axis-aligned.
  • Reverse-checks for area tools: Use the three side lengths as a quick audit before feeding them into Heron's formula or a side-only triangle solver.

Each side length is the square root of the squared horizontal difference plus the squared vertical difference between two vertices. The same six inputs drive the existing area-triangle-coordinates calculator.

When the question asks for the area of the same three vertices, the Area Triangle Coordinates Calculator uses the shoelace formula on the same six coordinates to return the signed and absolute area.

How the Perimeter of a Triangle With Vertices Calculator Works

The calculator applies the Euclidean distance formula to each pair of adjacent vertices, then adds the three side lengths. With vertices A = (x1, y1), B = (x2, y2), and C = (x3, y3), each side length is a root of two squared differences, and the total is their sum.

P = sqrt((x2 - x1)^2 + (y2 - y1)^2) + sqrt((x3 - x2)^2 + (y3 - y2)^2) + sqrt((x1 - x3)^2 + (y1 - y3)^2)
  • x1, y1: Coordinates of vertex A, the first corner of the triangle.
  • x2, y2: Coordinates of vertex B, the second corner.
  • x3, y3: Coordinates of vertex C, the third corner.
  • sqrt(...): Square-root of the sum of squared horizontal and vertical differences, which is the Euclidean distance between two points.
  • P: Perimeter in the linear unit you selected (cm, m, in, ft, yd, or generic units).

The result panel shows side AB, side BC, and side CA on three rows so each segment is auditable, and the perimeter is the sum of those three numbers.

Right triangle (0, 0), (4, 0), (0, 3)

Vertex A = (0, 0), Vertex B = (4, 0), Vertex C = (0, 3) in cm

AB = sqrt(16) = 4, BC = sqrt(16 + 9) = 5, CA = sqrt(9) = 3, P = 4 + 5 + 3 = 12

Perimeter = 12.00 cm, sides = 4.00, 5.00, 3.00 cm, collinear = No

The 3-4-5 right triangle keeps the same side lengths whether you label it A-B-C or A-C-B.

Equilateral triangle (0, 0), (2, 0), (1, sqrt(3))

Vertex A = (0, 0), Vertex B = (2, 0), Vertex C = (1, 1.7320508) in m

AB = 2, BC = 2, CA = 2, P = 6

Perimeter = 6.00 m, sides = 2.00, 2.00, 2.00 m, collinear = No

When all three side lengths are equal the perimeter collapses to 3a.

According to Wolfram MathWorld, the Euclidean distance between (x1, y1) and (x2, y2) is the square root of (x2 - x1)^2 + (y2 - y1)^2, which is the segment length used for each side of the triangle.

According to Wikipedia (Perimeter), the perimeter of a polygon is the sum of its side lengths, so a triangle's perimeter is the sum of the three side lengths computed from the vertices.

For a single segment rather than the full triangle, the Distance Between Two Points Calculator returns the same Euclidean distance used for each side here.

Key Concepts Behind the Perimeter of a Triangle With Vertices Calculator

These four ideas cover the coordinate-geometry foundation the calculator relies on. They explain why a single formula can describe every triangle whose corners are stored as (x, y) pairs.

Euclidean distance between two points

The Euclidean distance between (x1, y1) and (x2, y2) is the square root of (x2 - x1)^2 + (y2 - y1)^2. It is the straight-line segment between two points in the plane and is what the calculator calls a side length.

Perimeter as the sum of three side lengths

A triangle's perimeter is the total length of its boundary, which for any triangle equals side AB + side BC + side CA. Once the three coordinates are known, no angle measurement is required.

Vertex order does not change the perimeter

Cyclically relabeling the vertices A, B, C does not change which segments are summed, so the perimeter is independent of the order in which you enter the coordinates.

Collinearity and the cross-product test

The three vertices are collinear when the cross product (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1) equals zero. The calculator uses that test to flag degenerate triangles where the perimeter is still a number but the shape has zero area.

Perimeter is independent of the angle measurements at the vertices, so the result does not depend on whether the triangle is acute, right, or obtuse. Negative coordinates from a survey file or CAD model still work, because the squared differences remove the sign.

When you want to confirm what each side length means without summing three of them, the Euclidean Distance Calculator shows the same formula in isolation for a single pair of points.

How to Use the Perimeter of a Triangle With Vertices Calculator

Enter the six coordinates, pick a unit, and read the three side lengths and the perimeter from the result panel.

  1. 1 Pick one linear unit for every vertex: Choose centimeters, meters, inches, feet, yards, or generic units from the Unit dropdown. The calculator does not convert between units, so all six coordinates must use the same unit.
  2. 2 Type vertex A into x1 and y1: Enter the x-coordinate of the first corner into Vertex 1 x and the y-coordinate into Vertex 1 y.
  3. 3 Type vertex B into x2 and y2: Enter the x and y coordinates of the second corner using the same unit.
  4. 4 Type vertex C into x3 and y3: Enter the x and y coordinates of the third corner. The order of A, B, and C does not change the perimeter.
  5. 5 Read side AB, BC, CA and the perimeter: Each side length appears in the chosen unit, and the total perimeter is the sum of the three segments.
  6. 6 Check the collinear flag: If Yes, the three points lie on a line, the area is zero, and the perimeter still adds up but does not enclose a real triangle.

A triangular garden plot has vertices at A = (0, 0), B = (8, 0), and C = (2, 6) in meters. Enter 0, 0, 8, 0, 2, 6 with Unit = Meters, and the result panel shows side AB = 8.00 m, side BC = 6.32 m, side CA = 6.32 m, perimeter = 20.65 m, collinear = No. That 20.65 m is the edging strip needed for the border.

If your triangle sides are already known, the Triangle Perimeter Calculator takes three side lengths and returns the same perimeter in a single sum.

Benefits of Using the Perimeter of a Triangle With Vertices Calculator

The tool turns a coordinate-geometry sum into a one-step answer. These benefits show where it pays off for homework, surveys, and geometry checks.

  • Accepts the same (x, y) inputs your problem already has: Type the six coordinates directly without converting sides to lengths first.
  • Returns every side length on its own row: Side AB, side BC, and side CA each get a labeled row, so the perimeter can be audited by summing the three displayed numbers.
  • Flags collinear vertices automatically: The Collinear? row uses the cross-product test, so degenerate triangles are caught at the same time the perimeter is reported.
  • Independent of vertex labeling order: Cyclically relabeling A, B, C or swapping any two vertices does not change the three segments summed.
  • Pairs directly with area and distance tools: The same six coordinates drive the area-triangle-coordinates and distance-between-two-points calculators, so the perimeter can be cross-checked against an area or a single segment.

For a survey grid that uses different units for the axes, run the coordinates through a length converter first so every value shares a single linear unit before the perimeter is computed.

When the problem goes the other way and the vertices need to be reconstructed from midpoints, the Triangle Vertices uses three midpoints to return the same (x, y) corners this page expects.

Factors That Affect Your Perimeter of a Triangle With Vertices Result

The distance formula is short, but the number on the panel can still be skewed by a few practical factors. Watch these before you commit a perimeter to a quote or cut list.

Unit consistency across all six coordinates

Mixing centimeters with inches or meters with feet is the fastest way to get a perimeter that is off by a factor of 2.54. Convert every vertex to the same linear unit before the distance formula is applied.

Rounding of each vertex coordinate

Survey tools and CAD models round to a fixed precision, and rounding the six coordinates can shift each side length by a fraction of a unit.

Coordinate magnitude and floating-point safety

Each side length is the square root of a sum of squared differences, so very large coordinates create large intermediate values. The form caps the magnitude at 1,000,000 to keep the squared differences within safe range.

Collinear vertices and the cross-product tolerance

Three points are collinear when the cross product equals zero. The calculator flags Yes only when the absolute cross product is below 1e-9, so floating-point noise does not produce a false collinear warning.

  • The calculator returns a numeric perimeter even when the three vertices are collinear. Always read the Collinear? row before trusting the number.
  • The tool does not convert between linear units. If the coordinates are stored in different units, run them through a length converter first.
  • Perimeter is a flat-plane measurement, so the result assumes a planar triangle. For 3D triangular surfaces, account for the slope or the diagonal of the face before using the result.

According to Wikipedia (Triangle), three points are collinear when the area of the triangle they would form is zero, which corresponds to a degenerate triangle whose perimeter still adds up but cannot enclose a real shape.

When the three vertices form a right triangle and you want the legs, hypotenuse, or area alongside the perimeter, the Right Triangle Calculator takes two sides and the right angle instead of all six coordinates.

Perimeter of a triangle with vertices calculator showing (x1, y1), (x2, y2), (x3, y3) and the three side lengths plus total perimeter in the selected unit
Perimeter of a triangle with vertices calculator showing (x1, y1), (x2, y2), (x3, y3) and the three side lengths plus total perimeter in the selected unit

Frequently Asked Questions

Q: How do you find the perimeter of a triangle given three vertices?

A: Compute the Euclidean distance between every pair of adjacent vertices using the formula sqrt((x2 - x1)^2 + (y2 - y1)^2), then add the three distances. Enter the six coordinates into the calculator and it does the same work in real time.

Q: What is the formula for the perimeter of a triangle from its vertices?

A: For vertices A = (x1, y1), B = (x2, y2), and C = (x3, y3), the perimeter is sqrt((x2 - x1)^2 + (y2 - y1)^2) + sqrt((x3 - x2)^2 + (y3 - y2)^2) + sqrt((x1 - x3)^2 + (y1 - y3)^2). Each square root is one side length, and the three are summed.

Q: Does the distance formula give the same perimeter no matter the vertex order?

A: Yes. Cyclically relabeling A, B, C or swapping any two vertices does not change which segments are summed, so the perimeter is independent of the order in which you enter the six coordinates.

Q: What happens to the perimeter if the three vertices are collinear?

A: The distance formula still adds the three segments, but the result has zero area and cannot enclose a real triangle. The calculator flags the input set as collinear so the perimeter can be reviewed before it is used.

Q: Do all six vertex coordinates need to be in the same unit?

A: Yes. The calculator does not convert between linear units, so a mix of centimeters and inches gives a wrong answer with a misleading label. Pick one unit, enter all six coordinates in that unit, and the perimeter carries the same label.

Q: Can I get the side lengths as well as the total perimeter?

A: Yes. The result panel shows side AB, side BC, and side CA on separate rows, then adds them to produce the total perimeter. The three side lengths can be reused as the input for Heron's formula or a side-only triangle solver.