Fence calculator

Gate Planner

A gate planner calculator that turns the number of gates and the width of each into the gate posts, hinges and latch sets you need, then helps you plan the opening, the posts and the sag prevention. A gate with the wrong hardware sags on its hinges within months. Enter the gate count and widths and get the hardware list before you build.

  • Free to use
  • No sign-up
  • Formula and sources shown
Gate Planner

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app

Gates over 6 ft get a third hinge in this estimate.

Gate posts needed

2

Hinges

2

Latch sets

1

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Gate Posts = Gates × 2; Hinges = Gates × (2, or 3 for gates over 6 ft wide); Latch Sets = Gates

Worked example. 2 gates, each 4 ft wide: 2 × 2 = 4 dedicated gate posts, 2 × 2 = 4 hinges, and 2 latch sets.

Count hardware per gate, then multiply. Count two dedicated posts and a latch for each gate, and two hinges per gate, or three for gates wider than 6 ft. One 4 ft gate needs 2 gate posts, 2 hinges and 1 latch set. Two 4 ft gates need 4 posts, 4 hinges and 2 latch sets.

Key takeaways

  • •Each gate has its own two posts, the hinge post and the latch post. They are in addition to the line posts counted for the fence.
  • •Hinges: 2 for a gate up to 6 ft wide and 3 for a wider or heavier gate, to resist sagging.
  • •A gate hangs its full weight on the hinge post, so use a heavier post and set it in concrete. Wider gates need bigger posts and deeper holes.
  • •Walk gates are usually 3 to 4 ft wide. Drive gates are often 10 to 12 ft wide, built as a double gate of two leaves.
  • •Pool barrier gates are regulated and usually must be self-closing and self-latching. Check local code.

How to use the gate planner calculator

  1. Decide how many gates the fence will have and the width of each one.
  2. Enter the number of gates and the gate width in feet. Use the width of the gate leaf, not the full opening of a double gate.
  3. Read the gate posts, hinges and latch sets.
  4. For a double gate, enter each leaf as a separate gate. The result is a safe count, and you may need fewer posts if the leaves share them.
  5. Add the posts to the post count from the fence calculator, and count the concrete with the fence post concrete calculator.
  6. Choose heavy-duty hinges and a latch that suit the gate weight and the use.

Gate planner formulas

Gate posts = Number of gates × 2

Hinges = Number of gates × 2 (gate up to 6 ft) | Number of gates × 3 (gate wider than 6 ft)

Latch sets = Number of gates

Opening width = Gate width + clearance at the hinge and latch sides

The calculator counts a separate pair of posts for each gate. This is the safe count. A double gate with two leaves meeting in the middle may only need two posts, one at each side of the opening, plus a center catch or drop rod.

Gate planner examples

Example 1: one 4 ft walk gate

  • Posts = 2; hinges = 2; latch sets = 1

Example 2: two 4 ft gates

  • Posts = 4; hinges = 4; latch sets = 2

Example 3: one 6 ft gate

  • 6 ft is not wider than 6 ft, so hinges = 2; posts = 2; latch sets = 1

Example 4: one 8 ft drive gate

  • Wider than 6 ft, so hinges = 3; posts = 2; latch sets = 1

