How to Build a Minecraft Barn with Animal Pens
JavaBedrockMost Minecraft barns are a red box with a normal roof. Ours has the real barn roof, the one that bends halfway down, plus a hayloft, four animal pens, a silo and a paddock. Every layer and block is below, and so is the farming side: pen sizes, breeding food, and stopping escapes and mob spawns.
Updated · 12 min read · Java & Bedrock up to 26.3

A Minecraft barn that looks like a barn
Search "minecraft barn" and half of what comes back is a long red shed under a plain triangle roof. That isn't the barn anyone pictures. The one you picture has a roof that's steep at the bottom and flatter at the top, a big door in the gable, a loft door over it, and a silo next to it.
That's what we built: red mangrove walls with white trim, a dark oak gambrel roof, four pens off a centre aisle, a hayloft and a stone silo with a green copper dome. Animals not included.
- Size: the barn is 17 by 23 blocks of wall (19 by 25 with the roof overhang). With the silo and the paddock the whole thing covers 39 by 27, and it's 26 layers tall to the tip of the lightning rod.
- Blocks: 3,484 items. The grass, the path and the paddock tree aren't counted.
- Main materials: dark oak for the roof, mangrove planks for the walls, spruce for floors and fences, white concrete for the trim, stone bricks for the silo.
- Difficulty and time: medium. Only the roof needs care. Two or three long sessions once the wood is chopped, and the chopping is the real grind.
The design: why the gambrel roof matters
A gambrel is a roof with two slopes per side: the bottom one is almost a wall, the top one is gentle. It gives a huge loft without a silly tall roof. Ours has 13 blocks of headroom in the middle.
Our first try was 2 up, 1 in, then 45°. From the front it looked like a fat triangle. So we made the bottom slope 3 up for every 1 in, and the outline snapped into that barn shape you know from a mile away. If you change one thing, don't change that.
The other trick is the white edge. On the overhang row at each gable end we put white concrete under the stairs instead of dark planks, so from the front a white line traces the bend, like a real barn's trim boards.
Layer by layer and the material list
Layer 0 is the barn floor and the ground around it. The loft floor is layer 6. Step through it here, and spin the 3D view when the roof gets confusing.
Loading…
| Block | Count | What it's for |
|---|---|---|
| Dark oak planks | 589 | Roof body, ridge, cupola and hay hood |
| Mangrove planks | 525 | The red walls and gables |
| Dark oak stairs | 480 | Roof steps, cupola roof |
| Spruce planks | 439 | Loft floor, tack room and chicken pen floors |
| Stone bricks | 322 | Silo walls, aisle floor |
| White concrete | 312 | Corner posts, window frames, door leaves, gable outline |
| Hay bales | 175 | Loft stacks, feeders, chicken nests, silo |
| Spruce fences | 97 | Pens, paddock, stairwell rail |
| Cobblestone | 95 | Plinth under the walls and the silo |
| Polished andesite | 80 | The hoops round the silo |
| Coarse dirt | 78 | Cow and pig pen floors |
| Copper | 68 | 36 oxidized cut copper stairs, 31 blocks and 1 slab for the dome |
| Small stuff | 43 dark oak slabs, 42 grass blocks, 39 glass panes, 17 lanterns, 14 chains, 11 spruce trapdoors, 10 mossy stone bricks, 10 spruce fence gates, 8 barrels, 6 mud, 6 spruce stairs, 4 chests, 4 dark oak logs, 3 cauldrons, 3 composters, a crafting table, a spruce door and a lightning rod |
The roof alone is around 340 dark oak logs once you count the stairs, over five stacks. The walls take about 130 mangrove logs and the spruce comes to roughly 175. The white concrete is 39 crafts of powder: 156 sand, 156 gravel and 39 white dye.
Those 175 hay bales are 1,575 wheat. Most are loft decoration. Build the barn, start the wheat farm, fill the loft later.
Floors, plinth and the pens
Mark out 17 by 23 and lay a ring of cobblestone on layer 0 for the walls to stand on. A stone brick aisle, 3 wide, runs down the middle. Two pens sit either side of it, and the back five rows are the tack room.

