📏 Enter known values
Formula Reference
Worked example
If we use the result to calculate Base, we should get the value you entered:
How to calculate the perimeter of a rectangle
The perimeter is the total length of the border of a figure. A rectangle has two pairs of equal sides, the base and the height, so its perimeter is:
\[ P = 2 \times \text{Base} + 2 \times \text{Height} = 2 \times (\text{Base} + \text{Height}) \]
If you know the perimeter and one side, the other side is half the perimeter minus the known side:
\[ \text{Base} = \frac{P}{2} - \text{Height} \]
\[ \text{Height} = \frac{P}{2} - \text{Base} \]
How to use the calculator
- Enter two of the three values: the perimeter, the base and the height.
- Leave empty the one you want to find.
- Press Calculate. The perimeter is a length, so it is in the same unit as the sides (cm, m, ft), not squared.
Worked examples
1. Rectangle of 8 cm by 5 cm
\[ P = 2 \times 8 + 2 \times 5 = 26\ \text{cm} \]
2. Height of a rectangle with a perimeter of 30 m and a base of 9 m
\[ \text{Height} = \frac{30}{2} - 9 = 6\ \text{m} \]
3. Fencing a garden
A garden is 12 m long and 7.5 m wide. The fence needs \( 2 \times (12 + 7.5) = 39 \) m. If the gate takes up 1 m, buy 38 m of mesh plus the gate.
4. Baseboard for a room
A room of 4.2 m by 3.6 m has a perimeter of \( 2 \times (4.2 + 3.6) = 15.6 \) m. Subtract the width of the door (for example, 0.8 m) and you need 14.8 m of baseboard.
Perimeter and area are different
The perimeter measures the border and the area measures the surface inside. Two rectangles with the same perimeter can have very different areas. All these rectangles have a perimeter of 24:
| Base | Height | Perimeter | Area |
|---|---|---|---|
| 11 | 1 | 24 | 11 |
| 10 | 2 | 24 | 20 |
| 9 | 3 | 24 | 27 |
| 8 | 4 | 24 | 32 |
| 7 | 5 | 24 | 35 |
| 6 | 6 | 24 | 36 |
For a fixed perimeter, the square (6 × 6) has the largest area.
When Do You Need to Calculate the Perimeter of a Rectangle?
Fences, hedges and garden edging are sold by length. The perimeter of a rectangular yard tells you how many meters or feet to buy, minus the width of the gates.
Avoids buying too much or too little fencingBaseboards, crown molding and edge trim go around the border of a room. The perimeter, minus the doors, is the length you need.
Quick material list for finishing a roomA frame goes around the four sides of a picture. The perimeter of the picture plus an allowance for the mitered corners gives the length of molding to cut.
Cut frames without wasting moldingWhen you walk or run around a rectangular field or block, each lap is its perimeter. Dividing a target distance by the perimeter gives the number of laps.
Plan distances for trainingLED strips, string lights and ribbons around tables, mirrors or ceilings are measured by the perimeter of the rectangle they outline.
Buy the right length of strip and power supplyPerimeter problems teach the difference between length and surface. Many exercises give the perimeter and one side and ask for the other.
Practice with simple equationsCommon Mistakes
⚠️ Adding Only Two Sides
⚠️ Multiplying the Sides
⚠️ Square Units
⚠️ Forgetting to Halve When Solving
⚠️ Mixed Units
⚠️ Not Discounting Openings
Applications by Industry
Construction & Renovation
- Foundations: Length of formwork for rectangular footings
- Trim: Baseboards, crown molding and edge profiles
- Fencing: Perimeter fences for lots and building sites
Landscaping & Agriculture
- Garden beds: Edging for rectangular beds
- Livestock: Electric fence around paddocks
- Irrigation: Drip line around the edge of a field
Interior Design
- Rugs: Binding tape for the edges of a rug
- Lighting: LED strips around ceilings and furniture
- Curtains: Trim for rectangular windows
Manufacturing
- Frames: Molding for picture and window frames
- Sheet metal: Edge length to weld or seal
- Gaskets: Rubber seals around rectangular doors and lids
Sports
- Fields: Boundary lines and fences of rectangular pitches
- Training: Laps around a field to reach a distance
- Courts: Line paint for basketball and tennis courts
Education
- Geometry: The difference between perimeter and area
- Algebra: Solving for a side with simple equations
- Optimization: The largest area for a given perimeter
External Resources
- Rectangle properties, perimeter and area — Math is Fun
- Rectangle definition and properties — Wikipedia