Learn Math

7 min read

Perimeter of a Rectangle: Formula & Worked Examples

Published: 21.05.2026·Updated: 18.11.2026
Nadia Rahmawati

Nadia Rahmawati

Math Curriculum Team, Algonova

Perimeter of a Rectangle: Formula & Worked Examples

To calculate the perimeter of a rectangle, use the formula P = 2 × (length + width) or P = 2p + 2l. For example, a rectangle with a length of 12 cm and a width of 8 cm has a perimeter of 2 × (12 + 8) = 40 cm. The unit is always the same as the unit of the sides (cm, m, km).

What Is the Perimeter of a Rectangle

The perimeter of a rectangle is the total length of all the sides that surround it. The concept of perimeter has been used since ancient Egypt — Egyptian mathematicians around 1800 BCE used it to measure farmland along the Nile. A rectangle has two pairs of parallel sides of equal length:

  • Length (p): the longer side
  • Width (l): the shorter side
Rectangle p (length) l (width) P = 2(p + l) Top+bottom = 2p | Left+right = 2l
A rectangle with length (p, green) and width (l, red): perimeter = 2(p + l)

Formula for the Perimeter of a Rectangle

In words: P = 2 × (length + width)

From this formula, we can also find an unknown side:

Visualising Perimeter = 4 Sides 8 cm 8 cm 5 cm 5 cm P = 8+5+8+5 P = 2(8+5) = 26 cm
Perimeter = sum of all four sides = 2 × (length + width)

💡 Quick tip: Perimeter = (length + width) × 2. Just add one long side and one short side, then multiply by 2. Faster than adding all four sides one by one.


How to Calculate the Perimeter of a Rectangle: Worked Examples

Example 1: Finding the Perimeter

A rectangle has a length of 12 cm and a width of 8 cm. Calculate its perimeter.

Step 1: Given p = 12 cm, l = 8 cm.

Step 2: Plug into the formula:

Answer: Perimeter of the rectangle = 40 cm


Example 2: Finding the Width from the Perimeter

A rectangle has a perimeter of 36 cm and a length of 11 cm. What is its width?

Step 1: Use the formula l = P/2 − p:

Answer: Width of the rectangle = 7 cm


Example 3: Word Problem

Pak Ahmad's garden in Bandung is rectangular, with a length of 25 m and a width of 15 m. How long a fence does he need to enclose the whole garden?

Step 1: p = 25 m, l = 15 m.

Answer: The fence needed is 80 m long.


Common Mistakes When Calculating the Perimeter of a Rectangle

Mistake 1: Adding only two sides instead of four. Many students in grades 3–4 add p + l without multiplying by 2. Wrong: P = 12 + 8 = 20 cm (correct: P = 2 × 20 = 40 cm). Remember: a rectangle has four sides — two lengths and two widths, so the result is always multiplied by 2.

Mistake 2: Finding the width without dividing the perimeter by 2 first. If P = 36 cm and p = 11 cm, the common mistake is l = 36 − 11 = 25 cm. Correct: l = (P ÷ 2) − p = 18 − 11 = 7 cm. Always divide the perimeter by 2 before subtracting the known side.


Perimeter of a Rectangle Table

Length (p)Width (l)Perimeter P = 2(p+l)
5 cm3 cm16 cm
8 cm5 cm26 cm
10 cm6 cm32 cm
12 cm8 cm40 cm
15 cm9 cm48 cm

Practice Problems

Problem 1: ⭐ A rectangle with p = 14 cm and l = 9 cm. Calculate its perimeter.

Problem 2: ⭐⭐ A rectangle has a perimeter of 50 cm and a length of 15 cm. What is its width?

Problem 3: ⭐⭐⭐ A football pitch in Jakarta is rectangular, with a length of 90 m and a width of 60 m. How long is the touchline that goes around it?

Answer Key:

  1. P = 2(14+9) = 2 × 23 = 46 cm
  2. l = 50/2 − 15 = 25 − 15 = 10 cm
  3. P = 2(90+60) = 2 × 150 = 300 m

