The first gate I ever built was on that original 200-foot cedar privacy fence behind my fixer-upper. Fence line looked great, posts were plumb, pickets were tight, and I was feeling pretty proud. Then I hung the gate.
Two weeks later it started rubbing, then scraping, then it needed a shoulder bump to close. Classic sag. The good news is gate sag is not mysterious. It’s just leverage, weight, and wood movement doing what they do. If you design the frame to stay square, brace it the right direction, and hang it on hinges that match the load, you can build a DIY wood gate that closes with two fingers for years.

What causes sag
Before we cut boards, it helps to know what we are fighting:
- Gravity plus leverage: the far, latch-side corner wants to drop, twisting the frame into a parallelogram.
- Underbuilt frames: a gate made like a mini fence panel (just pickets and two rails) will rack out of square fast.
- Wrong brace direction: a Z brace works only when it pushes weight into the hinge-side bottom corner.
- Weak hinges or poor placement: light T-hinges on a heavy privacy gate are a recipe for droop.
- Post issues: if the hinge post is undersized, loose, or leaning, even a perfect gate will misbehave.
If your gate post is wobbly or leaning, fix that first. Everything else depends on a solid hinge post.
Plan the opening
Single or double
For most backyard privacy fences, a single gate is simplest and strongest up to about 42 to 48 inches wide. That is a common comfort zone, not a hard rule. Gate height, framing stiffness, hinge quality, and wind load all matter, and a 4-foot gate can still behave if you build it stout and hang it right.
Wider than that, consider:
- Double gates for a 6-foot or larger opening (mowers, trailers, deliveries).
- A steel gate frame kit if you want a very wide single leaf without constant tweaking.
Measure the opening
Measure the clear distance between posts at the top, middle, and bottom. Use the smallest number. Also confirm both posts are plumb before you commit to a gate width. A post that is leaning can fool your tape measure.
- Gate width equals opening width minus clearance.
- Typical clearance goals: 1/2 inch total on the sides (about 1/4 inch each side) and 1 to 2 inches at the bottom depending on grade and snow.
Hardware note: some hinges take up space or change how the gate sits in the opening (wrap-around hinges, adjustable hinges, certain frame kits). If your hinge has a thick plate or an offset, account for that before you cut your frame.
If your ground slopes across the opening, you have two options: leave more bottom clearance, or build a gate that steps with the slope (more carpentry, more measuring). Most DIYers are happier with a little extra clearance and a good sweep board if needed.
Materials and hardware
Lumber choices
You can build a great anti-sag gate from either cedar or pressure-treated pine. I tend to match the fence for looks, but I do pay attention to stiffness and straightness.
- Frame: straight 2x4s work for many gates, and plenty of 6-foot gates do fine with 2x4 frames when bracing and hinges are right. I often prefer 2x6s for a tall 6-foot privacy gate because they resist twist better.
- Pickets: use the same pickets as the fence (often 5/8 inch or 3/4 inch thick). Thicker pickets add weight, so upgrade hinges accordingly.
- Pick straight boards: sight down each 2x and avoid twist. If you see a crown, orient crowns consistently so the frame does not fight itself.
- Fasteners: exterior structural screws for the frame, and exterior screws or ring-shank nails for pickets.
If you are weighing cedar versus treated, I break down the pros and cons here: Cedar vs Pressure-Treated Pine for Fences.
Hinges and latch
- Hinges: for privacy gates, I like strap hinges or heavy-duty gate hinges rated for outdoor use. Longer straps spread the load.
- Latch: use a gate latch designed for fences. If you have dogs or kids, pick one that can be padlocked and cannot be pawed open easily.
- Corrosion matters: on cedar especially, use hot-dip galvanized or stainless hardware and fasteners when you can to cut down on corrosion and dark streaking.
- Anti-sag support: either a diagonal Z brace, an anti-sag cable kit, or both. For a heavy gate, I often do both because it is cheap insurance.
More hinge and latch pointers live in Gates & Hardware.
Tools
- Tape measure, pencil, speed square
- Level (a 4-foot level is great here)
- Circular saw or miter saw
- Drill and impact driver
- Clamps (helpful) and a flat work surface
- Shims (paint sticks work in a pinch)
Build the frame square
Step 1: Cut rails and stiles
A basic privacy gate frame is a rectangle:
- Stiles: the two vertical frame members (hinge side and latch side).
- Rails: the horizontal frame members (top and bottom, sometimes a mid-rail).
For a 6-foot fence, I usually set the top rail a few inches down from the top so the top pickets protect it, and the bottom rail up enough to keep it out of splash-back. If you want a very rigid gate, add a mid-rail where your latch will land.
Step 2: Assemble flat and check square
Lay the frame pieces on a flat surface and pre-drill. Fasten corners with exterior structural screws. Now check squareness using the diagonal method:
- Measure from top-left to bottom-right.
- Measure from top-right to bottom-left.
- If the diagonals match, the frame is square.
Clamp and tweak until those diagonal numbers match. This is where a no-sag gate starts. If you can keep the diagonals equal while you build, you are preventing racking before it ever happens.
Step 3: Add the Z brace
A Z brace works because it creates a compression path. The rule:
- The diagonal should run from the bottom hinge corner up to the top latch corner.
That way, the weight of the latch-side top pushes down the diagonal into the bottom hinge corner, instead of pulling fasteners loose.
Use a 2x4 or 2x6 diagonal brace, cut tight to fit, and fasten it well. I like screws rather than nails here.
Step 4: Add a hinge-side stiffener
For tall gates, I sometimes add a small block at the top hinge corner or an extra fastening plate if the design allows it. The goal is to keep the hinge-side stile from twisting under load.
Attach pickets cleanly
Step 5: Dry-fit pickets
Before you attach pickets, re-check the frame for square. Then:
- Start on the hinge side and work across.
- Use a spacer for picket gaps if your fence uses gaps.
- Keep the tops aligned. For privacy fences, most people keep a straight top line.
Tip: If your pickets are wet pressure-treated boards, they will shrink. If they are dry cedar, they may swell slightly. The point is to be consistent with spacing across the gate and fence line.
Step 6: Fasten the brace area lightly
Fastening pickets to the diagonal brace can stiffen the assembly, but it can also telegraph movement if wood expands unevenly. I typically fasten pickets to rails and stiles first, then add a few well-placed fasteners into the brace, not a dozen.
Install an anti-sag cable
Anti-sag cable kits are great because you can adjust tension later as the gate settles. The key is to install it so the cable lifts the sagging corner.
- Mount the cable so it runs from the top hinge corner to the bottom latch corner.
- When you tighten the turnbuckle, it should pull the bottom latch corner up.
This cable direction is the opposite of the compression Z brace, and that is fine. The Z brace handles compression. The cable handles tension.
My usual setup for a heavy privacy gate: Z brace plus a cable kit. The gate stays square, and you have an easy adjustment point after seasonal movement.
Hang the gate right
Step 7: Make sure the post is stout
Push on the hinge post. If it moves, the gate will sag no matter how well you build it. A sturdy post is the foundation.
As a practical rule, I treat 4x4 as the minimum for most walk gates, and for heavy, tall, or wide privacy gates I often prefer 6x6 posts so the hinges have something solid to bite into. Footing depth and frost depth vary by region, so if you want the regional details and the full post-setting sequence, see DIY Installation & Maintenance.
Step 8: Set clearances with shims
Set the gate in the opening on shims:
- Shim the bottom to your target ground clearance.
- Use thin shims on the latch side to create an even reveal.
- Use a level to make sure the hinge-side stile is plumb.
Take your time here. A clean reveal is not just aesthetics. It keeps hardware from binding.
Step 9: Place hinges for strength
For most gates:
- Put the top hinge near the top, but not so high it splits wood or interferes with a cap board.
- Put the bottom hinge near the bottom rail area.
- On tall or heavy gates, consider a third hinge centered between the top and bottom.
Fasten hinges with the correct screws or lag bolts for your hinge type. If your hinge hardware came with short screws, I often upgrade to longer exterior-rated fasteners that bite deep into the post, as long as the hinge manufacturer allows it.
Step 10: Install the latch and stop
Install the latch so it closes without lifting the gate. If you have to lift to latch, you are building sag into the daily routine.
- Add a gate stop (a small strip on the latch post) so the gate closes against wood, not just hardware.
- Check the swing path so the gate does not drag in wet seasons when soil heaves.
Small upgrades
- Use a wheel only if you must: gate wheels can help very wide gates, but they also catch on uneven ground. I prefer building a stiffer frame and using better hinges first.
- Protect cut ends: for pressure-treated lumber, brush on an end-cut preservative on any fresh cuts. It is a small step that helps treated wood stay treated where you trimmed it.
- Keep weight under control: thick pickets, decorative trim, and wet lumber add up fast. Heavy is fine if hardware matches it.
- Plan for seasonal movement: wood fences expand and contract. Leave reasonable side clearances and do not set a gate so tight it binds in July.
Troubleshooting
Latch side drops
- Tighten the anti-sag cable turnbuckle.
- Confirm the diagonal Z brace runs bottom hinge to top latch.
- Check for loose hinge fasteners in the post.
Rubs at the top latch
- This usually means the gate is racking. Re-check the diagonals.
- Inspect the brace connections. A brace that is not tight to its ends does not do much.
Swings open or will not stay closed
- Hinge axis may be out of plumb, or the post is leaning.
- Add or adjust a stop so the latch engages cleanly.
The post is the problem
If the hinge post is moving, you are chasing your tail. A heavy gate needs a properly set post. In some cases, the fix is re-setting the post or adding reinforcement, not tweaking the gate.
My no-sag recipe
If you want the simplest blueprint that works for most 6-foot privacy fences:
- Build a square rectangular frame with 2x6s (2x4s for lighter gates).
- Add a Z brace from bottom hinge corner to top latch corner.
- Use long strap hinges (or heavy gate hinges rated for the weight).
- Add an anti-sag cable kit from top hinge to bottom latch.
- Hang it with shims, keep a clean reveal, and install a solid stop.
That combo is forgiving, adjustable, and strong enough for daily use even if your gate gets leaned on, slammed, or yanked by a big dog who thinks the mail carrier is a personal enemy.