Checking a combined perimeter without internal seams
Add the perimeters of two joined rectangles and the shared seam is counted twice. This guide shows how to remove it and get the length of the outer boundary.
Why the sum of perimeters is too long
The perimeter of a rectangle is the length of its whole boundary. When two rectangles are glued edge to edge, one stretch of boundary from each of them ends up inside the new shape, pressed against its twin. A walk around the outside of the combined figure never touches that stretch. Yet if you add the two perimeters, the seam appears once for each rectangle, so the total includes a length that is no longer part of the outline. Anyone fencing a joined pair of garden beds or edging a two-piece panel needs the outline only, and the extra seam length would be bought and never used. The correction is a single subtraction, but you have to see why it is needed first. The same issue shows up in room layouts, quilt blocks, tile borders and floor plans that are split into rectangular zones for measuring.
Reading the three worked cases
The first rectangle is 3 by 2, so its perimeter is 2 × (3 + 2) = 10. The second is 4 by 2, giving 2 × (4 + 2) = 12. Both have a side of length 2, and those two sides are the ones pressed together. Placed end to end along that side, the pair forms a rectangle 7 long and 2 wide, because 3 + 4 = 7 and the common width stays 2. Its perimeter is 2 × (7 + 2) = 18. The three rectangle calculator results above, 10, 12 and 18, are all you need to see that the sum 22 is four units too large.
The subtraction rule
Write the correction as combined perimeter = P1 + P2 − 2s, where s is the length of the shared seam. The factor of two appears because the seam was counted once in each rectangle, and neither copy belongs to the outline. With P1 = 10, P2 = 12 and s = 2, the result is 22 − 4 = 18, which matches the 7-by-2 rectangle. The rule never asks for the shapes to be rectangles. Any two figures joined along a straight shared edge lose that edge twice. What it does require is that you know s, so measure the touching length rather than assuming the whole side is shared.
A second pair that joins along the long side
Take rectangles 5 by 3 and 5 by 4, joined along their common length of 5. Their perimeters are 16 and 18, which sum to 34. The seam is 5, so the outline is 34 − 10 = 24. Check it directly: the joined figure is 5 wide and 3 + 4 = 7 tall, and 2 × (5 + 7) = 24. Notice that the answer depends on which side is shared. Joined along the length-3 and length-4 sides instead, these two rectangles cannot meet over a full edge, because the sides differ in size, so a full-edge join needs equal lengths on the touching sides.
When the figure is not a rectangle
Rectangles joined along only part of an edge form an L-shape or a step. Take a 4 by 2 rectangle and set a 2 by 2 square on top of one end. The perimeters are 12 and 8, and the seam is 2 long, so the outline is 12 + 8 − 4 = 16. That equals the perimeter of the 4-by-4 square that would enclose the L, which is 16 as well. This match is a property of shapes whose outline moves only right and up or down, so do not expect it for every composite. For a general shape, the subtraction rule still holds, but a bounding box shortcut may not.
Getting the seam length right
Most mistakes come from the seam, not the arithmetic. If two rectangles meet along only part of a side, s is the length of the contact, which can be shorter than either side. If they touch at a single corner point, s is zero and nothing is subtracted, so the outline equals the sum. If one rectangle slides along the other so that a stretch of the side overhangs, the overhang remains part of the outline and only the overlapping contact counts. Sketching the figure with the contact marked takes less time than debugging a wrong total, and it also shows whether the two pieces really are joined edge to edge.
Using the calculator as a cross-check
The rectangle calculator gives perimeter from length and width, so you can verify the method two ways. Enter each component, note the perimeters, and apply the subtraction. Then enter the outline dimensions of the combined rectangle and compare. Agreement confirms that the seam you used was the actual shared edge. A mismatch tells you something specific: either the seam was wrong or the combined figure is not a rectangle at all. The tool handles only rectangles, so for an L-shape, enter its bounding box only when the outline is known to match it, as in the 4-by-2 plus 2-by-2 case, where length 4 and width 4 return a perimeter of 16.
Limits of the correction
The subtraction assumes the pieces meet along the seam and do not overlap. If one rectangle covers part of the other, the shared region has area, and the outline can include boundary from both pieces in places this single formula does not describe. The result is a geometric length with no unit until you attach the one your sides use, and it says nothing about material, cutting waste or joints. A real frame or border may need extra length for corners and overlaps. For the ideal drawing, though, the rule gives the boundary of the union without guesswork, and the check against the combined rectangle confirms it.
Three pieces in a row
The rule extends to more pieces by counting each seam once per pair of pieces it separates. Join a 3 by 2, a 4 by 2 and a 2 by 2 rectangle in a line, all sharing the width of 2. Their perimeters are 10, 12 and 8, a total of 30. There are two seams, each of length 2, and each is subtracted twice, so the outline is 30 − 8 = 22. The combined rectangle is 9 by 2, and 2 × (9 + 2) = 22, which agrees. A ring of pieces needs care, because a closed ring leaves an inner boundary too, and the outline then has two parts, the outer edge and the edge of the hole, that must both be counted.
Reproduce the checks
First perimeter
Open the Rectangle calculator and enter:
- Length
3- Width
2
Expected output:
Perimeter
10The shared edge is included once here.
Second perimeter
Open the Rectangle calculator and enter:
- Length
4- Width
2
Expected output:
Perimeter
12It is included again in the second component.
Combined boundary
Open the Rectangle calculator and enter:
- Length
7- Width
2
Expected output:
Perimeter
18The internal seam is absent from the outer boundary.
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.