Dimensions of a rectangle from coordinates

How can we determine the length of a side of a rectangle given the coordinates of its vertices? In this example, by plotting the points on a graph, we can see that the length one side is five because the y-coordinate increases by five from one endpoint to the other.

License: CC BY-NC-SA by Khan Academy