Gate width calculator
Turn your clear gate opening and hinge clearance into the gate panel width, in inches and feet, with the math shown.
Gate width
Enter your measurements and the result updates as you type.
Overview
The opening in the fence and the gate panel that swings inside it are two different numbers: the panel has to be built a little narrower than the post-to-post opening, with a small clearance gap on each side, so the leaf can swing without dragging on either post. This calculator converts the opening and that clearance into the panel width you actually order.
With a 4 foot opening and an inch of clearance per side, the panel comes to 46 inches: 48 inches for the opening minus 2 inches total clearance, the result shown in both inches and feet.
Assumptions
- The gate width is the opening in feet times 12, minus clearance per side in inches times two.
- Clearance defaults to 1 inch per side for residential wood and vinyl gates, editable in the calculator.
- The result is the panel (leaf) width; double gates split the opening across two leaves sharing the latch gap instead.
Common mistakes
- Ordering a gate panel the exact width of the opening, which leaves no room to swing and binds on both posts the first time the wood swells.
- Adding the clearance to the opening instead of subtracting it, which orders a panel too wide to fit between the posts at all.
- Applying clearance to only one side, which leaves the latch side binding on its post.
Next step
- Fence post calculator Calculate line posts, corner posts and end posts from run length and spacing, with concrete for each post included in the take-off.
- Fence post concrete calculator Work out how many bags of concrete mix each fence post footer needs, accounting for the post itself, based on hole and post dimensions.
Related calculators
- Fence gate calculator Plan the opening, the posts that carry it and the hardware a fence gate needs, for a walk gate or a double drive gate.
- Fence cost calculator Estimate total fence cost from run length, height and your local material and labor rates, with the budget math shown.
- Privacy fence calculator Calculate posts, rails and pickets for a solid privacy fence in any material, with a zero-gap board layout by default.
In-depth guides
Buying guide
A gate width calculator solves a narrow but easy to get wrong problem: the opening between two posts and the panel that swings inside that opening are not the same number, and the gap between them is small enough to ignore by accident but large enough to ruin a build if it is ignored. The opening is fixed the moment the posts are set in concrete and cannot be changed without resetting a post. The panel has to be built a little smaller than that opening on purpose, with a clearance gap on each side, so the leaf can swing freely without dragging on either post as the wood or vinyl moves with the seasons. This calculator takes the clear opening and the clearance you want per side and returns the exact panel width, in both inches and feet, so there is no guessing at the bench or the shop, and no need to redo a cut because the panel came out a half inch too wide to swing.
The formula itself is simple once it is laid out clearly: multiply the opening in feet by 12 to get inches, then subtract the clearance per side times two, keeping the units consistent the whole way through. A 4 foot opening with an inch of clearance on each side comes to 46 inches, or 3.83 feet, which is 48 inches minus 2 total inches of clearance. The part that trips people up is the direction of the subtraction. The clearance comes off the opening to get the panel size, not the other way around, because the panel has to fit and swing inside the post-to-post gap rather than cover it from the outside. A panel built wider than the opening by adding the clearance instead of subtracting it simply will not fit between the posts, and that mistake is far more common on a first build than it sounds, especially when the opening is read off a tape measure quickly and the clearance is added out of habit rather than worked through step by step.
This math only covers a single swinging leaf. Wide drive openings are usually split into two leaves that meet near the center with their own meeting gap, and that changes the per-leaf width in a way this calculator does not handle directly. For that case, the double gate calculator covers the center meeting gap and the hinge clearance on each outer post separately, since a double gate has three clearance points instead of two. Once the panel width from either calculator is settled, the posts on each side need to be sized for the load that leaf is going to put on them: the fence gate calculator covers the opening and hardware decisions together, and the fence post calculator and post concrete calculator handle the post sizing and the concrete volume for a gate post hole, which is typically deeper and wider than a standard line post hole because of the leverage a swinging gate puts on it.
The default clearance in this calculator is 1 inch per side, which is a reasonable starting point for most residential wood and vinyl gates, but it is not a fixed rule. Heavier leaves, gate posts that are slightly out of plumb, long spans, or a concrete sill the gate has to clear can all call for more room on one or both sides, and the calculator accepts whatever clearance figure you enter rather than locking you into the default. It is also worth keeping the clearance even on both the hinge side and the latch side rather than stacking it all on one edge for convenience. A build that skips clearance on the latch side to save a fraction of an inch will bind at the latch the first time the wood absorbs moisture, even if the hinge side swings freely. Wider panels also carry more weight onto the hinge post, which is part of why wide drive openings move to a double leaf and upsized posts rather than a single oversized gate, a point covered in the gate hardware and framing guide along with the hardware ratings that go with a heavier leaf. For material and cost planning once the gate panel and posts are both sized, the fence cost calculator rolls the gate into the rest of the fence budget, and anyone building the gate into a matching privacy run can check panel and picket sizing at the privacy fence calculator. The full set of gate sizing tools, including the post and double gate calculators, sits together under the gate calculators category for anyone working through a gate build from opening to hardware in one pass, and the fence materials guide is a useful reference for matching the gate frame material to whatever the fence panels on either side are built from.
Frequently asked questions
How wide is a gate for a 4 foot opening?
With 1 inch of clearance per side the panel is 46 inches: 48 inches for the opening minus 2 inches total clearance, shown by the calculator as 3.83 feet.
What is the gate width formula?
Multiply the opening in feet by 12 to get inches, then subtract the clearance per side times two. A 4 foot opening at 1 inch per side is 4 times 12 (48) minus 2, for a 46 inch panel.
Why does the gate need clearance at all?
Wood and vinyl swell and move with the weather, so a panel built the exact width of the opening will bind on the posts within a season. A small gap per side keeps the leaf swinging freely regardless of moisture and hinge wear.
Why is the panel smaller than the opening, not bigger?
The panel has to fit and swing inside the post-to-post opening, not cover it from the outside, so it is built narrower than the opening by the clearance amount. A panel built wider than the opening simply will not fit between the posts.
How does a double gate use the width?
The opening is split across two leaves that meet at the center with a small meet gap, so each leaf is roughly half the opening minus its share of hinge and meet clearance. See the double gate calculator for the exact per-leaf math.
Is an inch per side always right?
One inch is a common starting figure for residential wood and vinyl. Heavy gates swinging long spans, gate posts out of plumb, or tight concrete sills can call for more, and the calculator accepts any clearance you enter.
Should the hinge side and latch side have the same clearance?
Usually, to keep the gap even around the panel. A bare extra fraction on the hinge side and nothing on the latch side will still bind at the latch when the wood absorbs moisture.
Does gate width change the gate post size?
Indirectly: wider panels are heavier and put more load on the hinge post, which is why drive gates use double leaves and upsized posts. This calculator sizes the panel; the post sizing and set depth are handled by the gate and post calculators.