Checking a rectangle’s area at a fixed perimeter
A rectangle with perimeter 20 can enclose many different areas. This guide shows why equal sides give the most and how far an uneven pair falls short.
What a fixed perimeter does and does not fix
The perimeter of a rectangle is 2 × (l + w), so a perimeter of 20 means that length plus width equals 10. That single fact pins down the sum of two adjacent sides. It leaves the split between them open: 5 and 5, 6 and 4, 8 and 2, or 9.5 and 0.5 all give the same boundary length. The area is the product l × w, and a product depends on how the fixed sum is divided. Someone with 20 meters of fencing is free to choose the shape, and the enclosed ground changes with the choice. This guide measures that change for two specific rectangles and then explains the pattern.
The balanced rectangle
Start with the square, sides 5 and 5. The rectangle calculator returns area 25 and perimeter 20. Each side differs from 5 by zero, which is the reference point for everything else on this page. The square is the member of the family where length and width are equal, and the area 25 is the largest value any positive pair summing to 10 can reach. Move one side to 6 and the other to 4 and the area drops to 24. Move to 7 and 3 and it drops to 21. The decline is slow near the square and fast near the extremes, so a small departure from equal sides costs little, which gives a designer some room to adjust the proportions. If you are given only the perimeter and asked for the biggest possible enclosure, this is the answer, with each side equal to one quarter of the perimeter.
An uneven rectangle with the same boundary
Now take length 8 and width 2. The perimeter is 2 × (8 + 2) = 20, the same as the square, but the area is 8 × 2 = 16. Both rectangles use the same amount of fence, wall or trim, and one of them encloses 9 more square units than the other. The calculator confirms both numbers, and the basic calculator confirms the difference: 25 − 16 = 9. The gap is a real difference in usable space, so a design choice made only from the perimeter would miss it. In percentage terms the 8-by-2 shape holds 64 percent of the square's area, since 16 divided by 25 is 0.64. Both shapes would need the same trim around the edge, so the cost per enclosed square unit is higher for the uneven one by a factor of 25 over 16, about 1.56.
Why the gap is a perfect square
Let one side be x, so the other is 10 − x. The area is x × (10 − x) = 10x − x². Complete the square and this becomes 25 − (x − 5)². The term (x − 5)² is never negative, so the area never exceeds 25, and it falls below 25 by the square of how far x sits from 5. For the 8-by-2 rectangle, x = 8 is 3 away from 5, and 3² = 9, which is exactly the gap found above. For a side of 6 the gap is 1, giving area 24, and for a side of 9 the gap is 16, giving area 9. The pattern follows from algebra and needs no tabulation.
Other perimeters scale the same way
Nothing special belongs to 20. For a perimeter P, the sides sum to P/2 and the best case is a square with side P/4, whose area is P²/16. With perimeter 36 the square has side 9 and area 81, and a 12 by 6 rectangle has area 72, a gap of 9 because 12 is 3 away from 9. With perimeter 12 the square is 3 by 3 with area 9, while a 5 by 1 rectangle has area 5, a gap of 4 because 5 is 2 away from 3. The same completed-square identity applies each time, so the gap is the squared distance from the midpoint.
Choosing inputs when only a perimeter is known
In practice, the perimeter often comes from a budget: meters of edging, a length of trim, a rope. When you enter dimensions into the calculator, keep the sum of length and width at half the available length, then try several splits and read the area. You will see the area rise toward the square and fall toward a thin strip. Only a few dimensions are physically sensible for a given purpose, such as a room that must be at least 3 wide, so the best choice is usually the closest allowed shape to the square. The perimeter alone cannot say which is allowed.
Reading the result with care
The statement that a square encloses the most area is a result about ideal rectangles with positive sides. It does not claim that a square is the best layout for any real project. Doors, furniture, drainage, access and local rules can all favor a longer or narrower shape, and a rectangle is only one of the shapes a boundary of that length can enclose. Other figures can enclose more area for the same boundary, but this page compares rectangles only. The numbers 25, 16 and 9 describe geometry on paper, in whatever unit the sides use.
A strip as the opposite extreme
Push the split as far as it will go. A rectangle 9.9 long and 0.1 wide still has a perimeter of 20, since 2 × (9.9 + 0.1) = 20, yet its area is 0.99. It is 24.01 below the square, and the identity predicts exactly that, because 9.9 is 4.9 from 5 and 4.9² = 24.01. As the width shrinks toward zero, the area shrinks toward zero while the fence length stays put. A long thin shape wastes boundary on edges that enclose little. That is the reason compact shapes are preferred whenever the goal is to enclose area with limited perimeter, such as pens, plots and rooms.
Checking your own pair of sides
To test a pair, add the sides and double the sum to confirm the perimeter, then multiply them for the area. Compare with the square of side P/4. The difference should equal the square of the gap between your longer side and P/4. For sides 7 and 3 the perimeter is 20, the area is 21, and the gap to 25 is 4, which is 2² because 7 is 2 away from 5. If the gap does not match, one of the multiplications has an error. The check takes seconds and catches slips that a calculator keyed with the wrong value would hide.
Reproduce the checks
Balanced sides
Open the Rectangle calculator and enter:
- Length
5- Width
5
Expected output:
Area
25Perimeter
20The side difference from five is zero.
Unequal sides
Open the Rectangle calculator and enter:
- Length
8- Width
2
Expected output:
Area
16Perimeter
20The perimeter remains twenty.
Area gap
Open the Basic calculator and enter:
- First number
25- Operation
subtract- Second number
16
Expected output:
Result
9The gap equals three squared.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.