Plan a gable, hip or shed roof block by block. Set the size and the pitch, read the side profile, step through the layers and get exact stair, slab and ridge counts. Everything runs in your browser.
Layer 0 is the eave layer. Top of the grid is the north end of the roof and west is on the left. The roof length runs top to bottom for a gable.
Counts cover the roof only. Walls, gable-end walls and interior floors are the building, so they are not included.
Pitch is how many blocks a roof rises for every block it runs across, written rise : run. The pattern of blocks in each column fixes the slope, and this generator offers the three standard patterns: Shallow (1:2), Standard (1:1) and Steep (2:1). The angles in the table are our own, computed from the rise and run with the arctangent.
| Page label | Rise : run | Block pattern per column | Angle (computed) | Wiki's name for it |
|---|---|---|---|---|
| Shallow | 1:2 | One slab per column; bottom slab, then top slab, then up one layer | 26.6° (26.57) | “1 in 2”, alternating upper and lower slabs |
| Standard | 1:1 | One stair per column, each column one layer higher | 45° | “1 in 1”, steps |
| Steep | 2:1 | Two full blocks per column | 63.4° (63.43) | “2 in 1”, double blocks |
The wiki's roof-pitch advice names 63.4°, 45° and 22.5° as the easy angles, built from double blocks, steps and alternating upper and lower slabs (minecraft.wiki, Tutorial:Roof construction guidelines § Roof pitch, retrieved 2026-10-03).
One number differs. The wiki gives 22.5° for the alternating-slab roof. The slope that pattern actually produces is 1 block up for every 2 along, and atan(½) = 26.6°. A 22.5° slope would be a rise of 0.414 per block, which no slab pattern makes. We print 26.6° as our computed figure and say here that the wiki gives 22.5°. The wiki's 63.4° for double blocks matches atan(2).
Other pitches are not in this release: that covers the wiki's repeating slab, upside-down stair and stair pattern that rises 5 for every 7 along (minecraft.wiki, Tutorial:Roof construction guidelines § Roof pitch, retrieved 2026-10-03), a 3:4 pitch and a degrees input.
This is a model of a roof's geometry, not a recording of the game. Every count, height and layer number on this page comes from the rules below, applied cell by cell. Where our figure and the wiki's differ, the page says so.
A gable slopes down to two eaves. Table G gives the counts for one block of roof length; multiply by Lr to get the whole roof. Fill is the solid-roof extra.
| S | 1:2 Shallow | 1:1 Standard | 2:1 Steep | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Bottom slabs | Top slabs | Peak | Fill | Stairs | Ridge slab | Peak | Fill | Blocks | Peak | Fill | |
| 3 | 2 | 1 | 1.0 | 0 | 2 | 1 | 1.5 | 1 | 6 | 4 | 2 |
| 4 | 2 | 2 | 1.0 | 0 | 4 | 0 | 2.0 | 2 | 8 | 4 | 4 |
| 5 | 3 | 2 | 1.5 | 1 | 4 | 1 | 2.5 | 4 | 10 | 6 | 8 |
| 6 | 4 | 2 | 1.5 | 2 | 6 | 0 | 3.0 | 6 | 12 | 6 | 12 |
| 7 | 4 | 3 | 2.0 | 3 | 6 | 1 | 3.5 | 9 | 14 | 8 | 18 |
| 8 | 4 | 4 | 2.0 | 4 | 8 | 0 | 4.0 | 12 | 16 | 8 | 24 |
| 9 | 5 | 4 | 2.5 | 6 | 8 | 1 | 4.5 | 16 | 18 | 10 | 32 |
| 10 | 6 | 4 | 2.5 | 8 | 10 | 0 | 5.0 | 20 | 20 | 10 | 40 |
| 11 | 6 | 5 | 3.0 | 10 | 10 | 1 | 5.5 | 25 | 22 | 12 | 50 |
| 12 | 6 | 6 | 3.0 | 12 | 12 | 0 | 6.0 | 30 | 24 | 12 | 60 |
| 13 | 7 | 6 | 3.5 | 15 | 12 | 1 | 6.5 | 36 | 26 | 14 | 72 |
| 14 | 8 | 6 | 3.5 | 18 | 14 | 0 | 7.0 | 42 | 28 | 14 | 84 |
| 15 | 8 | 7 | 4.0 | 21 | 14 | 1 | 7.5 | 49 | 30 | 16 | 98 |
| 16 | 8 | 8 | 4.0 | 24 | 16 | 0 | 8.0 | 56 | 32 | 16 | 112 |
| 17 | 9 | 8 | 4.5 | 28 | 16 | 1 | 8.5 | 64 | 34 | 18 | 128 |
| 18 | 10 | 8 | 4.5 | 32 | 18 | 0 | 9.0 | 72 | 36 | 18 | 144 |
| 19 | 10 | 9 | 5.0 | 36 | 18 | 1 | 9.5 | 81 | 38 | 20 | 162 |
| 20 | 10 | 10 | 5.0 | 40 | 20 | 0 | 10.0 | 90 | 40 | 20 | 180 |
| 21 | 11 | 10 | 5.5 | 45 | 20 | 1 | 10.5 | 100 | 42 | 22 | 200 |
| 22 | 12 | 10 | 5.5 | 50 | 22 | 0 | 11.0 | 110 | 44 | 22 | 220 |
| 23 | 12 | 11 | 6.0 | 55 | 22 | 1 | 11.5 | 121 | 46 | 24 | 242 |
| 24 | 12 | 12 | 6.0 | 60 | 24 | 0 | 12.0 | 132 | 48 | 24 | 264 |
| 25 | 13 | 12 | 6.5 | 66 | 24 | 1 | 12.5 | 144 | 50 | 26 | 288 |
n = ⌊S/2⌋ 1:1 → odd S: S−1 stairs + 1 ridge slab; even S: S stairs. Peak S/2. Fill n² (odd S) or n(n−1) (even S). 2:1 → 2S blocks. Peak S+1 (odd S) or S (even S). 1:2 → S slabs. Peak (⌊(S−1)/2⌋ + 1) / 2.
Sanity check against the wiki: its roof-scale advice says a building 20 wide with a single 45° gable roof has a roof 10 to 11 blocks high (minecraft.wiki, Tutorial:Roof construction guidelines § Roof scale, retrieved 2026-10-03). The S = 20 row above, at 1:1, gives a peak of 10.0.
The wiki also says the simple gable design is not suited to widths over about 12 (minecraft.wiki, Tutorial:Roof types § Gable roof, retrieved 2026-10-03). The table runs to S = 25 because the counts stay exact; at 1:1 the peak keeps climbing with the span, reaching 12.5 at S = 25.
A hip roof slopes on all sides, and a square footprint gives a pyramid (minecraft.wiki, Tutorial:Roof types § Hipped roof, retrieved 2026-10-03). Table H gives whole-roof totals at 1:1 for S up to Lr. Each cell reads stairs / ridge slabs / peak / solid fill. The first column is the pyramid, where Lr = S.
| S \ Lr | Lr = S (pyramid) | S+2 | S+4 | S+6 | S+10 |
|---|---|---|---|---|---|
| 5 | 24 / 1 / 2.5 / 10 | 32 / 3 / 2.5 / 18 | 40 / 5 / 2.5 / 26 | 48 / 7 / 2.5 / 34 | 64 / 11 / 2.5 / 50 |
| 6 | 36 / 0 / 3.0 / 20 | 48 / 0 / 3.0 / 32 | 60 / 0 / 3.0 / 44 | 72 / 0 / 3.0 / 56 | 96 / 0 / 3.0 / 80 |
| 7 | 48 / 1 / 3.5 / 35 | 60 / 3 / 3.5 / 53 | 72 / 5 / 3.5 / 71 | 84 / 7 / 3.5 / 89 | 108 / 11 / 3.5 / 125 |
| 8 | 64 / 0 / 4.0 / 56 | 80 / 0 / 4.0 / 80 | 96 / 0 / 4.0 / 104 | 112 / 0 / 4.0 / 128 | 144 / 0 / 4.0 / 176 |
| 9 | 80 / 1 / 4.5 / 84 | 96 / 3 / 4.5 / 116 | 112 / 5 / 4.5 / 148 | 128 / 7 / 4.5 / 180 | 160 / 11 / 4.5 / 244 |
| 10 | 100 / 0 / 5.0 / 120 | 120 / 0 / 5.0 / 160 | 140 / 0 / 5.0 / 200 | 160 / 0 / 5.0 / 240 | 200 / 0 / 5.0 / 320 |
| 11 | 120 / 1 / 5.5 / 165 | 140 / 3 / 5.5 / 215 | 160 / 5 / 5.5 / 265 | 180 / 7 / 5.5 / 315 | 220 / 11 / 5.5 / 415 |
| 12 | 144 / 0 / 6.0 / 220 | 168 / 0 / 6.0 / 280 | 192 / 0 / 6.0 / 340 | 216 / 0 / 6.0 / 400 | 264 / 0 / 6.0 / 520 |
| 13 | 168 / 1 / 6.5 / 286 | 192 / 3 / 6.5 / 358 | 216 / 5 / 6.5 / 430 | 240 / 7 / 6.5 / 502 | 288 / 11 / 6.5 / 646 |
| 14 | 196 / 0 / 7.0 / 364 | 224 / 0 / 7.0 / 448 | 252 / 0 / 7.0 / 532 | 280 / 0 / 7.0 / 616 | 336 / 0 / 7.0 / 784 |
| 15 | 224 / 1 / 7.5 / 455 | 252 / 3 / 7.5 / 553 | 280 / 5 / 7.5 / 651 | 308 / 7 / 7.5 / 749 | 364 / 11 / 7.5 / 945 |
Ring y (y = 0 … ⌊S/2⌋−1) has 2(S−2y) + 2(Lr−2y) − 4 stairs. Ridge slabs = Lr − S + 1 if S is odd, else 0. Peak = S/2. Solid fill = Σ over y of (S−2y−2)(Lr−2y−2).
Rule of thumb: each extra block of length adds 2⌊S/2⌋ stairs, and one ridge slab when S is odd. Hip roofs at 1:2 and 2:1, and any size outside the table, come from the generator above.
The 1:1 peak is half the span, so the ridge height is (W + 2 × O) / 2. Table R lists it for building widths 3 to 25 and eave overhangs 0 to 3.
| W | Top of roof | Peak, O = 0 | O = 1 | O = 2 | O = 3 |
|---|---|---|---|---|---|
| 3 | 1 slab line | 1.5 | 2.5 | 3.5 | 4.5 |
| 4 | 2 stair rows | 2.0 | 3.0 | 4.0 | 5.0 |
| 5 | 1 slab line | 2.5 | 3.5 | 4.5 | 5.5 |
| 6 | 2 stair rows | 3.0 | 4.0 | 5.0 | 6.0 |
| 7 | 1 slab line | 3.5 | 4.5 | 5.5 | 6.5 |
| 8 | 2 stair rows | 4.0 | 5.0 | 6.0 | 7.0 |
| 9 | 1 slab line | 4.5 | 5.5 | 6.5 | 7.5 |
| 10 | 2 stair rows | 5.0 | 6.0 | 7.0 | 8.0 |
| 11 | 1 slab line | 5.5 | 6.5 | 7.5 | 8.5 |
| 12 | 2 stair rows | 6.0 | 7.0 | 8.0 | 9.0 |
| 13 | 1 slab line | 6.5 | 7.5 | 8.5 | 9.5 |
| 14 | 2 stair rows | 7.0 | 8.0 | 9.0 | 10.0 |
| 15 | 1 slab line | 7.5 | 8.5 | 9.5 | 10.5 |
| 16 | 2 stair rows | 8.0 | 9.0 | 10.0 | 11.0 |
| 17 | 1 slab line | 8.5 | 9.5 | 10.5 | 11.5 |
| 18 | 2 stair rows | 9.0 | 10.0 | 11.0 | 12.0 |
| 19 | 1 slab line | 9.5 | 10.5 | 11.5 | 12.5 |
| 20 | 2 stair rows | 10.0 | 11.0 | 12.0 | 13.0 |
| 21 | 1 slab line | 10.5 | 11.5 | 12.5 | 13.5 |
| 22 | 2 stair rows | 11.0 | 12.0 | 13.0 | 14.0 |
| 23 | 1 slab line | 11.5 | 12.5 | 13.5 | 14.5 |
| 24 | 2 stair rows | 12.0 | 13.0 | 14.0 | 15.0 |
| 25 | 1 slab line | 12.5 | 13.5 | 14.5 | 15.5 |
The other two pitches: 1:2 peaks at (⌊(S−1)/2⌋ + 1) / 2 and 2:1 peaks at S+1 for odd S or S for even S, with S = W + 2 × O.
Odd against even: an odd span gives a one-wide ridge line, one slab per block of length. An even span gives two stair rows meeting at the top. The wiki's advice is to make the whole building an odd number of blocks wide when the roof must peak over a central feature of odd width, such as a door (minecraft.wiki, Tutorial:Roof construction guidelines § Roof pitch, retrieved 2026-10-03).
A shed roof is a single slope: S columns with d = x, the eave at x = 0 and the high edge at x = S−1. Per row of length, 1:1 takes S stairs, peaks at S and has a solid fill of S(S−1)/2; 1:2 takes ⌈S/2⌉ bottom and ⌊S/2⌋ top slabs and peaks at S/2; 2:1 takes 2S blocks and peaks at 2S. There is no table for it; pick Shed in the generator.
A conical roof of base diameter D at 1:1 is a stack of circle outlines with diameters D, D−2, D−4 and so on down to 1 or 2, one layer each, so it has ⌈D/2⌉ layers. At 1:2 each diameter is used for two layers. The outlines themselves are on the Minecraft Circle Generator, which is where to get them. A domed roof is a sphere cap: use the dome mode of the Minecraft Sphere Generator.
It does not plan saltbox or A-frame roofs, mansard or gambrel roofs, flat-top roofs, curved, barrel, dome or cone roofs (see the section above for those), custom pitches, L-shaped plans, schematic export, a 3D view or block palettes. On mansards, the wiki says a building needs to be roughly 16×20 before a mansard looks right (minecraft.wiki, Tutorial:Roof types § Mansard roof, retrieved 2026-10-03).
It depends on the pitch you want, because the block pattern sets the slope: stairs for 1:1 (45°), alternating slabs for 1:2 (26.6°), two full blocks for 2:1 (63.4°). For what the game stores, Java slabs have a type of bottom, top or double, and Bedrock slabs have a vertical_half of bottom or top (minecraft.wiki, Quartz Slab § Block states, retrieved 2026-10-03).
An odd span has a single centre column, so the top is a one-wide line that takes one slab per block of length, and the 1:1 peak lands on a half height such as 5.5. An even span has two stair rows meeting at the top and peaks on a whole number. See the odd-against-even note under Table R for the wiki's advice on door-centred roofs.
In the count, a hip corner is one stair block, however it faces. Both editions carry a corner shape in their stair block states: Java stairs have facing, half (bottom or top) and shape (straight, inner_left, inner_right, outer_left, outer_right), and Bedrock stairs have upside_down_bit, weirdo_direction and a corner state (none, inner_left, inner_right, outer_left, outer_right) (minecraft.wiki, Quartz Stairs § Block states, retrieved 2026-10-03). Where roofs meet at an angle, the wiki's angled-buildings tutorial notes that corner stairs, upside-down stairs or full blocks can mostly avoid holes at the join (minecraft.wiki, Tutorial:Roof construction guidelines § Angled buildings, retrieved 2026-10-03).
In this model, yes: S = W + 2 × O. A building 9 wide with a 1-block eave overhang is an 11-span roof, and at 1:1 its peak is 5.5, not 4.5. This is a convention, not a game rule; entering the larger width with O = 0 gives the same numbers.
Layer 0 is the eave layer. Let d_max be the largest inset distance: ⌊(S−1)/2⌋ for a gable or a hip roof with S no longer than Lr, and S−1 for a shed. The shell has ⌊d_max/2⌋ + 1 layers at 1:2, d_max + 1 at 1:1 and 2 × d_max + 2 at 2:1. For S = 11 that is 3, 6 and 12 layers, and the counts panel shows the figure for your roof.
Minecraft Wiki (minecraft.wiki), retrieved 2026-10-03: “Tutorial:Roof construction guidelines” — sections Roof pitch, Roof scale and Angled buildings; “Tutorial:Roof types” — sections Gable roof, Hipped roof and Mansard roof; “Quartz Stairs” — Block states; “Quartz Slab” — Block states. The wiki's wording is paraphrased, not copied.
All block counts, peak heights and angles on this page are computed from the roof geometry model described above.
Last verified: October 2026.