How the enchanting table actually works
Verified: Java 26.3 · 2026-09-16 · table mechanics; the anvil side lives in its own guide · Updated 2026-09-16
The enchanting table is the half of the enchanting system people think they understand: thirty levels, pick the bottom slot, hope. The real machinery is more specific — a bookshelf count with a hard ceiling, three slots priced by formula, a bill that is far smaller than the number on the label, and offers that hold still until you spend on one. This guide covers the table; combining what it gives you is the anvil mechanics guide's job.
Fifteen shelves, level thirty, and not one shelf more
Bookshelves feed the table power, and the ceiling is exact: fifteen active shelves reach the maximum, and further bookshelves are ignored. At full power the bottom slot's requirement reaches level 30 — the famous number — and it cannot be pushed higher. The geometry is exact too: a shelf counts when it sits two blocks from the table along one horizontal axis, up to two along the other, at the table's height or one block above, with the gap between shelf and table at shelf height kept open — air works, as do a handful of low blocks the game tags as power-transmitting, like snow layers and short grass. A carpet in the wrong spot silences a shelf, which is why "my table only offers 27" is almost always a decoration bug.
The three slots, by formula
Under the hood the table rolls a base value once per opening — driven by the shelf count plus randomness, topping out at 30 with fifteen shelves — and derives the three slots from it: the top slot asks about a third of the base (never less than 1), the middle about two thirds plus one, and the bottom slot the full base value, floored at twice the shelf count. That is why the bottom slot at a full table pins to exactly 30 while the top slot wobbles in the single digits: at maximum power the top asks 10 at most. If the middle slot ever looks oddly close to the bottom one, that is the formula, not a lucky table.
The number on the slot is a gate, not a price
This is the fact that changes how the table feels to use. Each slot's green number is the level you must have to click it — but the deduction is flat: the top slot takes 1 level and 1 lapis lazuli, the middle 2 and 2, the bottom 3 and 3. Enchant at the bottom slot while sitting at level 30 and you walk away at level 27, not zero. Thirty levels is the entry ticket; three levels is the fare. The practical consequence: once you are past 30, enchanting repeatedly is cheap — the expensive part of the loop is climbing to 30 the first time, which the XP calculator prices at 1,395 points from zero.
When the offers change — and when they refuse to
The three offers for a given item are not a fresh roll every time you look. They come from a hidden per-player seed, so closing the screen, reopening it, or walking to an identically shelved table shows you the same three choices for that item. The seed regenerates when you actually enchant something — that is the reroll, and it costs whatever you enchanted. The honest strategy that falls out: if none of the three offers on your sword is worth having, enchant something cheap — a book at the 1-level top slot spends a single level and one lapis — and the board resets. What the table never offers is certainty: the slot label names one enchantment, and extras ride along at random. A table cannot be aimed, only rerolled.
Table first, anvil second
The two halves of the system reward opposite instincts. The table is a slot machine with good odds at level 30: cheap pulls, no control. The anvil is a pricing engine with total control and a cost that depends brutally on order. So the working pattern for finished gear is: pull books from the table's cheap slots and big pulls from the bottom slot, then let the enchantment optimizer find the cheapest order to combine the exact set you want. Chasing a specific enchantment by re-rolling the table's bottom slot at 3 levels a pull is usually still cheaper than over-combining on the anvil, where the prior work penalty doubles behind your back.
Limits
This page states Java's documented mechanics; Bedrock's table behaves similarly at the headline level but this site has not verified its slot internals, so no parity claim is made — the edition ledger tracks what we have and have not checked. Per-enchantment odds inside a slot (the enchantability weighting by item and material) are real but beyond this page's scope, and nothing here helps with enchantments the table simply does not deal in.
Sources
Shelf ceiling, placement geometry, slot formulas, and seed behavior: the Minecraft Wiki's enchanting mechanics documentation (minecraft.wiki/w/Enchanting_table_mechanics). The level-30 maximum at fifteen shelves and the flat 1/2/3 cost: the wiki's enchantment page (minecraft.wiki/w/Enchantment), which also records the level-30 slot deducting 3 levels and 3 lapis — the gate-versus-price distinction this whole page turns on. Verified 2026-09-01 against Java 26.2. Every number printed here is asserted in this site's test suite.