Guide

How to Make a Fence in Minecraft: Recipe, Gates and Uses

Your cows wander off. Rabbits trample your wheat. A zombie walks straight into your yard at night. Almost every early problem in Minecraft has the same cheap fix: a fence. It costs a handful of planks and sticks, and it works in every version of the game.

This guide shows how to make a fence in Minecraft, how to craft a fence gate, which fence types you can build, and how to use them. You will also find simple layouts for an animal pen and a garden, plus a few mistakes to avoid.

Minecraft crafting table showing the fence gate recipe with sticks and oak planks.

Minecraft Fence at a Glance

DetailAnswer
Wooden fence recipe4 planks + 2 sticks
Result3 fences
Fence gate recipe2 planks + 4 sticks
Result1 fence gate
Nether brick fence4 nether brick blocks + 2 nether bricks, makes 6
Height for movement1.5 blocks, so players and mobs cannot jump over
Needs a crafting table?Yes, a 3 x 3 grid
SummaryGuide sections

What Is a Fence in Minecraft?

A fence is a thin block that looks short but acts tall. Although it looks one block high, its collision box is 1.5 blocks tall. That means you, animals, and most mobs cannot jump over a single fence.

Fences also connect on their own. Place a row, and each piece links to the next one, to walls, to fence gates, and to solid blocks next to it. That makes them great for borders, farms, bridges, and decoration.

What You Need to Make a Fence

You need two things: planks and sticks. Planks come from logs, and sticks come from planks. Put one log in your inventory grid to get four planks. Put two planks one above the other to get four sticks.

For one fence recipe, you need four planks of the same wood type plus two sticks. Mixed wood types will not work in the same recipe. You also need a crafting table, because the fence uses a 3 x 3 grid.

How to Make a Fence in Minecraft

Chop a tree and turn the logs into planks.

  1. Turn two planks into four sticks.
  2. Open a crafting table.
  3. Put planks in the left and right slots of the top row and the bottom row.
  4. Put one stick in the center slot of the top row, and one in the center slot of the bottom row.
  5. Take your three fences from the result slot.
  6. The pattern looks like this. P means plank and S means stick.
Command
P S P
P S P

The recipe works in the top two rows or the bottom two rows, as long as the shape stays the same.

How Many Fences Can You Make From One Log?

One log gives four planks. A fence recipe needs four planks and two sticks, and sticks come in fours from two planks. So one log is not enough, and two logs only give you one recipe (three fences) with a few leftovers. Three logs are a better target: they give twelve planks, which covers four sticks and two fence recipes, so you get six fences. As a rule of thumb, plan on one log for every two fences and gather a few extra.

How to Make a Fence Gate

A fence gate lets you walk through your fence. The recipe is the reverse of the fence: two planks and four sticks makes one gate.

Command
S P S
S P S

Place a stick on the left and right of both rows, and a plank in the center of both rows. Right-click or tap the gate to open or close it. When you place a gate, it faces toward you, and it joins the fences next to it. You can use a gate made from a different wood than the fences, and they will still connect.

Nether brick fences do not have a matching gate in the usual game recipes, so use a wooden gate with them.

Fence Types in Minecraft

Each wood type has its own fence and gate, and each one looks different.

FenceMade fromLook
OakOak planksClassic warm brown
SpruceSpruce planksDark brown
BirchBirch planksPale and clean
JungleJungle planksReddish brown
AcaciaAcacia planksOrange
Dark oakDark oak planksVery dark brown
MangroveMangrove planksDeep red
CherryCherry planksSoft pink
BambooBamboo planksLight yellow-green
CrimsonCrimson planksRed, Nether wood
WarpedWarped planksBlue-green, Nether wood
Pale oakPale oak planksGrey-white, newer versions

Some versions add more wood types over time, so you may see even more options in your game.

Nether Brick Fence

The nether brick fence is darker and stronger-looking, and fire does not burn it. Craft it with four nether brick blocks and two nether bricks, and you get six fences. It only connects to other nether brick fences, not to wooden ones, so keep each type in its own row. It is a good choice near a Nether portal.

What to Use a Fence For

Animal Pens

A fence keeps cows, sheep, pigs, and chickens in one place. Build a square or a rectangle, and make it bigger than you think you need, because baby animals need space too. Leave one opening for a gate.

Farms and Gardens

Mobs and players that jump on farmland turn it into dirt and ruin your crops. A fence around the plot stops that. Add a gate on one side so you can walk in and out. If you plan to start farming, our how to farm in Minecraft guide shows the full setup.

Base Defense

A fence slows down zombies and keeps them from wandering into your yard. It will not stop skeletons that shoot, spiders that climb, or creepers that explode, so treat it as a first layer and not a full wall.

Decoration

Fences work as railings, lamp posts, bridges, and tables. Put a pressure plate or a slab on top of a fence post, and you have a side table. Place a torch on top of a fence post for a simple lamp.

Leads

You can tie a lead to a fence post, which holds a horse or another leashed animal in place.

Simple Fence Layouts You Can Copy

A Basic Animal Pen

Build a square about eight by eight blocks. Place fence blocks along all four sides, and replace one block on a side with a gate. Put a torch or two inside so mobs do not spawn in the pen at night.

A Safer Pen With a Double Gate

Build a small box of fence around your gate, with a second gate inside it. You walk through the first gate, close it, and then open the second. That way an animal cannot slip out when you enter.

A Garden Fence

Fence the whole plot, and leave a gate on the side you walk in from. Water and crops stay inside, and your farmland stays safe from trampling.

Common Fence Mistakes

The Recipe Does Not Work

Check that you are using planks and not logs, and that the sticks are in the center column. Make sure all four planks are the same type.

Animals Escape

Look for a gap at the corners or next to a gate. Also check that the fence stands on solid ground. A fence on a slab or a half block can leave a gap.

Mobs Get Over the Fence

A single fence stops jumping, but a mob can still climb or break it in some cases. Add a second layer or a roof if you worry about spiders.

The Fence Will Not Connect

A fence connects to solid blocks and other fences. Glass and some other blocks will not connect. Place a solid block, or a different support, and try again.

Frequently Asked Questions

How do you make a fence in Minecraft?

Put four planks and two sticks in a crafting table, with planks on the left and right and sticks in the center. You get three fences.

How do you make a fence gate?

Put two planks and four sticks in a crafting table. Sticks go on the sides, and planks go in the center. You get one gate.

Why can't I jump over a fence?

A fence has a collision box that is 1.5 blocks tall. You can only jump about one block, so you cannot get over it.

Can I make a fence out of any wood?

Yes. Each wood type has its own fence, including oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, and bamboo. Nether wood works too.

How do I make a nether brick fence?

Use four nether brick blocks and two nether bricks in a crafting table. It makes six fences.

Can zombies break a fence?

Zombies cannot jump over a fence. They can break doors in some difficulty settings, but a fence blocks them from walking through.

Does a fence keep spiders out?

No. Spiders can climb, so add a roof or an overhang if you want to block them.

Conclusion

To make a fence in Minecraft, put four planks of the same type and two sticks in a crafting table to get three fences, and add a gate made from two planks and four sticks. Use fences to hold animals, protect crops, and add style to your base.

If you are new to the game, read how to play Minecraft for the full survival plan, and see how to farm in Minecraft to put your new fence to work.