Enchanting Table Max Level: 15 Bookshelves for Level 30

Fifteen bookshelves is the cap and the only way to reach level 30: at that count the bottom slot rolls exactly 30, costing just 3 levels and 3 lapis each.

Minecraft Enchanting Table Calculator

Paste it on your own page or wiki — no signup, no tracking script.

What the enchanting table actually rolls

The table does not have a fixed list of enchantments it offers at a given level. It rolls a base number and then splits that number across three slots, and the only thing you control is how many bookshelves the table can see. This calculator shows the exact level range each slot can land in for your shelf count, so you know what you are buying before you spend the levels.

The underlying rule, from the Minecraft Wiki, is three lines long. With b usable bookshelves, the base roll is randomInt(1,8) + floor(b / 2) + randomInt(0, b). That base is then converted per slot: the top slot is floor(max(base / 3, 1)), the middle is floor((base × 2) / 3 + 1), and the bottom is floor(max(base, b × 2)). Because b appears in the bottom slot twice, shelves raise the ceiling on that slot steeply and the other two only gently — which is why the third slot is where the level 30 enchantments come from.

We did not take those numbers on trust. The three slot ranges for all sixteen shelf counts were reproduced by running every possible combination of the two random terms, and every one of the 16 rows matches the published table exactly. The table further down this page is that output.

How many bookshelves do you need

Fifteen usable bookshelves is the cap, and it is the only way to reach level 30. The ladder is not linear: no shelves gives a maximum of 8, five shelves give 15, ten give 23, and fifteen give 30. Each shelf is worth two levels at the top of the range but only about one and a half on average, so the last few shelves are the ones that matter.

A shelf only counts when it is placed exactly two blocks laterally from the table, on the same level or one block above it, with a clear gap between. That gap rule is the usual reason a table stalls below 30: on Bedrock the space between must be plain air, so a single torch or a carpet silently kills the shelf's contribution. On Java the gap may be air or a replaceable block such as snow or grass. If your maximum looks wrong, count the shelves that can actually see the table, not the ones you built.

Extra shelves past fifteen are decoration. A twenty-shelf library does not push the table past 30 — it just looks better.

Worked examples

Fifteen shelves, aiming for 30

The top slot can roll level 2 to 10, the middle slot 6 to 21, and the bottom slot always lands on exactly 30. The bottom slot is the one to use, and it costs 3 XP levels plus 3 lapis lazuli. Those 3 levels are worth 363 XP at that point on the curve — about 73 mob kills at 5 XP each — while the full 30 levels you spent climbing there are worth 1,395 XP in total. That gap is the reason to spend your levels at the table rather than hold on to them.

Ten shelves, mid-game

At ten shelves the bottom slot rolls 20 to 23 and the top slot 2 to 7. That is a real upgrade path: you can start enchanting iron gear at ten shelves without waiting for a full fifteen-shelf room, and the worst bottom-slot result still beats the best result at five shelves. Materials cost is the same 1/2/3 lapis regardless of level.

No shelves at all

With zero shelves the table caps at level 8 and the bottom slot rolls 1 to 8. This is the practical floor for early game: you can still get low-tier enchants on a fresh world, and it is worth doing rather than letting levels pile up unspent.

Minecraft building templates
Need to build the room itself? Our circle generator sizes the ring for a round enchanting hall, and the XP calculator converts the level cost into XP points.

Bookshelf and level reference

Usable
shelves
Top slot
level range
Middle slot
level range
Bottom slot
level range
Maximum
level
Lapis
1 / 2 / 3
01–21–61–881 / 2 / 3
11–31–72–991 / 2 / 3
21–32–84–11111 / 2 / 3
31–42–96–12121 / 2 / 3
41–43–108–14141 / 2 / 3
51–53–1110–15151 / 2 / 3
61–53–1212–17171 / 2 / 3
71–63–1314–18181 / 2 / 3
81–64–1416–20201 / 2 / 3
91–74–1518–21211 / 2 / 3
102–75–1620–23231 / 2 / 3
112–85–1722–24241 / 2 / 3
122–85–1824–26261 / 2 / 3
132–95–1926–27271 / 2 / 3
142–96–2028–29291 / 2 / 3
152–106–2130–30301 / 2 / 3

Slot level ranges and the maximum are the published values, and each row was independently reproduced from the formula by exhaustive enumeration of the two random terms. Lapis cost is fixed at 1, 2 and 3 per slot regardless of shelf count.

What the level cost really costs you

