Minecraft Roof Generator
Plan the roof for any rectangular build, stair by stair. Pick the shape and the pitch, see every layer with each stair turned the right way, and get the exact count of stairs, slabs and blocks to bring.
Tool added 26 Oct 2026 · works for Java and Bedrock
What to bring
| Item | Count | Stacks |
|---|
The roof in 3D
Layer by layer
Point at a block to see what goes there.
- Stair, raised side shaded
- Upside-down stair
- Bottom slab
- Top slab
- Full block
- Gable wall
- Layer below
- Your walls
Row by row
Rows run north to south and columns west to east, counted from the north-west corner of the roof.
| Row | Columns | Block |
|---|
Every layer
Tick a layer once it is built. Your ticks stay on this device.
| Layer | Stairs | Slabs | Blocks | Running total | Built |
|---|
Take it into the game
How the plan is laid out. Level 0 is the top course of your walls. A stair rises toward the side it faces, the first row of stairs sits on the walls and each row inward is one level higher; on a low roof the slabs rise half a block at a time, and on a steep roof each row is a block with a stair on top. The ridge is capped where the two slopes meet. Corner stairs on a hip roof are the shapes the game gives them itself, so the roof stays exactly as planned when you build it.
How to build a roof in Minecraft
Finish the walls first. Count the outside of the walls for the width and length, and turn the plan so the ridge runs along the longer side. Start at layer 1, place each stair facing the way the plan shows, then work up a level at a time. A stair faces the way you are looking when you place it, so stand outside the wall and look in toward the ridge while you lay each row.
An odd width gives a sharp ridge one block wide; an even width gives a flat ridge two blocks wide. A roof between one and two storeys tall suits most builds: a 45° roof on a building 20 blocks wide rises 10 blocks, which starts to tower over the walls.
Pitches
| Pitch | Angle | Each row |
|---|---|---|
| Low | 26.6° | A slab, half a block higher than the last |
| Classic | 45° | A stair, one block higher |
| Steep | 63.4° | A full block with a stair on top, two blocks higher |
Roof shapes
A gable roof slopes on two sides and leaves a triangle of wall at each end. It is the classic house roof, and the easiest to build. A hip roof slopes on all four sides, so there is no gable wall; on a square build it rises to a point. A shed roof is a single slope, the cheapest roof, made for sheds, stables and lean-tos. A barn (gambrel) roof is steep near the walls and low near the ridge, which leaves room for a loft. A mansard roof is steep on all four sides with a flat top, and needs a large build to look right.
Finishing the edges
The thick edge puts an upside-down stair under each stair at the gable ends, and a slab under the ridge, so the roof edge looks solid from the side. An upside-down stair leaves a half-block gap at the back, so the plan puts a gable block one row in behind each one, and the lowest takes the place of the wall's top corner block. A stair goes in upside down when you place it against the underside of a block, or against the upper half of a block's side. A different block for the gable wall makes the roof read clearly against the walls, and an overhang of one block throws a shadow line along the eaves.
Java and Bedrock, every version
Pick your edition and version at the top of the page. The blocks you can choose, their names in the list of what to bring and the command file all follow it, so a block only appears in the versions that have it. Stairs face and turn their corners the same way in both editions.
In Java 1.13 and later the command file runs as a data pack function. From Java 1.7.2 to 1.12.2 the commands are
typed into chat, one block at a time before 1.8 brought /fill; earlier versions have no command that
places a block, so build from the layers. Bedrock takes the file as a behavior pack. Upside-down stairs and top
slabs arrived in Java 1.2.1, so in 1.0 and 1.1 the plan keeps to full stairs, bottom slabs and blocks, and stairs
before Java 1.4.2 never form corners, so a hip roof there is built from straight stairs.
Update history
Every change to this tool
- Tool added