Each pen is 5 by 7 inside, fenced with spruce on layer 1, with a gate onto the aisle. Cows and pigs stand on coarse dirt, which grass can't spread onto. The pigs get a few mud blocks too: pour a water bottle on dirt. Chickens get spruce planks and three hay bale nests.
The sheep pen floor is grass, and it has a job: sheep regrow wool by eating grass. Put them on planks and you shear them once. Use Silk Touch, or lay dirt next to a grass block and let it creep across under the lantern.
The tack room has a crafting table, two chests for leads, shears and buckets, barrels and a composter. Spruce stairs climb the back wall from the aisle to the loft, with the loft floor left open above them.
Red walls and white trim
Walls go from layer 1 to layer 7 in mangrove planks, white concrete at the corners. On the long walls, white posts stand one block proud at both ends and where the pens divide, so the sides aren't a flat red sheet.
Each pen gets one window: three glass panes wide and two high on layers 3 and 4, framed all round in white. On both gables there's a white band at the loft floor line, layer 6.
The front is the money shot. The doorway is 3 wide and 4 tall in a white frame, with three spruce fence gates across the bottom. Animals can't open gates and neither can zombies. Either side, one block proud of the wall, the two sliding doors sit pushed open: red, with white rails and a white V brace, hanging from a dark oak slab rail.
A second gated doorway, 2 wide, leads from the tack room into the paddock on the east side. On the west a spruce door goes through a short link into the silo.
Building the gambrel roof
The ridge runs north to south, so both gables face the ends and the bend shows from the front. Work one side at a time, the full length of the barn plus one block of overhang at each end, then mirror it.
- The eave. A row of dark oak stairs one block outside the wall, on layer 7, tall side towards the barn.
- The steep part. On top of the wall: dark oak planks on layers 8 and 9, a stair on layer 10. One block in: planks on 10 to 12, stair on 13. One more in: planks on 13 and 14, stair on 15. That's the near-vertical bottom slope.
- The bend and the gentle part. From there it's plain 45°: one plank and one stair per step, layers 16 to 20, five steps to the middle.
- The ridge. A row of planks on layer 20 down the centre and a row of slabs on top.
- The gables. Fill both ends with mangrove up to the underside of the roof. On the overhang row at each end, swap the planks under the stairs for white concrete.

You'll want scaffolding for the top half. We fell to the loft floor twice in the first evening.

Hayloft, loft door and cupola
The loft is spruce planks over the whole barn on layer 6. Hay stacks along both sides, stepped down towards the middle so the centre stays clear, and there's a trapdoor over the aisle to drop hay through.
The loft door in the front gable is 3 wide on layers 7 to 9, with spruce trapdoors standing open either side. Over it is the hay hood: a dark oak beam sticking three blocks out of the peak, a tiny roof on top and a chain with a lantern where the pulley would hang.

On the ridge sits a cupola: white corner posts, open spruce trapdoors as louvres, a little hip roof and a lightning rod. The rod earns its place. It pulls nearby strikes onto itself in a storm, and lightning can set a wooden barn on fire or turn a pig into a zombified piglin.
The silo and the paddock
The silo stands off the west wall: a round tower 7 across in stone bricks, with a ring of polished andesite every fourth layer like the hoops on a real one. Its walls stop at layer 20, level with the ridge, and a stepped copper dome takes it to layer 24.
You don't need to hunt for oxidized copper. Place plain cut copper and it goes green by itself over time. Inside: hay, barrels, and a lantern on a long chain.

