How To Repair a Fence Gate Z-Frame

Todd

"Bringing this 20-year-old gate back to life was more cost-effective—and more fun—than buying a new one."

- Todd Dermody



For today’s project, we’re showing you how to breathe new life into an old fence gate by remaking the frame, and adding a hidden latch to make it a bit more secure.

The fence gate we repaired was around 20 years old, and while the front-facing boards were structurally sound (even if quite weathered and grey), the frame had rotted and was in need of a rebuild. With the price of new lumber, and because the existing boards were in pretty good shape, we decided to save and reuse them.

In the process of redoing the frame, we also adjusted the latch position. On the original gate, the latch was near the top and anyone north of four feet tall could easily reach over the top and gain entry. To make it a little more secure, we moved the latch position down so it’s unreachable. We then devised a hidden mechanism to open the gate from the outside that’s subtle enough to go unnoticed unless you know it’s there.

Ready to get started?

Step 1: Remove fence gate

Unscrew the fence gate from its hinges and place it atop a pair of sawhorses or another open work surface.

Because our gate was so old, when we went to unscrew it, the heads of the screws sheared off. If you run into the same issue, you’ll need to adjust the location of the hinges slightly when remounting and use new screws, too.

If you do end up adjusting the hinge location, make sure the new screws don’t hit the old ones stuck in the wood.

Using a drill to remove the fence gate hinges from the main fence.
The existing fence gate, showing some rotting around the Z-Frame.
Close-up on the fence gate hinge with two of the screw heads sheared off.
Using a tape measure where the hinge of the fence gate has been removed.

Step 2: Take measurements

Before disassembling the gate, we recommend taking photos and measurements of everything. You’ll specifically want to measure the width of the cross braces and their vertical position on the fence boards, as well as the spacing of the fence boards if there is a vertical gap between boards.

On our gate, we opted to create a new Z-frame on top of the old one, as some of the old nails and screws had become embedded in the wood.

Using a tape measure to measure the Z-frame of the fence gate.
Using a tape measure to measure the Z-frame of the fence gate.
A clipboard with the measurements of the fence gate Z-frame taken down.

Step 3: Disassemble gate

To deconstruct the gate, start by removing the hinges and gate latch and set aside.

If you’re going to reuse the fence boards, we recommend labeling each board before removal so it’s easy to reinstall them in the right order.

Make a cutting template using the old Z-frame before disassembling it by laying the new pieces of wood on top, then cutting each to match the lengths.

Cut the top rail and the bottom rail (duplicates of the existing frame). If you need to shift their positions due to sheared-off screws on the post, move the top rail up ¾” and the bottom rail down ¾.” A piece of ¾”-thick wood here can help you adjust the height of the rails.

Cut the diagonal brace to the correct length by marking where it intersects the top and bottom rail.

Using a drill to remove the hinges from the fence gate.
Using a drill to remove the latch from the fence gate.
Labeling the fence boards of the gate with numbers so that they can be reused.
Laying a new board for the Z-frame over the old board and marking it with a pencil.
Cutting a cedar board for the new Z-frame with a circular saw.
Laying a new board for the Z-frame over the old board.
Laying a new board for the Z-frame over the old board and marking it with a speed square and a pencil.
Cutting a cedar board for the new Z-frame with a circular saw.

Once you’ve cut all three pieces (top rail, bottom rail, diagonal brace), it’s time to anchor them together. Pre-drill and fasten the diagonal brace to the top and bottom rails with 3" screws.

Remove the Z-frame you just built with the new wood, then use a pry bar and hammer to remove the old fence boards gently. Remove any old nails from the old boards as you go.

(One of our old fence boards split, so we used a sawzall to help remove the remaining boards and nails. To do this, clamp the far end of the fence boards down to the sawhorses, use the sawzall to help with removal, then use the prybar and hammer to knock them loose.)

Using a pry bar to remove old fence boards from Z-frame.
Using a sawzall to remove old fence boards, which are now clamped to a sawhorse, from Z-frame.

Step 4: Reattach fence boards

Use clamps to attach the Z-frame you just made to the sawhorses, outward-facing side up. Then double-check the dimensions against the measurements you took in Step 2, or by holding it up in the gate opening between the posts. Adjust if necessary by trimming the boards or replacing them with longer ones. (It’s mostly the width you’re concerned about here.)

Reattach the first and last fence boards first. Then attach the rest of the boards in the same order and with the same spacing as used originally (using ⅛” spacers worked well for us). Note: If you care about having all the screws in a straight line, you can lay an extra board down or draw a faint line to use as a reference.

Checking the measurements of the new Z-frame with measuring tape.
Using a drill to reattach the old fence boards to the new Z-frame.
Placing ⅛” spacers between the fence boards.
Examining old fence boards attached to new Z-frame.
Using an extra board to ensure screws attaching fence boards to Z-frame are in a straight line.

Step 5: Add vertical braces (optional)

If you’d like to give your gate extra strength, you can add vertical braces at this point.

To do this, flip your new Z-frame gate over on the sawhorses. Take measurements again, then cut and mount vertical braces that run between the top and bottom rails.

Marking and measuring a cedar board with a pencil and a speed square.
Using a circular saw to cut a cedar board into a vertical brace for the fence gate.
Placing vertical braces into Z-frame on the fence gate.
Using a drill to attach the vertical braces to the fence gate.

Step 6: Attach hinges and gate latch

Using the old upper and lower rails of the gate as a reference, position the hinge wings in the same spot on the new rails. Then mount the gate latch. If you’ve added extra braces, mount the latch on top of the brace, in a spot well below the top of the gate (where only Elastigirl could reach).

Using a drill to attach the hinges to the new Z-frame.
Using a drill to attach the latch to the new Z-frame.

Step 7: Mount gate onto post

Move the gate off of the sawhorses back to where it’s going to be installed. Mount it to the post: Hold your gate in place, mark the positions for the screw holes, and fasten with one or two screws in the top and bottom hinge wing. (Because of the screws that sheared off when we removed the gate and left screws in the post, we lowered the hinge position by ¾” from the original placement.)

After you’ve installed a few screws, swing the gate back and forth to make sure it swings smoothly and doesn’t bind. If everything looks good, install the remaining screws.

Using a drill to detach the latch on the fence frame.
Marking new positioning for hinge screws with a pencil.
Using a drill to install the hinges on the fence.

Step 8: Mount gate latch

With the gate hung on its hinges, find the spot to fasten the post side of the latch to its new position. Hold the gate in a closed position and find the right spot for this second part of the latch. Mark the holes for that latch and screw it into place.

Holding the fence gate with the latch post against the latch to determine new placement.
Using a drill to re-attach the latch on the fence.

Step 9: Rig hidden latch release

Now you have a solid and sturdy reworked gate that’s really easy to open from the inside, but not the outside.

To rig up the hidden latch release, use screw eyes and a thin cord or fishing line. We suggest tying one end to a screw eye, threading it through another screw eye a few inches away, and then tying it off to the moving portion of the latch. Then, to open the gate, you can just reach the string and pull—like pulling the ‘next stop’ cord on a bus.

Attaching a screw eye between the fence and the house.
Threading a thin cord through the screw eye.
The completed fence gate with new Z-frame and hidden latch release.
Close-up on the hinge of the fence gate, moved to avoid the sheared screws from the previous hinge placement.
Close-up on the latch with a thin cord tied around it for latch release.

And that’s all there is to it! For more gate maintenance tips and tricks, check out this article on when to repair your gate and our tips for fixing a sagging gate.