A simple wooden garden gate has two horizontal rails, a diagonal brace and vertical boards. To fit and swing well, it must be a little narrower than the opening, and the brace must run the right way so the gate does not sag. This calculator works out the gate width, the brace length, the boards and the lumber.
How the calculation works
- Gate width = opening between posts − total clearance for hinges and latch
- Brace length = √(gate width² + (height − 2 × rail inset)²)
- Boards = gate width ÷ (board width + gap), rounded up
- Board length = boards × gate height
- Frame lumber = 2 rails × gate width + brace length
A 48 in opening with 1 in of total clearance takes a gate 47 in wide. At 48 in high, with the rails 6 in from the top and bottom, the brace is about 59.2 in long. With 5.5 in boards and 1/4 in gaps, it takes 9 boards, 36 ft of boards and about 12.8 ft of frame lumber.
Common sizes
| Gate | Opening width |
|---|---|
| Garden path, one person | 36 to 42 in |
| Wheelbarrow and lawn mower | 42 to 48 in |
| Garden tractor or small cart | 60 in or more, often a double gate |
For an opening wider than about 4 ft, a single wooden gate gets heavy and tends to sag: use a double gate, a metal frame or a wheel at the latch end.
Which way the brace goes
The brace must run from the bottom corner on the hinge side up to the top corner on the latch side. That way it works in compression, pushing the latch side up and stopping the gate from drooping. A brace put in the other way pulls apart and does almost nothing. A Z-shaped frame is the simplest option; a full rectangular frame with a brace is stronger.
Clearance
Leave about 1/2 in on the hinge side and 1/2 in on the latch side, a little more in wet climates where wood swells. Allow 2 in or more at the bottom so the gate clears the ground, grass and snow, and more on sloping ground.
Hardware and posts
Use heavy strap hinges or T-hinges screwed into the rails, not just the boards, and a gravity latch or a self-closing hinge if children or pets need to stay in. The hinge post carries the whole weight of the gate: set it at least 2 ft deep, in concrete for a heavy gate, and make it thicker than the other fence posts. Galvanized or stainless hardware will not stain the wood.