Gates require wooden or metal materials and a fence kit, placed on flat ground next to an existing fence section
A gate in DayZ is a doorway you build into your base's perimeter fence. Unlike a wall section, a gate swings open and closed, letting you move in and out without dismantling the fence each time. You construct it the same way you build any other base structure: gather the right materials, find a fence section already in place, and use the construction menu to attach the gate to it.
Gates come in two types — wooden and metal — and the type you build depends on what materials you have and what your base already uses. A wooden gate takes less time to build but breaks down faster. A metal gate is more durable but requires metal materials that are harder to find.
Key Takeaways
- Wooden gates need one wooden fence kit, four wooden planks, and four nails; metal gates need one metal fence kit, four metal sheets, and four metal hinges.
- You must place a gate next to an existing fence section on flat, level ground — gates cannot stand alone.
- Use the construction menu (default key varies by server settings) to attach the gate to the fence, and the build will begin immediately if you have all materials in your inventory.
- Wooden gates take about 10 minutes to build; metal gates take roughly 20 minutes, and you must stay nearby or the build will pause.
- Gates can be locked with a code lock or combination lock, but the lock must be attached after the gate is fully built.
What materials you need for each gate type
A wooden gate requires one wooden fence kit, four wooden planks, four nails, and a hammer. The wooden fence kit is the core component — you cannot substitute it with individual pieces. Wooden planks drop from wooden crates, barrels, and houses you dismantle. Nails come from the same sources or from tool boxes and industrial areas.
A metal gate requires one metal fence kit, four metal sheets, four metal hinges, and a hammer. Metal fence kits are rarer than wooden ones and usually appear in military or industrial locations like the NWAF or Tisy. Metal sheets come from car wrecks, industrial buildings, and dismantled metal structures. Metal hinges are the hardest piece to find — check military barracks, hangars, and crashed helicopters.
Both gate types need a hammer in your hands or in your inventory to build. If you do not have a hammer, the construction menu will not appear. You do not consume the hammer during the build — you just need it present.
Finding the right location and preparing the ground
A gate must attach to an existing fence section. You cannot place a gate in open ground or as a standalone structure. Walk up to a fence you have already built, and the construction menu will only show the gate option if you are standing in the correct spot — usually directly in front of the fence section, at a distance where your character can reach it.
The ground must be flat and level. If the terrain slopes or has rocks, the gate will not snap into place. Use a shovel to level the ground around your fence before you attempt to build. Uneven ground is the most common reason a gate placement fails, and you will waste time gathering materials only to find out the spot does not work.
Stand facing the fence section where you want the gate. Open your inventory, make sure you have the hammer equipped or accessible, and look for the construction menu prompt. On most servers, this appears as a radial menu or a list of options. Select "Build Gate" or the equivalent option for your server.
Building the gate and what to expect during construction
Once you select the gate option and confirm you have all materials, the build begins immediately. A wooden gate takes approximately 10 minutes to complete. A metal gate takes approximately 20 minutes. During this time, a progress bar appears on your screen, and you must remain within a certain distance of the gate — usually about 30 meters — or the build will pause.
If you move too far away, log out, or die during construction, the progress resets to zero and you must start over. The materials stay in your inventory, so you do not lose them, but you waste the time already spent. Some servers have mods that allow you to pause and resume builds, but vanilla DayZ does not.
Other players can see the gate being built and can destroy it before it finishes if your base is not protected. If you are building on a PvP server, build gates when other players are offline or when you have teammates nearby to defend the structure.
Attaching a lock to your finished gate
Once the gate is fully built, it swings freely and anyone can open it. To lock it, you need a code lock or a combination lock. These are separate items that you craft or find and then attach to the gate after construction is complete.
A code lock lets you set a numeric code that you and your teammates enter to open the gate. A combination lock works the same way but uses a dial instead of a keypad. Both take a few seconds to attach. Stand in front of the gate, open your inventory, select the lock, and choose "Attach to Gate" or the equivalent option.
Once attached, the lock is permanent until you remove it with a hacksaw or bolt cutters. If you forget the code, you cannot open the gate without destroying it, so write down or remember the code before you close the gate for the first time.
Repairing and maintaining your gate over time
Wooden gates degrade faster than metal gates. A wooden gate in regular use lasts roughly 7 to 14 days before it becomes damaged and unusable. Metal gates last significantly longer, often 30 days or more depending on server settings and how much damage they take from weather and player attacks.
To repair a gate, you use the same materials you used to build it. Stand in front of the damaged gate, open the construction menu, and select "Repair Gate." You will need the hammer and the appropriate materials — wooden planks and nails for a wooden gate, metal sheets and hinges for a metal gate. The repair takes a few minutes and must be done while you remain nearby.
Check your gates regularly, especially after server restarts or wipes. Damaged gates can be destroyed by other players more easily, and a broken gate defeats the purpose of having a base perimeter.
Common problems and how to fix them
The most common issue is uneven ground. If the gate will not snap into place, use a shovel to flatten the area around the fence. Dig out high spots and fill in low spots until the ground is level. This usually takes 5 to 10 minutes but saves you from wasting materials on a failed build.
Another frequent problem is missing materials. Double-check your inventory before you start the build. If you have four nails but need five, the build will not start, and the menu will not tell you which item is missing — you have to count manually. Organize your inventory and lay out all materials on the ground in front of you so you can see exactly what you have.
If the build starts but then stops and resets, you moved too far from the gate. Stay within 30 meters and do not log out. If you must leave, wait until the gate is finished or accept that you will lose the time spent so far.
Frequently Asked Questions
Can I build a gate without a fence section already in place?
No. A gate must attach to an existing fence section. Build at least one fence wall first, then attach the gate to it. You cannot place a gate in open ground or as a standalone structure.
What happens if someone destroys my gate while I am building it?
The build stops immediately and all your materials drop on the ground. You do not lose them, but you must gather them again and start the build over. On PvP servers, build when you have teammates nearby or when other players are offline.
How do I remove a gate I no longer want?
Use a hacksaw or bolt cutters to destroy it. The gate will drop some of the materials used to build it, but not all. You recover roughly 50 to 75 percent of what you put in, depending on the gate's condition.
Can I change the code on my lock after I attach it?
No. Once a code lock or combination lock is attached, the code is permanent. If you want a different code, you must remove the lock with a hacksaw or bolt cutters and attach a new one.
Do metal gates take longer to build than wooden gates?
Yes. A wooden gate takes about 10 minutes to build, while a metal gate takes about 20 minutes. Metal gates are more durable but require more time and rarer materials.