The paddock is spruce fence round about 12 by 17 blocks of grass, using the barn's east wall as one side. Lanterns on the gate posts, two cauldrons as a water trough, a hay bale and an oak for shade.
Running it as an animal barn: pens, food and light
All of this is the same on Java and Bedrock unless we say otherwise.
| Animal | Breeding food | What you get |
|---|---|---|
| Cow | Wheat | Leather, beef, milk with a bucket |
| Sheep | Wheat | Wool with shears (it regrows on grass), mutton |
| Pig | Carrots, potatoes or beetroot | Pork chops |
| Chicken | Seeds: wheat, melon, pumpkin, beetroot, torchflower seeds or a pitcher pod | Eggs, feathers, chicken |
Feed two adults of the same kind and they make a baby. The parents then need five minutes before they'll breed again, and a baby takes about 20 minutes to grow up, faster if you feed it. Chickens follow you if you hold any of their seeds, which is the easy way to walk them into the pen.
Pen size. 5 by 7 is plenty for ten or so animals. On Java, more than 24 mobs squashed into one spot start taking damage (entity cramming), so cull the extras for food. That's what the barn is for.
Keeping them in. Fences and gates, and close every gate behind you. Animals don't jump fences, but they climb anything a block tall next to one. Tie a lead to a fence post to park an animal while you sort a pen out.
Lighting. Hostile mobs only spawn where the block light is 0, on both editions. One lantern hanging over each pen, the aisle and the tack room does the ground floor, and three standing lanterns cover the loft. A dark barn at night is where your cows meet a zombie, and creepers love a hayloft.
Hay. Nine wheat make a bale and a bale crafts back into nine wheat, so the loft is a real wheat store. Cows and sheep won't eat bales, they want wheat from your hand. Horses and llamas do, and llamas breed on them.
Early-game palette and scaling it
No dark oak or mangrove nearby? Do the roof in spruce, and acacia or crimson planks still read as red on the walls. Birch planks for the trim are fine if you have no concrete, a bit creamier. And the silo works just as well in cobblestone with a spruce cone on top.
For the cheapest version, skip the silo and paddock and keep the hay to a single row. That alone takes the block count down by about 600 and saves most of the wheat.
To scale it up, add pen bays: every extra 8 blocks of length is one more pen each side. Keep the roof profile exactly the same. To scale it down, drop to one pen a side, but keep the width. Narrower than 17 and there's no room for the bend.
Where to put your barn
Flat grass with room for the paddock, close to the house. Plains and sunflower plains are ideal and full of cows, sheep, pigs and chickens. The biome finder shows plains and the dark forest for your roof wood on your own seed, and the village finder finds a plains village with farmers to trade wheat with.
It pairs nicely with the modern farmhouse if you want a sharp contrast, or with the windmill for a full farm. If you've never built anything this size, do the big layered house first: it teaches the posts and frames trick on simpler walls.
Questions
How many blocks do I need for the Minecraft barn?
3,484 items, not counting grass and the tree. The big ones are 589 dark oak planks, 525 mangrove planks, 480 dark oak stairs and 439 spruce planks.
How do you make a gambrel roof in Minecraft?
Two slopes per side. The bottom one is steep: 3 up for every 1 in, twice, then 2 up once. Above that it's 45° to the ridge. The steeper the bottom part, the more it reads as a barn.
What do cows, sheep, pigs and chickens eat to breed?
Cows and sheep breed with wheat, pigs with carrots, potatoes or beetroot, and chickens with seeds (wheat, melon, pumpkin, beetroot or torchflower seeds, or a pitcher pod). The parents need five minutes before breeding again.
Why do my animals keep escaping the pen?
Usually something solid stands next to the fence on the inside, like a hay bale or a cauldron, and they jump on it and over. Or a gate was left open.
How do I stop mobs spawning in my barn?
Hostile mobs only spawn at block light level 0, on Java and Bedrock. Make sure light reaches every floor block, including the loft. One lantern per pen and a few in the loft is enough in this barn.
Are the pictures screenshots from the game?
No. The barn is a block model, and the pictures, the layer viewer and the material list all come from it, so they always agree.
Related guides
Finders and tools in this guide
Written by the Minecraft Tools team from the same world-generation engine that runs the seed map. Coordinates quoted here were computed with it for the stated seed, edition and version, and the engine is tested against the real game.