The perimeter of a shape is determined by adding the length of all the sides and edges enclosing the shape. It is measured in linear units of measurement like centimeters, meters, inches, or feet.