Summary

  1. The perimeter of a rectangle is the total length of its four sides, calculated as P = 2(p + l).
  2. A rectangle has two pairs of equal sides: two lengths (p) and two widths (l).
  3. To find a side from a known perimeter: p = P/2 − l or l = P/2 − p.
  4. The unit of perimeter is the same as the unit of the sides (cm, m, km).
  5. Perimeter is used in real life to work out the length of fences, picture frames, or the touchline of a pitch.

Want to master the perimeter of a rectangle and other maths topics with experienced mentors? Algonova has helped more than 1,000,000 students in 97 countries learn maths through a personal approach — available in Private (1 student), Mini (2-4 students), and Group (up to 10 students) formats, with the curriculum tailored to each child's level. Try a free maths diagnostic session at Algonova and find the best way for your child to learn maths.

Read also: How to Calculate the Perimeter of a Circle and How to Find the Area of a Triangle.

Frequently Asked Questions

Does Algonova teach mathematics for primary, junior high, and senior high kids?

Yes, Algonova Indonesia offers a complete math program for kids aged 6 to 17, covering all school levels from primary, junior high, to senior high. Each level has a dedicated curriculum aligned with the child's cognitive stage and the Indonesian school curriculum (Kurikulum Merdeka). For primary school (6-12): basic operations, fractions, simple geometry, and introduction to algebra. For junior and senior high (13-17): algebra, quadratic equations, basic trigonometry, advanced geometry, basic calculus, statistics, UTBK SNBT preparation, and advanced topics. All classes are online live with certified teachers in small groups of up to 10 students per class. Our method is built on visual conceptual understanding, not formula memorisation. Try a free trial class for a child's level diagnostic and recommended learning path.

Is there a free trial class for kids math tutoring?

Yes. For mathematics Algonova Indonesia offers a free diagnostic session of about 60 minutes with no commitment. The format is called Metode Diagnostik Algonova. No credit card is needed and there is no auto subscription afterwards. Note that these roughly 60 minutes are a diagnostic session, not a regular class. A regular math class runs 90 minutes, while the coding and design tracks have their own introductory format, a free 60 minute master class. During the diagnostic a certified teacher maps the child's level: which topics are already solid and where the gaps sit. The child also tries the online learning platform and works through first problems matched to their school level. After the session parents receive a personal learning plan based on the diagnostic result, plus a transparent explanation of program, schedule, and pricing from Rp 102,000 per lesson. To book, fill in the form on the website.

How many students are in one Algonova math class?

Algonova Indonesia math classes come in three formats: 1-on-1 private, a mini-group of 2–4 kids, and a group of up to 10 students with similar ability and school grade levels. This small group format is deliberately chosen because it provides the optimal balance between social interaction with peers and personal teacher attention. In a mini-group, every child averages about 10 minutes of direct teacher interaction in a single session. Compare with traditional offline bimbel typically of 20-40 students per class — direct interaction there is only 1-2 minutes per child, or none at all. For families wanting full attention, one-on-one private class format is also available with one student per teacher. This format is more intensive and suits competition preparation, catching up from severe gaps, or specific topic depth.

How much does kids math tutoring at Algonova Indonesia cost?

Kids math tutoring at Algonova Indonesia starts from Rp 102,000 per lesson. The price includes a live session with a certified teacher, digital learning materials, online platform access, and an official certificate upon completing each program level. The transparent 'starting from' rate is the same across all school levels — the final quote depends only on class format (private, mini-group, or group) and how many sessions per week you choose. Groups are the most affordable option; private classes are more intensive and suit competition prep or closing larger gaps. Full pricing details are shared transparently after the free trial class. No surprise fees — every cost component is explained before formal enrolment. To receive the latest pricing details, fill in the booking form on the website.

Is math tutoring fully available online?

