We can use coordinates to find lengths of segments in the coordinate plane.
![A 6-sided polygon is drawn on a coordinate plane with the origin labeled "O". The numbers negative 7 through 7 are indicated on the horizontal axis. The numbers negative 6 through 6 are indicated on the vertical axis. Starting from the first vertex and moving clockwise, the six vertices of the polygon are as follows: Negative 2 comma 2. 4 comma 2. 4 comma negative 1. 1 comma negative 1. 1 comma negative 4. Negative 2 comma negative 4.](https://cdn.openupresources.org/uploads/pictures/6/6.7.C4.Image.06a.png)
For example, we can find the perimeter of this polygon by finding the sum of its side lengths. Starting from $(\text-2, 2)$ and moving clockwise, we can see that the lengths of the segments are 6, 3, 3, 3, 3, and 6 units. The perimeter is therefore 24 units.
In general:
- If two points have the same $x$-coordinate, they will be on the same vertical line, and we can find the distance between them.
- If two points have the same $y$-coordinate, they will be on the same horizontal line, and we can find the distance between them.