You make a fence in Minecraft by crafting 6 wooden planks and 2 sticks into 3 fence blocks, then placing them in a line and adding a fence gate for entry. The recipe works in every version—Java and Bedrock—and uses the same 3-by-3 crafting grid pattern regardless of wood type. The only real decisions are which wood you pick, where you place the gate, and how you handle the one-block gap that determines whether your animals stay in or wander out.
The Exact 3-by-3 Pattern That Turns 6 Planks and 2 Sticks Into 3 Fence Blocks
The crafting recipe is fixed and has been since fences were added in the Beta 1.2 update from January 2011. Fill the top row and bottom row of the crafting grid with planks, leaving the middle row's left and right cells empty, and drop one stick into those two open side cells. The center cell stays empty.
That arrangement produces exactly 3 fence blocks. The yield is not one-per-craft like most tools—it's a batch recipe, which means a modest stack of planks goes a long way. Six planks and two sticks is cheap; a single log converts to 4 planks, so three logs plus a couple of sticks from a fourth log give you 6 fence blocks.
The pattern is identical across all wood types in modern versions. Oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, and crimson or warped stems all produce their own colored fence, and the recipe shape never changes. Mixing plank types in one craft does not work—the game requires a single wood type per craft, so a grid with three oak planks on top and three spruce on the bottom produces nothing.
If nothing appears in the output slot, the cause is almost always a misplaced stick or a plank in the center cell. Check the middle-left and middle-right cells first; those are the two spots players most often fill with planks by reflex.
Planks Per Fence Block and How Many Logs a 100-Block Perimeter Actually Costs
A single fence block consumes 2 planks and two-thirds of a stick, because 3 blocks come from 6 planks and 2 sticks. That's the number to hold in your head when planning a build, since a perimeter sounds small until you multiply it out.
Consider a 25-by-25 square enclosure, which needs 96 fence blocks for the perimeter (25 plus 25 plus 23 plus 23, since corners share). At 2 planks per block, that's 192 planks—48 logs if every log yields 4 planks, which is the standard conversion for all overworld log types. Sticks add little: 2 sticks per 3 blocks means 64 sticks for 96 blocks, and each stick comes from 2 planks, so budget roughly 42 extra planks for sticks or split logs into sticks directly.
That math surprises people. A "small" 25-by-25 pen quietly eats most of a double chest of logs. Scale down or accept the cost—there's no cheaper fence variant in vanilla Minecraft, though fences do connect to most solid blocks, so you can cut the count by anchoring runs against natural terrain, cliff faces, or existing walls.
Pre-planning pays off here. Count the perimeter blocks before you log, convert to planks, and gather 10 percent extra for mistakes and gate placement.
Every Wood Type Side by Side, Including the Nether Variant That Won't Burn Down
Fence color is purely cosmetic—all wooden fences share the same stats—but the variant you pick matters for build cohesion and, in one case, fire safety. Here's how they line up.
| Fence Type | Planks Needed per 3 Blocks | Source Log | Burns? | Best Fit |
|---|---|---|---|---|
| Oak | 6 | Oak log | Yes | Neutral builds, starter bases |
| Spruce | 6 | Spruce log | Yes | Cold biomes, dark rustic fences |
| Birch | 6 | Birch log | Yes | Light, modern builds |
| Jungle | 6 | Jungle log | Yes | Tropical and village builds |
| Acacia | 6 | Acacia log | Yes | Savanna, orange-toned themes |
| Dark Oak | 6 | Dark oak log | Yes | Gothic, fortified looks |
| Mangrove | 6 | Mangrove log | Yes | Swamp builds, reddish tone |
| Cherry | 6 | Cherry log | Yes | Pastel and garden builds |
| Crimson | 6 | Crimson stem | No | Nether bases, fireproof pens |
| Warped | 6 | Warped stem | No | Nether bases, blue-toned pens |
Crimson and warped fences come from Nether stems and do not burn, which makes them the only wooden fence safe near lava or open flame. That's a genuine edge case: players building a pen beside a lava pool or a campfire often default to oak and watch it ignite during a fire tick.
For most overworld builds, pick the wood that matches your walls. Density of building doesn't change—every type costs the same 6 planks per 3 blocks.
Placement Rules: Why Fences Auto-Connect but Gates Don't Face the Way You Expect
Fences connect automatically to adjacent fences, fence gates, and most solid blocks, forming a continuous barrier without any extra input. Drop a fence beside another fence and they visually join and, critically, become impassable. That auto-connect is why fences are so cheap to build in practice—no orientation fuss.
The exceptions matter. Fences do not connect to other fence types from a different wood family in older versions, and they won't connect across a one-block gap. A one-block gap between two fence posts is a real hole that most mobs, including chickens and rabbits, can slip through. If you want a visual gap that still blocks passage, use a fence gate in that single block or a solid block like a stone wall.
Fence gates need a surface to attach to and orient based on the player's facing when placed. Break and replace a misaligned gate rather than fighting it—placement direction follows your view, so stand square to the run before clicking. Gates open with a right-click (or the interact button on Bedrock mobile) and by redstone signal, which makes them the standard entrance for pens.
One quirk worth knowing: a fence block placed in water still connects to nearby fences but doesn't create a full water barrier, and mobs can path around submerged fence sections in some farm setups. Confirm behavior in your specific version if you're fencing a water pen.
Building a Straight Run Without Running Out: Place, Then Gate, Then Check
This sequence keeps you from finishing three sides and discovering you're short on blocks or missing a gate.
1: Gather logs and convert them: 6 planks plus 2 sticks makes 3 fence blocks. Craft in batches until you hit your target count plus 10 percent. 2: Lay out the perimeter with temporary blocks or torches first, marking corners and the intended gate position—this catches sizing mistakes before you place a single fence. 3: Place fences along each run from one corner to the next, letting auto-connect do the joining. 4: Break one fence block at the entrance, place a fence gate in that slot, and test it by walking through while holding animals nearby. 5: Push animals inside, close the gate, and run the perimeter once, checking every block for gaps and every corner for a stray one-block opening.
If a gate won't attach, the surrounding block may be air or an incompatible block—place a solid block on both sides of the intended gate slot. If animals escape despite a closed loop, look for a one-block gap at a terrain corner where a fence terminated against a slope. Fill that gap with a solid block, not another fence that may not connect cleanly.
Gates, Fence Gates vs. Doors, and the One Decision That Changes Escape Behavior
A fence gate is the only correct entry point for an animal pen. Regular wooden doors placed in a fence line won't connect to the fence blocks the same way, leaving awkward seams, and doors are designed for flat wall openings anyway. Gates connect flush to fences on both sides.
Gates have a height limit for jumping mobs: most passive animals can't clear a closed gate, but players can jump over a fence gate (not a full double fence stack) with a running jump, which matters if you're fending off escape attempts from your own farm. Some hostile mobs can path around gates if the pen perimeter has gaps—the gate itself isn't the weak point; the seam where a fence meets an unconnected block is.
Redstone is where gates earn their keep. A lever or pressure plate wired to a gate lets you open a pen entrance from a distance or automatically. For larger farms, a redstone line running to multiple gates lets one switch open the whole complex. Doors can do this too, but gates match fence aesthetics and are the conventional build.
The decision that changes escape behavior most: fence height. A single fence block is 1.5 blocks tall, and most mobs including players can't jump it, but spiders can climb fences in Java Edition unless you cap the top with a solid block or a row of carpet. Cap the fence with a solid block if spiders are a nuisance.
Mobs That Ignore Your Fence and the Terrain Gaps That Defeat a Perfect Perimeter
Fences block most grazing animals, villagers, and hostile mobs effectively, but a handful of exceptions catch players off guard. Spiders climb vertical surfaces in Java Edition, so a fence alone doesn't stop them—adding a solid block or carpet along the top row closes that route. Endermen can teleport past the perimeter entirely.
Chickens and rabbits fit through single-block gaps, which is why perimeter checks matter more than fence height for those animals. Adult villagers can't cross a fence, but baby villagers can pass through one-block gaps the same way chickens do.
Terrain is the silent failure case. A fence run that ends against a one-block-high dirt slope leaves a step the mob can climb and hop over the fence from. The fix is anchoring fence runs into solid ground and capping endpoints with a full block. Check every corner where the fence meets natural terrain—that's where escapes happen.
If you're fencing near lava or a campfire, remember most wooden fences burn. Crimson and warped fences from the Nether resist fire, so use them for pens near heat sources. Otherwise keep flame away from your fence line.
Repairing and Extending an Existing Fence Without Breaking the Run
Extending a fence is simple: place new fence blocks against the end of the existing run and they auto-connect. No special tool is needed—any fence block works, but matching wood type keeps the visual continuous.
Repairing a broken section means replacing the missing block, and if the gap is more than one block, you'll need enough fence blocks to refill it. Because fences are cheap (2 planks per block), it's sensible to craft a small reserve before big builds—about 10 percent of your perimeter estimate—so repairs don't stall on a crafting trip.
If a fence gate breaks and won't reattach, check the block directly below and beside it; gates need a supporting block to orient properly in some placement contexts. Replace the underlying block, then re-place the gate.
There's no in-game repair mechanic—fences don't have durability, so "repair" here always means re-placing a broken block. That's a strength: fences last indefinitely until broken by a player.
Choosing Between Fence, Wall, and Fence Gate for Function vs. Looks
Fences and cobblestone walls both block movement, but they differ in cost and appearance. A cobblestone wall needs 6 cobblestone for 6 wall blocks—double the yield of a wooden fence per material, since 6 planks makes only 3 fence blocks. Walls also don't burn and look heavier.
| Option | Input per 6 Blocks | Blocks | Burns? | Typical Use |
|---|---|---|---|---|
| Wooden fence | 12 planks + 4 sticks | 6 | Most yes; crimson/warped no | Animal pens, gardens, light barriers |
| Cobblestone wall | 6 cobblestone | 6 | No | Fortified looks, fire-proof barriers |
| Fence gate | 4 planks + 2 sticks | 1 | Follows wood type | Pen entrances |
For animal pens where appearance matters, wood wins. For fire-adjacent or heavy-duty barriers where material economy is tight, cobblestone walls are more efficient per block and won't burn—but they're taller visually and don't match wood builds. A common hybrid: wooden fence perimeter with cobblestone anchoring the corners and the fire-risky side.
Fence gates are for entrances only; don't try to substitute a gate for a fence run, since gates are single blocks and need fencing on both sides to form a barrier.
Why Fences Matter More Than You'd Expect in Survival Progression
A fence is one of the cheapest structures that changes your survival experience the most. An enclosed pen lets you keep animals as a renewable food source—breed them, then harvest without chasing. It keeps hostile mobs out of your base perimeter at night. It protects crops from trampling by wandering animals.
The economic case is real: a 100-block perimeter costs about 200 planks (roughly 50 logs), which is a few minutes of tree-farming with an axe. That investment converts an exposed, mob-dangerous area into a controlled one. Players who skip fencing often lose animals to wandering, wake up to creepers inside their walls, or spend nights fighting mobs in the open.
Fences also define your base visually and mentally. A fence line marks where safety begins, and in a survival world that boundary is the difference between a camp and a base.
The upgrade path is straightforward: starter oak fence around a small pen, expand to a larger perimeter with matched wood, add a redstone-gated entrance as your farm grows, and switch to crimson or warped near any heat source. Each step uses the same core recipe.
FAQ
Can you make a fence without sticks?
No—sticks are mandatory in the recipe, and there's no alternative recipe in vanilla Minecraft. You craft sticks from 2 planks placed vertically in any crafting grid, so 2 planks yield 4 sticks, enough for 6 fence blocks. Substituting a plank where a stick belongs in the fence pattern produces no output in the crafting result slot.
Why is my fence not connecting to the block next to it?
Fences auto-connect to other fences and to most full solid blocks, but they won't connect to certain partial or non-solid blocks, and they never bridge a one-block air gap. If a fence looks disconnected, place a full solid block adjacent to it—dirt, stone, or a solid wall segment will anchor the connection where a slab, stairs, or another partial block may not.
Can mobs jump over a fence?
Most mobs cannot clear a single fence block, which is 1.5 blocks tall—players can't jump it without a boost either. Spiders are the notable exception in Java Edition because they climb walls, so cap the top of the fence with a solid block or carpet where spiders are a problem. Chickens and baby villagers slip through one-block horizontal gaps rather than over the top.
What is the cheapest fence in Minecraft?
By material, cobblestone walls produce 6 wall blocks from 6 cobblestone, double the yield of a wooden fence's 3 blocks from 6 planks, so cobblestone is more efficient per block gathered if you have a stone supply. For wood, all fence types cost the same 6 planks per 3 blocks. The cheapest overall depends on what you're already farming—loggers pay less in time with wood.
Do fence gates open automatically for animals?
No—fence gates open only when a player interacts with them or a redstone signal triggers them. Animals can't open or push through a closed gate. An open gate stays open until closed manually or by redstone, so if animals are wandering out, check that no gate is left open or wired to a constantly active signal.
Can you put a fence gate without fences on both sides?
Yes—a gate can be placed as a standalone block, but a lone gate doesn't form a complete barrier and mobs can path around it. Gates function as entrances within a fence run; place fences on both sides and they connect flush. A gate placed in open ground opens and closes but encloses nothing.
Does a fence stop a creeper from getting to your base?
A well-formed fence perimeter stops creepers from walking in, since they path around obstacles and can't cross a fence. The risk is gaps and terrain steps—a creeper that finds a one-block opening or a slope it can climb will get through. Cap the perimeter's endpoints and check corners against terrain to close those routes.
Do fences work underwater?
Fences can be placed underwater and still connect to adjacent fences and solid blocks, but they don't reliably block water flow or mob movement in submerged setups the way they do on land. If you're fencing a water pen, test the specific build in your version—behavior around waterlogging and mob pathing varies between Java and Bedrock editions.