To answer how do you make fence in minecraft, place four matching wooden planks and two sticks in a 3x3 crafting table: put planks in the left and right columns, sticks in the middle column, using the middle and bottom rows. This recipe gives you three fences. Any plank type works, including oak, spruce, crimson, warped, bamboo, and pale oak. ([minecraft.net](https://www.minecraft.net/pl-pl/article/block-month--fence?utm_source=openai))
How do you make fence in minecraft?
You need a crafting table because the recipe uses a 3x3 grid. Your inventory crafting grid is only 2x2, so it cannot make a standard wooden fence.
Materials required
- Four matching wooden planks
- Two sticks
- One crafting table
You can use any single plank type for one batch, but do not mix different wood types in the same recipe. The material controls the fence's appearance. For example, oak planks create oak fences, while spruce planks create spruce fences.
Crafting steps
- Open a crafting table.
- Place one plank in the left slot of the middle row and another plank in the right slot.
- Place one stick in the center slot of the middle row.
- Repeat the same arrangement across the bottom row: plank, stick, plank.
- Move the three fences from the result slot into your inventory.
The layout looks like this when described from left to right:
- Top row: empty, empty, empty
- Middle row: plank, stick, plank
- Bottom row: plank, stick, plank
One fence uses four planks and two sticks, but the result is three fence blocks. Fences stack up to 64, so craft several batches before building a large animal pen.
Fence recipe and crafting-grid layout
| Ingredient | Quantity | Where it goes |
|---|---|---|
| Matching wooden planks | 4 | Left and right slots of the middle and bottom rows |
| Sticks | 2 | Center slots of the middle and bottom rows |
| Result | 3 fences | Crafting-table output slot |
The most common mistake is reversing the materials. Planks belong on the outside and sticks belong down the middle. If you put sticks on the outside, you will not get a wooden fence.
To make the materials quickly, turn logs into planks first. One wood block produces four planks, and two planks craft into four sticks. That means two logs can provide the four planks and the two sticks needed for one fence recipe, with extra sticks left over. ([minecraft.net](https://www.minecraft.net/en-us/article/how-craft?utm_source=openai))
How to make a fence gate
A fence gate works like a door for a fenced area. It uses four sticks and two matching wooden planks and produces one gate. Use the same wood type as the surrounding fence if you want the colors to match. ([minecraft.net](https://www.minecraft.net/en-us/article/fence-gate?utm_source=openai))
| Ingredient | Quantity | Where it goes |
|---|---|---|
| Matching wooden planks | 2 | Center slots of the middle and bottom rows |
| Sticks | 4 | Left and right slots of the middle and bottom rows |
| Result | 1 fence gate | Crafting-table output slot |
The layout is stick, plank, stick across the middle row, followed by stick, plank, stick across the bottom row. The top row stays empty.
Place the gate between two fences and use the interact button to open or close it. A closed gate acts as a barrier, while an open gate lets you and mobs pass through. Fence gates can also be controlled with redstone, which makes them useful for automatic farms and entrances. ([minecraft.net](https://www.minecraft.net/en-us/article/fence-gate?utm_source=openai))
How to build fences in Minecraft
Fence blocks automatically connect to nearby compatible fences, gates, walls, and solid blocks. Start by marking the corners of your enclosure, then build one connected line between each corner.
- Choose a flat area for the pen or boundary.
- Place a fence at each corner.
- Connect the corners with more fence blocks.
- Leave a one-block opening where you want the entrance.
- Place a fence gate in the opening.
- Check the inside for raised blocks that could help animals escape.
Fences do not need a solid block underneath them, so you can place them directly on the ground or on many other supported surfaces. They are 1.5 blocks high for collision purposes, which prevents most mobs from jumping over them. You can also attach a lead to a fence post to keep a leashed animal in place. ([minecraft.fandom.com](https://minecraft.fandom.com/wiki/Fence?utm_source=openai))
For a clean animal pen, place the gate where you can see it from your base. If the pen is large, add more than one gate so you do not have to walk around the entire enclosure every time you move animals.
Can mobs get over a Minecraft fence?
A normal fence is reliable against most ordinary animals and hostile mobs, but it is not a perfect barrier for every creature.
- Spiders: Yes. Spiders can climb fences because they climb vertical surfaces, so a single fence does not keep them out.
- Rabbits: Sometimes. Rabbits, particularly babies, can escape a single fence through their jumping behavior. Use a taller enclosure or a roof if you need to contain them reliably.
- Chickens: Normally no. Chickens do not fly over a standard fence, so fences work well for chicken pens. They can still escape if another mob pushes them, if the enclosure has a gap, or if the ground outside is raised.
- Foxes: Yes. Foxes can leap over fences, especially when attacking prey. Use a roof or a taller enclosure to protect chickens and rabbits from foxes.
Fences also fail when a nearby block, stair, slab, hill, or tree gives a mob extra height. Walk around the outside of the pen and inspect every corner. A fence placed beside a raised block may be easier to cross than it appears.
A carpet on top of a fence can create a useful player-only step in many situations: you can jump onto the carpet, while most mobs still cannot use it to escape. Rabbits are an exception, so use a fully enclosed pen for rabbits. ([minecraft.wiki](https://minecraft.wiki/w/Fox?mobile-app=true&theme=wiki&utm_source=openai))
How to make an iron fence in Minecraft
There is no vanilla block called an iron fence. The iron alternative is called iron bars. They look like narrow metal fencing and work well for prison cells, windows, towers, and industrial builds.
Iron bars recipe
Use six iron ingots in a crafting table. Place three ingots across the middle row and three ingots across the bottom row. This produces 16 iron bars.
| Ingredient | Quantity | Crafting layout |
|---|---|---|
| Iron ingots | 6 | Three across the middle row and three across the bottom row |
| Result | 16 iron bars | Crafting-table output slot |
Iron bars are not interchangeable with wooden fences. They do not form the same visual connections with wooden fence gates, and they do not provide a normal openable iron fence gate. If you need a secure metal entrance, use an iron door with a button, lever, pressure plate, or another redstone control.
Java Edition and Bedrock Edition differences
The standard wooden fence recipe is the same in Java Edition and Bedrock Edition: four matching planks and two sticks arranged in the middle and bottom rows, producing three fences. The fence-gate recipe is also the same.
The main difference you notice is the control used to place and open blocks. On PC, use the normal place-block and interact controls. On a console or mobile device, use the platform's equivalent buttons. The recipe itself does not change between these editions.
Best uses for fences
Fences are useful beyond simple decoration. Their collision height keeps most mobs contained while allowing you to see through the enclosure.
- Build pens for cows, sheep, pigs, and chickens.
- Mark the edge of a base, village, garden, or path.
- Attach leads to fence posts when moving animals.
- Use different wood types to match a building's palette.
- Combine fences with gates for controlled farm entrances.
- Use fences as railings on balconies, bridges, and rooftops.
- Place fences around crops to reduce accidental trampling and improve farm organization.
For a hostile-mob barrier, fences are best used with lighting and a gate that you remember to close. They block movement but do not stop spiders from climbing, and they do not replace a full wall when you need protection from ranged attacks or flying mobs.
Common fence mistakes and faster alternatives
- Using the 2x2 inventory grid: Open a crafting table for the 3x3 recipe.
- Mixing plank types: Use four matching planks for one batch.
- Forgetting a gate: Leave one opening and place a fence gate instead of breaking a fence every time.
- Trusting one fence for rabbits or foxes: Add a roof or build a taller enclosure.
- Leaving gaps under the fence: Check uneven terrain, water channels, and corners.
- Calling iron bars an iron fence: Search your recipe book for iron bars; vanilla Minecraft does not have an iron fence item.
For the fastest early-game setup, gather two logs, convert them into planks and sticks, craft a batch of fences, and use one or more gates for access. Add torches around the enclosure and remove nearby raised blocks before bringing animals inside.