Yes, all Algonova Indonesia math programs are fully available online with live sessions taught by certified teachers — not recorded videos. Kids learn in real time in small groups of up to 10 students, with two-way interaction, live Q&A, and problems worked on alongside the teacher throughout the class. To join online class, a child only needs a computer or laptop with a camera, a stable internet connection, and a headset. The Algonova platform runs directly in the browser so no special software installation is required. Kids can write problems in a regular notebook or on a tablet with stylus. Because every class is fully online, families can join from anywhere in Indonesia and easily fit lessons around school and other activities.

What makes Algonova math tutoring effective for Indonesian kids?

Three main factors make Algonova math tutoring effective for Indonesian kids. First, the curriculum aligns with Kurikulum Merdeka used in national schools, so what is learned at Algonova directly helps with school lessons and exams. Second, the methodology is built on visual conceptual understanding (not formula memorisation). Kids learn to break big problems into small systematic steps — a thinking pattern transferable to other subjects like science and IT. Third, small groups of up to 10 students per class let teachers adjust pace to each child's ability. Slower kids get personal help, while faster kids don't get bored waiting. The result: most Algonova students see math grade improvements at school within the first 2-3 months.

What if my child is behind from earlier math grades?

Algonova Indonesia is specifically designed to help kids behind catch up in a way that doesn't make them feel defeated or ashamed. Every new student starts with a free diagnostic during the trial class to identify exactly where the gap occurred. Based on the diagnostic, the teacher builds a personal learning path that closes the gap from the most basic foundation. For example, a junior high student weak in algebra might actually be behind in primary school fraction operations. We go back to the foundation, then progress gradually without comparison with other peers. Many Algonova students who initially started 1-2 grade levels behind successfully caught up and even surpassed classmates within 3-6 months with weekly classes and consistent homework. It's never too late to start. Try a free trial class for diagnosis without commitment.

What is the perimeter of a rectangle?

The perimeter of a rectangle is the total length of all the sides that surround the shape. Because a rectangle has two pairs of equal sides, the formula is P = 2 × (p + l), where p is the length and l is the width.

What is the formula for the perimeter of a rectangle?

The formula for the perimeter of a rectangle is P = 2 × (p + l) or P = 2p + 2l, where p is the length and l is the width. Add the length and the width first, then multiply by 2. The unit of perimeter is the same as the unit of the sides (cm, m, etc.).

What is the difference between perimeter and area of a rectangle?

Perimeter is the length of the outer boundary of a shape, given in linear units like cm or m. Area is the size of the surface inside the shape, given in squared units like cm² or m². Perimeter formula: P = 2(p + l); area formula: A = p × l.

What grade level learns the perimeter of a rectangle?

The perimeter of a rectangle is studied in grades 3 and 4. In grade 3, students meet the concept by adding up the sides. In grade 4, the topic is deepened with the formula and word-problem applications.

Where is the perimeter of a rectangle used in everyday life?

The perimeter of a rectangle is often used to work out how much fencing is needed for a garden or yard, to size a picture frame, to measure edge tiling, and to plan rectangular sports pitches.

What if I know the perimeter and one of the sides?

If the perimeter and the length are known, use l = (P ÷ 2) − p. For example, if P = 28 cm and p = 9 cm, then l = (28 ÷ 2) − 9 = 14 − 9 = 5 cm. Always divide the perimeter by 2 first before subtracting the known side.

What Year Group Is the Perimeter of a Rectangle Taught In?

The perimeter of a rectangle is studied in Years 3 and 4 of SD (primary school). In Year 3 students meet the concept of perimeter by adding up the sides of a shape, and in Year 4 it is taken further with the formula P = 2(l + w) and word problems. This material is the foundation before moving on to the circumference of a circle and the area of plane shapes at the next level.

The most common mistake at primary age is forgetting to multiply the result by 2, something visual practice clears up quickly. Try a free Algonova math diagnostic to see how far your child's grasp of basic geometry goes, or explore the Algonova math programme. Study also Area of a Rectangle Formula and Circumference of a Circle.

Other Math Topics

Explore other popular math formulas and how-to guides for SD and SMP students in Indonesia:

Want your child to learn math with an experienced mentor? Try a free math diagnostic session at Algonova — a session of about 60 minutes for a level assessment, at no cost.