Minecraft Roof Generator

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.

Roof settings
Roof type
3–40 blocks
1–60 blocks
0–3 blocks
0–3 blocks
Pitch (rise : run)
Roof body
Shell is the roof surface only. Solid also fills every empty cell below it.
Changes the drawings only. Counts and layers are unaffected.
Embed this tool

Basic — fixed height.

Auto-height — the same, plus a short script (paste it once per page) that resizes the frame to fit the tool.

Add &theme=dark or &theme=light after ?embed=1 to fix the colours; leave it off for the default.

Free to embed on any site, no sign-up. Please keep the credit link. You may add rel="nofollow" to it if you prefer. How embedding works

Block counts
0
Stairs
0
Bottom slabs
0
Top slabs
0
Ridge slabs
0
Full blocks
0
Fill blocks
0
Total
0
Stacks of 64
0
Peak height
0
Layers
0
Span S
0
Roof length Lr

Side profile

Layer plan (top-down)

  • ↖ stair, arrow points downhill
  • b bottom slab
  • t top slab
  • r ridge slab
  • + full block
  • fill (solid only)

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.

How pitch works in Minecraft

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.

The three pitches. The angle is computed as atan(rise ÷ run); the last column gives the name the wiki uses (minecraft.wiki, Tutorial:Roof construction guidelines § Roof pitch, retrieved 2026-10-03).
Page labelRise : runBlock pattern per columnAngle (computed)Wiki's name for it
Shallow1:2One slab per column; bottom slab, then top slab, then up one layer26.6° (26.57)“1 in 2”, alternating upper and lower slabs
Standard1:1One stair per column, each column one layer higher45°“1 in 1”, steps
Steep2:1Two full blocks per column63.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.

How the counts are computed

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.

Convention choices that change the numbers

Gable roof blocks per block of length

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.

Table G. Gable roof, counts per 1 block of roof length, for spans S = 3 to 25. Computed from the geometry model above.
S1:2 Shallow1:1 Standard2:1 Steep
Bottom slabsTop slabsPeakFillStairsRidge slabPeakFillBlocksPeakFill
3211.00211.51642
4221.00402.02844
5321.51412.541068
6421.52603.0612612
7432.03613.5914818
8442.04804.01216824
9542.56814.516181032
10642.581005.020201040
11653.0101015.525221250
12663.0121206.030241260
13763.5151216.536261472
14863.5181407.042281484
15874.0211417.549301698
16884.0241608.0563216112
17984.5281618.5643418128
181084.5321809.0723618144
191095.0361819.5813820162
2010105.04020010.0904020180
2111105.54520110.51004222200
2212105.55022011.01104422220
2312116.05522111.51214624242
2412126.06024012.01324824264
2513126.56624112.51445026288

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.

Hip and pyramid roof block counts

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.

Table H. Hip and pyramid roof at 1:1, whole-roof totals. Each cell: stairs / ridge slabs / peak / solid fill. Computed from the geometry model above.
S \ LrLr = S (pyramid)S+2S+4S+6S+10
524 / 1 / 2.5 / 1032 / 3 / 2.5 / 1840 / 5 / 2.5 / 2648 / 7 / 2.5 / 3464 / 11 / 2.5 / 50
636 / 0 / 3.0 / 2048 / 0 / 3.0 / 3260 / 0 / 3.0 / 4472 / 0 / 3.0 / 5696 / 0 / 3.0 / 80
748 / 1 / 3.5 / 3560 / 3 / 3.5 / 5372 / 5 / 3.5 / 7184 / 7 / 3.5 / 89108 / 11 / 3.5 / 125
864 / 0 / 4.0 / 5680 / 0 / 4.0 / 8096 / 0 / 4.0 / 104112 / 0 / 4.0 / 128144 / 0 / 4.0 / 176
980 / 1 / 4.5 / 8496 / 3 / 4.5 / 116112 / 5 / 4.5 / 148128 / 7 / 4.5 / 180160 / 11 / 4.5 / 244
10100 / 0 / 5.0 / 120120 / 0 / 5.0 / 160140 / 0 / 5.0 / 200160 / 0 / 5.0 / 240200 / 0 / 5.0 / 320
11120 / 1 / 5.5 / 165140 / 3 / 5.5 / 215160 / 5 / 5.5 / 265180 / 7 / 5.5 / 315220 / 11 / 5.5 / 415
12144 / 0 / 6.0 / 220168 / 0 / 6.0 / 280192 / 0 / 6.0 / 340216 / 0 / 6.0 / 400264 / 0 / 6.0 / 520
13168 / 1 / 6.5 / 286192 / 3 / 6.5 / 358216 / 5 / 6.5 / 430240 / 7 / 6.5 / 502288 / 11 / 6.5 / 646
14196 / 0 / 7.0 / 364224 / 0 / 7.0 / 448252 / 0 / 7.0 / 532280 / 0 / 7.0 / 616336 / 0 / 7.0 / 784
15224 / 1 / 7.5 / 455252 / 3 / 7.5 / 553280 / 5 / 7.5 / 651308 / 7 / 7.5 / 749364 / 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.

Width, overhang and ridge height

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.

Table R. Ridge height at 1:1 by building width W and eave overhang O. Peak = (W + 2O) / 2. Computed from the geometry model above.
WTop of roofPeak, O = 0O = 1O = 2O = 3
31 slab line1.52.53.54.5
42 stair rows2.03.04.05.0
51 slab line2.53.54.55.5
62 stair rows3.04.05.06.0
71 slab line3.54.55.56.5
82 stair rows4.05.06.07.0
91 slab line4.55.56.57.5
102 stair rows5.06.07.08.0
111 slab line5.56.57.58.5
122 stair rows6.07.08.09.0
131 slab line6.57.58.59.5
142 stair rows7.08.09.010.0
151 slab line7.58.59.510.5
162 stair rows8.09.010.011.0
171 slab line8.59.510.511.5
182 stair rows9.010.011.012.0
191 slab line9.510.511.512.5
202 stair rows10.011.012.013.0
211 slab line10.511.512.513.5
222 stair rows11.012.013.014.0
231 slab line11.512.513.514.5
242 stair rows12.013.014.015.0
251 slab line12.513.514.515.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).

Shed roofs

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.

Tower, cone and dome roofs

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.

What this generator does not do

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).

Frequently asked questions

Should I build with stairs or slabs?

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).

Why do odd widths peak cleanly?

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.

Does a hip corner need a special block?

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).

Does the overhang count in the span?

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.

How many layers will my roof have?

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.

Sources

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.

Related tools

Last verified: October 2026.

⚒ Built by Done In Browser — use full version