You can do this by simply adding all of the lengths of the sides.
The sum of the lengths of all its sides. APEX
The perimeter.
a + b + c + d
the sum of the lengths of all its sides
The perimeter of a rectangle, like the perimeter of any closed two-dimensional figure, is the distance around it. The perimeter of the rectangle is the sum of two lengths plus two widths.