The basic steps to build a fence gate
A fence gate in Minecraft requires six wooden planks and two sticks, arranged in a specific pattern on a crafting table. Place two sticks in the middle column (one above the other), then put wooden planks in the four corners and the two middle spaces of the top and bottom rows. This creates a gate you can open and close by right-clicking it.
Once you have the gate in your inventory, place it on top of a fence block or directly on the ground next to a fence. The gate will automatically align with any fence next to it, creating a seamless opening. You can place multiple gates side by side to create wider openings, and they will all swing together if you connect them to the same fence line.
The type of wood you use determines the gate's appearance — oak, spruce, birch, jungle, acacia, dark oak, mangrove, and cherry wood all produce different-colored gates. You can mix and match wood types in the same crafting recipe, so a gate can combine planks from different trees if you want a custom look.
Key Takeaways
- A fence gate requires six wooden planks and two sticks arranged with sticks in the center column and planks in the corners and middle top and bottom rows.
- Gates must be placed on or next to a fence block to function properly and will automatically align with adjacent fences.
- You can use any wood type or mix different wood types in a single gate recipe to match your building style.
- Right-click a gate to open or close it, and animals cannot pass through a closed gate even if they can jump over regular fences.
Where to find the materials you need
Wooden planks come from chopping down any tree and placing the wood logs in your crafting grid — one log produces four planks. Sticks are made by placing two planks vertically next to each other in the crafting grid, which produces four sticks. You need only two sticks per gate, so one log gives you enough sticks for multiple gates.
If you are in Creative mode, you can grab fence gates directly from the creative inventory without crafting them. In Survival mode, you will need to harvest at least one tree to get your free guide. Oak trees are the most common and spawn in most biomes, so you can usually find one nearby without traveling far.
Placing gates on fences versus the ground
Gates work best when placed on top of a fence block, which keeps them aligned and prevents gaps. To do this, look at the top surface of a fence and right-click to place the gate there. The gate will sit on the fence and swing open and closed without any adjustment needed.
You can also place a gate directly on the ground next to a fence block, and it will still function. However, gates placed on the ground next to fences sometimes leave small gaps depending on the angle. Placing gates on top of fences is the cleaner approach and prevents mobs from squeezing through.
If you want a gate without a fence — for example, as a decorative door in a wall — you can place it on the ground alone, and it will still open and close. This is useful for creating custom entrances that do not follow a fence line.
Connecting gates to longer fence lines
When you place a gate next to an existing fence, it automatically connects and aligns with the fence direction. If your fence runs north to south, the gate will swing along that same axis. You do not need to do anything special — the connection happens automatically.
To create a wider opening, place multiple gates side by side. Each gate will connect to its neighbors and swing independently, so you can open one, some, or all of them. This is useful for creating large entrances to animal pens or creating a grand entrance to a base.
Gates also connect to fence posts, which are single-block vertical fences. You can use fence posts at the corners of your enclosure and place gates between them for a structured look.
Using gates to contain animals and mobs
A closed fence gate stops most animals from passing through, even though they can jump over a regular fence block. This makes gates essential for keeping sheep, cows, pigs, and chickens inside a pen. Open the gate to let animals in or out, then close it to contain them.
Mobs like zombies and skeletons cannot open gates on their own in Survival mode, so a closed gate is an effective barrier. However, some mobs can still pathfind around gates if there is an alternate route, so gates work best as part of a complete fence enclosure.
Villagers can open wooden doors but cannot open fence gates, so gates are a good choice if you want to keep villagers in a specific area without trapping them completely.
Decorative uses for fence gates
Fence gates work as decorative elements beyond their practical function. You can use them as railings on bridges, as part of a fence design on a roofline, or as a way to add detail to a building entrance. Placing gates at different heights and angles creates visual interest in a structure.
Mixing different wood types of gates in the same build adds color variation. For example, combining dark oak gates with spruce gates creates a striped or patterned effect on a fence line. This technique works well for large builds where you want to break up a single color.
Gates can also be placed in a closed position as a purely decorative element — they do not have to swing open. This gives you a way to add texture and depth to walls and fences without worrying about functionality.
Troubleshooting common gate problems
If a gate does not open when you right-click it, check that you placed it on or next to a fence block. Gates placed in the middle of empty space will not function. Move the gate so it connects to a fence, and it should work.
If a gate leaves a gap between itself and the fence, try placing it on top of the fence instead of next to it. Gates placed on the fence surface align more reliably than gates placed on the ground beside a fence.
If animals are escaping through a gate you thought was closed, make sure the gate is actually closed — right-click it again to confirm. Also check that there are no gaps in the fence line itself, as animals can escape through those instead of the gate.
Frequently Asked Questions
Can I use different types of wood for the planks and sticks in one gate?
Yes. The crafting recipe does not require all planks to be the same type or all sticks to be the same type. You can mix oak planks with spruce planks in the same gate, and the gate will display as a blend of both colors. This is useful for creating custom-colored gates that match your building style.
Do fence gates work in Java Edition and Bedrock Edition the same way?
The crafting recipe and basic function are the same in both versions. The main difference is that Bedrock Edition has slightly different wood types available depending on your version, but the gate mechanics work identically. Gates function the same way whether you are playing Java or Bedrock.
Can I place a gate on a wall instead of a fence?
Gates are designed to work with fences, but you can place them on the ground next to any solid block. They will not connect to walls the way they connect to fences, but they will still open and close. For a more integrated look, use a fence post next to your wall and place the gate on that.
What happens if I place a gate in water?
Gates can be placed in water and will still function normally. They open and close the same way and can be used to control water flow in certain situations, though they do not stop water from flowing through them like a door would. Gates are useful for creating decorative water features.
Can mobs open fence gates like they open wooden doors?
No. Mobs cannot open fence gates in Survival mode, even though some mobs like zombies can open wooden doors. This makes gates more reliable for containing hostile mobs. However, mobs can still pathfind around gates if there is an open route elsewhere.