Welcome to Perimeter and Circumference! This first lesson focuses on finding the perimeter of squares and rectangles. Squares and rectangles show up in many everyday measurements, from picture frames to garden beds. Because their equal sides create useful patterns, you can use shortcuts instead of adding every side one by one.
In this lesson, you will learn to:
Use perimeter shortcuts for squares and rectangles.
Calculate perimeters with whole-number and decimal side lengths.
Label every perimeter answer with the correct linear unit.
📏 Thinking About Boundary Length
As you may recall from earlier lessons, perimeter is the total distance around the boundary of a flat shape. Imagine walking along the edges of a basketball court and counting every step until you return to where you started. The total distance you walked is the perimeter.
This idea is simple, but it is powerful: no matter how complex a shape looks, its perimeter is always found by adding up the lengths of all its outer sides. For squares and rectangles, you can do even better than adding side by side, because some of those sides are guaranteed to be equal.
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal
A square has four equal sides. If each side has length s, you could add all four sides together:
s+s+s+s
Since every side is the same, multiplication gives you a cleaner shortcut:
P=4×s
For example, a square tile with a side length of 5 in has a perimeter of 4×5=20 in. This shortcut works exactly the same way for decimals; a side length of 2.5 cm results in a perimeter of 4×2.5=10 cm. Multiplication is faster and less error-prone than adding four numbers, whether the dimensions are whole or decimal.
A rectangle has two pairs of equal sides. The longer side is usually called the length (l), and the shorter side is called the width (w). If you added all four sides individually, you would get:
l+w+l+w
Grouping the matching pairs gives you a tidier formula:
P=2×l+2×w=2×(l+w)
Consider a desk that is 120 cm long and 60 cm wide. Its perimeter is:
P=2×(120+60)=2×180=360 cm
Notice how the two different dimensions are added first, then the result is doubled. This two-step approach keeps the arithmetic simple and reduces the chance of mistakes.
Real measurements rarely come out to neat whole numbers. A photo might be 8.5 in by 11 in, or a floor tile could be 0.75 ft on each side. The formulas stay exactly the same — you just need to be a bit more careful with the arithmetic. A helpful tip: when adding decimals, line up the decimal points (even if you are doing it mentally) so that tenths add to tenths and ones add to ones. This small habit prevents the most common arithmetic slips.
A number without a unit does not tell you much. If someone says the perimeter is "20," you cannot tell whether they mean inches, feet, or meters. Because perimeter is a length, the answer must always carry a linear unit such as in, ft, m, or cm.
Keep these rules in mind:
Use the same unit that the side lengths are given in.
If the sides are in different units, convert them to a single unit before adding.
Never use square or cubic units for perimeter — those belong to area and volume.
Measurement
Correct Unit Type
Example Label
Perimeter
Linear
ft, m, cm
Area
Square
ft2, m2
Volume
Cubic
ft3, m3
Here are the two key formulas from this lesson, gathered in one place for easy reference:
Shape
Property
Formula
Square
Four equal sides of length s
P=4×s
Rectangle
Length l and width w
P=2×(l+w)
Both formulas work with whole numbers and decimals alike. The only things that change are the numbers you plug in.
In this lesson, you learned how the repeated sides of squares and rectangles turn perimeter into a quick calculation. For a square, multiply one side by four (P=4×s). For a rectangle, add the length and width, then double the result (P=2×(l+w)). These shortcuts work just as well with decimal dimensions, and every answer needs a proper linear unit to be complete.
Up next, you will put these skills into action through a set of hands-on practice tasks. You will fill in partially worked calculations, explore how changing dimensions affects boundary length in real time, tackle both whole-number and decimal problems on your own, and figure out how much trim is needed for a real picture frame.