The fastest way to build a fence

To build a fence in Minecraft, place wooden planks and sticks on a crafting table in this pattern: put sticks in the middle column (all three rows), then place wooden planks on either side of the middle sticks in the top and middle rows. This gives you three fence blocks. You can then place those fence blocks on the ground by selecting them in your hotbar and right-clicking (or using your place button) on a block where you want the fence to stand.

Fences connect to each other automatically when you place them next to one another, so you don't have to do anything special to link them into a line or enclosure. They also connect to fence gates, walls, and certain other blocks, which means you can build more complex structures without gaps.

If you want to build a fence faster without crafting, you can find fence blocks in generated structures like villages, mansions, and nether fortresses, then break them with any tool and collect them.

Key Takeaways

  • Wooden fence requires six wooden planks and four sticks arranged on a crafting table in a specific pattern that produces three fence blocks at a time.
  • Fences automatically connect to adjacent fences, fence gates, walls, and some other blocks without you having to place them in a special way.
  • You can use different types of wood to craft different fence colors — oak, spruce, birch, jungle, acacia, dark oak, mangrove, and cherry all produce their own fence variants.
  • Fences are two blocks tall and have gaps you can see through, making them useful for both containment and decoration without completely blocking your view.

Crafting recipes for each wood type

Minecraft has eight different wood types, and each one produces a fence with its own color and texture. Oak fence is the most common because oak wood is easiest to find early in the game. Spruce fence has a darker, greyish tone and works well in cold biomes or next to spruce trees. Birch fence is pale and bright, good for building in birch forests or creating a lighter aesthetic.

Jungle, acacia, dark oak, mangrove, and cherry fences follow the same crafting pattern as oak but use their respective wood types. The crafting recipe never changes — only the wood type you put in the middle and side slots determines the fence color. You can mix different fence types in the same build if you want a multi-colored enclosure, since they all connect to each other.

Nether wood types (crimson and warped) also produce fences using the same recipe. These fences have a distinctly different appearance and are useful if you're building structures in the Nether or want a unique look in the Overworld.

How fence gates work with fences

A fence gate is a door-like block that opens and closes but sits on top of a fence. You craft a fence gate using the same wood type as your fence — the recipe is two sticks on the outer edges, two planks next to them, and two more sticks in the middle row. This produces one gate.

Place a fence gate on top of a fence block, and it will connect automatically. You can open and close the gate by right-clicking it, which lets animals or players through without breaking the fence. Gates are essential if you're building animal pens or want a way to enter an enclosed area without destroying blocks.

Gates also connect to walls and other fence-like blocks, so you can use them as doors in structures that mix different block types.

Building animal pens and enclosures

Fences are two blocks tall, which is tall enough to contain most animals in Minecraft — sheep, cows, pigs, and chickens cannot jump over a two-block fence. Horses and llamas can jump higher, so you need a fence that is at least three blocks tall to contain them. You build a three-block fence by stacking fence blocks on top of each other.

To create an enclosure, place fence blocks in a rectangle or square shape on the ground. Leave one space where you want the entrance, then place a fence gate there. The animals will stay inside as long as the fence is unbroken and at least two blocks high (or three for horses and llamas).

Fences also prevent mobs like zombies and skeletons from reaching you at night if you're standing on a fence block, because they cannot climb or jump onto fences the way they can onto solid blocks. This makes fences useful for creating safe platforms or defensive structures.

Decorative fence builds and designs

Beyond containment, fences work well as railings, borders, and decorative elements. You can place fences along the edge of a building to create a railing effect, or use them to outline garden beds and pathways. Because fences have gaps, they don't block your view the way solid blocks do, so they're good for structures where you want to see through while still marking a boundary.

Mixing fence types creates visual interest — for example, alternating oak and dark oak fences in a checkerboard pattern, or using fence gates as decorative posts. Fences also connect to walls, so you can combine a stone brick wall with a wooden fence for a hybrid look.

Stacking fences vertically creates tall posts or pillars. Placing fences on top of fence posts and connecting them with more fences lets you build pergolas, arbors, and overhead structures that shade areas without being completely solid.

Fences versus walls and other barriers

Walls are similar to fences but are made from stone or brick materials and are slightly shorter (1.5 blocks tall instead of 2 blocks). Walls connect to fences and each other, so you can mix them in the same build. Walls are better for a more industrial or castle-like appearance, while fences feel more rural or rustic.

Nether brick fences are a special variant that only connects to other Nether brick fences, not to wooden fences or walls. They're useful if you want a fence that stands alone without connecting to adjacent blocks.

If you need a barrier that completely blocks movement and vision, use solid blocks like wood planks or stone instead. If you want something that blocks movement but lets you see through, fences and walls are your best options.

Frequently Asked Questions

Can mobs jump over a fence?

Most mobs cannot jump over a two-block-tall fence. Horses and llamas can jump higher and will escape a two-block fence, so you need to build three blocks tall to contain them. Endermen can teleport over any fence, so fences won't stop them.

Do I need a fence gate to get in and out of an enclosure?

No — you can break a fence block to enter and replace it afterward, or you can jump over a one-block-tall fence. A gate is more convenient because you can open and close it without breaking blocks, and it looks better in most builds.

What's the difference between a fence and a wall?

Walls are made from stone or brick materials and are slightly shorter than fences. Both connect to each other and serve similar purposes, but walls fit a more industrial aesthetic while fences feel more natural. Walls are also solid on the sides, while fences have gaps.

Can I paint or dye a fence?

No — fence color is determined by the wood type you use to craft it. You cannot dye or paint fences after crafting. If you want a different color, you must craft a new fence from a different wood type.

Do fences connect to blocks other than fences and gates?

Yes — fences connect to walls, fence gates, and some solid blocks like logs and wood planks. They do not connect to glass, leaves, or most transparent blocks. Nether brick fences only connect to other Nether brick fences.