Forty Metres of Fence Holds 100 Square Metres, or 19
Published 11/10/2026 · 3 min read · Everyday calculators
Antonio Delgado — Traditions & pastimes writer at OneKitly
Symbolism · Calendars
Checked against 2 sources
Among all rectangles with the same perimeter, the square encloses the most ground, and the falloff is steeper than intuition suggests. Forty metres of fence closes a 10 by 10 square holding 100 m². Bend it to 12 by 8 and you keep 96, which is a mild loss. Push to 15 by 5 and you are down to 75; take it to 19 by 1 and you have 19 m², less than a fifth of what the same fence was capable of. Nothing was added or removed — only the proportions changed. The rule generalises upward too: among all shapes of a given perimeter, the circle wins, which is why 40 metres of fence in a ring encloses 127 m².
The same fence gives 100 m² as a square, 96 as 12 by 8, 75 as 15 by 5 and 19 as a strip. Shape decides the yield, and the square wins every time.
Why a small deviation costs almost nothing
Moving from 10 by 10 to 12 by 8 changes both sides by a fifth and loses only 4% of the area. That flatness near the top is the signature of a maximum: the area falls off with the square of the deviation, so being slightly wrong barely matters and being very wrong matters enormously. It is the same reason a garden bed that has to be 11 by 9 to fit a path is not worth arguing about, while one that has to be 18 by 2 is worth redesigning. Anyone who has laid out a vegetable plot has felt this without naming it.
The wall that changes the answer
Put one side of the plot against an existing wall and the square stops being the answer. With forty metres of fence covering only three sides, the best shape is twice as wide as it is deep — 20 by 10, holding 200 m², exactly double what the free-standing square managed. The wall is doing the work of twenty metres of fence, and the optimum reshapes itself around what it no longer has to pay for. Farmers have known this for as long as there have been hedgerows, and it is the reason so many old kitchen gardens are long rectangles pinned to a south wall rather than tidy squares.
| Shape | Area | Share of the best |
|---|---|---|
| 10 by 10 | 100 m² | 100% |
| 12 by 8 | 96 m² | 96% |
| 15 by 5 | 75 m² | 75% |
| 19 by 1 | 19 m² | 19% |
Worked with our own calculator
Square calculator
Given
- Input type
- Side (s)
- Value
- 5
Result
- Side
- 5
- Area
- 25
- Perimeter
- 20
- Diagonal
- 7.071
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- Does the same logic work backwards, from area to fence?
- It does, and it is the version that saves money. To enclose 100 m², a square needs 40 metres of fence, a 20 by 5 needs 50 and a 50 by 2 needs 104. Buying fence for a fixed plot means the shape decides the bill, and a long thin plot can cost more than twice a compact one for the same ground. The tool takes area as an input for exactly this reason: type 100, read 40, and you have the cheapest possible boundary before anyone quotes you a price per metre.
- Why does the circle beat the square?
- By 27%, and for the same reason the square beats the strip: corners waste boundary. Forty metres of fence in a circle encloses 127.3 m² against the square's 100. Every corner forces the fence to turn back on itself, and the more corners a shape has the less each metre of boundary is doing. A regular hexagon reaches 115 m² and an octagon 120, converging on the circle as the sides multiply. Nature reaches for the circle whenever the boundary is expensive — a soap bubble, a cell, a defended camp — and reaches for the hexagon when boundaries have to be shared.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?