For a polygon, the perimeter is simply the sum of the length of all of its sides. For a rectangle, the perimeter is twice the sum of its length and width (formula_1). Perimeter can also be calculated for other planar figures, such as circle, sector and ellipse.