Perimeter of a Triangle from Its Vertices
Enter three Cartesian coordinate pairs to calculate all three side lengths and the exact perimeter identity, with a live coordinate plot and a real Excel workbook export.
Vertex coordinates
Required. Use a dot decimal, such as -2.5 or 0.
Required. Coordinates use the same unit and scale as vertex A.
Required. Commas and scientific notation are rejected to avoid ambiguity.
Live results
Triangle status: Non-degenerate triangle
Perimeter 12 coordinate units.
Coordinate plot
Enter three valid, non-collinear vertices to draw the triangle.
| Vertex | x-coordinate | y-coordinate |
|---|
The plot preserves the relative geometry of the three coordinate pairs; axes are scaled to the current data.
Side details
| Side | Δx | Δy | Length |
|---|
Enter all six valid coordinates to populate the side-detail table.
Each length is calculated as √(Δx² + Δy²). The perimeter is the sum of the three unrounded side lengths, so displayed values may differ by a tiny rounding amount when added manually.
How to use this triangle perimeter calculator
What this calculator does
This calculator finds the distance around a triangle when you know the Cartesian coordinates of its three vertices rather than its side lengths. It applies the two-dimensional distance formula to the pairs A – B, B – C, and C – A, then adds those three distances. The result is an exact geometric identity for the coordinates entered, subject only to the displayed decimal rounding. It does not infer a physical unit, map projection, or curved-surface distance; all coordinates must already use one consistent planar scale.
When to use it
Use the calculator to check coordinate-geometry homework, verify the boundary length of a triangular CAD or plotting feature, compare survey points already expressed in a local planar system, or audit a program that calculates Euclidean distances. For longitude and latitude on Earth, use a geodesic method instead of treating degrees as flat Cartesian units.
How to calculate
- The calculator opens with a ready-to-use 3 – 4 – 5 triangle: A = (0, 0), B = (3, 0), and C = (0, 4). Its results and Excel workbook are immediately available.
- Replace the six demonstration coordinates with your own values. Results, the side-detail table, and the coordinate plot update live.
- Read Perimeter for the total boundary length and the three side cards for the pairwise distances.
- Select Download Excel to create a validated workbook containing the current inputs, results, and side calculations.
- Select Reset to clear the demonstration and all computed content. Excel export is then disabled until all six required coordinates form a complete valid state again.
Input guide
x₁ and y₁ are the required horizontal and vertical coordinates of vertex A; x₂ and y₂ define vertex B; x₃ and y₃ define vertex C. Every field accepts a signed plain decimal with a dot, such as -2.5, 0, or 12.75. Commas, unit symbols, and scientific notation are rejected so a value such as “1,5” is never silently interpreted as 15. Values must be finite and no larger than 10¹⁵⁰ in magnitude. Each field is required. Increasing one coordinate moves only that vertex, which can lengthen one or two sides depending on direction. The most common mistake is mixing scales or units – for example, entering one point in meters and another in feet.
Output guide
Perimeter is the sum AB + BC + CA in coordinate units. Side AB, Side BC, and Side CA are Euclidean distances between their named vertex pairs. A zero side means two vertices coincide. Triangle status reports whether the three points form a non-degenerate triangle; repeated or collinear points still have pairwise distances and a perimeter-like closed-walk total, but they do not enclose triangular area. The Side details table lists Δx, Δy, and Length for each edge. The Coordinate plot shows the A, B, and C series at their entered positions, while its vertex table repeats the exact plotted coordinates for accessible verification.
Worked example
For the startup values A = (0, 0), B = (3, 0), and C = (0, 4), AB = √((3 – 0)² + (0 – 0)²) = 3. BC = √((0 – 3)² + (4 – 0)²) = 5. CA = √((0 – 0)² + (0 – 4)²) = 4. Therefore the first-open perimeter is 3 + 5 + 4 = 12 coordinate units. The same six inputs and four principal outputs are written as typed numeric cells in the startup workbook.
Learn more
The calculation follows the standard distance formula derived from the Pythagorean theorem. OpenStax provides a detailed explanation of distance between two points in the coordinate plane, including why the square-root expression measures a line segment.
Formula and interpretation
AB = √((x₂ – x₁)² + (y₂ – y₁)²), BC = √((x₃ – x₂)² + (y₃ – y₂)²), CA = √((x₁ – x₃)² + (y₁ – y₃)²), P = AB + BC + CA
The formula is translation- and rotation-invariant: moving or rotating the entire triangle without changing its shape leaves all three distances and the perimeter unchanged. Scaling every coordinate by a factor of two doubles each side and the perimeter. This makes the tool useful for checking normalized drawings or models, but it also explains why consistent coordinate units are essential.
A legitimate triangle must have three distinct, non-collinear vertices. If the points are collinear or repeated, the calculator preserves the distance calculations rather than inventing a shape, and it labels the state as degenerate. For broader triangle terminology, including perimeter and semiperimeter, see the Wolfram MathWorld triangle reference.
Practical checks
- Confirm that all six coordinates belong to the same Cartesian coordinate system and use the same unit.
- Use the side table to spot sign or transcription errors. Large unexpected Δx or Δy values usually identify the problematic vertex.
- Do not add the rounded side cards to audit the final digits. The perimeter is calculated from full-precision side lengths before display formatting.
- For very large coordinates that are close together, consider translating the points nearer the origin before entry to reduce the effect of floating-point subtraction.