You can build a working gate in Minecraft in about 2 minutes: place two fence posts, attach a fence gate between them, and right-click to open it. The cost is a handful of wood planks and sticks, and the difficulty is beginner level. For a wider or automatic gate, the method changes slightly, so pick the version that matches what you are building.

What a Gate Needs Before You Place a Block

A gate in Minecraft is not a single block you craft and drop. It is a fence gate block placed between two solid supports, usually fence posts. Before you start, gather the materials and check the ground.

  • Wood planks: 4 planks and 2 sticks make 1 fence gate. A typical gate needs 1 fence gate, 2 fence posts (6 sticks and 4 planks total for the posts), and 2 more planks if you want a path block under it.
  • A flat 3-block-wide space. Fence gates connect only to solid blocks or fence posts on both sides. A gate with one side open will not open and close correctly.
  • Light. Hostile mobs spawn in dark areas, so place a torch within 7 blocks of the gate if you are building at night or underground.
  • A shovel if the ground is grass or dirt. Gates sit flush on a flat surface; a one-block step under the gate stops animals from walking through.

Fence gates open only for players and most mobs can be blocked by them, but they do not stop spiders from climbing over or endermen from teleporting past. If you need a gate that keeps out everything, a full fence line with a double gate is the better build.

Fast Way: A Two-Post Fence Gate in Under 2 Minutes

This is the standard gate for a pen, farm or garden path. It uses one fence gate block and two fence posts.

  1. Craft 2 fence posts: place 4 sticks and 2 wood planks in a 3x3 crafting grid so the planks sit in the middle column and the sticks fill the outer columns. This yields 3 fence posts, enough for one gate plus a spare.
  2. Craft 1 fence gate: place 4 planks in a 2x2 square and 2 sticks in the middle column below them. This yields 1 fence gate.
  3. Dig out a 3-block-long strip of grass or dirt and replace it with a solid block, such as cobblestone or planks, so the gate has a flat base.
  4. Place a fence post on the left block and a fence post on the right block, leaving the middle block empty.
  5. Place the fence gate in the middle block. It should snap to both posts and face the direction you are standing.
  6. Right-click the gate to open it. It swings open and stays open until you right-click again or walk through it.

If the gate will not place, the middle block is probably not adjacent to both posts, or one post is actually a wall block. Break the block and replace it with a fence post.

Wide Gate: A Double Gate for Carts and Horses

A single fence gate is 1 block wide, which is too narrow for a horse or a minecart track. A double gate uses two fence gates side by side and opens both at once.

  1. Clear a 4-block-wide strip and place fence posts at both ends, leaving 2 empty blocks in the middle.
  2. Place one fence gate in each of the two middle blocks. They should connect to each other and to the posts.
  3. Right-click each gate to open it. For a horse, lead the animal through while both gates are open, then close them behind you.
  4. If you want the gates to open together, run redstone dust under the ground from one gate to the other and power both with a lever. A lever placed on a block next to the gate powers it directly.

A double gate costs 2 fence gates and 2 fence posts, or 8 planks and 4 sticks for the gates plus 4 planks and 6 sticks for the posts. Build it wherever a single gate feels tight, such as a stable entrance or a path wide enough for a boat.

Automatic Gate With Redstone: Pistons, Pressure Plates and Buttons

An automatic gate opens when you step on a pressure plate or press a button. The simplest version uses two fence gates and a redstone line.

  1. Build the double gate as above, with two fence gates between two fence posts.
  2. Dig a trench 1 block deep and 1 block wide behind the gate, running the full width of the opening.
  3. Place redstone dust in the trench so it connects to a block under each gate. Redstone dust powers a fence gate through the block beneath it.
  4. Place a pressure plate on the ground on each side of the gate, connected by redstone dust to the trench. Wooden pressure plates trigger for players and mobs; stone pressure plates trigger only for players and mobs, not items.
  5. Step on the plate. Both gates should swing open. Step off and they close after about 1 second.

For a gate that stays open longer, use a lever instead of a pressure plate. A lever stays on until you flip it back, which is useful for moving animals through in a group. Redstone repeaters can extend the signal up to 15 blocks per repeater, so a gate at the end of a long path still opens from the house.

Redstone dust does not power through solid blocks, so keep the trench open or cover it with a slab. A covered trench still works if the slab is on the lower half of the block.

Which Gate Fits Your Build

Use the two-post fence gate for a garden, crop farm or animal pen where one player walks through at a time. Use the double gate for stables, cart tracks and paths wide enough for two players. Use the redstone gate where you want to keep animals in without stopping to right-click, such as an automatic chicken farm or a villager breeder.

A fence gate also works as a door in a fence line around a base. It is cheaper than an iron door and does not need a button, but it does not block line of sight and it does not stop skeletons from shooting through the open gap. Place a solid block or a wall behind the gate if you need cover.

Gate Mistakes That Cost You Materials

Most failed gates come from one of four problems. Check these before you craft more blocks.

  • Gate placed on one post only. A fence gate needs a solid block or fence post on both sides. With one side open, it will not open or close and you waste a gate block.
  • Gate placed on a slope. Gates need a flat base. A gate on a hill sits at an angle and mobs can walk under it. Flatten the ground first.
  • Redstone dust on top of the gate. Redstone dust cannot be placed on a fence gate. Run the dust under the gate or beside it on a solid block.
  • Pressure plate too far from the gate. A pressure plate powers redstone dust up to 15 blocks away, but each block of dust reduces the signal. Keep the plate within 15 blocks of the gate or add a repeater.

If a gate opens but will not close, a lever or button nearby is still powered. Flip it off or break the redstone line. If animals walk through a closed gate, check that the gate is actually a fence gate and not a fence post with a gap beside it.

Gate Materials, Colors and Repairs

Fence gates come in every wood type: oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, bamboo and crimson or warped if you are in the Nether. The wood type changes only the color, not the strength or the way it opens. Use the same wood as your fence so the gate blends in.

A fence gate has a blast resistance of 3, which is low. Creepers can destroy it, so place a torch or a light source nearby to stop mobs from spawning against it. If a gate breaks, you get the gate block back and can place it again; you do not need to craft a new one unless it was destroyed by an explosion.

For a gate that matches a stone wall, use a fence gate made of the same wood as the fence and place cobblestone or stone bricks on either side. The gate will still connect to the solid blocks, and the color contrast reads as a deliberate entrance rather than a gap.