Example 5: a 12 ft double drive gate planned as two 6 ft leaves

  • Posts = 4; hinges = 4; latch sets = 2 (the calculator's safe count)
  • With a drop rod at the center, you may be able to use 2 posts at the opening and share the center

Example 6: concrete for the two posts of Example 1 in 12 in holes 36 in deep

  • Each post = π × 0.5² × 3 = 2.36 cu ft; two posts = 4.71 cu ft; bags of 60 lb = 4.71 ÷ 0.45 = 10.5, so 11 bags

Gate sizes and hardware

Gate typeTypical widthHingesNotes
Walk gate3 to 4 ft2Light gate; strap or T hinges
Wide walk gate5 to 6 ft2Add a diagonal brace
Large single gateOver 6 ft3Heavier posts and a brace
Double drive gate10 to 12 ft total2 per leaf or moreTwo leaves with a center latch or drop rod

These are common practices. Heavy wood, metal or privacy gates need stronger hinges, posts and bracing. Follow the hinge maker's load ratings.

Gate posts and sag prevention

MeasureHow it helps
Heavier hinge postA larger post, such as 6×6 for wide or heavy gates, resists leaning under the load
Deeper concreteA deep, wide concrete footing stops the hinge post tilting
Diagonal braceA board from the bottom hinge corner up to the top latch corner keeps the frame square
Tension cable kitA cable and turnbuckle from the top hinge corner to the bottom latch corner pulls the gate back square
Third hingeSpreads the load on wide or heavy gates
Gate wheelA caster at the latch end of a wide gate supports the weight

A sagging gate usually comes from a leaning hinge post or a frame that is not braced. Fix the post first.

Opening width and clearance

  • •Measure the gate width and add clearance for the hardware at the hinge and latch sides. Many hardware kits call for roughly an inch or two in total, so check the instructions.
  • •Leave a gap under the gate so it can swing over uneven ground, often about 2 in or more, and raise it for snow where needed.
  • •Decide which way the gate swings. Swing a gate away from a pool, and check that it clears steps, slopes, walls and parked cars.
  • •Make the opening wide enough for what must pass through, such as a lawn mower, a wheelbarrow or a vehicle.

Latches and locks

Latch typeNotes
Thumb latch (gravity latch)Simple, common on garden and walk gates
Self-latching, self-closing gate hardwareUsed on pool barriers and child-safety gates; follow local code
Drop rod (cane bolt)Holds one leaf of a double gate to the ground
Padlock hasp or slide boltFor security and sheds
Magnetic latchUsed on pool and child-safe gates

Check the rating and the gate weight before you choose a latch.

Pool barrier gates

  • •Barriers around swimming pools are covered by the building code and local rules, and often by the International Swimming Pool and Spa Code or the residential code.
  • •They usually require a minimum barrier height, commonly 48 in, and a self-closing, self-latching gate that opens away from the pool, with the latch out of a child's reach.
  • •Rules differ by place and change over time, so check with your local building department before you build.

Estimating gate cost

Cost = Gate or gate materials + Hinges + Latch + Posts + Concrete + Brace or cable kit

Example only: a 4 ft walk gate with two hinges and a latch may cost less than a heavy 12 ft drive gate with large posts, heavy hinges and a drop rod. Compare the full set, not only the gate.

Troubleshooting common gate problems

ProblemLikely causeWhat to do
Gate sags or dragsHinge post leaning or frame not bracedReset the post, add a diagonal brace or a cable kit
Latch does not line upGate out of square or post movedSquare the gate and fix the post, then adjust the latch
Gate binds in wet weatherWood swellsAllow clearance; seal the gate
Gate swings open on its ownGate not level or post leaningLevel the hinges; plumb the post
Hinges pull outLight hinges or short screwsUse heavy-duty hinges and long screws through the post

Terms explained

TermMeaning
Hinge postThe gate post that carries the gate on its hinges
Latch postThe gate post that holds the latch
LeafOne door of a gate
Double gateTwo leaves that meet in the middle
Drop rodA rod that drops into the ground to hold a gate leaf
BraceA diagonal board that keeps the gate frame square
SagA gate dropping at its latch end
Strap hingeA long hinge that spreads the load across the gate

Common gate planner mistakes

  • •Counting gate posts as ordinary line posts.
  • •Using light posts and hinges for a wide or heavy gate.
  • •Forgetting the diagonal brace or cable kit.
  • •Entering the full opening of a double gate as a single leaf.
  • •Forgetting the clearance for the hinges, latch and the ground.
  • •Overlooking local pool-barrier rules.

Metric conversions

FromTo
4 feet1.22 metres
6 feet1.83 metres
12 feet3.66 metres
48 inches1.22 metres

Gate width by what must pass through

Choose the gate width by what has to pass through it, not by what looks right. A gate that is too narrow is a daily annoyance, and a gate that is too wide sags, drags and needs heavier posts and hinges. Measure the widest thing that will use the gate, add a little clearance, and pick the next standard width up.

Needs to passGate widthNotes
A person3 ftMinimum for a walk gate
A wheelchair3.5 to 4 ftCheck local access rules
A wheelbarrow4 ftMost common walk gate size
A push lawn mower4 ftMeasure the mower deck
A riding mower5 ftSingle leaf, or a double gate
A car10 ftDouble gate, two 5 ft leaves
A truck or trailer12 ftDouble gate, two 6 ft leaves

Walk gates are usually 3 to 4 ft wide. Drive gates are 10 to 12 ft wide, built as two leaves.

Hinge types compared

Strap hinges are the classic choice for wood gates. A long strap spreads the load across the gate frame, and a T-hinge does the same with a shorter strap. Butt hinges are small and neat but carry less weight, so they suit light gates and metal frames. Self-closing hinges use a spring to pull the gate shut, and they are required on most pool barrier gates. Adjustable hinges let you lift or level the gate after it sags, which is worth having on a heavy gate.

Match the hinge to the gate weight, not just the gate width. A heavy privacy gate needs a heavier hinge than a light picket gate of the same width. Check the hinge maker's load rating, use screws long enough to reach through the gate frame and into the post, and use corrosion-resistant hardware outdoors.

Hinge typeBest forNotes
Strap hingeWood privacy gatesSpreads the load across the frame
T-hingeWood walk gatesShorter strap, same idea
Butt hingeLight gates, metal framesNeat look, less load capacity
Self-closing hingePool and child-safe gatesSpring pulls the gate shut
Adjustable hingeHeavy or wide gatesLets you lift a sagging gate

Two hinges suit most walk gates. Add a third hinge for gates wider than 6 ft or for heavy gates.

Building a wood gate frame: lumber and picket count

A wood gate frame is a rectangle of 2×4 lumber: two vertical stiles and two horizontal rails, with a diagonal brace from the bottom hinge corner up to the top latch corner. The brace is the part that keeps the frame square. Without it, the frame racks into a parallelogram and the gate sags within a season.

Example 1: frame lumber for a 4 ft × 6 ft walk gate

  • Stiles: 2 pieces of 2×4, each 6 ft long = 12 ft
  • Rails: 2 pieces of 2×4, each about 3.6 ft = 7.2 ft
  • Diagonal brace: 1 piece of 2×4, about 7.1 ft
  • Total frame lumber = about 27 ft of 2×4, so buy four 8 ft boards

Example 2: pickets for the same 4 ft gate

  • Gate width = 48 in; pickets = 48 ÷ 5.75 = 8.3, so 9 pickets of 1×6 with a 1/4 in gap
  • Add 1 spare picket, so buy 10
  • Count the fence pickets separately with the fence picket calculator

Build the frame on a flat surface and check it for square by measuring both diagonals: they must be equal. Fix the pickets to the frame, hang the gate on the hinge post, and adjust the hinges so the latch lines up. If the gate sags later, add a cable and turnbuckle kit from the top hinge corner to the bottom latch corner.

Single gate vs double gate

A single gate is simpler: one leaf, two hinges, one latch, and two posts. It suits every walk gate and any drive opening up to about 6 ft. Past 6 ft, a single leaf gets heavy, sags, and is hard to swing, so a double gate is the better choice. A double gate splits the opening into two leaves, each light enough to swing easily, and it opens wide for a car or trailer.

Single gateDouble gate
WidthUp to 6 ft10 to 12 ft
Leaves12
Hinges2, or 3 if wide2 per leaf
Latch11 plus a drop rod
Posts22 at the opening, plus a center catch
Best forWalk gates, mowersCars, trucks, trailers

A double gate needs a drop rod or center stop to hold one leaf still while the other opens. Plan it with the gate planner calculator, entering each leaf as a separate gate.

Related fence tools

Assumptions

  • •Every gate gets its own two dedicated posts, set in concrete like line posts. These are in addition to the regular fence post count.
  • •Gates wider than 6 ft get a third hinge, since wider and heavier gates commonly need extra support to prevent sagging.
  • •Does not include the gate itself, drop rods, wheels, braces, cable kits or other hardware for double drive gates.

Sources✓ Verified

  • Residential fence gate practice. Two posts and two hinges per standard gate, and a third hinge commonly added for gates over 6 ft wide. Confirm with your hardware maker's load ratings.
  • Hinge and latch maker instructions. Clearances, load ratings, screw lengths and post sizes.
  • International Residential Code and International Swimming Pool and Spa Code. Swimming pool barrier and gate requirements, adopted and amended by local jurisdictions.
  • Your local building department. Gate, fence and pool-barrier rules and permits.

Formula reviewed November 2026.

Two for each gate, one on the hinge side and one on the latch side. They are in addition to the line posts for the fence, although a post beside the gate can sometimes serve as a gate post.

Two hinges for a gate up to 6 ft wide, and three for a wider or heavier gate. Use heavy-duty hinges for big gates.

Walk gates are usually 3 to 4 ft wide. Drive gates are 10 to 12 ft, built as two leaves. Choose the width by what must pass through, such as a mower or a car.

Larger than the line posts. Many builders use 4×4 posts for light gates and 6×6 posts for wide or heavy gates, set in deep concrete. Follow your hardware maker and local code.

Set the hinge post deep in concrete, use a heavier post, brace the frame with a diagonal board from the bottom hinge corner to the top latch corner, or add a cable and turnbuckle kit.

A compression brace runs from the bottom hinge corner up to the top latch corner. A tension cable runs the other way, from the top hinge corner down to the bottom latch corner.

Enter each leaf as a separate gate to get a safe count of posts, hinges and latches. The leaves meet in the middle, so a drop rod and center latch may let you share posts.

Leave room for the hinges and latch, often about an inch or two in total, and a gap under the gate so it clears the ground. Check your hardware instructions.

Usually inward to a yard, and away from a pool. Check that it clears steps, slopes and walls, and follow local rules.

A thumb latch suits garden gates, a self-latching latch suits pool and child-safe gates, and a drop rod holds a double gate leaf. Match the latch to the gate weight and use.

Yes. Pool barriers usually need a self-closing, self-latching gate that opens away from the pool, and a minimum barrier height, commonly 48 in. Check local code.

No. It counts the posts, hinges and latches. Buy a ready-made gate or build one from the gate materials.

A fence gate is usually covered by the same rules as the fence, and pool gates are regulated. Check with your local building department.

Measure the opening between the two posts, subtract the clearance for the hardware, and use that as the gate width. Or choose a standard gate and set the posts to fit.

10 to 12 ft for a car, built as a double gate of two 5 ft or 6 ft leaves. A single gate wider than 6 ft gets heavy and sags.

A wood walk gate commonly weighs 40 to 80 lb, depending on the size, the wood and the hardware. Check the hinge maker's load rating against the real weight of your gate.

Converters to use with the Gate Planner

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More fence calculators

Wood Fence CalculatorFenceWood Fence CalculatorThis wood fence calculator turns your fence length and height into an exact shopping list: pickets, rails, posts, concrete bags and the materials cost. It counts by the real picket width, so a 1x6 counts as 5.5 in, not 6 in, and it compares cedar, pine and redwood before you commit to a species. Order what the job needs, nothing you will return.Picket Fence CalculatorFencePicket Fence CalculatorThis picket fence calculator counts exactly how many pickets your fence needs. Enter the fence length, the picket width and the gap between pickets, and get the picket count with waste, plus posts, rails, concrete bags and the materials cost, with pointed, flat-top and dog-ear picket options and a gap comparison built in. The gap is what most people forget, and it changes the count.Privacy Fence CalculatorFencePrivacy Fence CalculatorThis privacy fence calculator works out exactly what a 6 ft solid privacy fence needs. Enter the fence length and height, choose wood or vinyl, and get the picket or panel count, posts, rails, concrete bags and materials cost, with a wood-vs-vinyl comparison and height options from 4 ft to 8 ft built in. Solid means no gaps, so every board counts and the wind load is real.Home Depot Fence CalculatorFenceHome Depot Fence CalculatorThis Home Depot fence calculator counts a panel fence the way the store sells it. Enter your fence length and this independent estimator counts the 6x8 ft panels, posts and bags of concrete you need, prices them at typical big-box panel prices, and shows an installed cost range, so you can walk into the store with a shopping list instead of a guess. It is not affiliated with or endorsed by The Home Depot.Vinyl Fence CalculatorFenceVinyl Fence CalculatorThis vinyl fence calculator prices a PVC fence honestly: more up front than wood, then almost nothing for decades. Enter your fence length and it counts the panels, posts, rails, caps and concrete bags, prices the materials, shows the installed cost per linear foot, and compares the 20-year cost against a wood fence, so you can see when vinyl pays for itself.Board-on-Board Fence CalculatorFenceBoard-on-Board Fence CalculatorThis board on board fence calculator counts a fence with pickets on both sides of the rails, each one overlapping its neighbour. Total privacy from both sides, and a fence that still looks good when the boards shrink. The counting is the trap: each picket only advances the fence by its width minus the overlap, so a 100 ft fence needs 267 pickets before waste, not the 219 a close-board fence needs.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.