Perimeter of a shape having sides is equal to the length of sum of all the sides. Therefore, we need to add all the sides of a shape to calculate the perimeter.