Introduction 🎉

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.

Diagram of a square with sides labeled s and a rectangle with sides labeled l and w, showing the perimeter around each boundary
🔲 Perimeter of a Square

A square has four equal sides. If each side has length ss, you could add all four sides together:

s+s+s+ss + s + s + s

Since every side is the same, multiplication gives you a cleaner shortcut:

P=4×sP = 4 \times s
🖼️ Perimeter of a Rectangle

A rectangle has two pairs of equal sides. The longer side is usually called the length (ll), and the shorter side is called the width (ww). If you added all four sides individually, you would get:

l+w+l+wl + w + l + w

Grouping the matching pairs gives you a tidier formula:

🏷️ Labeling with the Correct Unit

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\text{in}, ft\text{ft}, m\text{m}, or cm\text{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.
MeasurementCorrect Unit TypeExample Label
Perimeter
📋 Formulas at a Glance

Here are the two key formulas from this lesson, gathered in one place for easy reference:

ShapePropertyFormula
SquareFour equal sides of length ssP=4×sP = 4 \times s
RectangleLength ll and width ww
Conclusion and Next Steps

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×sP = 4 \times s). For a rectangle, add the length and width, then double the result (P=2×(l+w)P = 2 \times (l + w)). These shortcuts work just as well with decimal dimensions, and every answer needs a proper linear unit to be complete.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal