United Kingdom · Maths & Statistics
Perimeter Calculator
Pick a shape and enter its dimensions. The calculator returns both perimeter and area with the formula substituted, plus the diagonal or semi-perimeter where those are useful.
How do you find the perimeter of a shape?
Add up the lengths of all its sides. For a rectangle that shortcuts to twice the length plus twice the width; for a square, four times a side; for a circle the equivalent is the circumference, two times pi times the radius. Perimeter is always in the same unit as the sides, while area is in that unit squared.
How to use this calculator
- Pick the shape firstThe fields change meaning depending on what you select. For a circle only the first field is used, and it takes the radius rather than the diameter.
- Keep your units consistentThe calculator works in whatever unit you type. Mixing centimetres and metres in a single shape is the most common source of a wrong answer, and nothing in the arithmetic will catch it.
- For a triangle, enter all three sidesThe calculator checks whether they can actually form a triangle — any two sides must exceed the third — and uses Heron's formula for the area.
- Add the height for a parallelogram or trapeziumArea needs the perpendicular height, not the sloping side. That distinction is where most parallelogram questions go wrong.
How the calculation works
Perimeter is the distance around the outside of a shape, and for any polygon it is simply the sum of the side lengths. The familiar formulas are shortcuts for shapes with repeating sides: a rectangle has two pairs, so 2(l + w); a square has four equal sides, so 4s.
A circle has no sides, so the equivalent measure is the circumference, 2πr. The relationship between circumference and diameter is π itself — that is what π means, and it holds for every circle regardless of size.
Area is a different quantity entirely and it is worth keeping the distinction sharp. Perimeter is a length, measured in metres or centimetres. Area is a length squared, measured in square metres. Doubling every dimension of a shape doubles its perimeter and quadruples its area, which is the source of a great deal of confusion in scaling problems.
For a triangle given three sides, Heron's formula finds the area without needing the height: take the semi-perimeter s, then the area is the square root of s(s−a)(s−b)(s−c). It works for any triangle whose sides can actually close.
P = sum of all sides · A depends on the shapeThe formulas
| Shape | Perimeter | Area |
|---|---|---|
| Rectangle | 2(l + w) | l × w |
| Square | 4s | s² |
| Circle | 2πr (circumference) | πr² |
| Triangle | a + b + c | √(s(s−a)(s−b)(s−c)) |
| Right triangle | a + b + hypotenuse | ½ × base × height |
| Parallelogram | 2(a + b) | base × perpendicular height |
| Trapezium | sum of all four sides | ½(a + b) × height |
| Regular hexagon | 6s | (3√3 ÷ 2)s² |
For a parallelogram and a trapezium, area uses the perpendicular height rather than the sloping side. A parallelogram leaning further over has the same base and the same slant length but a smaller height, and therefore a smaller area — which is exactly the point of the shape in a geometry question.
Worked example
A rectangle 8 by 5.
Perimeter is 2(8 + 5) = 26 units. Area is 8 × 5 = 40 square units. The diagonal, by Pythagoras, is √(64 + 25) = √89 = 9.434.
Now a triangle with sides 6, 8 and 10. Perimeter is 24. The semi-perimeter is 12, so Heron gives √(12 × 6 × 4 × 2) = √576 = 24 square units.
That triangle is a right triangle — 6² + 8² = 36 + 64 = 100 = 10² — so the area can be checked directly as ½ × 6 × 8 = 24. The two methods agree, which is a useful sanity check whenever three sides happen to form a Pythagorean triple.
And a triangle with sides 2, 3 and 9 fails before any arithmetic happens: 2 + 3 is 5, which is less than 9, so those lengths cannot close into a triangle. The calculator catches that rather than returning a nonsense answer from Heron's formula, which would produce the square root of a negative number.
Where perimeter and area come apart
The relationship between the two is far less fixed than people assume, and it is worth understanding because it appears in practical problems constantly.
Shapes with identical perimeters can have wildly different areas. A 1 by 11 rectangle and a 6 by 6 square both have a perimeter of 24, but the areas are 11 and 36 — more than three times the difference. Among all shapes with a given perimeter, the circle encloses the most area, and among rectangles the square does. That is why a farmer fencing a field wants it as close to square as the land allows.
The reverse also holds. Among all shapes with a given area, the circle has the shortest perimeter, which is why bubbles are round and why heat-loss calculations favour compact building forms.
Scaling behaves differently again. Doubling every linear dimension doubles the perimeter and quadruples the area, because area is a squared quantity. In three dimensions, volume goes up eightfold while surface area only quadruples — the square-cube law, and the reason large animals have proportionally thicker legs and why a bonfire burns differently from a match.
For practical work — fencing, skirting, edging — perimeter is the quantity you buy. For flooring, turf and paint, area is. Confusing the two on a materials order is an expensive and surprisingly common mistake.
Composite shapes are handled by breaking them into simpler ones. Split an L-shaped room into two rectangles, calculate each, and add the areas — but be careful with perimeter, where the internal join is not part of the outside edge and must not be counted.
Assumptions and limitations
- Works in whatever unit you enter — it cannot detect mixed units
- Circle input is the radius, not the diameter
- A trapezium's perimeter needs all four sides, which this form does not take
- Parallelogram and trapezium area require the perpendicular height, not the sloping side
- Handles regular shapes only — irregular polygons must be split into simpler shapes
- Results are rounded for display; use full precision for onward calculations
Questions people ask about this in United Kingdom
How do you find the perimeter of a shape?
Add the lengths of all its sides. For a rectangle that is 2(length + width), for a square 4 × side, and for a circle the equivalent is the circumference, 2πr.
Perimeter is always in the same unit as the sides; area is in that unit squared.
What is the difference between perimeter and area?
Perimeter is the distance around the outside, measured as a length. Area is the space enclosed, measured in square units. Doubling every dimension doubles the perimeter but quadruples the area, because area is a squared quantity.
How do you find the area of a triangle from three sides?
Use Heron's formula. Take the semi-perimeter s, which is half the perimeter, then the area is the square root of s(s−a)(s−b)(s−c). For sides 6, 8 and 10 that gives √(12 × 6 × 4 × 2) = 24.
Can any three lengths form a triangle?
No. Any two sides must add to more than the third — the triangle inequality. Lengths of 2, 3 and 9 cannot close, because 2 + 3 is less than 9. Heron's formula would return the square root of a negative number for such a set.
Which shape encloses the most area for a given perimeter?
The circle, always. Among rectangles, the square does. A 1 by 11 rectangle and a 6 by 6 square share a perimeter of 24 but enclose 11 and 36 square units respectively — which is why a fenced enclosure should be as close to square as the land allows.
Do I need perimeter or area for my project?
Perimeter for anything that runs around the edge — fencing, skirting, edging, coving. Area for anything that covers the surface — flooring, turf, paint, tiles. Confusing the two on a materials order is a common and expensive error.
Related United Kingdom calculators
Tools people usually open in the same sitting.
Method, source and review date
- How it is worked out
- Standard plane geometry, with Heron's formula for triangle area
- Formula used
rectangle P = 2(l + w) · square P = 4s · circle C = 2πr · triangle P = a + b + c- Basis
- Standard geometry formulas
- Last reviewed
- Confidence
- High
Spotted a figure that has moved, or a formula you can show is wrong? Tell us — send a correction. Fixes to rates and formulas are treated as urgent.
Disclaimer
Grade and score calculations follow the published rules as we understand them, but institutions apply their own variations and change them between intakes. Confirm anything that affects an application with the school, university or examination body itself.