Imagine an ant walking along the edge of a rectangular sticker 5 cm long and 3 cm wide. It walks 5 cm, turns, walks 3 cm, turns, walks 5 cm, turns, walks 3 cm and is back where it began. Altogether it walked 5+3+5+3=16 cm. That total walk is the perimeter. Because a rectangle's opposite sides match, you can also double the length and the width: 2×5+2×3=16 cm.
Every side counts, even ones that are easy to miss. An L-shaped room has 6 walls, so its perimeter has 6 lengths to add. If a side has no label, work it out from the others: if the whole bottom edge of the L is 8 m and one of its two top edges is 5 m, the other top edge must be 8−5=3 m, because together the two top edges span the same width as the bottom.
Perimeter is not the space inside. A 4 m by 4 m square and a 6 m by 2 m rectangle both have perimeter 16 m, yet the square holds 16 squares of 1 m by 1 m and the long rectangle holds only 12. Ask what the job needs: a fence or a border goes around, so it is perimeter; grass or carpet covers the inside, so it is area, measured in square units.
Think of it like this. Perimeter is like a piece of string laid once around the edge of a shape. Cut the string where the ends meet and pull it straight: its length is the perimeter. Bend the same string into a different outline and the perimeter stays the same, even though the space inside changes.
Core idea. Perimeter measures the distance around a shape.