The level shown on the button is the number of XP levels deducted, not the level you must be at. Levels get more expensive as you climb, so the same three-level enchantment costs more XP at level 40 than at level 10. Converting levels into XP points makes the comparison honest:

That is why a level 30 enchantment is worth doing as soon as you have it rather than sitting on the levels: the XP you have already spent to reach that level is the expensive part, and the 3 levels you pay at the table are cheap by comparison.

Placement rules, and the mistakes they cause

Where these numbers come from

The formula, the slot ranges and the placement rules are all from the Minecraft Wiki's Enchanting mechanics article. Two independent checks were run before publishing: every possible value of the two random terms was enumerated for each shelf count from 0 to 15 and compared against the published slot ranges, and the level-cost conversion was checked against the XP curve used by our XP calculator. The tables on this page are the output of the first check; nothing here is copied from another calculator.

For the level-30 grind

Fifteen bookshelves and 3 lapis per roll only matter once you have the XP to spend, and that means a grind. These are the items a long enchanting session runs on.

  • MMO gaming mouse — Grinding XP at a mob farm is hours of repeated clicks; a mouse with programmable buttons eases the repetition.
  • Second monitor — Bookshelf layout and the level each slot can roll are easier to follow with the chart on a second screen.
  • SSD — Enchanting sessions follow XP farms, which run in big worlds; an SSD keeps the loads between them short.
  • Desk lamp — Enchanting is a night-time job in a dim room; a lamp keeps your lapis and notes visible without washing out the screen.

As an Amazon Associate I earn from qualifying purchases. The links above are affiliate links — if you buy through one, the price you pay is unchanged and a small commission helps keep these calculators free. Tools are listed because the job calls for them, not because of commission rates.

Sources and standards

Where these figures come from

Every figure on this page is implemented from the published reference material below, and re-checked against it before publishing rather than copied from another calculator.

  • Minecraft Wiki — the base roll formula, the three per-slot conversions, the slot range table and the bookshelf placement rules.
  • Minecraft Wiki — the fifteen-shelf cap, lapis lazuli costs and the level 30 maximum.
  • Minecraft Wiki — the XP-per-level formula used here to convert a level cost into XP points.

FAQ

How many bookshelves do I need for level 30 enchanting?

Fifteen usable bookshelves. The table caps at level 30 and stops counting past fifteen shelves, so a sixteenth shelf is decoration. Each shelf must sit exactly two blocks laterally from the table, on the same level or one block above, with an unobstructed gap.

Why is my enchanting table stuck below level 30?

Almost always the gap rule. On Bedrock the space between shelf and table must be plain air, so a torch, carpet or snow layer silently blocks that shelf. On Java the gap can be air or a replaceable block such as short grass. Count the shelves that can actually see the table rather than the ones you placed.

What do the three slots mean?

They are three independent rolls that cost 1, 2 and 3 lapis lazuli. The top slot rolls the lowest levels, the bottom slot the highest. A higher price does not guarantee a better enchantment — the wiki explicitly warns against reading cost as quality.

How much does a level 30 enchantment cost?

Three XP levels and three lapis lazuli. You do not need to be at level 30 to take it, you only need three levels in hand. Those three levels are worth 363 XP at that point on the curve — about 73 mob kills at 5 XP each — while the 30 levels you spent getting there are worth 1,395 XP in total.

Does the bookshelf count change what enchantments appear?

It changes the level range each slot can roll, and the level range decides which enchantments are possible. It does not change the list of enchantments the table can produce, and treasure enchantments such as Mending never appear from a table roll at any level.

How many bookshelves for a good mid-game setup?

Ten shelves gives a bottom slot of 20 to 23 and a top slot of 2 to 7, which is enough for solid iron and diamond gear. You can build the full fifteen later; the lapis cost is identical either way.

Can I place bookshelves on top of the enchanting table?

No. A shelf has to be at the same height as the table or one block above it, and two blocks away laterally. Shelves set into the floor or stacked directly overhead do not count.

Do extra bookshelves improve the odds of a rare enchantment?

Only indirectly, by raising the level range that slot can roll. Past fifteen shelves nothing changes at all. The specific enchantment you get is still a roll against the item and level.

What is the maximum enchantment level?

Level 30 from the table, which needs fifteen shelves. Some enchantments can then be pushed higher by combining books or items on an anvil, but that is a separate mechanic with its own cost.

Does this calculator need mods or an account?

No. The whole thing runs in your browser, and the shelf table is the same one the Minecraft Wiki publishes — the ranges here were reproduced from the official formula rather than typed in by hand.

More game tools

Have a suggestion?

Missing a feature or found something off? Tell us — user suggestions decide what we build next.